Home
last modified time | relevance | path

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

12

/external/clang/lib/CodeGen/
DCGAtomic.cpp174 RValue convertTempToRValue(llvm::Value *addr, AggValueSlot resultSlot,
178 llvm::Value *convertRValueToInt(RValue RVal) const;
180 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal,
185 void emitCopyIntoMemory(RValue rvalue) const;
200 RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
212 std::pair<RValue, llvm::Value *> EmitAtomicCompareExchange(
213 RValue Expected, RValue Desired,
219 llvm::Value *materializeRValue(RValue rvalue) const;
238 std::pair<RValue, llvm::Value *> EmitAtomicCompareExchangeLibcall(
239 RValue Expected, RValue DesiredAddr,
[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()
191 return RValue::get(This); in EmitCXXMemberOrOperatorMemberCallExpr()
200 return RValue::get(This); in EmitCXXMemberOrOperatorMemberCallExpr()
[all …]
DCGValue.h38 class RValue {
71 static RValue get(llvm::Value *V) { in get()
72 RValue ER; in get()
78 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex()
79 RValue ER; in getComplex()
86 static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { in getComplex()
92 static RValue getAggregate(llvm::Value *V, bool Volatile = false) {
93 RValue ER;
356 RValue asAggregateRValue() const { in asAggregateRValue()
358 return RValue::getAggregate(getAddress(), isVolatileQualified()); in asAggregateRValue()
[all …]
DCodeGenFunction.h768 const RValue &rv) { in bind()
831 RValue rvalue) in OpaqueValueMapping()
914 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues;
1502 RValue EmitAnyExpr(const Expr *E,
1512 RValue EmitAnyExprToTemp(const Expr *E);
1590 const RValue &getOpaqueRValueMapping(const OpaqueValueExpr *e) { in getOpaqueRValueMapping()
1593 llvm::DenseMap<const OpaqueValueExpr*,RValue>::iterator in getOpaqueRValueMapping()
1739 RValue EmitBuiltinNewDeleteCall(const FunctionProtoType *Type,
1920 PeepholeProtection protectFromPeepholes(RValue rvalue);
2064 LValue X, RValue E, BinaryOperatorKind BO, bool IsXLHSInRHSPart,
[all …]
DCGObjC.cpp34 static RValue AdjustRelatedResultType(CodeGenFunction &CGF,
37 RValue Result);
79 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr()
127 EmitStoreThroughLValue(RValue::get(value), LV, true); in EmitObjCCollectionLiteral()
138 EmitStoreThroughLValue(RValue::get(keyValue), KeyLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
146 EmitStoreThroughLValue(RValue::get(valueValue), ValueLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
159 Args.add(RValue::get(Objects), ArgQT); in EmitObjCCollectionLiteral()
163 Args.add(RValue::get(Keys), ArgQT); in EmitObjCCollectionLiteral()
169 Args.add(RValue::get(Count), ArgQT); in EmitObjCCollectionLiteral()
182 RValue result = Runtime.GenerateMessageSend( in EmitObjCCollectionLiteral()
[all …]
DCGCUDARuntime.h29 class RValue; variable
39 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()
DCGExpr.cpp118 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
123 return RValue::get(EmitScalarExpr(E, ignoreResult)); in EmitAnyExpr()
125 return RValue::getComplex(EmitComplexExpr(E, ignoreResult, ignoreResult)); in EmitAnyExpr()
137 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
169 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
440 RValue
457 return RValue::get(Value); in EmitReferenceBindingToExpr()
764 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
766 return RValue::get(nullptr); in GetUndefRValue()
773 return RValue::getComplex(std::make_pair(U, U)); in GetUndefRValue()
[all …]
DCGCleanup.cpp26 bool DominatingValue<RValue>::saved_type::needsSaving(RValue rv) { in needsSaving()
34 DominatingValue<RValue>::saved_type
35 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save()
75 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
78 return RValue::get(Value); in restore()
80 return RValue::get(CGF.Builder.CreateLoad(Value)); in restore()
82 return RValue::getAggregate(Value); in restore()
84 return RValue::getAggregate(CGF.Builder.CreateLoad(Value)); in restore()
90 return RValue::getComplex(real, imag); in restore()
DCGBuiltin.cpp85 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic()
112 return RValue::get(Result); in EmitBinaryAtomic()
118 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost()
151 return RValue::get(Result); in EmitBinaryAtomicPost()
183 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn, in emitLibraryCall()
213 RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, in EmitBuiltinExpr()
221 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
224 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
232 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), nullptr)); in EmitBuiltinExpr()
247 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue)); in EmitBuiltinExpr()
[all …]
DCGExprAgg.cpp79 void EmitFinalDestCopy(QualType type, RValue src,
84 void EmitMoveFromReturnSlot(const Expr *E, RValue Src);
250 void AggExprEmitter::EmitMoveFromReturnSlot(const Expr *E, RValue src) { in EmitMoveFromReturnSlot()
266 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src, in EmitFinalDestCopy()
351 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr()
368 CGF.EmitStoreThroughLValue(RValue::get(ArrayEnd), EndOrLength); in VisitCXXStdInitializerListExpr()
371 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr()
670 RValue rvalue = RValue::getAggregate(valueAddr, atomicSlot.isVolatile()); in VisitCastExpr()
749 RValue RV = CGF.EmitCallExpr(E, getReturnValueSlot()); in VisitCallExpr()
754 RValue RV = CGF.EmitObjCMessageExpr(E, getReturnValueSlot()); in VisitObjCMessageExpr()
[all …]
DCGExprComplex.cpp228 RValue &Val);
341 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()
596 RValue Res = CGF.EmitCall(FuncInfo, Func, ReturnValueSlot(), Args, in EmitComplexBinOpLibCall()
819 RValue &Val) { in EmitCompoundAssignLValue()
872 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue()
877 Val = RValue::get(ResVal); in EmitCompoundAssignLValue()
[all …]
DCGVTables.cpp69 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment()
70 QualType ResultType, RValue RV, in PerformReturnAdjustment()
107 return RValue::get(ReturnValue); in PerformReturnAdjustment()
178 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk()
250 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk()
293 RValue RV = EmitCall(*CurFnInfo, Callee, Slot, CallArgs, MD, &CallOrInvoke); in EmitCallAndReturnForThunk()
DCGStmtOpenMP.cpp724 RValue Len = CGF.EmitAnyExpr(cast<OMPSafelenClause>(C)->getSafelen(), in EmitOMPSimdDirective()
1379 static llvm::Value *convertToScalarValue(CodeGenFunction &CGF, RValue Val, in convertToScalarValue()
1391 convertToComplexValue(CodeGenFunction &CGF, RValue Val, QualType SrcType, in convertToComplexValue()
1423 RValue Res = XLValue.isGlobalReg() in EmitOMPAtomicReadExpr()
1456 RValue ExprRValue = CGF.EmitAnyExpr(E); in EmitOMPAtomicWriteExpr()
1472 bool emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X, RValue Update, in emitOMPAtomicRMW()
1560 LValue X, RValue E, BinaryOperatorKind BO, bool IsXLHSInRHSPart, in EmitOMPAtomicSimpleUpdateExpr()
1562 const llvm::function_ref<RValue(RValue)> &CommonGen) { in EmitOMPAtomicSimpleUpdateExpr()
1596 RValue ExprRValue = CGF.EmitAnyExpr(E); in EmitOMPAtomicUpdateExpr()
1603 [&CGF, UE, ExprRValue, XRValExpr, ERValExpr](RValue XRValue) -> RValue { in EmitOMPAtomicUpdateExpr()
DCGCall.cpp762 EmitStoreThroughLValue(RValue::get(*AI++), in ExpandTypeFromArgs()
766 EmitStoreThroughLValue(RValue::get(*AI++), in ExpandTypeFromArgs()
770 EmitStoreThroughLValue(RValue::get(*AI++), LV); in ExpandTypeFromArgs()
775 QualType Ty, RValue RV, llvm::FunctionType *IRFuncTy, in ExpandTypeToArgs()
782 RValue EltRV = in ExpandTypeToArgs()
793 RValue BaseRV = RValue::getAggregate(Base); in ExpandTypeToArgs()
802 RValue FldRV = EmitRValueForField(LV, FD, SourceLocation()); in ExpandTypeToArgs()
2427 return args.add(RValue::getAggregate(local), type); in EmitDelegateCallArg()
2431 return args.add(RValue::get(Builder.CreateLoad(local)), type); in EmitDelegateCallArg()
2506 CGF.EmitStoreThroughLValue(RValue::get(value), srcLV); in emitWriteback()
[all …]
DCGObjCRuntime.h152 virtual CodeGen::RValue
168 virtual CodeGen::RValue
DCGObjCGNU.cpp487 RValue
493 RValue
1215 RValue
1229 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper()
1233 return RValue::get(nullptr); in GenerateMessageSendSuper()
1242 ActualArgs.add(RValue::get(EnforceType(Builder, Receiver, IdTy)), ASTIdTy); in GenerateMessageSendSuper()
1243 ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType()); in GenerateMessageSendSuper()
1314 RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs, nullptr, in GenerateMessageSendSuper()
1321 RValue
1335 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend()
[all …]
DCGClass.cpp614 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField()
1768 Args.add(RValue::get(This), D->getThisType(getContext())); in EmitCXXConstructorCall()
1808 Args.add(RValue::get(This), D->getThisType(getContext())); in EmitSynthesizedCXXCopyCtorCall()
1814 Args.add(RValue::get(Src), QT); in EmitSynthesizedCXXCopyCtorCall()
1835 DelegateArgs.add(RValue::get(LoadCXXThis()), (*I)->getType()); in EmitDelegateCXXConstructorCall()
1843 DelegateArgs.add(RValue::get(VTT), VoidPP); in EmitDelegateCXXConstructorCall()
2329 RValue RV = EmitCall(calleeFnInfo, callee, returnSlot, in EmitForwardingCallToLambda()
2349 CallArgs.add(RValue::get(ThisPtr), ThisType); in EmitLambdaBlockInvokeBody()
2379 CallArgs.add(RValue::get(ThisPtr), ThisType); in EmitLambdaDelegatingInvokeBody()
DCGObjCMac.cpp1023 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF,
1183 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1191 CodeGen::RValue
1353 CodeGen::RValue EmitVTableMessageSend(CodeGen::CodeGenFunction &CGF,
1458 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1466 CodeGen::RValue
1581 RValue complete(CodeGenFunction &CGF, RValue result, QualType resultType, in complete()
1608 RValue RV = I->RV; in complete()
1632 if (!contBB) return RValue::get(null); in complete()
1639 return RValue::get(phi); in complete()
[all …]
DCGDecl.cpp504 Args.add(RValue::get(Arg), in Emit()
610 EmitStoreThroughLValue(RValue::get(value), lvalue, true); in EmitScalarInit()
713 return EmitStoreThroughLValue(RValue::get(init), lvalue, true); in EmitScalarInit()
1143 return EmitStoreThroughLValue(RValue::get(constant), lv, true); in EmitAutoVarInit()
1206 RValue rvalue = EmitReferenceBindingToExpr(init); in EmitExprAsInit()
DCGCXXABI.cpp175 RValue RV, QualType ResultType) { in EmitReturnFromThunk()
DCGExprScalar.cpp1848 LV, RValue::get(atomicPHI), RValue::get(value), E->getExprLoc()); in EmitScalarPrePostIncDec()
1859 CGF.EmitStoreThroughBitfieldLValue(RValue::get(value), LV, &value); in EmitScalarPrePostIncDec()
1861 CGF.EmitStoreThroughLValue(RValue::get(value), LV); in EmitScalarPrePostIncDec()
2191 LHSLV, RValue::get(atomicPHI), RValue::get(Result), E->getExprLoc()); in EmitCompoundAssignLValue()
2205 CGF.EmitStoreThroughBitfieldLValue(RValue::get(Result), LHSLV, &Result); in EmitCompoundAssignLValue()
2207 CGF.EmitStoreThroughLValue(RValue::get(Result), LHSLV); in EmitCompoundAssignLValue()
3016 CGF.EmitStoreThroughBitfieldLValue(RValue::get(RHS), LHS, &RHS); in VisitBinAssign()
3018 CGF.EmitStoreThroughLValue(RValue::get(RHS), LHS); in VisitBinAssign()
/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}}

12