Lines Matching refs:RValue
136 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic()
139 return RValue::get(MakeBinaryAtomicValue(CGF, Kind, E)); in EmitBinaryAtomic()
145 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost()
177 return RValue::get(Result); in EmitBinaryAtomicPost()
305 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn, in emitLibraryCall()
465 RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, in EmitBuiltinExpr()
473 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
476 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
484 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), nullptr)); in EmitBuiltinExpr()
489 return RValue::get( in EmitBuiltinExpr()
502 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(Intrinsic::vacopy), in EmitBuiltinExpr()
518 return RValue::get(Result); in EmitBuiltinExpr()
523 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::fabs)); in EmitBuiltinExpr()
531 return RValue::get(Result); in EmitBuiltinExpr()
536 return RValue::get(emitBinaryBuiltin(*this, E, Intrinsic::copysign)); in EmitBuiltinExpr()
541 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::ceil)); in EmitBuiltinExpr()
546 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::floor)); in EmitBuiltinExpr()
551 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::trunc)); in EmitBuiltinExpr()
556 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::rint)); in EmitBuiltinExpr()
561 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::nearbyint)); in EmitBuiltinExpr()
566 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::round)); in EmitBuiltinExpr()
571 return RValue::get(emitBinaryBuiltin(*this, E, Intrinsic::minnum)); in EmitBuiltinExpr()
576 return RValue::get(emitBinaryBuiltin(*this, E, Intrinsic::maxnum)); in EmitBuiltinExpr()
590 return RValue::getComplex(std::make_pair(Real, Imag)); in EmitBuiltinExpr()
599 return RValue::get(ComplexVal.first); in EmitBuiltinExpr()
609 return RValue::get(ComplexVal.second); in EmitBuiltinExpr()
627 return RValue::get(Result); in EmitBuiltinExpr()
644 return RValue::get(Result); in EmitBuiltinExpr()
665 return RValue::get(Result); in EmitBuiltinExpr()
682 return RValue::get(Result); in EmitBuiltinExpr()
697 return RValue::get(Result); in EmitBuiltinExpr()
703 return RValue::get(EmitScalarExpr(E->getArg(0))); in EmitBuiltinExpr()
714 return RValue::get(ArgValue); in EmitBuiltinExpr()
719 return RValue::get(Result); in EmitBuiltinExpr()
731 return RValue::get(PtrValue); in EmitBuiltinExpr()
736 return RValue::get(nullptr); in EmitBuiltinExpr()
740 return RValue::get(Builder.CreateCall(FnAssume, ArgValue)); in EmitBuiltinExpr()
745 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::bswap)); in EmitBuiltinExpr()
751 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::bitreverse)); in EmitBuiltinExpr()
760 return RValue::get(emitBuiltinObjectSize(E->getArg(0), Type, ResType)); in EmitBuiltinExpr()
771 return RValue::get(Builder.CreateCall(F, {Address, RW, Locality, Data})); in EmitBuiltinExpr()
775 return RValue::get(Builder.CreateCall(F)); in EmitBuiltinExpr()
781 return RValue::get(Builder.CreateCall(F, {Begin, End})); in EmitBuiltinExpr()
784 return RValue::get(EmitTrapCall(Intrinsic::trap)); in EmitBuiltinExpr()
786 return RValue::get(EmitTrapCall(Intrinsic::debugtrap)); in EmitBuiltinExpr()
800 return RValue::get(nullptr); in EmitBuiltinExpr()
810 return RValue::get(Builder.CreateCall(F, {Base, Exponent})); in EmitBuiltinExpr()
846 return RValue::get(Builder.CreateZExt(LHS, ConvertType(E->getType()))); in EmitBuiltinExpr()
851 return RValue::get(Builder.CreateZExt(V, ConvertType(E->getType()))); in EmitBuiltinExpr()
866 return RValue::get(Builder.CreateZExt(FCmp, ConvertType(E->getType()))); in EmitBuiltinExpr()
883 return RValue::get(Result); in EmitBuiltinExpr()
901 return RValue::get(Builder.CreateZExt(V, ConvertType(E->getType()))); in EmitBuiltinExpr()
959 return RValue::get(Result); in EmitBuiltinExpr()
966 return RValue::get(Builder.CreateAlloca(Builder.getInt8Ty(), Size)); in EmitBuiltinExpr()
972 EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), in EmitBuiltinExpr()
975 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
982 EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), in EmitBuiltinExpr()
984 EmitNonNullArgCheck(RValue::get(Src.getPointer()), E->getArg(1)->getType(), in EmitBuiltinExpr()
987 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1002 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1011 return RValue::get(DestAddr.getPointer()); in EmitBuiltinExpr()
1026 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1034 EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), in EmitBuiltinExpr()
1036 EmitNonNullArgCheck(RValue::get(Src.getPointer()), E->getArg(1)->getType(), in EmitBuiltinExpr()
1039 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1047 EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), in EmitBuiltinExpr()
1050 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1065 return RValue::get(Dest.getPointer()); in EmitBuiltinExpr()
1079 return RValue::get(Builder.CreateCall(F, in EmitBuiltinExpr()
1086 return RValue::get(Builder.CreateCall(F, Depth)); in EmitBuiltinExpr()
1092 return RValue::get(Builder.CreateCall(F, Depth)); in EmitBuiltinExpr()
1097 return RValue::get(Result); in EmitBuiltinExpr()
1102 return RValue::get(Result); in EmitBuiltinExpr()
1110 return RValue::get(llvm::UndefValue::get(Ty)); in EmitBuiltinExpr()
1112 return RValue::get(llvm::ConstantInt::get(Ty, Column, true)); in EmitBuiltinExpr()
1118 return RValue::get(llvm::UndefValue::get(ConvertType(E->getType()))); in EmitBuiltinExpr()
1136 return RValue::get(nullptr); in EmitBuiltinExpr()
1140 return RValue::get(Builder.CreateCall(F)); in EmitBuiltinExpr()
1159 return RValue::get(Result); in EmitBuiltinExpr()
1163 return RValue::get(Builder.CreateSExt(Result, Int64Ty, "extend.sext")); in EmitBuiltinExpr()
1165 return RValue::get(Builder.CreateZExt(Result, Int64Ty, "extend.zext")); in EmitBuiltinExpr()
1187 return RValue::get(Builder.CreateCall(F, Buf.getPointer())); in EmitBuiltinExpr()
1202 return RValue::get(nullptr); in EmitBuiltinExpr()
1317 return RValue::get(MakeAtomicCmpXchgValue(*this, E, false)); in EmitBuiltinExpr()
1324 return RValue::get(MakeAtomicCmpXchgValue(*this, E, true)); in EmitBuiltinExpr()
1355 return RValue::get(nullptr); in EmitBuiltinExpr()
1367 return RValue::get(nullptr); in EmitBuiltinExpr()
1371 return RValue::get(EmitNontemporalLoad(*this, E)); in EmitBuiltinExpr()
1373 return RValue::get(EmitNontemporalStore(*this, E)); in EmitBuiltinExpr()
1381 Args.add(RValue::get(EmitScalarExpr(E->getArg(0))), in EmitBuiltinExpr()
1384 Args.add(RValue::get(EmitScalarExpr(E->getArg(1))), in EmitBuiltinExpr()
1387 Args.add(RValue::get(llvm::Constant::getNullValue(VoidPtrTy)), in EmitBuiltinExpr()
1438 return RValue::get(Builder.CreateIsNotNull(Result, "tobool")); in EmitBuiltinExpr()
1478 return RValue::get(Builder.CreateIsNotNull(Result, "tobool")); in EmitBuiltinExpr()
1506 return RValue::get(nullptr); in EmitBuiltinExpr()
1535 return RValue::get(nullptr); in EmitBuiltinExpr()
1570 return RValue::get(nullptr); in EmitBuiltinExpr()
1605 return RValue::get(nullptr); in EmitBuiltinExpr()
1624 return RValue::get(Builder.CreateCall(F, Arg0)); in EmitBuiltinExpr()
1640 return RValue::get(Builder.CreateCall(F, {Base, Exponent})); in EmitBuiltinExpr()
1653 return RValue::get( in EmitBuiltinExpr()
1661 return RValue::get( in EmitBuiltinExpr()
1674 return RValue::get(EmitAnnotationCall(F, AnnVal, Str, E->getExprLoc())); in EmitBuiltinExpr()
1740 return RValue::get(Sum2); in EmitBuiltinExpr()
1821 return RValue::get(Overflow); in EmitBuiltinExpr()
1891 return RValue::get(Carry); in EmitBuiltinExpr()
1894 return RValue::get(EmitLValue(E->getArg(0)).getPointer()); in EmitBuiltinExpr()
1903 return RValue::get(ConstantInt::get(IntTy, 0)); in EmitBuiltinExpr()
1937 return RValue::get(Builder.CreateIntToPtr(Builder.CreateExtractValue(Result, in EmitBuiltinExpr()
1949 return RValue::get(Builder.CreateExtractValue(CXI, 0)); in EmitBuiltinExpr()
1959 return RValue::get(Builder.CreateAdd(RMWI, ConstantInt::get(IntTy, 1))); in EmitBuiltinExpr()
1969 return RValue::get(Builder.CreateSub(RMWI, ConstantInt::get(IntTy, 1))); in EmitBuiltinExpr()
1978 return RValue::get(RMWI); in EmitBuiltinExpr()
1987 return RValue::get(Load); in EmitBuiltinExpr()
1992 return RValue::get(EmitSEHExceptionCode()); in EmitBuiltinExpr()
1995 return RValue::get(EmitSEHExceptionInfo()); in EmitBuiltinExpr()
1998 return RValue::get(EmitSEHAbnormalTermination()); in EmitBuiltinExpr()
2016 return RValue::get(CS.getInstruction()); in EmitBuiltinExpr()
2048 return RValue::get(CS.getInstruction()); in EmitBuiltinExpr()
2056 return RValue::get(llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy)); in EmitBuiltinExpr()
2082 return RValue::get(Builder.CreateCall( in EmitBuiltinExpr()
2100 return RValue::get(Builder.CreateCall( in EmitBuiltinExpr()
2139 return RValue::get( in EmitBuiltinExpr()
2173 return RValue::get( in EmitBuiltinExpr()
2191 return RValue::get( in EmitBuiltinExpr()
2214 return RValue::get(Builder.CreateBitOrPointerCast(NewCall, in EmitBuiltinExpr()
2242 return RValue::get(Builder.CreateCall( in EmitBuiltinExpr()
2274 return RValue::get( in EmitBuiltinExpr()
2312 return RValue::get( in EmitBuiltinExpr()
2335 return RValue::get( in EmitBuiltinExpr()
2345 return RValue::get( in EmitBuiltinExpr()
2354 return RValue::get(Builder.CreateCall( in EmitBuiltinExpr()
2367 return RValue::get(emitUnaryBuiltin(*this, E, Intrinsic::canonicalize)); in EmitBuiltinExpr()
2462 return RValue::get(V); in EmitBuiltinExpr()
2467 return RValue::get(V); in EmitBuiltinExpr()