| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGAtomic.cpp | 225 EmitAtomicCompareExchange(RValue Expected, RValue Desired, 236 const llvm::function_ref<RValue(RValue)> &UpdateOp, 275 const llvm::function_ref<RValue(RValue)> &UpdateOp, 279 const llvm::function_ref<RValue(RValue)> &UpdateOp, 1718 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall() 1721 Args.add(RValue::get( in EmitAtomicCompareExchangeLibcall() 1731 RValue Expected, RValue Desired, llvm::AtomicOrdering Success, in EmitAtomicCompareExchange() 1761 const llvm::function_ref<RValue(RValue)> &UpdateOp, in EmitAtomicUpdateValue() 1763 RValue UpRVal; in EmitAtomicUpdateValue() 2063 LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, in EmitAtomicCompareExchange() [all …]
|
| H A D | CGGPUBuiltin.cpp | 69 RValue 90 return RValue::get(llvm::ConstantInt::get(IntTy, 0)); in EmitNVPTXDevicePrintfCallExpr() 121 return RValue::get(Builder.CreateCall( in EmitNVPTXDevicePrintfCallExpr() 125 RValue 144 return RValue::get(llvm::ConstantInt::get(IntTy, -1)); in EmitAMDGPUDevicePrintfCallExpr() 155 return RValue::get(Printf); in EmitAMDGPUDevicePrintfCallExpr()
|
| H A D | CGValue.h | 39 class RValue { 81 static RValue getIgnored() { in getIgnored() 86 static RValue get(llvm::Value *V) { in get() 87 RValue ER; in get() 93 static RValue getComplex(llvm::Value *V1, llvm::Value *V2) { in getComplex() 94 RValue ER; in getComplex() 108 RValue ER; 465 RValue asAggregateRValue(CodeGenFunction &CGF) const { in asAggregateRValue() 639 RValue asRValue() const { in asRValue() 641 return RValue::getIgnored(); in asRValue() [all …]
|
| H A D | CGExprCXX.cpp | 168 return RValue::get(nullptr); in EmitCXXPseudoDestructorExpr() 295 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr() 387 return RValue::get(nullptr); in EmitCXXMemberOrOperatorMemberCallExpr() 430 RValue 480 RValue 1316 RValue RV = in EmitNewDeleteCall() 1502 typedef RValue RValueTy; in EnterNewDeleteCleanup() 1503 static RValue get(CodeGenFunction &, ValueTy V) { return RValue::get(V); } in EnterNewDeleteCleanup() 1527 DominatingValue<RValue>::save(CGF, RValue::get(NewPtr.getPointer())); in EnterNewDeleteCleanup() 1529 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup() [all …]
|
| H A D | CGObjC.cpp | 38 RValue Result); 108 Args.add(RValue::get(Cast), EncodingQT); in EmitObjCBoxedExpr() 113 RValue result = Runtime.GenerateMessageSend( in EmitObjCBoxedExpr() 214 Args.add(RValue::get(Count), ArgQT); in EmitObjCCollectionLiteral() 681 RValue result; in EmitObjCMessageExpr() 1216 RV = RValue::get(Builder.CreateBitCast( in generateObjCGetterBody() 1790 RValue CountRV = in EmitObjCForCollectionStmt() 2703 RValue AllocRV = in EmitObjCMRRAutoreleasePoolPush() 2712 RValue InitRV = in EmitObjCMRRAutoreleasePoolPush() 3849 RValue DV = EmitAnyExpr(&DstExpr); in GenerateObjCAtomicGetterCopyHelperFunction() [all …]
|
| H A D | CodeGenFunction.h | 203 typedef RValue type; 215 static bool needsSaving(RValue value); 217 RValue restore(CodeGenFunction &CGF); 1332 RValue rvalue) 2583 RValue EmitAnyExpr(const Expr *E, 3335 const llvm::function_ref<RValue(RValue)> CommonGen); 3677 RValue GetUndefRValue(QualType Ty); 3733 LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, 3741 const llvm::function_ref<RValue(RValue)> &UpdateOp, 4018 RValue [all …]
|
| H A D | CGCall.h | 222 RValue RV; 233 CallArg(RValue rv, QualType ty) in CallArg() 242 RValue getRValue(CodeGenFunction &CGF) const; 248 RValue getKnownRValue() const { in getKnownRValue() 252 void setRValue(RValue _RV) { in setRValue() 288 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 | CGCUDARuntime.h | 39 class RValue; variable 79 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
|
| H A D | CGBuiltin.cpp | 1932 static RValue 2573 return RValue::get( in EmitBuiltinExpr() 4124 return RValue::get( in EmitBuiltinExpr() 4162 return RValue::get( in EmitBuiltinExpr() 4426 return RValue::get( in EmitBuiltinExpr() 4465 return RValue::get( in EmitBuiltinExpr() 4469 return RValue::get( in EmitBuiltinExpr() 4478 return RValue::get( in EmitBuiltinExpr() 4483 return RValue::get( in EmitBuiltinExpr() 5119 return RValue::get( in EmitBuiltinExpr() [all …]
|
| H A D | CGExpr.cpp | 264 RValue RV = RValue::get(EmitScalarExpr(E, /*Ignore*/ false)); in EmitAnyExprToMem() 615 RValue 632 return RValue::get(Value); in EmitReferenceBindingToExpr() 1911 return RValue::get(Object); in EmitLoadOfLValue() 1944 return RValue::get( in EmitLoadOfLValue() 1984 return RValue::get(Val); in EmitLoadOfBitfieldLValue() 2012 return RValue::get(Vec); in EmitLoadOfExtVectorElementLValue() 2054 return RValue::get(Call); in EmitLoadOfGlobalRegLValue() 4798 RValue 5005 RValue RV = EmitCallExpr(E); in EmitCallExprLValue() [all …]
|
| 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() 83 return RValue::get(Value); in restore() 85 return RValue::get(CGF.Builder.CreateLoad(getSavingAddress(Value))); in restore() 87 return RValue::getAggregate(Address(Value, CharUnits::fromQuantity(Align))); in restore() 90 return RValue::getAggregate(Address(addr, CharUnits::fromQuantity(Align))); in restore() 98 return RValue::getComplex(real, imag); in restore()
|
| 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() 709 RValue CodeGenFunction::EmitCoroutineIntrinsic(const CallExpr *E, in EmitCoroutineIntrinsic() 719 return RValue::get(CurCoro.Data->CoroBegin); in EmitCoroutineIntrinsic() 724 return RValue::get(NullPtr); in EmitCoroutineIntrinsic() 770 return RValue::get(Call); in EmitCoroutineIntrinsic()
|
| H A D | CGExprComplex.cpp | 260 RValue &Val); 631 Args.add(RValue::get(Op.LHS.first), in EmitComplexBinOpLibCall() 633 Args.add(RValue::get(Op.LHS.second), in EmitComplexBinOpLibCall() 635 Args.add(RValue::get(Op.RHS.first), in EmitComplexBinOpLibCall() 637 Args.add(RValue::get(Op.RHS.second), in EmitComplexBinOpLibCall() 901 RValue &Val) { in EmitCompoundAssignLValue() 957 Val = RValue::getComplex(ResVal); in EmitCompoundAssignLValue() 962 Val = RValue::get(ResVal); in EmitCompoundAssignLValue() 972 RValue Val; in EmitCompoundAssign() 1177 RValue Val; in EmitComplexCompoundAssignmentLValue() [all …]
|
| H A D | CGExprAgg.cpp | 84 void EmitFinalDestCopy(QualType type, RValue src); 88 void EmitMoveFromReturnSlot(const Expr *E, RValue Src); 212 RValue Res = CGF.EmitAtomicExpr(E); in VisitAtomicExpr() 295 RValue Src = in withReturnValueSlot() 315 void AggExprEmitter::EmitFinalDestCopy(QualType type, RValue src) { in EmitFinalDestCopy() 422 CGF.EmitStoreThroughLValue(RValue::get(ArrayStart), Start); in VisitCXXStdInitializerListExpr() 442 CGF.EmitStoreThroughLValue(RValue::get(Size), EndOrLength); in VisitCXXStdInitializerListExpr() 825 RValue rvalue = RValue::getAggregate(valueAddr, atomicSlot.isVolatile()); in VisitCastExpr() 1026 RValue RV = CGF.EmitAnyExpr(E); in VisitBinCmp() 1538 RValue RV = CGF.EmitReferenceBindingToExpr(E); in EmitInitializationToLValue() [all …]
|
| H A D | CGObjCRuntime.h | 166 virtual CodeGen::RValue 180 CodeGen::RValue 197 virtual CodeGen::RValue
|
| H A D | CGCXXABI.cpp | 158 RValue RV, QualType ResultType) { in EmitReturnFromThunk() 304 CallArg(RValue::get(AddedArgs.Prefix[i].Value), in addImplicitConstructorArgs() 308 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() 110 return RValue::get(ReturnValue); in PerformReturnAdjustment() 223 RValue RV = RValue::get(T->getOperand(0)); in GenerateVarArgsThunk() 327 CallArgs.add(RValue::get(AdjustedThisPtr), ThisType); in EmitCallAndReturnForThunk() 373 RValue RV = EmitCall(*CurFnInfo, CGCallee::forDirect(Callee, CurGD), Slot, in EmitCallAndReturnForThunk()
|
| H A D | CGCUDANV.cpp | 386 LaunchKernelArgs.add(RValue::get(Kernel), in emitDeviceStubBodyNew() 388 LaunchKernelArgs.add(RValue::getAggregate(GridDim), Dim3Ty); in emitDeviceStubBodyNew() 389 LaunchKernelArgs.add(RValue::getAggregate(BlockDim), Dim3Ty); in emitDeviceStubBodyNew() 390 LaunchKernelArgs.add(RValue::get(KernelArgs.getPointer()), in emitDeviceStubBodyNew() 392 LaunchKernelArgs.add(RValue::get(CGF.Builder.CreateLoad(ShmemSize)), in emitDeviceStubBodyNew() 394 LaunchKernelArgs.add(RValue::get(CGF.Builder.CreateLoad(Stream)), in emitDeviceStubBodyNew()
|
| H A D | CGClass.cpp | 697 RValue RHS = RValue::get(EmitScalarExpr(Init)); in EmitInitializerForField() 2073 Args.add(RValue::get(ThisPtr), D->getThisType()); in EmitCXXConstructorCall() 2207 CallArg ThisArg(RValue::get(This.getPointer()), D->getThisType()); in EmitInheritedCXXConstructorCall() 2273 const RValue &RV = Args[I].getRValue(*this); in EmitInlinedInheritingCXXConstructorCall() 2332 Args.add(RValue::get(This.getPointer()), D->getThisType()); in EmitSynthesizedCXXCopyCtorCall() 2338 Args.add(RValue::get(Src.getPointer()), QT); in EmitSynthesizedCXXCopyCtorCall() 2362 DelegateArgs.add(RValue::get(This.getPointer()), (*I)->getType()); in EmitDelegateCXXConstructorCall() 2894 RValue RV = EmitCall(calleeFnInfo, callee, returnSlot, callArgs); in EmitForwardingCallToLambda() 2899 RV = RValue::get(EmitARCRetainAutoreleasedReturnValue(RV.getScalarVal())); in EmitForwardingCallToLambda() 2925 CallArgs.add(RValue::get(ThisPtr.getPointer()), ThisType); in EmitLambdaBlockInvokeBody() [all …]
|
| H A D | CGStmtOpenMP.cpp | 3496 RValue::get(IVal)); in emitScanBasedDirective() 3507 RValue::get(OffsetIVal)); in emitScanBasedDirective() 5004 RValue::get(IdxVal)); in EmitOMPScanDirective() 5046 RValue::get(IdxVal)); in EmitOMPScanDirective() 5573 const llvm::function_ref<RValue(RValue)> CommonGen) { in EmitOMPAtomicSimpleUpdateExpr() 5609 RValue ExprRValue = CGF.EmitAnyExpr(E); in emitOMPAtomicUpdateExpr() 5642 static RValue convertToType(CodeGenFunction &CGF, RValue Value, in convertToType() 5647 return RValue::get( in convertToType() 5667 RValue NewVVal; in emitOMPAtomicCaptureExpr() 5670 RValue ExprRValue = CGF.EmitAnyExpr(E); in emitOMPAtomicCaptureExpr() [all …]
|
| H A D | CGCall.cpp | 1060 EmitStoreThroughLValue(RValue::get(&*AI++), LV); in ExpandTypeFromArgs() 3713 args.add(RValue::get(ptr), type); in EmitDelegateCallArg() 3959 args.add(RValue::get(finalArgument), CRE->getType()); in emitWritebackArg() 4153 Args.add(RValue::get(V), SizeTy); in EmitCallArgs() 4190 RValue RVArg = Args.back().getKnownRValue(); in EmitCallArgs() 4251 return RValue::getAggregate(Copy.getAddress(CGF)); in getRValue() 4313 RValue RV = Slot.asRValue(); in EmitCallArg() 5000 RValue RV = I->getKnownRValue(); in EmitCall() 5387 RValue Ret = [&] { in EmitCall() 5446 return RValue::getAggregate(DestPtr); in EmitCall() [all …]
|
| H A D | CGObjCGNU.cpp | 570 RValue 576 RValue 2512 RValue 2526 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSendSuper() 2530 return RValue::get(nullptr); in GenerateMessageSendSuper() 2632 RValue 2646 return RValue::get(EnforceType(Builder, Receiver, in GenerateMessageSend() 2650 return RValue::get(nullptr); in GenerateMessageSend() 2700 ActualArgs.add(RValue::get(Receiver), ASTIdTy); in GenerateMessageSend() 2757 msgRet = RValue::get(phi); in GenerateMessageSend() [all …]
|
| H A D | CGObjCMac.cpp | 1326 CodeGen::RValue 1615 CodeGen::RValue 1734 RValue complete(CodeGenFunction &CGF, in complete() 1736 RValue result, in complete() 1814 return RValue::get(phi); in complete() 2077 CodeGen::RValue 2163 CodeGen::RValue 4117 RValue result; in GenerateDirectMethodPrologue() 7293 RValue 7405 CodeGen::RValue [all …]
|
| H A D | CGExprScalar.cpp | 2737 LV, RValue::get(atomicPHI), RValue::get(value), E->getExprLoc()); in EmitScalarPrePostIncDec() 2748 CGF.EmitStoreThroughBitfieldLValue(RValue::get(value), LV, &value); in EmitScalarPrePostIncDec() 2750 CGF.EmitStoreThroughLValue(RValue::get(value), LV); in EmitScalarPrePostIncDec() 3109 LHSLV, RValue::get(atomicPHI), RValue::get(Result), E->getExprLoc()); in EmitCompoundAssignLValue() 3123 CGF.EmitStoreThroughBitfieldLValue(RValue::get(Result), LHSLV, &Result); in EmitCompoundAssignLValue() 3125 CGF.EmitStoreThroughLValue(RValue::get(Result), LHSLV); in EmitCompoundAssignLValue() 4229 CGF.EmitStoreThroughBitfieldLValue(RValue::get(RHS), LHS, &RHS); in VisitBinAssign() 4232 CGF.EmitStoreThroughLValue(RValue::get(RHS), LHS); in VisitBinAssign()
|