Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp336 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic()
339 return RValue::get(MakeBinaryAtomicValue(CGF, Kind, E)); in EmitBinaryAtomic()
345 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost()
373 return RValue::get(Result); in EmitBinaryAtomicPost()
803 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *FD, in emitLibraryCall()
809 RValue Call = in emitLibraryCall()
1782 static RValue EmitMSVCRTSetJmp(CodeGenFunction &CGF, MSVCSetJmpKind SJKind, in EmitMSVCRTSetJmp()
1819 return RValue::get(CB); in EmitMSVCRTSetJmp()
2204 RValue CodeGenFunction::emitBuiltinOSLogFormat(const CallExpr &E) { in emitBuiltinOSLogFormat()
2214 Args.add(RValue::get(BufAddr.emitRawPointer(*this)), Ctx.VoidPtrTy); in emitBuiltinOSLogFormat()
[all …]
H A DCGAtomic.cpp193 RValue convertAtomicTempToRValue(Address addr, AggValueSlot resultSlot,
196 llvm::Value *getScalarRValValueOrNull(RValue RVal) const;
199 llvm::Value *convertRValueToInt(RValue RVal, bool CmpXchg = false) const;
201 RValue ConvertToValueOrAtomic(llvm::Value *IntVal, AggValueSlot ResultSlot,
206 void emitCopyIntoMemory(RValue rvalue) const;
221 RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc,
233 std::pair<RValue, llvm::Value *>
234 EmitAtomicCompareExchange(RValue Expected, RValue Desired,
245 const llvm::function_ref<RValue(RValue)> &UpdateOp,
249 void EmitAtomicUpdate(llvm::AtomicOrdering AO, RValue UpdateRVal,
[all …]
H A DCGValue.h42 class RValue {
43 friend struct DominatingValue<RValue>;
62 RValue() : Vals{nullptr, nullptr}, Flavor(Scalar) {}
93 static RValue getIgnored() {
98 static RValue get(llvm::Value *V) {
99 RValue ER;
105 static RValue get(Address Addr, CodeGenFunction &CGF) {
106 return RValue::get(Addr.emitRawPointer(CGF));
108 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) {
109 RValue ER;
[all …]
H A DCGGPUBuiltin.cpp112 RValue EmitDevicePrintfCallExpr(const CallExpr *E, CodeGenFunction *CGF, in EmitDevicePrintfCallExpr()
131 return RValue::get(llvm::ConstantInt::get(CGF->IntTy, 0)); in EmitDevicePrintfCallExpr()
148 return RValue::get(Builder.CreateCall(Decl, Vec)); in EmitDevicePrintfCallExpr()
152 RValue CodeGenFunction::EmitNVPTXDevicePrintfCallExpr(const CallExpr *E) { in EmitNVPTXDevicePrintfCallExpr()
158 RValue CodeGenFunction::EmitAMDGPUDevicePrintfCallExpr(const CallExpr *E) { in EmitAMDGPUDevicePrintfCallExpr()
177 return RValue::get(llvm::ConstantInt::get(IntTy, -1)); in EmitAMDGPUDevicePrintfCallExpr()
191 return RValue::get(Printf); in EmitAMDGPUDevicePrintfCallExpr()
H A DCGExprCXX.cpp50 Args.add(RValue::get(This), CGF.getTypes().DeriveThisType(RD, MD)); in commonEmitCXXMemberOrOperatorCall()
54 Args.add(RValue::get(ImplicitParam), ImplicitParamTy); in commonEmitCXXMemberOrOperatorCall()
85 RValue CodeGenFunction::EmitCXXMemberOrOperatorCall( in EmitCXXMemberOrOperatorCall()
101 RValue CodeGenFunction::EmitCXXDestructorCall( in EmitCXXDestructorCall()
128 RValue CodeGenFunction::EmitCXXPseudoDestructorExpr( in EmitCXXPseudoDestructorExpr()
176 return RValue::get(nullptr); in EmitCXXPseudoDestructorExpr()
189 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr()
218 RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr( in EmitCXXMemberOrOperatorMemberCallExpr()
307 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
312 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr()
[all …]
H A DCGObjC.cpp39 static RValue AdjustObjCObjectType(CodeGenFunction &CGF,
41 RValue Result);
99 Args.add(RValue::get(BitCast), ArgQT); in EmitObjCBoxedExpr()
111 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr()
116 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr()
177 EmitStoreThroughLValue(RValue::get(value), LV, true); in EmitObjCCollectionLiteral()
187 EmitStoreThroughLValue(RValue::get(keyValue), KeyLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
194 EmitStoreThroughLValue(RValue::get(valueValue), ValueLV, /*isInit=*/true); in EmitObjCCollectionLiteral()
207 Args.add(RValue::get(Objects, *this), ArgQT); in EmitObjCCollectionLiteral()
211 Args.add(RValue::get(Keys, *this), ArgQT); in EmitObjCCollectionLiteral()
[all …]
H A DCodeGenFunction.h182 template <> struct DominatingValue<RValue> {
183 typedef RValue type;
212 static bool needsSaving(RValue value);
213 static saved_type save(CodeGenFunction &CGF, RValue value);
214 RValue restore(CodeGenFunction &CGF);
1428 bind(CodeGenFunction &CGF, const OpaqueValueExpr *ov, const RValue &rv) {
1501 RValue rvalue)
1730 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues;
2399 EmitStoreThroughLValue(RValue::get(VLASizeMap[VAT->getSizeExpr()]), LV);
2940 RValue EmitAnyExpr(const Expr *E,
[all …]
H A DCGCall.h232 RValue RV;
243 CallArg(RValue rv, QualType ty) in CallArg()
252 RValue getRValue(CodeGenFunction &CGF) const;
258 RValue getKnownRValue() const { in getKnownRValue()
262 void setRValue(RValue _RV) { in setRValue()
305 void add(RValue rvalue, QualType type) { push_back(CallArg(rvalue, type)); } in add()
H A DCGCUDARuntime.cpp25 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
44 return RValue::get(nullptr); in EmitCUDAKernelCallExpr()
H A DABIInfo.h38 class RValue; variable
81 virtual RValue EmitVAArg(CodeGen::CodeGenFunction &CGF,
90 virtual RValue EmitMSVAArg(CodeGen::CodeGenFunction &CGF,
H A DCGCoroutine.cpp220 RValue RV;
362 Res.RV = RValue::getIgnored(); in emitSuspendExpression()
375 RValue CodeGenFunction::EmitCoawaitExpr(const CoawaitExpr &E, in EmitCoawaitExpr()
382 RValue CodeGenFunction::EmitCoyieldExpr(const CoyieldExpr &E, in EmitCoyieldExpr()
985 RValue CodeGenFunction::EmitCoroutineIntrinsic(const CallExpr *E, in EmitCoroutineIntrinsic()
995 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic()
999 return RValue::get(CurAwaitSuspendWrapper.FramePtr); in EmitCoroutineIntrinsic()
1005 return RValue::get(NullPtr); in EmitCoroutineIntrinsic()
1012 return RValue::get(Builder.CreateCall(F)); in EmitCoroutineIntrinsic()
1019 return RValue::get(Builder.CreateCall(F)); in EmitCoroutineIntrinsic()
[all …]
H A DCGCUDARuntime.h41 class RValue; variable
86 virtual RValue
H A DABIInfoImpl.h32 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty,
98 RValue emitVoidPtrVAArg(CodeGenFunction &CGF, Address VAListAddr,
H A DCGExpr.cpp244 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
249 return RValue::get(EmitScalarExpr(E, ignoreResult)); in EmitAnyExpr()
251 return RValue::getComplex(EmitComplexExpr(E, ignoreResult, ignoreResult)); in EmitAnyExpr()
263 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
294 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem()
320 EmitStoreThroughLValue(RValue::get(EmitScalarExpr(E)), LV); in EmitInitializationToLValue()
670 RValue
687 return RValue::get(Value); in EmitReferenceBindingToExpr()
1453 llvm::Value *CodeGenFunction::EmitNonNullRValueCheck(RValue RV, QualType T) { in EmitNonNullRValueCheck()
1460 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
[all …]
H A 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()
60 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
64 return RValue::get(DominatingLLVMValue::restore(CGF, Vals.first)); in restore()
67 return RValue::getAggregate( in restore()
72 return RValue::getComplex(real, imag); in restore()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenBuiltin.cpp31 static RValue emitLibraryCall(CIRGenFunction &cgf, const FunctionDecl *fd, in emitLibraryCall()
38 static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const CallExpr *e, in emitBuiltinBitOp()
57 return RValue::get(result); in emitBuiltinBitOp()
60 RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, in emitBuiltinExpr()
71 return RValue::get(builder.getConstInt(loc, result.Val.getInt())); in emitBuiltinExpr()
79 return RValue::get(builder.getConstFP(loc, type, result.Val.getFloat())); in emitBuiltinExpr()
103 return RValue::get(nullptr); in emitBuiltinExpr()
107 return RValue::get(nullptr); in emitBuiltinExpr()
114 return RValue::get(complex); in emitBuiltinExpr()
125 return RValue::get(real); in emitBuiltinExpr()
[all …]
H A DCIRGenValue.h33 class RValue {
47 RValue() : value(nullptr), flavor(Scalar) {} in RValue() function
71 static RValue getIgnored() { in getIgnored()
76 static RValue get(mlir::Value v) { in get()
77 RValue er; in get()
84 static RValue getComplex(mlir::Value v) { in getComplex()
85 RValue er; in getComplex()
98 static RValue getAggregate(Address addr, bool isVolatile = false) {
99 RValue er;
369 RValue asRValue() const { in asRValue()
[all …]
H A DCIRGenCXXExpr.cpp43 args.add(RValue::get(thisPtr), cgf.getTypes().deriveThisType(rd, md)); in commonBuildCXXMemberOrOperatorCall()
47 args.add(RValue::get(implicitParam), implicitParamTy); in commonBuildCXXMemberOrOperatorCall()
76 RValue CIRGenFunction::emitCXXMemberOrOperatorMemberCallExpr( in emitCXXMemberOrOperatorMemberCallExpr()
85 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
122 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
127 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
135 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
148 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
155 return RValue::get(nullptr); in emitCXXMemberOrOperatorMemberCallExpr()
165 RValue
[all …]
H A DCIRGenCall.h128 RValue rv;
140 CallArg(RValue rv, clang::QualType ty) in CallArg()
153 RValue getKnownRValue() const { in getKnownRValue()
163 void add(RValue rvalue, clang::QualType type) { emplace_back(rvalue, type); } in add()
H A DCIRGenExpr.cpp213 void CIRGenFunction::emitStoreThroughLValue(RValue src, LValue dst, in emitStoreThroughLValue()
326 mlir::Value CIRGenFunction::emitStoreThroughBitfieldLValue(RValue src, in emitStoreThroughBitfieldLValue()
345 RValue CIRGenFunction::emitLoadOfBitfieldLValue(LValue lv, SourceLocation loc) { in emitLoadOfBitfieldLValue()
358 return RValue::get(field); in emitLoadOfBitfieldLValue()
524 RValue CIRGenFunction::emitLoadOfLValue(LValue lv, SourceLocation loc) { in emitLoadOfLValue()
532 return RValue::get(emitLoadOfScalar(lv, loc)); in emitLoadOfLValue()
537 return RValue::get(builder.create<cir::VecExtractOp>(getLoc(loc), load, in emitLoadOfLValue()
542 return RValue::get(nullptr); in emitLoadOfLValue()
1057 RValue rv = emitCallExpr(e); in emitCallExprLValue()
1097 RValue rv = emitAnyExpr(e->getRHS()); in emitBinaryOperatorLValue()
[all …]
H A DCIRGenFunction.h138 llvm::DenseMap<const OpaqueValueExpr *, RValue> opaqueRValues;
182 bind(CIRGenFunction &cgf, const OpaqueValueExpr *ov, const RValue &rv) { in bind()
255 RValue rvalue) in OpaqueValueMapping()
491 RValue convertTempToRValue(Address addr, clang::QualType type,
582 RValue getUndefRValue(clang::QualType ty);
757 RValue emitAnyExpr(const clang::Expr *e,
762 RValue emitAnyExprToTemp(const clang::Expr *e);
785 RValue emitBuiltinExpr(const clang::GlobalDecl &gd, unsigned builtinID,
788 RValue emitCall(const CIRGenFunctionInfo &funcInfo,
792 RValue emitCall(const CIRGenFunctionInfo &funcInfo,
[all …]
H A DCIRGenExprAggregate.cpp39 llvm::function_ref<RValue(ReturnValueSlot)> fn);
194 cgf.emitStoreThroughLValue(RValue::get(element), tmpLV); in emitArrayInit()
213 cgf.emitStoreThroughLValue(RValue::get(nextElement), tmpLV); in emitArrayInit()
261 cgf.emitStoreThroughLValue(RValue::get(cgf.emitScalarExpr(e)), lv); in emitInitializationToLValue()
309 const Expr *e, llvm::function_ref<RValue(ReturnValueSlot)> fn) { in withReturnValueSlot()
H A DCIRGenCall.cpp256 RValue::get(builder.createLoad(getLoc(param->getSourceRange()), local)), in emitDelegateCallArg()
480 RValue CIRGenFunction::emitCall(const CIRGenFunctionInfo &funcInfo, in emitCall()
623 return RValue::getAggregate(destPtr); in emitCall()
638 return RValue::get(results[0]); in emitCall()
693 RValue CIRGenFunction::emitAnyExprToTemp(const Expr *e) { in emitAnyExprToTemp()
737 RValue emittedArg) { in emitCallArgs()
766 RValue rvArg = args.back().getKnownRValue(); in emitCallArgs()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DEvaluationResult.h37 RValue, // Result is an rvalue. enumerator
62 Kind = RValue; in setValue()
85 bool isRValue() const { return Kind == RValue; } in isRValue()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPNaCl.cpp30 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty,
48 RValue PNaClABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, in EmitVAArg()

1234