Home
last modified time | relevance | path

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

12

/external/clang/lib/CodeGen/
DCGAtomic.cpp186 RValue convertAtomicTempToRValue(Address addr, AggValueSlot resultSlot,
190 llvm::Value *convertRValueToInt(RValue RVal) const;
192 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal,
197 void emitCopyIntoMemory(RValue rvalue) const;
212 RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
224 std::pair<RValue, llvm::Value *> EmitAtomicCompareExchange(
225 RValue Expected, RValue Desired,
234 const llvm::function_ref<RValue(RValue)> &UpdateOp,
238 void EmitAtomicUpdate(llvm::AtomicOrdering AO, RValue UpdateRVal,
242 Address materializeRValue(RValue rvalue) const;
[all …]
DCGValue.h38 class RValue {
80 static RValue getIgnored() { in getIgnored()
85 static RValue get(llvm::Value *V) { in get()
86 RValue ER; in get()
92 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex()
93 RValue ER; in getComplex()
100 static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { in getComplex()
106 static RValue getAggregate(Address addr, bool isVolatile = false) {
107 RValue ER;
435 RValue asAggregateRValue() const { in asAggregateRValue()
[all …]
DCGExprCXX.cpp48 Args.add(RValue::get(This), MD->getThisType(CGF.getContext())); in commonEmitCXXMemberOrOperatorCall()
52 Args.add(RValue::get(ImplicitParam), ImplicitParamTy); in commonEmitCXXMemberOrOperatorCall()
72 RValue CodeGenFunction::EmitCXXMemberOrOperatorCall( in EmitCXXMemberOrOperatorCall()
85 RValue CodeGenFunction::EmitCXXStructorCall( in EmitCXXStructorCall()
106 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr()
132 RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr( in EmitCXXMemberOrOperatorMemberCallExpr()
177 if (isa<CXXDestructorDecl>(MD)) return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
180 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
190 return RValue::get(This.getPointer()); in EmitCXXMemberOrOperatorMemberCallExpr()
199 return RValue::get(This.getPointer()); in EmitCXXMemberOrOperatorMemberCallExpr()
[all …]
DCodeGenFunction.h824 const RValue &rv) { in bind()
887 RValue rvalue) in OpaqueValueMapping()
993 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues;
1646 RValue EmitAnyExpr(const Expr *E,
1661 RValue EmitAnyExprToTemp(const Expr *E);
1731 const RValue &getOpaqueRValueMapping(const OpaqueValueExpr *e) { in getOpaqueRValueMapping()
1734 llvm::DenseMap<const OpaqueValueExpr*,RValue>::iterator in getOpaqueRValueMapping()
1898 RValue EmitBuiltinNewDeleteCall(const FunctionProtoType *Type,
2100 PeepholeProtection protectFromPeepholes(RValue rvalue);
2254 std::pair<bool, RValue> EmitOMPAtomicSimpleUpdateExpr(
[all …]
DCGObjC.cpp34 static RValue AdjustObjCObjectType(CodeGenFunction &CGF,
36 RValue Result);
89 Args.add(RValue::get(BitCast.getPointer()), ArgQT); in EmitObjCBoxedExpr()
101 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr()
106 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr()
154 EmitStoreThroughLValue(RValue::get(value), LV, true); in EmitObjCCollectionLiteral()
165 EmitStoreThroughLValue(RValue::get(keyValue), KeyLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
173 EmitStoreThroughLValue(RValue::get(valueValue), ValueLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
186 Args.add(RValue::get(Objects.getPointer()), ArgQT); in EmitObjCCollectionLiteral()
190 Args.add(RValue::get(Keys.getPointer()), ArgQT); in EmitObjCCollectionLiteral()
[all …]
DCGCUDARuntime.h33 class RValue; variable
43 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
DCGCall.h46 RValue RV;
49 CallArg(RValue rv, QualType ty, bool needscopy) in CallArg()
81 void add(RValue rvalue, QualType type, bool needscopy = false) {
DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
54 return RValue::get(nullptr); in EmitCUDAKernelCallExpr()
DCGBuiltin.cpp136 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()
178 return RValue::get(Result); in EmitBinaryAtomicPost()
261 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn, in emitLibraryCall()
410 RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, in EmitBuiltinExpr()
418 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
421 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
429 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), nullptr)); in EmitBuiltinExpr()
434 return RValue::get( in EmitBuiltinExpr()
[all …]
DCGExpr.cpp139 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
144 return RValue::get(EmitScalarExpr(E, ignoreResult)); in EmitAnyExpr()
146 return RValue::getComplex(EmitComplexExpr(E, ignoreResult, ignoreResult)); in EmitAnyExpr()
158 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
188 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
459 RValue
476 return RValue::get(Value); in EmitReferenceBindingToExpr()
877 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
879 return RValue::get(nullptr); in GetUndefRValue()
886 return RValue::getComplex(std::make_pair(U, U)); in GetUndefRValue()
[all …]
DCGStmtOpenMP.cpp716 RValue::get(Size)); in EmitOMPReductionClauseInit()
1132 RValue Len = CGF.EmitAnyExpr(C->getSimdlen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause()
1141 RValue Len = CGF.EmitAnyExpr(C->getSafelen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause()
2092 static llvm::Value *convertToScalarValue(CodeGenFunction &CGF, RValue Val, in convertToScalarValue()
2106 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue()
2131 LValue LVal, RValue RVal) { in emitSimpleAtomicStore()
2141 static void emitSimpleStore(CodeGenFunction &CGF, LValue LVal, RValue RVal, in emitSimpleStore()
2145 CGF.EmitStoreThroughLValue(RValue::get(convertToScalarValue( in emitSimpleStore()
2167 RValue Res = XLValue.isGlobalReg() in EmitOMPAtomicReadExpr()
2196 static std::pair<bool, RValue> emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X, in emitOMPAtomicRMW()
[all …]
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()
82 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
89 return RValue::get(Value); in restore()
91 return RValue::get(CGF.Builder.CreateLoad(getSavingAddress(Value))); in restore()
93 return RValue::getAggregate(Address(Value, CharUnits::fromQuantity(Align))); in restore()
96 return RValue::getAggregate(Address(addr, CharUnits::fromQuantity(Align))); in restore()
106 return RValue::getComplex(real, imag); in restore()
DCGExprAgg.cpp81 void EmitFinalDestCopy(QualType type, RValue src);
85 void EmitMoveFromReturnSlot(const Expr *E, RValue Src);
202 RValue Res = CGF.EmitAtomicExpr(E); in VisitAtomicExpr()
254 void AggExprEmitter::EmitMoveFromReturnSlot(const Expr *E, RValue src) { in EmitMoveFromReturnSlot()
268 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src) { in EmitFinalDestCopy()
350 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr()
367 CGF.EmitStoreThroughLValue(RValue::get(ArrayEnd), EndOrLength); in VisitCXXStdInitializerListExpr()
370 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr()
682 RValue rvalue = RValue::getAggregate(valueAddr, atomicSlot.isVolatile()); in VisitCastExpr()
761 RValue RV = CGF.EmitCallExpr(E, getReturnValueSlot()); in VisitCallExpr()
[all …]
DCGExprComplex.cpp230 RValue &Val);
348 return CGF.EmitAtomicStore(RValue::getComplex(Val), lvalue, isInit); in EmitStoreOfComplex()
576 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall()
578 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall()
580 Args.add(RValue::get(Op.RHS.first), in EmitComplexBinOpLibCall()
582 Args.add(RValue::get(Op.RHS.second), in EmitComplexBinOpLibCall()
604 RValue Res = CGF.EmitCall(FuncInfo, Func, ReturnValueSlot(), Args, in EmitComplexBinOpLibCall()
825 RValue &Val) { in EmitCompoundAssignLValue()
880 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue()
885 Val = RValue::get(ResVal); in EmitCompoundAssignLValue()
[all …]
DCGVTables.cpp83 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment()
84 QualType ResultType, RValue RV, in PerformReturnAdjustment()
124 return RValue::get(ReturnValue); in PerformReturnAdjustment()
197 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk()
283 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk()
326 RValue RV = EmitCall(*CurFnInfo, Callee, Slot, CallArgs, MD, &CallOrInvoke); in EmitCallAndReturnForThunk()
DCGCall.cpp810 EmitStoreThroughLValue(RValue::get(*AI++), LV); in ExpandTypeFromArgs()
815 QualType Ty, RValue RV, llvm::FunctionType *IRFuncTy, in ExpandTypeToArgs()
821 RValue EltRV = in ExpandTypeToArgs()
832 RValue BaseRV = RValue::getAggregate(Base); in ExpandTypeToArgs()
841 RValue FldRV = EmitRValueForField(LV, FD, SourceLocation()); in ExpandTypeToArgs()
2546 return args.add(RValue::getAggregate(local), type); in EmitDelegateCallArg()
2550 return args.add(RValue::get(Builder.CreateLoad(local)), type); in EmitDelegateCallArg()
2625 CGF.EmitStoreThroughLValue(RValue::get(value), srcLV); in emitWriteback()
2689 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)), in emitWritebackArg()
2746 RValue srcRV = CGF.EmitLoadOfLValue(srcLV, SourceLocation()); in emitWritebackArg()
[all …]
DCGObjCRuntime.h161 virtual CodeGen::RValue
177 virtual CodeGen::RValue
DCGObjCGNU.cpp491 RValue
497 RValue
1227 RValue
1241 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper()
1245 return RValue::get(nullptr); in GenerateMessageSendSuper()
1254 ActualArgs.add(RValue::get(EnforceType(Builder, Receiver, IdTy)), ASTIdTy); in GenerateMessageSendSuper()
1255 ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType()); in GenerateMessageSendSuper()
1330 RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs, in GenerateMessageSendSuper()
1337 RValue
1351 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend()
[all …]
DCGClass.cpp760 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField()
2084 Args.add(RValue::get(This.getPointer()), D->getThisType(getContext())); in EmitCXXConstructorCall()
2168 Args.add(RValue::get(This.getPointer()), D->getThisType(getContext())); in EmitSynthesizedCXXCopyCtorCall()
2174 Args.add(RValue::get(Src.getPointer()), QT); in EmitSynthesizedCXXCopyCtorCall()
2195 DelegateArgs.add(RValue::get(LoadCXXThis()), (*I)->getType()); in EmitDelegateCXXConstructorCall()
2203 DelegateArgs.add(RValue::get(VTT), VoidPP); in EmitDelegateCXXConstructorCall()
2711 RValue RV = EmitCall(calleeFnInfo, callee, returnSlot, in EmitForwardingCallToLambda()
2731 CallArgs.add(RValue::get(ThisPtr.getPointer()), ThisType); in EmitLambdaBlockInvokeBody()
2761 CallArgs.add(RValue::get(ThisPtr), ThisType); in EmitLambdaDelegatingInvokeBody()
DCGObjCMac.cpp1011 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF,
1178 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1186 CodeGen::RValue
1348 CodeGen::RValue EmitVTableMessageSend(CodeGen::CodeGenFunction &CGF,
1453 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1461 CodeGen::RValue
1577 RValue complete(CodeGenFunction &CGF, RValue result, QualType resultType, in complete()
1604 RValue RV = I->RV; in complete()
1628 if (!contBB) return RValue::get(null); in complete()
1635 return RValue::get(phi); in complete()
[all …]
DCGDecl.cpp511 Args.add(RValue::get(Arg), in Emit()
665 EmitStoreThroughLValue(RValue::get(value), lvalue, true); in EmitScalarInit()
771 return EmitStoreThroughLValue(RValue::get(init), lvalue, true); in EmitScalarInit()
1217 return EmitStoreThroughLValue(RValue::get(constant), lv, true); in EmitAutoVarInit()
1280 RValue rvalue = EmitReferenceBindingToExpr(init); in EmitExprAsInit()
/external/clang/test/CXX/special/class.copy/
Dp11.0x.move.cpp135 struct RValue { struct
137 RValue(RValue&&);
139 RValue::RValue(RValue&&) = default;
Dp11.0x.copy.cpp124 struct RValue { struct
128 RValue RVa;
129 RValue RVb(RVa); // expected-error{{call to implicitly-deleted copy constructor}}
/external/libcxx/test/std/utilities/function.objects/func.require/
Dbullet_1_and_2.pass.cpp135 bool RValue = false, bool ArgRValue = false>
157 Bool<!RValue> NotRValue; in doTest()
207 typedef Caster<Q_None, RValue> SCast; in runTest()
220 template <class Sig, int Arity, class CV, bool RValue = false>
221 struct TestCase11 : public TestCaseImp<MemFun11, Sig, Arity, CV, RValue, true> {};
Dinvoke_helpers.h41 template <class QualTag, bool RValue = false>
48 typedef typename std::conditional<RValue,

12