| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGAtomic.cpp | 194 RValue convertAtomicTempToRValue(Address addr, AggValueSlot resultSlot, 198 llvm::Value *convertRValueToInt(RValue RVal) const; 200 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal, 205 void emitCopyIntoMemory(RValue rvalue) const; 220 RValue EmitAtomicLoad(AggValueSlot ResultSlot, SourceLocation Loc, 232 std::pair<RValue, llvm::Value *> 233 EmitAtomicCompareExchange(RValue Expected, RValue Desired, 244 const llvm::function_ref<RValue(RValue)> &UpdateOp, 248 void EmitAtomicUpdate(llvm::AtomicOrdering AO, RValue UpdateRVal, 252 Address materializeRValue(RValue rvalue) const; [all …]
|
| H A D | CGGPUBuiltin.cpp | 134 RValue EmitDevicePrintfCallExpr(const CallExpr *E, CodeGenFunction *CGF, in EmitDevicePrintfCallExpr() 152 return RValue::get(llvm::ConstantInt::get(CGF->IntTy, 0)); in EmitDevicePrintfCallExpr() 169 return RValue::get(Builder.CreateCall(Decl, Vec)); in EmitDevicePrintfCallExpr() 173 RValue CodeGenFunction::EmitNVPTXDevicePrintfCallExpr(const CallExpr *E) { in EmitNVPTXDevicePrintfCallExpr() 179 RValue CodeGenFunction::EmitAMDGPUDevicePrintfCallExpr(const CallExpr *E) { in EmitAMDGPUDevicePrintfCallExpr() 196 return RValue::get(llvm::ConstantInt::get(IntTy, -1)); in EmitAMDGPUDevicePrintfCallExpr() 207 return RValue::get(Printf); in EmitAMDGPUDevicePrintfCallExpr() 210 RValue CodeGenFunction::EmitOpenMPDevicePrintfCallExpr(const CallExpr *E) { in EmitOpenMPDevicePrintfCallExpr()
|
| H A D | CGValue.h | 39 class RValue { 84 static RValue getIgnored() { in getIgnored() 89 static RValue get(llvm::Value *V) { in get() 90 RValue ER; in get() 96 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex() 97 RValue ER; in getComplex() 104 static RValue getComplex(const std::pair<llvm::Value *, llvm::Value *> &C) { in getComplex() 110 static RValue getAggregate(Address addr, bool isVolatile = false) { 111 RValue ER; 485 RValue asAggregateRValue(CodeGenFunction &CGF) const { in asAggregateRValue() [all …]
|
| H A D | CGExprCXX.cpp | 50 Args.add(RValue::get(This), CGF.getTypes().DeriveThisType(RD, MD)); in commonEmitCXXMemberOrOperatorCall() 54 Args.add(RValue::get(ImplicitParam), ImplicitParamTy); in commonEmitCXXMemberOrOperatorCall() 80 RValue CodeGenFunction::EmitCXXMemberOrOperatorCall( in EmitCXXMemberOrOperatorCall() 96 RValue CodeGenFunction::EmitCXXDestructorCall( in EmitCXXDestructorCall() 122 RValue CodeGenFunction::EmitCXXPseudoDestructorExpr( in EmitCXXPseudoDestructorExpr() 170 return RValue::get(nullptr); in EmitCXXPseudoDestructorExpr() 183 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr() 210 RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr( in EmitCXXMemberOrOperatorMemberCallExpr() 298 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr() 303 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr() [all …]
|
| H A D | CGObjC.cpp | 39 static RValue AdjustObjCObjectType(CodeGenFunction &CGF, 41 RValue Result); 100 Args.add(RValue::get(BitCast), ArgQT); in EmitObjCBoxedExpr() 112 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr() 117 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr() 178 EmitStoreThroughLValue(RValue::get(value), LV, true); in EmitObjCCollectionLiteral() 188 EmitStoreThroughLValue(RValue::get(keyValue), KeyLV, /*isInit=*/true); in EmitObjCCollectionLiteral() 195 EmitStoreThroughLValue(RValue::get(valueValue), ValueLV, /*isInit=*/true); in EmitObjCCollectionLiteral() 208 Args.add(RValue::get(Objects.getPointer()), ArgQT); in EmitObjCCollectionLiteral() 212 Args.add(RValue::get(Keys.getPointer()), ArgQT); in EmitObjCCollectionLiteral() [all …]
|
| H A D | CodeGenFunction.h | 198 template <> struct DominatingValue<RValue> { 199 typedef RValue type; 212 static bool needsSaving(RValue value); 213 static saved_type save(CodeGenFunction &CGF, RValue value); 214 RValue restore(CodeGenFunction &CGF); 1301 const RValue &rv) { 1375 RValue rvalue) 1571 llvm::DenseMap<const OpaqueValueExpr *, RValue> OpaqueRValues; 2228 EmitStoreThroughLValue(RValue::get(VLASizeMap[VAT->getSizeExpr()]), LV); 2640 RValue EmitAnyExpr(const Expr *E, [all …]
|
| H A D | CGCall.h | 217 RValue RV; 228 CallArg(RValue rv, QualType ty) in CallArg() 237 RValue getRValue(CodeGenFunction &CGF) const; 243 RValue getKnownRValue() const { in getKnownRValue() 247 void setRValue(RValue _RV) { in setRValue() 283 void add(RValue rvalue, QualType type) { push_back(CallArg(rvalue, type)); } in add()
|
| H A D | CGCUDARuntime.cpp | 26 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr() 44 return RValue::get(nullptr); in EmitCUDAKernelCallExpr()
|
| H A D | CGCoroutine.cpp | 172 RValue RV; 261 RValue CodeGenFunction::EmitCoawaitExpr(const CoawaitExpr &E, in EmitCoawaitExpr() 268 RValue CodeGenFunction::EmitCoyieldExpr(const CoyieldExpr &E, in EmitCoyieldExpr() 662 RValue CodeGenFunction::EmitCoroutineIntrinsic(const CallExpr *E, in EmitCoroutineIntrinsic() 672 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic() 677 return RValue::get(NullPtr); in EmitCoroutineIntrinsic() 684 return RValue::get(Builder.CreateCall(F)); in EmitCoroutineIntrinsic() 691 return RValue::get(Builder.CreateCall(F)); in EmitCoroutineIntrinsic() 737 return RValue::get(Call); in EmitCoroutineIntrinsic()
|
| H A D | CGBuiltin.cpp | 226 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, in EmitBinaryAtomic() 229 return RValue::get(MakeBinaryAtomicValue(CGF, Kind, E)); in EmitBinaryAtomic() 235 static RValue EmitBinaryAtomicPost(CodeGenFunction &CGF, in EmitBinaryAtomicPost() 268 return RValue::get(Result); in EmitBinaryAtomicPost() 653 static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *FD, in emitLibraryCall() 1098 static RValue EmitMSVCRTSetJmp(CodeGenFunction &CGF, MSVCSetJmpKind SJKind, in EmitMSVCRTSetJmp() 1135 return RValue::get(CB); in EmitMSVCRTSetJmp() 1833 RValue CodeGenFunction::emitBuiltinOSLogFormat(const CallExpr &E) { in emitBuiltinOSLogFormat() 1844 Args.add(RValue::get(BufAddr.getPointer()), Ctx.VoidPtrTy); in emitBuiltinOSLogFormat() 1910 Args.add(RValue::get(ArgVal), ArgTy); in emitBuiltinOSLogFormat() [all …]
|
| H A D | CGCUDARuntime.h | 39 class RValue; variable 92 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
|
| H A D | CGCleanup.cpp | 26 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() 76 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore() 84 return RValue::get(Value); in restore() 86 return RValue::get(CGF.Builder.CreateLoad(getSavingAddress(Value))); in restore() 88 return RValue::getAggregate( in restore() 92 return RValue::getAggregate( in restore() 101 return RValue::getComplex(real, imag); in restore()
|
| H A D | CGExpr.cpp | 213 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr() 218 return RValue::get(EmitScalarExpr(E, ignoreResult)); in EmitAnyExpr() 220 return RValue::getComplex(EmitComplexExpr(E, ignoreResult, ignoreResult)); in EmitAnyExpr() 232 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp() 263 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem() 615 RValue 632 return RValue::get(Value); in EmitReferenceBindingToExpr() 1166 llvm::Value *CodeGenFunction::EmitNonNullRValueCheck(RValue RV, QualType T) { in EmitNonNullRValueCheck() 1173 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue() 1175 return RValue::get(nullptr); in GetUndefRValue() [all …]
|
| H A D | CGExprAgg.cpp | 59 llvm::function_ref<RValue(ReturnValueSlot)> Fn); 84 void EmitFinalDestCopy(QualType type, RValue src); 88 void EmitMoveFromReturnSlot(const Expr *E, RValue Src); 230 RValue Res = CGF.EmitAtomicExpr(E); in VisitAtomicExpr() 273 const Expr *E, llvm::function_ref<RValue(ReturnValueSlot)> EmitCall) { in withReturnValueSlot() 313 RValue Src = in withReturnValueSlot() 333 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src) { in EmitFinalDestCopy() 440 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr() 457 CGF.EmitStoreThroughLValue(RValue::get(ArrayEnd), EndOrLength); in VisitCXXStdInitializerListExpr() 460 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr() [all …]
|
| H A D | CGExprComplex.cpp | 265 RValue &Val); 398 return CGF.EmitAtomicStore(RValue::getComplex(Val), lvalue, isInit); in EmitStoreOfComplex() 687 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall() 689 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall() 691 Args.add(RValue::get(Op.RHS.first), in EmitComplexBinOpLibCall() 693 Args.add(RValue::get(Op.RHS.second), in EmitComplexBinOpLibCall() 717 RValue Res = CGF.EmitCall(FuncInfo, Callee, ReturnValueSlot(), Args, &Call); in EmitComplexBinOpLibCall() 1041 RValue &Val) { in EmitCompoundAssignLValue() 1130 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue() 1135 Val = RValue::get(ResVal); in EmitCompoundAssignLValue() [all …]
|
| H A D | CGObjCRuntime.h | 167 virtual CodeGen::RValue 181 CodeGen::RValue 198 virtual CodeGen::RValue
|
| H A D | CGCXXABI.cpp | 202 RValue RV, QualType ResultType) { in EmitReturnFromThunk() 348 CallArg(RValue::get(AddedArgs.Prefix[i].Value), in addImplicitConstructorArgs() 352 Args.add(RValue::get(arg.Value), arg.Type); in addImplicitConstructorArgs()
|
| H A D | CGVTables.cpp | 69 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, in PerformReturnAdjustment() 70 QualType ResultType, RValue RV, in PerformReturnAdjustment() 112 return RValue::get(ReturnValue); in PerformReturnAdjustment() 227 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk() 331 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk() 377 RValue RV = EmitCall(*CurFnInfo, CGCallee::forDirect(Callee, CurGD), Slot, in EmitCallAndReturnForThunk()
|
| H A D | CGStmtOpenMP.cpp | 359 EmitStoreThroughLValue(RValue::get(CV), SrcLV); in GenerateOpenMPCapturedVars() 2371 RValue Len = CGF.EmitAnyExpr(C->getSimdlen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause() 2380 RValue Len = CGF.EmitAnyExpr(C->getSafelen(), AggValueSlot::ignored(), in emitSimdlenSafelenClause() 2685 RValue Len = in EmitOMPSimdDirective() 2693 RValue Len = in EmitOMPSimdDirective() 3577 RValue::get(OMPScanNumIterations)); in emitScanBasedDirectiveDecls() 3626 RValue::get(OMPLast)); in emitScanBasedDirectiveFinals() 3742 RValue::get(IVal)); in emitScanBasedDirective() 3753 RValue::get(OffsetIVal)); in emitScanBasedDirective() 3972 CGF.EmitStoreThroughLValue(RValue::get(Init), LVal, /*isInit*/ true); in createSectionLVal() [all …]
|
| H A D | CGCUDANV.cpp | 407 LaunchKernelArgs.add(RValue::get(Kernel), in emitDeviceStubBodyNew() 409 LaunchKernelArgs.add(RValue::getAggregate(GridDim), Dim3Ty); in emitDeviceStubBodyNew() 410 LaunchKernelArgs.add(RValue::getAggregate(BlockDim), Dim3Ty); in emitDeviceStubBodyNew() 411 LaunchKernelArgs.add(RValue::get(KernelArgs.getPointer()), in emitDeviceStubBodyNew() 413 LaunchKernelArgs.add(RValue::get(CGF.Builder.CreateLoad(ShmemSize)), in emitDeviceStubBodyNew() 415 LaunchKernelArgs.add(RValue::get(CGF.Builder.CreateLoad(Stream)), in emitDeviceStubBodyNew()
|
| H A D | CGClass.cpp | 699 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField() 2142 Args.add(RValue::get(ThisPtr), D->getThisType()); in EmitCXXConstructorCall() 2276 CallArg ThisArg(RValue::get(This.getPointer()), D->getThisType()); in EmitInheritedCXXConstructorCall() 2342 const RValue &RV = Args[I].getRValue(*this); in EmitInlinedInheritingCXXConstructorCall() 2401 Args.add(RValue::get(This.getPointer()), D->getThisType()); in EmitSynthesizedCXXCopyCtorCall() 2407 Args.add(RValue::get(SrcVal), QT); in EmitSynthesizedCXXCopyCtorCall() 2431 DelegateArgs.add(RValue::get(This.getPointer()), (*I)->getType()); in EmitDelegateCXXConstructorCall() 2965 RValue RV = EmitCall(calleeFnInfo, callee, returnSlot, callArgs); in EmitForwardingCallToLambda() 2970 RV = RValue::get(EmitARCRetainAutoreleasedReturnValue(RV.getScalarVal())); in EmitForwardingCallToLambda() 2996 CallArgs.add(RValue::get(ThisPtr.getPointer()), ThisType); in EmitLambdaBlockInvokeBody() [all …]
|
| H A D | CGObjCGNU.cpp | 571 RValue 577 RValue 2521 RValue 2535 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper() 2539 return RValue::get(nullptr); in GenerateMessageSendSuper() 2546 ActualArgs.add(RValue::get(EnforceType(Builder, Receiver, IdTy)), ASTIdTy); in GenerateMessageSendSuper() 2547 ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType()); in GenerateMessageSendSuper() 2633 RValue msgRet = CGF.EmitCall(MSI.CallInfo, callee, Return, ActualArgs, &call); in GenerateMessageSendSuper() 2639 RValue 2653 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend() [all …]
|
| H A D | CGCall.cpp | 1077 EmitStoreThroughLValue(RValue::get(Arg), LV); in ExpandTypeFromArgs() 1114 CallArg BaseArg = CallArg(RValue::getAggregate(Base), BS->getType()); in ExpandTypeToArgs() 3834 args.add(RValue::get(Builder.CreateLoad(local)), type); in EmitDelegateCallArg() 3848 args.add(RValue::get(ptr), type); in EmitDelegateCallArg() 3933 CGF.EmitStoreThroughLValue(RValue::get(value), srcLV); in emitWriteback() 3998 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)), in emitWritebackArg() 4054 RValue srcRV = CGF.EmitLoadOfLValue(srcLV, SourceLocation()); in emitWritebackArg() 4093 args.add(RValue::get(finalArgument), CRE->getType()); in emitWritebackArg() 4112 void CodeGenFunction::EmitNonNullArgCheck(RValue RV, QualType ArgType, in EmitNonNullArgCheck() 4272 RValue EmittedArg) { in EmitCallArgs() [all …]
|
| H A D | CGObjCMac.cpp | 1070 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF, 1322 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF, 1330 CodeGen::RValue 1485 CodeGen::RValue EmitVTableMessageSend(CodeGen::CodeGenFunction &CGF, 1611 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF, 1619 CodeGen::RValue 1738 RValue complete(CodeGenFunction &CGF, in complete() 1740 RValue result, in complete() 1783 if (!contBB) return RValue::get(null); in complete() 1790 return RValue::get(phi); in complete() [all …]
|
| H A D | CGObjCRuntime.cpp | 442 RValue RV = I->getRValue(CGF); in destroyCalleeDestroyedArguments() 450 RValue RV = I->getRValue(CGF); in destroyCalleeDestroyedArguments()
|