Home
last modified time | relevance | path

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

12

/external/clang/test/CXX/special/class.copy/
Dp11.0x.move.cpp110 struct RValue { struct
112 RValue(RValue&&);
114 RValue::RValue(RValue&&) = default;
Dp11.0x.copy.cpp117 struct RValue { struct
120 RValue RVa;
121 RValue RVb(RVa); // expected-error{{call to implicitly-deleted copy constructor}}
/external/clang/lib/CodeGen/
DCGValue.h36 class RValue {
69 static RValue get(llvm::Value *V) { in get()
70 RValue ER; in get()
76 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex()
77 RValue ER; in getComplex()
84 static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { in getComplex()
90 static RValue getAggregate(llvm::Value *V, bool Volatile = false) {
91 RValue ER;
307 RValue asAggregateRValue() const { in asAggregateRValue()
309 return RValue::getAggregate(getAddress(), isVolatileQualified()); in asAggregateRValue()
[all …]
DCGExprCXX.cpp26 RValue CodeGenFunction::EmitCXXMemberCall(const CXXMethodDecl *MD, in EmitCXXMemberCall()
39 Args.add(RValue::get(This), MD->getThisType(getContext())); in EmitCXXMemberCall()
44 Args.add(RValue::get(VTT), T); in EmitCXXMemberCall()
171 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr()
206 if (isa<CXXDestructorDecl>(MD)) return RValue::get(0); in EmitCXXMemberCallExpr()
209 return RValue::get(0); in EmitCXXMemberCallExpr()
216 return RValue::get(This); in EmitCXXMemberCallExpr()
225 return RValue::get(This); in EmitCXXMemberCallExpr()
284 RValue
321 Args.add(RValue::get(This), ThisType); in EmitCXXMemberPointerCallExpr()
[all …]
DCGObjC.cpp32 static RValue AdjustRelatedResultType(CodeGenFunction &CGF,
35 RValue Result);
77 RValue RV = EmitAnyExpr(SubExpr); in EmitObjCBoxedExpr()
81 RValue result = Runtime.GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCBoxedExpr()
146 Args.add(RValue::get(Objects), ArgQT); in EmitObjCCollectionLiteral()
150 Args.add(RValue::get(Keys), ArgQT); in EmitObjCCollectionLiteral()
156 Args.add(RValue::get(Count), ArgQT); in EmitObjCCollectionLiteral()
169 RValue result in EmitObjCCollectionLiteral()
204 static RValue AdjustRelatedResultType(CodeGenFunction &CGF, in AdjustRelatedResultType()
207 RValue Result) { in AdjustRelatedResultType()
[all …]
DCGExpr.cpp111 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, AggValueSlot AggSlot, in EmitAnyExpr()
114 return RValue::get(EmitScalarExpr(E, IgnoreResult)); in EmitAnyExpr()
116 return RValue::getComplex(EmitComplexExpr(E, IgnoreResult, IgnoreResult)); in EmitAnyExpr()
124 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
149 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
253 RValue RV; in EmitExprForReferenceBinding()
446 RValue
457 return RValue::get(Value); in EmitReferenceBindingToExpr()
473 return RValue::get(Value); in EmitReferenceBindingToExpr()
507 return RValue::get(Value); in EmitReferenceBindingToExpr()
[all …]
DCodeGenFunction.h1025 const RValue &rv) {
1088 RValue rvalue)
1154 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues;
1618 RValue EmitAnyExpr(const Expr *E,
1628 RValue EmitAnyExprToTemp(const Expr *E);
1677 const RValue &getOpaqueRValueMapping(const OpaqueValueExpr *e) {
1680 llvm::DenseMap<const OpaqueValueExpr*,RValue>::iterator
1917 PeepholeProtection protectFromPeepholes(RValue rvalue);
1943 RValue EmitCompoundStmt(const CompoundStmt &S, bool GetLast = false,
1987 RValue GetUndefRValue(QualType Ty);
[all …]
DCGCUDARuntime.h29 class RValue; variable
39 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
DCGBuiltin.cpp79 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic()
107 return RValue::get(Result); in EmitBinaryAtomic()
113 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost()
143 return RValue::get(Result); in EmitBinaryAtomicPost()
168 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn, in emitLibraryCall()
174 RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, in EmitBuiltinExpr()
181 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), in EmitBuiltinExpr()
184 return RValue::get(llvm::ConstantFP::get(getLLVMContext(), in EmitBuiltinExpr()
192 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), 0)); in EmitBuiltinExpr()
204 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue)); in EmitBuiltinExpr()
[all …]
DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
54 return RValue::get(0); in EmitCUDAKernelCallExpr()
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()
72 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
75 return RValue::get(Value); in restore()
77 return RValue::get(CGF.Builder.CreateLoad(Value)); in restore()
79 return RValue::getAggregate(Value); in restore()
81 return RValue::getAggregate(CGF.Builder.CreateLoad(Value)); in restore()
83 return RValue::getComplex(CGF.LoadComplexFromAddr(Value, false)); in restore()
DCGCall.cpp514 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(RealAddr, EltTy)); in ExpandTypeFromArgs()
516 EmitStoreThroughLValue(RValue::get(AI++), MakeAddrLValue(ImagAddr, EltTy)); in ExpandTypeFromArgs()
518 EmitStoreThroughLValue(RValue::get(AI), LV); in ExpandTypeFromArgs()
1551 return args.add(RValue::getAggregate(local), type); in EmitDelegateCallArg()
1555 return args.add(RValue::get(Builder.CreateLoad(local)), type); in EmitDelegateCallArg()
1560 return args.add(RValue::getComplex(complex), type); in EmitDelegateCallArg()
1564 return args.add(RValue::getAggregate(local), type); in EmitDelegateCallArg()
1568 return args.add(RValue::get(value), type); in EmitDelegateCallArg()
1610 CGF.EmitStoreThroughLValue(RValue::get(value), in emitWriteback()
1639 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)), in emitWritebackArg()
[all …]
DCGExprAgg.cpp78 void EmitFinalDestCopy(const Expr *E, RValue Src, bool Ignore = false,
81 void EmitMoveFromReturnSlot(const Expr *E, RValue Src);
231 void AggExprEmitter::EmitMoveFromReturnSlot(const Expr *E, RValue Src) { in EmitMoveFromReturnSlot()
248 void AggExprEmitter::EmitFinalDestCopy(const Expr *E, RValue Src, bool Ignore, in EmitFinalDestCopy()
357 CGF.EmitStoreThroughLValue(RValue::get(arrayStart), start); in EmitStdInitializerList()
368 CGF.EmitStoreThroughLValue(RValue::get(arrayEnd), endOrLength); in EmitStdInitializerList()
371 CGF.EmitStoreThroughLValue(RValue::get(Builder.getInt(size)), endOrLength); in EmitStdInitializerList()
650 RValue RV = CGF.EmitCallExpr(E, getReturnValueSlot()); in VisitCallExpr()
655 RValue RV = CGF.EmitObjCMessageExpr(E, getReturnValueSlot()); in VisitObjCMessageExpr()
852 RValue RV = CGF.EmitReferenceBindingToExpr(E, /*InitializedDecl=*/0); in EmitInitializationToLValue()
[all …]
DCGCall.h48 RValue RV;
51 CallArg(RValue rv, QualType ty, bool needscopy) in CallArg()
72 void add(RValue rvalue, QualType type, bool needscopy = false) {
DCGVTables.cpp178 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment()
179 QualType ResultType, RValue RV, in PerformReturnAdjustment()
217 return RValue::get(ReturnValue); in PerformReturnAdjustment()
292 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk()
343 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in GenerateThunk()
381 RValue RV = EmitCall(FnInfo, Callee, Slot, CallArgs, MD); in GenerateThunk()
DCGObjCRuntime.h153 virtual CodeGen::RValue
169 virtual CodeGen::RValue
DCGObjCGNU.cpp436 virtual RValue
445 virtual RValue
1008 RValue
1022 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper()
1026 return RValue::get(0); in GenerateMessageSendSuper()
1035 ActualArgs.add(RValue::get(EnforceType(Builder, Receiver, IdTy)), ASTIdTy); in GenerateMessageSendSuper()
1036 ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType()); in GenerateMessageSendSuper()
1105 RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs, 0, &call); in GenerateMessageSendSuper()
1111 RValue
1125 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend()
[all …]
DCGClass.cpp614 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField()
1284 Args.add(RValue::get(This), D->getThisType(getContext())); in EmitSynthesizedCXXCopyCtorCall()
1291 Args.add(RValue::get(Src), QT); in EmitSynthesizedCXXCopyCtorCall()
1325 DelegateArgs.add(RValue::get(LoadCXXThis()), (*I)->getType()); in EmitDelegateCXXConstructorCall()
1332 DelegateArgs.add(RValue::get(VTT), VoidPP); in EmitDelegateCXXConstructorCall()
1772 RValue RV = EmitCall(CalleeFnInfo, Callee, Slot, CallArgs, CallOperator); in EmitForwardingCallToLambda()
1789 CallArgs.add(RValue::get(ThisPtr), ThisType); in EmitLambdaBlockInvokeBody()
1820 CallArgs.add(RValue::get(ThisPtr), ThisType); in EmitLambdaDelegatingInvokeBody()
DCGStmt.cpp192 RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
204 RValue RV; in EmitCompoundStmt()
206 RV = RValue::get(0); in EmitCompoundStmt()
728 void CodeGenFunction::EmitReturnOfRValue(RValue RV, QualType Ty) { in EmitReturnOfRValue()
768 RValue Result = EmitReferenceBindingToExpr(RV, /*InitializedDecl=*/0); in EmitReturnStmt()
1681 EmitStoreThroughLValue(RValue::get(Tmp), ResultRegDests[i]); in EmitAsmStmt()
DCGObjCMac.cpp924 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF,
1080 virtual CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1089 virtual CodeGen::RValue
1254 CodeGen::RValue EmitVTableMessageSend(CodeGen::CodeGenFunction &CGF,
1337 virtual CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1346 virtual CodeGen::RValue
1460 RValue complete(CodeGenFunction &CGF, RValue result, QualType resultType, in complete()
1485 RValue RV = I->RV; in complete()
1498 return NullInitPtr ? RValue::get(CGF.Builder.CreateLoad(NullInitPtr)) in complete()
1524 return RValue::getComplex(PHIReal, PHIImag); in complete()
[all …]
DCGCXXABI.h191 RValue RV, QualType ResultType);
DCGCXXABI.cpp143 RValue RV, QualType ResultType) { in EmitReturnFromThunk()
DItaniumCXXABI.cpp149 void EmitReturnFromThunk(CodeGenFunction &CGF, RValue RV, QualType ResTy);
786 RValue RV, QualType ResultType) { in EmitReturnFromThunk()
793 RValue Undef = RValue::get(llvm::UndefValue::get(T)); in EmitReturnFromThunk()
DCGDecl.cpp439 Args.add(RValue::get(Arg), in Emit()
524 EmitStoreThroughLValue(RValue::get(value), lvalue, true); in EmitScalarInit()
623 return EmitStoreThroughLValue(RValue::get(init), lvalue, true); in EmitScalarInit()
1089 RValue rvalue = EmitReferenceBindingToExpr(init, D); in EmitExprAsInit()
DCGExprScalar.cpp1423 CGF.EmitStoreThroughBitfieldLValue(RValue::get(value), LV, &value); in EmitScalarPrePostIncDec()
1425 CGF.EmitStoreThroughLValue(RValue::get(value), LV); in EmitScalarPrePostIncDec()
1725 CGF.EmitStoreThroughBitfieldLValue(RValue::get(Result), LHSLV, &Result); in EmitCompoundAssignLValue()
1727 CGF.EmitStoreThroughLValue(RValue::get(Result), LHSLV); in EmitCompoundAssignLValue()
2346 CGF.EmitStoreThroughBitfieldLValue(RValue::get(RHS), LHS, &RHS); in VisitBinAssign()
2348 CGF.EmitStoreThroughLValue(RValue::get(RHS), LHS); in VisitBinAssign()

12