Home
last modified time | relevance | path

Searched refs:RValue (Results 1 – 25 of 39) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGAtomic.cpp226 EmitAtomicCompareExchange(RValue Expected, RValue Desired,
237 const llvm::function_ref<RValue(RValue)> &UpdateOp,
276 const llvm::function_ref<RValue(RValue)> &UpdateOp,
280 const llvm::function_ref<RValue(RValue)> &UpdateOp,
1634 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall()
1637 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall()
1647 RValue Expected, RValue Desired, llvm::AtomicOrdering Success, in EmitAtomicCompareExchange()
1682 const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdateValue()
1684 RValue UpRVal; in EmitAtomicUpdateValue()
1980 LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, in EmitAtomicCompareExchange()
[all …]
H A DCGValue.h39 class RValue {
81 static RValue getIgnored() { in getIgnored()
86 static RValue get(llvm::Value *V) { in get()
87 RValue ER; in get()
93 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex()
94 RValue ER; in getComplex()
108 RValue ER;
431 RValue asAggregateRValue() const { in asAggregateRValue()
607 RValue asRValue() const { in asRValue()
609 return RValue::getIgnored(); in asRValue()
[all …]
H A DCGExprCXX.cpp50 Args.add(RValue::get(This), in commonEmitCXXMemberOrOperatorCall()
155 return RValue::get(nullptr); in EmitCXXPseudoDestructorExpr()
369 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
414 RValue
467 RValue
1299 RValue RV = in EmitNewDeleteCall()
1493 typedef RValue RValueTy; in EnterNewDeleteCleanup()
1494 static RValue get(CodeGenFunction &, ValueTy V) { return RValue::get(V); } in EnterNewDeleteCleanup()
1518 DominatingValue<RValue>::save(CGF, RValue::get(NewPtr.getPointer())); in EnterNewDeleteCleanup()
1520 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup()
[all …]
H A DCGObjC.cpp36 RValue Result);
101 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr()
106 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr()
210 Args.add(RValue::get(Count), ArgQT); in EmitObjCCollectionLiteral()
538 RValue result; in EmitObjCMessageExpr()
1056 RValue RV = EmitCall( in generateObjCGetterBody()
1644 RValue CountRV = in EmitObjCForCollectionStmt()
2476 RValue AllocRV = in EmitObjCMRRAutoreleasePoolPush()
2485 RValue InitRV = in EmitObjCMRRAutoreleasePoolPush()
3573 RValue DV = EmitAnyExpr(&DstExpr); in GenerateObjCAtomicGetterCopyHelperFunction()
[all …]
H A DCodeGenFunction.h195 typedef RValue type;
207 static bool needsSaving(RValue value);
209 RValue restore(CodeGenFunction &CGF);
1185 RValue rvalue)
2258 RValue EmitAnyExpr(const Expr *E,
3010 const llvm::function_ref<RValue(RValue)> CommonGen);
3317 RValue GetUndefRValue(QualType Ty);
3373 LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc,
3381 const llvm::function_ref<RValue(RValue)> &UpdateOp,
3655 RValue
[all …]
H A DCGCall.h218 RValue RV;
229 CallArg(RValue rv, QualType ty) in CallArg()
238 RValue getRValue(CodeGenFunction &CGF) const;
244 RValue getKnownRValue() const { in getKnownRValue()
248 void setRValue(RValue _RV) { in setRValue()
285 void add(RValue rvalue, QualType type) { push_back(CallArg(rvalue, type)); } in add()
H A DCGGPUBuiltin.cpp69 RValue
90 return RValue::get(llvm::ConstantInt::get(IntTy, 0)); in EmitNVPTXDevicePrintfCallExpr()
121 return RValue::get(Builder.CreateCall( in EmitNVPTXDevicePrintfCallExpr()
H A DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
45 return RValue::get(nullptr); in EmitCUDAKernelCallExpr()
H A DCGCUDARuntime.h34 class RValue; variable
50 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
H A DCGBuiltin.cpp1244 static RValue
1685 return RValue::get( in EmitBuiltinExpr()
2941 return RValue::get( in EmitBuiltinExpr()
3226 return RValue::get( in EmitBuiltinExpr()
3265 return RValue::get( in EmitBuiltinExpr()
3269 return RValue::get( in EmitBuiltinExpr()
3278 return RValue::get( in EmitBuiltinExpr()
3283 return RValue::get( in EmitBuiltinExpr()
3470 return RValue::get( in EmitBuiltinExpr()
3508 return RValue::get( in EmitBuiltinExpr()
[all …]
H A DCGCleanup.cpp27 bool DominatingValue<RValue>::saved_type::needsSaving(RValue rv) { in needsSaving()
35 DominatingValue<RValue>::saved_type
36 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save()
81 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
88 return RValue::get(Value); in restore()
90 return RValue::get(CGF.Builder.CreateLoad(getSavingAddress(Value))); in restore()
92 return RValue::getAggregate(Address(Value, CharUnits::fromQuantity(Align))); in restore()
95 return RValue::getAggregate(Address(addr, CharUnits::fromQuantity(Align))); in restore()
105 return RValue::getComplex(real, imag); in restore()
H A DCGExpr.cpp244 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
592 RValue
609 return RValue::get(Value); in EmitReferenceBindingToExpr()
1139 return RValue::get(nullptr); in GetUndefRValue()
1776 return RValue::get(Object); in EmitLoadOfLValue()
1833 return RValue::get(Val); in EmitLoadOfBitfieldLValue()
1863 return RValue::get(Vec); in EmitLoadOfExtVectorElementLValue()
1907 return RValue::get(Call); in EmitLoadOfGlobalRegLValue()
4313 RValue
4501 RValue RV = EmitCallExpr(E); in EmitCallExprLValue()
[all …]
H A DCGExprComplex.cpp256 RValue &Val);
606 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall()
608 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall()
610 Args.add(RValue::get(Op.RHS.first), in EmitComplexBinOpLibCall()
612 Args.add(RValue::get(Op.RHS.second), in EmitComplexBinOpLibCall()
875 RValue &Val) { in EmitCompoundAssignLValue()
930 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue()
935 Val = RValue::get(ResVal); in EmitCompoundAssignLValue()
945 RValue Val; in EmitCompoundAssign()
1146 RValue Val; in EmitComplexCompoundAssignmentLValue()
[all …]
H A DCGCoroutine.cpp173 RValue RV;
263 RValue CodeGenFunction::EmitCoawaitExpr(const CoawaitExpr &E, in EmitCoawaitExpr()
270 RValue CodeGenFunction::EmitCoyieldExpr(const CoyieldExpr &E, in EmitCoyieldExpr()
698 RValue CodeGenFunction::EmitCoroutineIntrinsic(const CallExpr *E, in EmitCoroutineIntrinsic()
708 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic()
713 return RValue::get(NullPtr); in EmitCoroutineIntrinsic()
759 return RValue::get(Call); in EmitCoroutineIntrinsic()
H A DCGExprAgg.cpp83 void EmitFinalDestCopy(QualType type, RValue src);
87 void EmitMoveFromReturnSlot(const Expr *E, RValue Src);
202 RValue Res = CGF.EmitAtomicExpr(E); in VisitAtomicExpr()
285 RValue Src = in withReturnValueSlot()
307 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src) { in EmitFinalDestCopy()
415 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr()
435 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr()
786 RValue rvalue = RValue::getAggregate(valueAddr, atomicSlot.isVolatile()); in VisitCastExpr()
972 RValue RV = CGF.EmitAnyExpr(E); in VisitBinCmp()
1331 RValue RV = CGF.EmitReferenceBindingToExpr(E); in EmitInitializationToLValue()
[all …]
H A DCGVTables.cpp69 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment()
70 QualType ResultType, RValue RV, in PerformReturnAdjustment()
110 return RValue::get(ReturnValue); in PerformReturnAdjustment()
212 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk()
314 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk()
359 RValue RV = EmitCall(*CurFnInfo, Callee, Slot, CallArgs, &CallOrInvoke); in EmitCallAndReturnForThunk()
H A DCGStmtOpenMP.cpp286 EmitStoreThroughLValue(RValue::get(CV), SrcLV); in GenerateOpenMPCapturedVars()
3621 RValue Res = XLValue.isGlobalReg() in emitOMPAtomicReadExpr()
3742 return std::make_pair(true, RValue::get(Res)); in emitOMPAtomicRMW()
3748 const llvm::function_ref<RValue(RValue)> CommonGen) { in EmitOMPAtomicSimpleUpdateExpr()
3784 RValue ExprRValue = CGF.EmitAnyExpr(E); in emitOMPAtomicUpdateExpr()
3807 static RValue convertToType(CodeGenFunction &CGF, RValue Value, in convertToType()
3812 return RValue::get( in convertToType()
3831 RValue NewVVal; in emitOMPAtomicCaptureExpr()
3834 RValue ExprRValue = CGF.EmitAnyExpr(E); in emitOMPAtomicCaptureExpr()
3856 IsPostfixUpdate](RValue XRValue) { in emitOMPAtomicCaptureExpr()
[all …]
H A DCGObjCRuntime.h164 virtual CodeGen::RValue
180 virtual CodeGen::RValue
H A DCGCall.cpp1056 EmitStoreThroughLValue(RValue::get(*AI++), LV); in ExpandTypeFromArgs()
3111 args.add(RValue::get(ptr), type); in EmitDelegateCallArg()
3357 args.add(RValue::get(finalArgument), CRE->getType()); in emitWritebackArg()
3459 Args.add(RValue::get(V), SizeTy); in EmitCallArgs()
3501 RValue RVArg = Args.back().getKnownRValue(); in EmitCallArgs()
3562 return RValue::getAggregate(Copy.getAddress()); in getRValue()
3624 RValue RV = Slot.asRValue(); in EmitCallArg()
4132 RValue RV = I->getKnownRValue(); in EmitCall()
4435 RValue Ret = [&] { in EmitCall()
4495 return RValue::getAggregate(DestPtr); in EmitCall()
[all …]
H A DCGClass.cpp675 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField()
2028 Args.add(RValue::get(ThisPtr), D->getThisType()); in EmitCXXConstructorCall()
2162 CallArg ThisArg(RValue::get(This.getPointer()), D->getThisType()); in EmitInheritedCXXConstructorCall()
2228 const RValue &RV = Args[I].getRValue(*this); in EmitInlinedInheritingCXXConstructorCall()
2287 Args.add(RValue::get(This.getPointer()), D->getThisType()); in EmitSynthesizedCXXCopyCtorCall()
2293 Args.add(RValue::get(Src.getPointer()), QT); in EmitSynthesizedCXXCopyCtorCall()
2317 DelegateArgs.add(RValue::get(This.getPointer()), (*I)->getType()); in EmitDelegateCXXConstructorCall()
2825 RValue RV = EmitCall(calleeFnInfo, callee, returnSlot, callArgs); in EmitForwardingCallToLambda()
2830 RV = RValue::get(EmitARCRetainAutoreleasedReturnValue(RV.getScalarVal())); in EmitForwardingCallToLambda()
2856 CallArgs.add(RValue::get(ThisPtr.getPointer()), ThisType); in EmitLambdaBlockInvokeBody()
[all …]
H A DCGObjCGNU.cpp579 RValue
585 RValue
2394 RValue
2408 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper()
2412 return RValue::get(nullptr); in GenerateMessageSendSuper()
2516 RValue
2530 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend()
2534 return RValue::get(nullptr); in GenerateMessageSend()
2584 ActualArgs.add(RValue::get(Receiver), ASTIdTy); in GenerateMessageSend()
2636 msgRet = RValue::get(phi); in GenerateMessageSend()
[all …]
H A DCGObjCMac.cpp1298 CodeGen::RValue
1568 CodeGen::RValue
1687 RValue complete(CodeGenFunction &CGF, in complete()
1689 RValue result, in complete()
1717 RValue RV = I->getRValue(CGF); in complete()
1748 return RValue::get(phi); in complete()
1989 CodeGen::RValue
2076 CodeGen::RValue
7037 RValue
7150 CodeGen::RValue
[all …]
H A DCGCXXABI.cpp164 RValue RV, QualType ResultType) { in EmitReturnFromThunk()
H A DCGExprScalar.cpp2533 LV, RValue::get(atomicPHI), RValue::get(value), E->getExprLoc()); in EmitScalarPrePostIncDec()
2544 CGF.EmitStoreThroughBitfieldLValue(RValue::get(value), LV, &value); in EmitScalarPrePostIncDec()
2546 CGF.EmitStoreThroughLValue(RValue::get(value), LV); in EmitScalarPrePostIncDec()
2887 LHSLV, RValue::get(atomicPHI), RValue::get(Result), E->getExprLoc()); in EmitCompoundAssignLValue()
2901 CGF.EmitStoreThroughBitfieldLValue(RValue::get(Result), LHSLV, &Result); in EmitCompoundAssignLValue()
2903 CGF.EmitStoreThroughLValue(RValue::get(Result), LHSLV); in EmitCompoundAssignLValue()
3789 CGF.EmitStoreThroughBitfieldLValue(RValue::get(RHS), LHS, &RHS); in VisitBinAssign()
3792 CGF.EmitStoreThroughLValue(RValue::get(RHS), LHS); in VisitBinAssign()
H A DCGStmt.cpp1004 void CodeGenFunction::EmitReturnOfRValue(RValue RV, QualType Ty) { in EmitReturnOfRValue()
1075 RValue Result = EmitReferenceBindingToExpr(RV); in EmitReturnStmt()
2240 EmitStoreThroughLValue(RValue::get(Tmp), ResultRegDests[i]); in EmitAsmStmt()
2259 EmitStoreThroughLValue(RValue::get(VLASizeMap[VAT->getSizeExpr()]), LV); in InitCapturedStruct()

12