/external/llvm-project/clang/lib/CodeGen/ |
D | CGObjCRuntime.cpp | 53 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset() argument 62 CGF.CGM.getContext().getObjCObjectPointerType(InterfaceTy); in EmitValueForIvarAtOffset() 65 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy); in EmitValueForIvarAtOffset() 66 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset() 67 V = CGF.Builder.CreateInBoundsGEP(V, Offset, "add.ptr"); in EmitValueForIvarAtOffset() 70 V = CGF.Builder.CreateBitCast(V, llvm::PointerType::getUnqual(LTy)); in EmitValueForIvarAtOffset() 71 LValue LV = CGF.MakeNaturalAlignAddrLValue(V, IvarTy); in EmitValueForIvarAtOffset() 90 CGF.CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar); in EmitValueForIvarAtOffset() 91 uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth(); in EmitValueForIvarAtOffset() 92 uint64_t AlignmentBits = CGF.CGM.getTarget().getCharAlign(); in EmitValueForIvarAtOffset() [all …]
|
D | CGOpenMPRuntimeGPU.cpp | 47 void Enter(CodeGenFunction &CGF) override { in Enter() argument 48 llvm::Value *EnterRes = CGF.EmitRuntimeCall(EnterCallee, EnterArgs); in Enter() 50 llvm::Value *CallBool = CGF.Builder.CreateIsNotNull(EnterRes); in Enter() 51 auto *ThenBlock = CGF.createBasicBlock("omp_if.then"); in Enter() 52 ContBlock = CGF.createBasicBlock("omp_if.end"); in Enter() 54 CGF.Builder.CreateCondBr(CallBool, ThenBlock, ContBlock); in Enter() 55 CGF.EmitBlock(ThenBlock); in Enter() 58 void Done(CodeGenFunction &CGF) { in Done() argument 60 CGF.EmitBranch(ContBlock); in Done() 61 CGF.EmitBlock(ContBlock, true); in Done() [all …]
|
D | CGStmtOpenMP.cpp | 42 void emitPreInitStmt(CodeGenFunction &CGF, const OMPExecutableDirective &S) { in emitPreInitStmt() argument 49 CGF.EmitVarDecl(cast<VarDecl>(*I)); in emitPreInitStmt() 52 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I)); in emitPreInitStmt() 53 CGF.EmitAutoVarCleanups(Emission); in emitPreInitStmt() 62 static bool isCapturedVar(CodeGenFunction &CGF, const VarDecl *VD) { in isCapturedVar() argument 63 return CGF.LambdaCaptureFields.lookup(VD) || in isCapturedVar() 64 (CGF.CapturedStmtInfo && CGF.CapturedStmtInfo->lookup(VD)) || in isCapturedVar() 65 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl) && in isCapturedVar() 66 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar() 71 CodeGenFunction &CGF, const OMPExecutableDirective &S, in OMPLexicalScope() argument [all …]
|
D | CGOpenMPRuntime.cpp | 82 void EmitBody(CodeGenFunction &CGF, const Stmt *S) override; 86 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF); 155 void Enter(CodeGenFunction &CGF) override { in Enter() argument 158 LValue PartIdLVal = CGF.EmitLoadOfPointerLValue( in Enter() 159 CGF.GetAddrOfLocalVar(PartIDVar), in Enter() 162 CGF.EmitLoadOfScalar(PartIdLVal, PartIDVar->getLocation()); in Enter() 163 llvm::BasicBlock *DoneBB = CGF.createBasicBlock(".untied.done."); in Enter() 164 UntiedSwitch = CGF.Builder.CreateSwitch(Res, DoneBB); in Enter() 165 CGF.EmitBlock(DoneBB); in Enter() 166 CGF.EmitBranchThroughCleanup(CGF.ReturnBlock); in Enter() [all …]
|
D | CGExprAgg.cpp | 38 CodeGenFunction &CGF; member in __anon71a4cd2d0111::AggExprEmitter 45 return CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureSlot() 49 Dest = CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureDest() 63 : CGF(cgf), Builder(CGF.Builder), Dest(Dest), in AggExprEmitter() 94 if (CGF.getLangOpts().getGC() && TypeRequiresGCollection(T)) in needsGC() 106 ApplyDebugLocation DL(CGF, E); in Visit() 111 CGF.ErrorUnsupported(S, "aggregate expression"); in VisitStmt() 118 CGF.EmitCoawaitExpr(*E, Dest, IsResultUnused); in VisitCoawaitExpr() 121 CGF.EmitCoyieldExpr(*E, Dest, IsResultUnused); in VisitCoyieldExpr() 130 if (llvm::Value *Result = ConstantEmitter(CGF).tryEmitConstantExpr(E)) { in VisitConstantExpr() [all …]
|
D | CGCXXABI.cpp | 23 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) { in ErrorUnsupportedABI() argument 24 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); in ErrorUnsupportedABI() 27 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()), in ErrorUnsupportedABI() 42 CodeGenFunction &CGF, const Expr *E, Address This, in EmitLoadOfMemberFunctionPointer() argument 45 ErrorUnsupportedABI(CGF, "calls through member pointers"); in EmitLoadOfMemberFunctionPointer() 59 CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, in EmitMemberDataPointerAddress() argument 62 ErrorUnsupportedABI(CGF, "loads of member pointers"); in EmitMemberDataPointerAddress() 63 llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType()) in EmitMemberDataPointerAddress() 68 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF, in EmitMemberPointerConversion() argument 71 ErrorUnsupportedABI(CGF, "member function pointer conversions"); in EmitMemberPointerConversion() [all …]
|
D | CGExprScalar.cpp | 221 CodeGenFunction &CGF; member in __anonbcd9e6940111::ScalarExprEmitter 228 : CGF(cgf), Builder(CGF.Builder), IgnoreResultAssign(ira), in ScalarExprEmitter() 242 llvm::Type *ConvertType(QualType T) { return CGF.ConvertType(T); } in ConvertType() 243 LValue EmitLValue(const Expr *E) { return CGF.EmitLValue(E); } in EmitLValue() 245 return CGF.EmitCheckedLValue(E, TCK); in EmitCheckedLValue() 252 return CGF.EmitLoadOfLValue(LV, Loc).getScalarVal(); in EmitLoadOfLValue() 270 if (isa<ParmVarDecl>(VD) && !CGF.SanOpts.has(SanitizerKind::Alignment)) in EmitLValueAlignmentAssumption() 285 Value *AlignmentValue = CGF.EmitScalarExpr(AVAttr->getAlignment()); in EmitLValueAlignmentAssumption() 287 CGF.emitAlignmentAssumption(V, E, AVAttr->getLocation(), AlignmentCI); in EmitLValueAlignmentAssumption() 379 Value *Zero = CGF.CGM.getNullPointer(cast<llvm::PointerType>(V->getType()), QT); in EmitPointerToBoolConversion() [all …]
|
D | ItaniumCXXABI.cpp | 121 EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF, 129 EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, 134 llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF, 149 llvm::Value *EmitMemberPointerComparison(CodeGenFunction &CGF, 154 llvm::Value *EmitMemberPointerIsNotNull(CodeGenFunction &CGF, 158 void emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, 162 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override; 163 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override; 165 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override; 168 emitTerminateForUnexpectedException(CodeGenFunction &CGF, [all …]
|
D | CGCXXABI.h | 53 ImplicitParamDecl *getThisDecl(CodeGenFunction &CGF) { in getThisDecl() argument 54 return CGF.CXXABIThisDecl; in getThisDecl() 56 llvm::Value *getThisValue(CodeGenFunction &CGF) { in getThisValue() argument 57 return CGF.CXXABIThisValue; in getThisValue() 59 Address getThisAddress(CodeGenFunction &CGF) { in getThisAddress() argument 60 return Address(CGF.CXXABIThisValue, CGF.CXXABIThisAlignment); in getThisAddress() 64 void ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S); 69 ImplicitParamDecl *&getStructorImplicitParamDecl(CodeGenFunction &CGF) { in getStructorImplicitParamDecl() argument 70 return CGF.CXXStructorImplicitParamDecl; in getStructorImplicitParamDecl() 72 llvm::Value *&getStructorImplicitParamValue(CodeGenFunction &CGF) { in getStructorImplicitParamValue() argument [all …]
|
D | CGCoroutine.cpp | 89 static void createCoroData(CodeGenFunction &CGF, in createCoroData() argument 95 CGF.CGM.Error(CoroIdExpr->getBeginLoc(), in createCoroData() 98 CGF.CGM.Error(CoroIdExpr->getBeginLoc(), in createCoroData() 175 static LValueOrRValue emitSuspendExpression(CodeGenFunction &CGF, CGCoroData &Coro, in emitSuspendExpression() argument 182 CodeGenFunction::OpaqueValueMappingData::bind(CGF, S.getOpaqueValue(), E); in emitSuspendExpression() 183 auto UnbindOnExit = llvm::make_scope_exit([&] { Binder.unbind(CGF); }); in emitSuspendExpression() 186 BasicBlock *ReadyBlock = CGF.createBasicBlock(Prefix + Twine(".ready")); in emitSuspendExpression() 187 BasicBlock *SuspendBlock = CGF.createBasicBlock(Prefix + Twine(".suspend")); in emitSuspendExpression() 188 BasicBlock *CleanupBlock = CGF.createBasicBlock(Prefix + Twine(".cleanup")); in emitSuspendExpression() 191 CGF.EmitBranchOnBoolExpr(S.getReadyExpr(), ReadyBlock, SuspendBlock, 0); in emitSuspendExpression() [all …]
|
D | CGAtomic.cpp | 31 CodeGenFunction &CGF; member in __anon0956349c0111::AtomicInfo 43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo() argument 44 : CGF(CGF), AtomicSizeInBits(0), ValueSizeInBits(0), in AtomicInfo() 47 ASTContext &C = CGF.getContext(); in AtomicInfo() 54 EvaluationKind = CGF.getEvaluationKind(ValueTy); in AtomicInfo() 83 auto VoidPtrAddr = CGF.EmitCastToVoidPtr(lvalue.getBitFieldPointer()); in AtomicInfo() 87 VoidPtrAddr = CGF.Builder.CreateConstGEP1_64( in AtomicInfo() 89 auto Addr = CGF.Builder.CreatePointerBitCastOrAddrSpaceCast( in AtomicInfo() 91 CGF.Builder.getIntNTy(AtomicSizeInBits)->getPointerTo(), in AtomicInfo() 121 AtomicTy = ValueTy = CGF.getContext().getExtVectorType( in AtomicInfo() [all …]
|
D | CGOpenMPRuntime.h | 63 virtual void Enter(CodeGenFunction &CGF) {} in Enter() argument 64 virtual void Exit(CodeGenFunction &CGF) {} in Exit() argument 78 static void CallbackFn(intptr_t CodeGen, CodeGenFunction &CGF, in CallbackFn() argument 80 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); in CallbackFn() 93 void operator()(CodeGenFunction &CGF) const; 160 LValue emitSharedLValue(CodeGenFunction &CGF, const Expr *E); 162 LValue emitSharedLValueUB(CodeGenFunction &CGF, const Expr *E); 168 void emitAggregateInitialization(CodeGenFunction &CGF, unsigned N, 178 void emitSharedOrigLValue(CodeGenFunction &CGF, unsigned N); 181 void emitAggregateType(CodeGenFunction &CGF, unsigned N); [all …]
|
D | CGNonTrivialStruct.cpp | 328 CodeGenFunction *CGF) { in getParamAddrs() argument 330 Address(CGF->Builder.CreateLoad(CGF->GetAddrOfLocalVar(Args[Ints])), in getParamAddrs() 354 CodeGenFunction &CGF = *this->CGF; in visitArray() local 355 ASTContext &Ctx = CGF.getContext(); in visitArray() 363 llvm::Value *NumElts = CGF.emitArrayLength(AT, BaseEltQT, DstAddr); in visitArray() 368 CGF.Builder.CreateNUWMul(BaseEltSizeVal, NumElts); in visitArray() 369 Address BC = CGF.Builder.CreateBitCast(DstAddr, CGF.CGM.Int8PtrTy); in visitArray() 371 CGF.Builder.CreateInBoundsGEP(BC.getPointer(), SizeInBytes); in visitArray() 372 DstArrayEnd = CGF.Builder.CreateBitCast(DstArrayEnd, CGF.CGM.Int8PtrPtrTy, in visitArray() 374 llvm::BasicBlock *PreheaderBB = CGF.Builder.GetInsertBlock(); in visitArray() [all …]
|
D | CGOpenMPRuntimeAMDGCN.cpp | 35 llvm::Value *CGOpenMPRuntimeAMDGCN::getGPUWarpSize(CodeGenFunction &CGF) { in getGPUWarpSize() argument 36 CGBuilderTy &Bld = CGF.Builder; in getGPUWarpSize() 38 unsigned WarpSize = CGF.getTarget().getGridValue(llvm::omp::GV_Warp_Size); in getGPUWarpSize() 42 llvm::Value *CGOpenMPRuntimeAMDGCN::getGPUThreadID(CodeGenFunction &CGF) { in getGPUThreadID() argument 43 CGBuilderTy &Bld = CGF.Builder; in getGPUThreadID() 45 CGF.CGM.getIntrinsic(llvm::Intrinsic::amdgcn_workitem_id_x); in getGPUThreadID() 49 llvm::Value *CGOpenMPRuntimeAMDGCN::getGPUNumThreads(CodeGenFunction &CGF) { in getGPUNumThreads() argument 50 CGBuilderTy &Bld = CGF.Builder; in getGPUNumThreads() 51 llvm::Module *M = &CGF.CGM.getModule(); in getGPUNumThreads() 56 llvm::FunctionType::get(CGF.Int64Ty, {CGF.Int32Ty}, false), in getGPUNumThreads() [all …]
|
D | CGCUDARuntime.cpp | 26 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr() argument 29 llvm::BasicBlock *ConfigOKBlock = CGF.createBasicBlock("kcall.configok"); in EmitCUDAKernelCallExpr() 30 llvm::BasicBlock *ContBlock = CGF.createBasicBlock("kcall.end"); in EmitCUDAKernelCallExpr() 32 CodeGenFunction::ConditionalEvaluation eval(CGF); in EmitCUDAKernelCallExpr() 33 CGF.EmitBranchOnBoolExpr(E->getConfig(), ContBlock, ConfigOKBlock, in EmitCUDAKernelCallExpr() 36 eval.begin(CGF); in EmitCUDAKernelCallExpr() 37 CGF.EmitBlock(ConfigOKBlock); in EmitCUDAKernelCallExpr() 38 CGF.EmitSimpleCallExpr(E, ReturnValue); in EmitCUDAKernelCallExpr() 39 CGF.EmitBranch(ContBlock); in EmitCUDAKernelCallExpr() 41 CGF.EmitBlock(ContBlock); in EmitCUDAKernelCallExpr() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntimeNVPTX.cpp | 24 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXWarpSize(CodeGenFunction &CGF) { in getNVPTXWarpSize() argument 25 CGBuilderTy &Bld = CGF.Builder; in getNVPTXWarpSize() 33 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXThreadID(CodeGenFunction &CGF) { in getNVPTXThreadID() argument 34 CGBuilderTy &Bld = CGF.Builder; in getNVPTXThreadID() 42 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXNumThreads(CodeGenFunction &CGF) { in getNVPTXNumThreads() argument 43 CGBuilderTy &Bld = CGF.Builder; in getNVPTXNumThreads() 51 void CGOpenMPRuntimeNVPTX::getNVPTXCTABarrier(CodeGenFunction &CGF) { in getNVPTXCTABarrier() argument 52 CGBuilderTy &Bld = CGF.Builder; in getNVPTXCTABarrier() 58 void CGOpenMPRuntimeNVPTX::syncCTAThreads(CodeGenFunction &CGF) { in syncCTAThreads() argument 59 getNVPTXCTABarrier(CGF); in syncCTAThreads() [all …]
|
D | CGOpenMPRuntime.cpp | 69 void EmitBody(CodeGenFunction &CGF, const Stmt *S) override; 73 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF); 140 void Enter(CodeGenFunction &CGF) override { in Enter() argument 143 auto PartIdLVal = CGF.EmitLoadOfPointerLValue( in Enter() 144 CGF.GetAddrOfLocalVar(PartIDVar), in Enter() 146 auto *Res = CGF.EmitLoadOfScalar(PartIdLVal, SourceLocation()); in Enter() 147 auto *DoneBB = CGF.createBasicBlock(".untied.done."); in Enter() 148 UntiedSwitch = CGF.Builder.CreateSwitch(Res, DoneBB); in Enter() 149 CGF.EmitBlock(DoneBB); in Enter() 150 CGF.EmitBranchThroughCleanup(CGF.ReturnBlock); in Enter() [all …]
|
D | CGObjCRuntime.cpp | 86 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset() argument 94 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy); in EmitValueForIvarAtOffset() 95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset() 96 V = CGF.Builder.CreateInBoundsGEP(V, Offset, "add.ptr"); in EmitValueForIvarAtOffset() 99 V = CGF.Builder.CreateBitCast(V, llvm::PointerType::getUnqual(LTy)); in EmitValueForIvarAtOffset() 100 LValue LV = CGF.MakeNaturalAlignAddrLValue(V, IvarTy); in EmitValueForIvarAtOffset() 119 uint64_t FieldBitOffset = LookupFieldBitOffset(CGF.CGM, OID, nullptr, Ivar); in EmitValueForIvarAtOffset() 120 uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth(); in EmitValueForIvarAtOffset() 121 uint64_t AlignmentBits = CGF.CGM.getTarget().getCharAlign(); in EmitValueForIvarAtOffset() 122 uint64_t BitFieldSize = Ivar->getBitWidthValue(CGF.getContext()); in EmitValueForIvarAtOffset() [all …]
|
D | CGExprAgg.cpp | 34 CodeGenFunction &CGF; member in __anon0eb7f63f0111::AggExprEmitter 58 return CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureSlot() 62 Dest = CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureDest() 67 : CGF(cgf), Builder(CGF.Builder), Dest(Dest), in AggExprEmitter() 91 if (CGF.getLangOpts().getGC() && TypeRequiresGCollection(T)) in needsGC() 103 ApplyDebugLocation DL(CGF, E); in Visit() 108 CGF.ErrorUnsupported(S, "aggregate expression"); in VisitStmt() 129 = CGF.tryEmitAsConstant(E)) { in VisitDeclRefExpr() 130 EmitFinalDestCopy(E->getType(), result.getReferenceLValue(CGF, E)); in VisitDeclRefExpr() 173 CodeGenFunction::CXXDefaultInitExprScope Scope(CGF); in VisitCXXDefaultInitExpr() [all …]
|
D | CGCXXABI.cpp | 23 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) { in ErrorUnsupportedABI() argument 24 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); in ErrorUnsupportedABI() 27 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()), in ErrorUnsupportedABI() 77 CodeGenFunction &CGF, const Expr *E, Address This, in EmitLoadOfMemberFunctionPointer() argument 80 ErrorUnsupportedABI(CGF, "calls through member pointers"); in EmitLoadOfMemberFunctionPointer() 93 CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, in EmitMemberDataPointerAddress() argument 96 ErrorUnsupportedABI(CGF, "loads of member pointers"); in EmitMemberDataPointerAddress() 97 llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType()) in EmitMemberDataPointerAddress() 102 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF, in EmitMemberPointerConversion() argument 105 ErrorUnsupportedABI(CGF, "member function pointer conversions"); in EmitMemberPointerConversion() [all …]
|
D | CGStmtOpenMP.cpp | 30 void emitPreInitStmt(CodeGenFunction &CGF, const OMPExecutableDirective &S) { in emitPreInitStmt() argument 36 CGF.EmitVarDecl(cast<VarDecl>(*I)); in emitPreInitStmt() 39 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I)); in emitPreInitStmt() 40 CGF.EmitAutoVarCleanups(Emission); in emitPreInitStmt() 49 static bool isCapturedVar(CodeGenFunction &CGF, const VarDecl *VD) { in isCapturedVar() argument 50 return CGF.LambdaCaptureFields.lookup(VD) || in isCapturedVar() 51 (CGF.CapturedStmtInfo && CGF.CapturedStmtInfo->lookup(VD)) || in isCapturedVar() 52 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl)); in isCapturedVar() 56 OMPLexicalScope(CodeGenFunction &CGF, const OMPExecutableDirective &S, in OMPLexicalScope() argument 58 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPLexicalScope() [all …]
|
D | CGCXXABI.h | 52 ImplicitParamDecl *getThisDecl(CodeGenFunction &CGF) { in getThisDecl() argument 53 return CGF.CXXABIThisDecl; in getThisDecl() 55 llvm::Value *getThisValue(CodeGenFunction &CGF) { in getThisValue() argument 56 return CGF.CXXABIThisValue; in getThisValue() 58 Address getThisAddress(CodeGenFunction &CGF) { in getThisAddress() argument 59 return Address(CGF.CXXABIThisValue, CGF.CXXABIThisAlignment); in getThisAddress() 63 void ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S); 68 ImplicitParamDecl *&getStructorImplicitParamDecl(CodeGenFunction &CGF) { in getStructorImplicitParamDecl() argument 69 return CGF.CXXStructorImplicitParamDecl; in getStructorImplicitParamDecl() 71 llvm::Value *&getStructorImplicitParamValue(CodeGenFunction &CGF) { in getStructorImplicitParamValue() argument [all …]
|
D | CGExprScalar.cpp | 62 CodeGenFunction &CGF; member in __anonbb924e660111::ScalarExprEmitter 69 : CGF(cgf), Builder(CGF.Builder), IgnoreResultAssign(ira), in ScalarExprEmitter() 83 llvm::Type *ConvertType(QualType T) { return CGF.ConvertType(T); } in ConvertType() 84 LValue EmitLValue(const Expr *E) { return CGF.EmitLValue(E); } in EmitLValue() 86 return CGF.EmitCheckedLValue(E, TCK); in EmitCheckedLValue() 93 return CGF.EmitLoadOfLValue(LV, Loc).getScalarVal(); in EmitLoadOfLValue() 123 Value *AlignmentValue = CGF.EmitScalarExpr(AVAttr->getAlignment()); in EmitLValueAlignmentAssumption() 125 CGF.EmitAlignmentAssumption(V, AlignmentCI->getZExtValue()); in EmitLValueAlignmentAssumption() 204 ApplyDebugLocation DL(CGF, E); in Visit() 209 S->dump(CGF.getContext().getSourceManager()); in VisitStmt() [all …]
|
D | CGAtomic.cpp | 30 CodeGenFunction &CGF; member in __anona93f836e0111::AtomicInfo 43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo() argument 44 : CGF(CGF), AtomicSizeInBits(0), ValueSizeInBits(0), in AtomicInfo() 47 ASTContext &C = CGF.getContext(); in AtomicInfo() 54 EvaluationKind = CGF.getEvaluationKind(ValueTy); in AtomicInfo() 83 auto VoidPtrAddr = CGF.EmitCastToVoidPtr(lvalue.getBitFieldPointer()); in AtomicInfo() 87 VoidPtrAddr = CGF.Builder.CreateConstGEP1_64( in AtomicInfo() 89 auto Addr = CGF.Builder.CreatePointerBitCastOrAddrSpaceCast( in AtomicInfo() 91 CGF.Builder.getIntNTy(AtomicSizeInBits)->getPointerTo(), in AtomicInfo() 121 AtomicTy = ValueTy = CGF.getContext().getExtVectorType( in AtomicInfo() [all …]
|
D | ItaniumCXXABI.cpp | 116 EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF, 124 EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, 129 llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF, 144 llvm::Value *EmitMemberPointerComparison(CodeGenFunction &CGF, 149 llvm::Value *EmitMemberPointerIsNotNull(CodeGenFunction &CGF, 153 void emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, 162 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override; 163 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override; 165 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override; 168 emitTerminateForUnexpectedException(CodeGenFunction &CGF, [all …]
|