Home
last modified time | relevance | path

Searched refs:getScalarVal (Results 1 – 25 of 42) sorted by relevance

12

/external/llvm-project/clang/lib/CodeGen/
DCGGPUBuiltin.cpp101 ArgTypes.push_back(Args[I].getRValue(*this).getScalarVal()->getType()); in EmitNVPTXDevicePrintfCallExpr()
113 llvm::Value *Arg = Args[I].getRValue(*this).getScalarVal(); in EmitNVPTXDevicePrintfCallExpr()
122 VprintfFunc, {Args[0].getRValue(*this).getScalarVal(), BufferPtr})); in EmitNVPTXDevicePrintfCallExpr()
147 llvm::Value *Arg = A.getRValue(*this).getScalarVal(); in EmitAMDGPUDevicePrintfCallExpr()
DCGObjC.cpp115 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCBoxedExpr()
238 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCCollectionLiteral()
275 if (ExpLLVMTy == Result.getScalarVal()->getType()) in AdjustObjCObjectType()
279 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustObjCObjectType()
397 const llvm::Value* arg = Args.front().getKnownRValue().getScalarVal(); in tryGenerateSpecializedMessageSend()
705 llvm::Value *newSelf = result.getScalarVal(); in EmitObjCMessageExpr()
1215 RV.getScalarVal(), in generateObjCGetterBody()
1267 value = EmitLoadOfLValue(LV, SourceLocation()).getScalarVal(); in generateObjCGetterBody()
1794 llvm::Value *initialBufferLimit = CountRV.getScalarVal(); in EmitObjCForCollectionStmt()
1933 .getScalarVal(); in EmitObjCForCollectionStmt()
[all …]
DCGExpr.cpp1180 llvm::Value *V = RV.getScalarVal(); in EmitNonNullRValueCheck()
1594 .getScalarVal(); in emitScalarConstant()
1742 return EmitAtomicLoad(AtomicLValue, Loc).getScalarVal(); in EmitLoadOfScalar()
2069 Vec = Builder.CreateInsertElement(Vec, Src.getScalarVal(), in EmitStoreThroughLValue()
2086 Vec = Builder.CreateInsertElement(Vec, Src.getScalarVal(), in EmitStoreThroughLValue()
2109 Src = RValue::get(EmitARCRetain(Dst.getType(), Src.getScalarVal())); in EmitStoreThroughLValue()
2112 EmitARCStoreStrong(Dst, Src.getScalarVal(), /*ignore*/ true); in EmitStoreThroughLValue()
2118 EmitARCInitWeak(Dst.getAddress(*this), Src.getScalarVal()); in EmitStoreThroughLValue()
2120 EmitARCStoreWeak(Dst.getAddress(*this), Src.getScalarVal(), in EmitStoreThroughLValue()
2126 Src.getScalarVal())); in EmitStoreThroughLValue()
[all …]
DCGAtomic.cpp1253 if (UseOptimizedLibcall && Res.getScalarVal()) { in EmitAtomicExpr()
1254 llvm::Value *ResVal = Res.getScalarVal(); in EmitAtomicExpr()
1256 llvm::Value *LoadVal1 = Args[1].getRValue(*this).getScalarVal(); in EmitAtomicExpr()
1261 llvm::Value *LoadVal1 = Args[1].getRValue(*this).getScalarVal(); in EmitAtomicExpr()
1629 CGF.EmitStoreOfScalar(rvalue.getScalarVal(), TempLVal, /*init*/ true); in emitCopyIntoMemory()
1655 llvm::Value *Value = RVal.getScalarVal(); in convertRValueToInt()
1719 return SuccessFailureRVal.getScalarVal(); in EmitAtomicCompareExchangeLibcall()
DCGExprScalar.cpp252 return CGF.EmitLoadOfLValue(LV, Loc).getScalarVal(); in EmitLoadOfLValue()
437 return CGF.EmitCoawaitExpr(*S).getScalarVal(); in VisitCoawaitExpr()
440 return CGF.EmitCoyieldExpr(*S).getScalarVal(); in VisitCoyieldExpr()
483 return CGF.EmitPseudoObjectRValue(E).getScalarVal(); in VisitPseudoObjectExpr()
492 return CGF.getOrCreateOpaqueRValueMapping(E).getScalarVal(); in VisitOpaqueValueExpr()
515 return CGF.EmitObjCMessageExpr(E).getScalarVal(); in VisitObjCMessageExpr()
520 Value *V = CGF.EmitLoadOfLValue(LV, E->getExprLoc()).getScalarVal(); in VisitObjCIsaExpr()
571 Value *V = CGF.EmitCallExpr(E).getScalarVal(); in VisitCallExpr()
2651 llvm::Value *old = CGF.EmitToMemory(Pair.first.getScalarVal(), type); in EmitScalarPrePostIncDec()
2867 E->getExprLoc()).getScalarVal(); in VisitUnaryReal()
[all …]
DCGCall.cpp1111 llvm::Value *V = RV.getScalarVal(); in ExpandTypeToArgs()
3715 llvm::Value *src = srcRV.getScalarVal(); in emitWritebackArg()
3848 assert(EmittedArg.getScalarVal() && "We emitted nothing for the arg?"); in EmitCallArgs()
3850 EmittedArg.getScalarVal(), in EmitCallArgs()
3961 CGF.EmitStoreOfScalar(RV.getScalarVal(), Dst, /*isInit=*/true); in copyInto()
4259 CGF.emitAlignmentAssumption(Ret.getScalarVal(), RetTy, Loc, in EmitAsAnAssumption()
4295 .getScalarVal(); in AllocAlignAttrEmitter()
4588 V = I->getKnownRValue().getScalarVal(); in EmitCall()
4706 llvm::Type *scalarType = RV.getScalarVal()->getType(); in EmitCall()
4712 RV.getScalarVal()->getType(), in EmitCall()
[all …]
DCGStmt.cpp1123 Builder.CreateStore(RV.getScalarVal(), ReturnValue); in EmitReturnOfRValue()
1214 Builder.CreateStore(Result.getScalarVal(), ReturnValue); in EmitReturnStmt()
2030 Arg = EmitLoadOfLValue(InputValue, Loc).getScalarVal(); in EmitAsmInputLValue()
2678 .getScalarVal(); in GenerateCapturedStmtFunction()
2688 CXXThisValue = EmitLoadOfLValue(ThisLValue, Loc).getScalarVal(); in GenerateCapturedStmtFunction()
DCGNonTrivialStruct.cpp723 CGF->EmitLoadOfLValue(SrcLV, SourceLocation()).getScalarVal(); in visitARCStrong()
786 CGF->EmitLoadOfLValue(SrcLV, SourceLocation()).getScalarVal(); in visitARCStrong()
790 CGF->EmitLoadOfLValue(DstLV, SourceLocation()).getScalarVal(); in visitARCStrong()
DCGCleanup.cpp28 return DominatingLLVMValue::needsSaving(rv.getScalarVal()); in needsSaving()
37 llvm::Value *V = rv.getScalarVal(); in save()
DCGValue.h59 llvm::Value *getScalarVal() const { in getScalarVal() function
DCGVTables.cpp79 llvm::Value *ReturnValue = RV.getScalarVal(); in PerformReturnAdjustment()
227 Builder.CreateRet(RV.getScalarVal()); in GenerateVarArgsThunk()
DCodeGenFunction.cpp1109 EmitLoadOfLValue(ThisFieldLValue, SourceLocation()).getScalarVal(); in StartFunction()
1115 SourceLocation()).getScalarVal(); in StartFunction()
2185 llvm::Value *value = rvalue.getScalarVal(); in protectFromPeepholes()
/external/clang/lib/CodeGen/
DCGCUDABuiltin.cpp101 ArgTypes.push_back(Args[I].RV.getScalarVal()->getType()); in EmitCUDADevicePrintfCallExpr()
107 llvm::Value *Arg = Args[I].RV.getScalarVal(); in EmitCUDADevicePrintfCallExpr()
116 Builder.CreateCall(VprintfFunc, {Args[0].RV.getScalarVal(), BufferPtr})); in EmitCUDADevicePrintfCallExpr()
DCGObjC.cpp109 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCBoxedExpr()
221 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCCollectionLiteral()
258 if (ExpLLVMTy == Result.getScalarVal()->getType()) in AdjustObjCObjectType()
262 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustObjCObjectType()
474 llvm::Value *newSelf = result.getScalarVal(); in EmitObjCMessageExpr()
967 RV.getScalarVal(), in generateObjCGetterBody()
1017 value = EmitLoadOfLValue(LV, SourceLocation()).getScalarVal(); in generateObjCGetterBody()
1540 llvm::Value *initialBufferLimit = CountRV.getScalarVal(); in EmitObjCForCollectionStmt()
1714 llvm::Value *refetchCount = CountRV.getScalarVal(); in EmitObjCForCollectionStmt()
2337 Receiver = AllocRV.getScalarVal(); in EmitObjCMRRAutoreleasePoolPush()
[all …]
DCGStmtOpenMP.cpp141 EmitLoadOfLValue(EmitLValue(*I), SourceLocation()).getScalarVal(); in GenerateOpenMPCapturedVars()
162 CV = EmitLoadOfLValue(DstLV, SourceLocation()).getScalarVal(); in GenerateOpenMPCapturedVars()
282 EmitLoadOfLValue(CastedArgLVal, SourceLocation()).getScalarVal(); in GenerateOpenMPCapturedStmtFunction()
307 EmitLoadOfLValue(ArgLVal, Args[Cnt]->getLocation()).getScalarVal(); in GenerateOpenMPCapturedStmtFunction()
1516 llvm::ConstantInt *Val = cast<llvm::ConstantInt>(Len.getScalarVal()); in emitSimdlenSafelenClause()
1526 llvm::ConstantInt *Val = cast<llvm::ConstantInt>(Len.getScalarVal()); in emitSimdlenSafelenClause()
2199 CGF.EmitLoadOfLValue(IV, S.getLocStart()).getScalarVal(), ExitBB, in EmitSections()
2788 ? CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, DestType, in convertToScalarValue()
2803 auto ScalarVal = CGF.EmitScalarConversion(Val.getScalarVal(), SrcType, in convertToComplexValue()
2897 !Update.getScalarVal()->getType()->isIntegerTy() || in emitOMPAtomicRMW()
[all …]
DCGAtomic.cpp998 if (UseOptimizedLibcall && Res.getScalarVal()) { in EmitAtomicExpr()
999 llvm::Value *ResVal = Res.getScalarVal(); in EmitAtomicExpr()
1001 llvm::Value *LoadVal1 = Args[1].RV.getScalarVal(); in EmitAtomicExpr()
1364 CGF.EmitStoreOfScalar(rvalue.getScalarVal(), TempLVal, /*init*/ true); in emitCopyIntoMemory()
1390 llvm::Value *Value = RVal.getScalarVal(); in convertRValueToInt()
1454 return SuccessFailureRVal.getScalarVal(); in EmitAtomicCompareExchangeLibcall()
DCGExpr.cpp1297 return EmitAtomicLoad(AtomicLValue, Loc).getScalarVal(); in EmitLoadOfScalar()
1600 Vec = Builder.CreateInsertElement(Vec, Src.getScalarVal(), in EmitStoreThroughLValue()
1630 EmitARCStoreStrong(Dst, Src.getScalarVal(), /*ignore*/ true); in EmitStoreThroughLValue()
1634 EmitARCStoreWeak(Dst.getAddress(), Src.getScalarVal(), /*ignore*/ true); in EmitStoreThroughLValue()
1639 Src.getScalarVal())); in EmitStoreThroughLValue()
1648 llvm::Value *src = Src.getScalarVal(); in EmitStoreThroughLValue()
1656 llvm::Value *src = Src.getScalarVal(); in EmitStoreThroughLValue()
1679 EmitStoreOfScalar(Src.getScalarVal(), Dst, isInit); in EmitStoreThroughLValue()
1689 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughBitfieldLValue()
1757 llvm::Value *SrcVal = Src.getScalarVal(); in EmitStoreThroughExtVectorComponentLValue()
[all …]
DCGStmt.cpp980 Builder.CreateStore(RV.getScalarVal(), ReturnValue); in EmitReturnOfRValue()
1037 Builder.CreateStore(Result.getScalarVal(), ReturnValue); in EmitReturnStmt()
1716 Arg = EmitLoadOfLValue(InputValue, Loc).getScalarVal(); in EmitAsmInputLValue()
2239 S.getLocStart()).getScalarVal(); in GenerateCapturedStmtFunction()
2249 CXXThisValue = EmitLoadOfLValue(ThisLValue, Loc).getScalarVal(); in GenerateCapturedStmtFunction()
DCGExprScalar.cpp93 return CGF.EmitLoadOfLValue(LV, Loc).getScalarVal(); in EmitLoadOfLValue()
258 return CGF.EmitPseudoObjectRValue(E).getScalarVal(); in VisitPseudoObjectExpr()
266 return CGF.getOpaqueRValueMapping(E).getScalarVal(); in VisitOpaqueValueExpr()
293 return CGF.EmitObjCMessageExpr(E).getScalarVal(); in VisitObjCMessageExpr()
298 Value *V = CGF.EmitLoadOfLValue(LV, E->getExprLoc()).getScalarVal(); in VisitObjCIsaExpr()
326 Value *V = CGF.EmitCallExpr(E).getScalarVal(); in VisitCallExpr()
1833 llvm::Value *old = CGF.EmitToMemory(Pair.first.getScalarVal(), type); in EmitScalarPrePostIncDec()
2044 E->getExprLoc()).getScalarVal(); in VisitUnaryReal()
2061 E->getExprLoc()).getScalarVal(); in VisitUnaryImag()
2187 llvm::Value *old = CGF.EmitToMemory(Pair.first.getScalarVal(), LHSTy); in EmitCompoundAssignLValue()
[all …]
DCGCall.cpp1026 llvm::Value *V = RV.getScalarVal(); in ExpandTypeToArgs()
3092 llvm::Value *src = srcRV.getScalarVal(); in emitWritebackArg()
3161 llvm::Value *V = RV.getScalarVal(); in EmitNonNullArgCheck()
3497 CGF.EmitStoreOfScalar(Src.getScalarVal(), Dst, /*init=*/true); in EmitInitStoreOfNonAggregate()
3684 V = RV.getScalarVal(); in EmitCall()
3787 llvm::Type *scalarType = RV.getScalarVal()->getType(); in EmitCall()
3794 addr = CreateTempAlloca(RV.getScalarVal()->getType(), in EmitCall()
3799 Builder.CreateStore(RV.getScalarVal(), addr); in EmitCall()
4123 EmitAlignmentAssumption(Ret.getScalarVal(), AlignmentCI->getZExtValue(), in EmitCall()
DCGValue.h58 llvm::Value *getScalarVal() const { in getScalarVal() function
DCGVTables.cpp93 llvm::Value *ReturnValue = RV.getScalarVal(); in PerformReturnAdjustment()
199 Builder.CreateRet(RV.getScalarVal()); in GenerateVarArgsThunk()
DCGCleanup.cpp29 return DominatingLLVMValue::needsSaving(rv.getScalarVal()); in needsSaving()
38 llvm::Value *V = rv.getScalarVal(); in save()
DCodeGenFunction.cpp864 EmitLoadOfLValue(ThisFieldLValue, SourceLocation()).getScalarVal(); in StartFunction()
870 SourceLocation()).getScalarVal(); in StartFunction()
1832 llvm::Value *value = rvalue.getScalarVal(); in protectFromPeepholes()
DCGDeclCXX.cpp189 EmitStoreOfScalar(RV.getScalarVal(), DeclAddr, false, T); in EmitCXXGlobalVarDeclInit()

12