/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 66 void EmitBody(CodeGenFunction &CGF, const Stmt *S) override; 70 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF); 135 LValue getThreadIDVariableLValue(CodeGenFunction &CGF) override; 241 CodeGenFunction &CGF; member in __anon5de6d5e20111::InlinedOpenMPRegionRAII 248 InlinedOpenMPRegionRAII(CodeGenFunction &CGF, const RegionCodeGenTy &CodeGen, in InlinedOpenMPRegionRAII() argument 250 : CGF(CGF) { in InlinedOpenMPRegionRAII() 252 CGF.CapturedStmtInfo = new CGOpenMPInlinedRegionInfo( in InlinedOpenMPRegionRAII() 253 CGF.CapturedStmtInfo, CodeGen, Kind, HasCancel); in InlinedOpenMPRegionRAII() 258 cast<CGOpenMPInlinedRegionInfo>(CGF.CapturedStmtInfo)->getOldCSI(); in ~InlinedOpenMPRegionRAII() 259 delete CGF.CapturedStmtInfo; in ~InlinedOpenMPRegionRAII() [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 __anonab97329d0111::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 | 47 static Address castValueFromUintptr(CodeGenFunction &CGF, QualType DstType, in castValueFromUintptr() argument 50 ASTContext &Ctx = CGF.getContext(); in castValueFromUintptr() 52 auto *CastedPtr = CGF.EmitScalarConversion( in castValueFromUintptr() 56 CGF.MakeNaturalAlignAddrLValue(CastedPtr, Ctx.getPointerType(DstType)) in castValueFromUintptr() 64 TmpAddr = CGF.CreateMemTemp(RefType, Twine(Name) + ".ref"); in castValueFromUintptr() 65 auto TmpLVal = CGF.MakeAddrLValue(TmpAddr, RefType); in castValueFromUintptr() 66 CGF.EmitScalarInit(RefVal, TmpLVal); in castValueFromUintptr() 263 static void EmitOMPAggregateInit(CodeGenFunction &CGF, Address DestAddr, in EmitOMPAggregateInit() argument 270 auto NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit() 272 CGF.Builder.CreateElementBitCast(DestAddr, DestAddr.getElementType()); in EmitOMPAggregateInit() [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 __anon412b96040111::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 __anon12d9ac0c0111::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, 170 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override; 171 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override; 173 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override; 176 emitTerminateForUnexpectedException(CodeGenFunction &CGF, [all …]
|
D | CGClass.cpp | 224 ApplyNonVirtualAndVirtualOffset(CodeGenFunction &CGF, Address addr, in ApplyNonVirtualAndVirtualOffset() argument 235 baseOffset = llvm::ConstantInt::get(CGF.PtrDiffTy, in ApplyNonVirtualAndVirtualOffset() 238 baseOffset = CGF.Builder.CreateAdd(virtualOffset, baseOffset); in ApplyNonVirtualAndVirtualOffset() 246 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset() 247 ptr = CGF.Builder.CreateInBoundsGEP(ptr, baseOffset, "add.ptr"); in ApplyNonVirtualAndVirtualOffset() 254 alignment = CGF.CGM.getVBaseAlignment(addr.getAlignment(), in ApplyNonVirtualAndVirtualOffset() 481 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit() 483 cast<CXXMethodDecl>(CGF.CurCodeDecl)->getParent(); in Emit() 487 CGF.GetAddressOfDirectBaseInCompleteClass(CGF.LoadCXXThisAddress(), in Emit() 490 CGF.EmitCXXDestructorCall(D, Dtor_Base, BaseIsVirtual, in Emit() [all …]
|
D | CGCUDARuntime.cpp | 27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr() argument 30 llvm::BasicBlock *ConfigOKBlock = CGF.createBasicBlock("kcall.configok"); in EmitCUDAKernelCallExpr() 31 llvm::BasicBlock *ContBlock = CGF.createBasicBlock("kcall.end"); in EmitCUDAKernelCallExpr() 33 CodeGenFunction::ConditionalEvaluation eval(CGF); in EmitCUDAKernelCallExpr() 34 CGF.EmitBranchOnBoolExpr(E->getConfig(), ContBlock, ConfigOKBlock, in EmitCUDAKernelCallExpr() 37 eval.begin(CGF); in EmitCUDAKernelCallExpr() 38 CGF.EmitBlock(ConfigOKBlock); in EmitCUDAKernelCallExpr() 47 llvm::Value *Callee = CGF.EmitScalarExpr(E->getCallee()); in EmitCUDAKernelCallExpr() 48 CGF.EmitCall(E->getCallee()->getType(), Callee, E, ReturnValue, TargetDecl); in EmitCUDAKernelCallExpr() 49 CGF.EmitBranch(ContBlock); in EmitCUDAKernelCallExpr() [all …]
|
D | CGOpenMPRuntime.h | 299 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc, 338 virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc); 342 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc); 362 void emitThreadPrivateVarInit(CodeGenFunction &CGF, Address VDAddr, 405 void functionFinished(CodeGenFunction &CGF); 417 virtual void emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc, 427 virtual void emitCriticalRegion(CodeGenFunction &CGF, StringRef CriticalName, 435 virtual void emitMasterRegion(CodeGenFunction &CGF, 440 virtual void emitTaskyieldCall(CodeGenFunction &CGF, SourceLocation Loc); 445 virtual void emitTaskgroupRegion(CodeGenFunction &CGF, [all …]
|
D | CGExprCXX.cpp | 28 CodeGenFunction &CGF, const CXXMethodDecl *MD, llvm::Value *Callee, in commonEmitCXXMemberOrOperatorCall() argument 42 CGF.EmitTypeCheck( in commonEmitCXXMemberOrOperatorCall() 45 CallLoc, This, CGF.getContext().getRecordType(MD->getParent())); in commonEmitCXXMemberOrOperatorCall() 48 Args.add(RValue::get(This), MD->getThisType(CGF.getContext())); in commonEmitCXXMemberOrOperatorCall() 62 CGF.EmitCallArgs(Args, FPT, drop_begin(CE->arguments(), ArgsToSkip), in commonEmitCXXMemberOrOperatorCall() 350 static void EmitNullBaseClassInitialization(CodeGenFunction &CGF, in EmitNullBaseClassInitialization() argument 356 DestPtr = CGF.Builder.CreateElementBitCast(DestPtr, CGF.Int8Ty); in EmitNullBaseClassInitialization() 358 const ASTRecordLayout &Layout = CGF.getContext().getASTRecordLayout(Base); in EmitNullBaseClassInitialization() 368 CharUnits VBPtrWidth = CGF.getPointerSize(); in EmitNullBaseClassInitialization() 370 CGF.CGM.getCXXABI().getVBPtrOffsets(Base); in EmitNullBaseClassInitialization() [all …]
|
D | MicrosoftCXXABI.cpp | 115 void emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE, 119 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override; 120 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override; 122 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override; 137 void EmitBadTypeidCall(CodeGenFunction &CGF) override; 138 llvm::Value *EmitTypeid(CodeGenFunction &CGF, QualType SrcRecordTy, 145 llvm::Value *EmitDynamicCastCall(CodeGenFunction &CGF, Address Value, 150 llvm::Value *EmitDynamicCastToVoid(CodeGenFunction &CGF, Address Value, 154 bool EmitBadCastCall(CodeGenFunction &CGF) override; 160 GetVirtualBaseClassOffset(CodeGenFunction &CGF, Address This, [all …]
|
D | CGExprComplex.cpp | 48 CodeGenFunction &CGF; member in __anon9db9ca060111::ComplexExprEmitter 54 : CGF(cgf), Builder(CGF.Builder), IgnoreReal(ir), IgnoreImag(ii) { in ComplexExprEmitter() 77 return EmitLoadOfLValue(CGF.EmitLValue(E), E->getExprLoc()); in EmitLoadOfLValue() 98 ApplyDebugLocation DL(CGF, E); in Visit() 103 S->dump(CGF.getContext().getSourceManager()); in VisitStmt() 119 if (CodeGenFunction::ConstantEmission result = CGF.tryEmitAsConstant(E)) { in VisitDeclRefExpr() 121 return EmitLoadOfLValue(result.getReferenceLValue(CGF, E), in VisitDeclRefExpr() 134 return CGF.EmitObjCMessageExpr(E).getComplexVal(); in VisitObjCMessageExpr() 140 return EmitLoadOfLValue(CGF.getOpaqueLValueMapping(E), E->getExprLoc()); in VisitOpaqueValueExpr() 141 return CGF.getOpaqueRValueMapping(E).getComplexVal(); in VisitOpaqueValueExpr() [all …]
|
D | CGObjC.cpp | 33 tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e); 34 static RValue AdjustObjCObjectType(CodeGenFunction &CGF, 251 static RValue AdjustObjCObjectType(CodeGenFunction &CGF, QualType ExpT, in AdjustObjCObjectType() argument 257 llvm::Type *ExpLLVMTy = CGF.ConvertType(ExpT); in AdjustObjCObjectType() 262 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustObjCObjectType() 489 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit() 490 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl); in Emit() 499 llvm::Value *self = CGF.LoadObjCSelf(); in Emit() 502 CGF.CGM.getObjCRuntime().GenerateMessageSendSuper(CGF, ReturnValueSlot(), in Emit() 503 CGF.getContext().VoidTy, in Emit() [all …]
|
D | CGObjCRuntime.h | 85 LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, 98 void EmitTryCatchStmt(CodeGenFunction &CGF, 104 void EmitInitOfCatchParam(CodeGenFunction &CGF, llvm::Value *exn, 111 void EmitAtSynchronizedStmt(CodeGenFunction &CGF, 125 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) = 0; 132 virtual Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) = 0; 135 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, 162 GenerateMessageSend(CodeGen::CodeGenFunction &CGF, 178 GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF, 191 virtual llvm::Value *GenerateProtocolRef(CodeGenFunction &CGF, [all …]
|
D | CGException.cpp | 218 const EHPersonality &EHPersonality::get(CodeGenFunction &CGF) { in get() argument 219 return get(CGF.CGM, dyn_cast_or_null<FunctionDecl>(CGF.CurCodeDecl)); in get() 336 static llvm::Constant *getCatchAllValue(CodeGenFunction &CGF) { in getCatchAllValue() argument 338 return llvm::ConstantPointerNull::get(CGF.Int8PtrTy); in getCatchAllValue() 347 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit() 348 CGF.EmitNounwindRuntimeCall(getFreeExceptionFn(CGF.CGM), exn); in Emit() 466 static void emitFilterDispatchBlock(CodeGenFunction &CGF, in emitFilterDispatchBlock() argument 475 CGF.EmitBlockAfterUses(dispatchBlock); in emitFilterDispatchBlock() 481 llvm::Value *selector = CGF.getSelectorFromSlot(); in emitFilterDispatchBlock() 482 llvm::BasicBlock *unexpectedBB = CGF.createBasicBlock("ehspec.unexpected"); in emitFilterDispatchBlock() [all …]
|
D | CGObjCMac.cpp | 1011 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF, 1086 llvm::Value *EmitClassRef(CodeGenFunction &CGF, 1089 llvm::Value *EmitClassRefFromId(CodeGenFunction &CGF, 1092 llvm::Value *EmitNSAutoreleasePoolClassRef(CodeGenFunction &CGF) override; 1170 llvm::Value *EmitSelector(CodeGenFunction &CGF, Selector Sel); 1171 Address EmitSelectorAddr(CodeGenFunction &CGF, Selector Sel); 1178 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF, 1187 GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF, 1194 llvm::Value *GetClass(CodeGenFunction &CGF, 1197 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) override; [all …]
|
D | CGCleanup.cpp | 36 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save() argument 46 CGF.CreateDefaultAlignTempAlloca(V->getType(), "saved-rvalue"); in save() 47 CGF.Builder.CreateStore(V, addr); in save() 56 Address addr = CGF.CreateDefaultAlignTempAlloca(ComplexTy, "saved-complex"); in save() 57 CGF.Builder.CreateStore(V.first, in save() 58 CGF.Builder.CreateStructGEP(addr, 0, CharUnits())); in save() 60 CGF.CGM.getDataLayout().getTypeAllocSize(V.first->getType())); in save() 61 CGF.Builder.CreateStore(V.second, in save() 62 CGF.Builder.CreateStructGEP(addr, 1, offset)); in save() 73 CGF.CreateTempAlloca(V.getType(), CGF.getPointerAlign(), "saved-rvalue"); in save() [all …]
|
D | TargetInfo.cpp | 89 Address ABIInfo::EmitMSVAArg(CodeGenFunction &CGF, Address VAListAddr, in EmitMSVAArg() argument 191 static llvm::Value *emitRoundPointerUpToAlignment(CodeGenFunction &CGF, in emitRoundPointerUpToAlignment() argument 196 PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy); in emitRoundPointerUpToAlignment() 197 PtrAsInt = CGF.Builder.CreateAdd(PtrAsInt, in emitRoundPointerUpToAlignment() 198 llvm::ConstantInt::get(CGF.IntPtrTy, Align.getQuantity() - 1)); in emitRoundPointerUpToAlignment() 199 PtrAsInt = CGF.Builder.CreateAnd(PtrAsInt, in emitRoundPointerUpToAlignment() 200 llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())); in emitRoundPointerUpToAlignment() 201 PtrAsInt = CGF.Builder.CreateIntToPtr(PtrAsInt, in emitRoundPointerUpToAlignment() 221 static Address emitVoidPtrDirectVAArg(CodeGenFunction &CGF, in emitVoidPtrDirectVAArg() argument 230 if (VAListAddr.getElementType() != CGF.Int8PtrTy) in emitVoidPtrDirectVAArg() [all …]
|
D | CodeGenFunction.h | 215 virtual void EmitBody(CodeGenFunction &CGF, const Stmt *S) { in EmitBody() argument 216 CGF.incrementProfileCounter(S); in EmitBody() 217 CGF.EmitStmt(S); in EmitBody() 242 CodeGenFunction &CGF; 245 CGCapturedStmtRAII(CodeGenFunction &CGF, in CGCapturedStmtRAII() argument 247 : CGF(CGF), PrevCapturedStmtInfo(CGF.CapturedStmtInfo) { in CGCapturedStmtRAII() 248 CGF.CapturedStmtInfo = NewCapturedStmtInfo; in CGCapturedStmtRAII() 250 ~CGCapturedStmtRAII() { CGF.CapturedStmtInfo = PrevCapturedStmtInfo; } in ~CGCapturedStmtRAII() 261 CodeGenFunction *CGF; variable 263 SanitizerScope(CodeGenFunction *CGF); [all …]
|
D | CGBlocks.cpp | 263 CodeGenFunction *CGF, in tryCaptureAsConstant() argument 284 return CGM.EmitConstantInit(*var, CGF); in tryCaptureAsConstant() 316 static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, in computeBlockInfo() argument 343 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) && in computeBlockInfo() 345 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(C); in computeBlockInfo() 379 if (llvm::Constant *constant = tryCaptureAsConstant(CGM, CGF, variable)) { in computeBlockInfo() 557 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) { in enterBlockScope() argument 558 assert(CGF.HaveInsertPoint()); in enterBlockScope() 562 *new CGBlockInfo(block, CGF.CurFn->getName()); in enterBlockScope() 563 blockInfo.NextBlockInfo = CGF.FirstBlockInfo; in enterBlockScope() [all …]
|
D | CGCUDANV.cpp | 65 void emitDeviceStubBody(CodeGenFunction &CGF, FunctionArgList &Args); 70 void emitDeviceStub(CodeGenFunction &CGF, FunctionArgList &Args) override; 111 void CGNVCUDARuntime::emitDeviceStub(CodeGenFunction &CGF, in emitDeviceStub() argument 113 EmittedKernels.push_back(CGF.CurFn); in emitDeviceStub() 114 emitDeviceStubBody(CGF, Args); in emitDeviceStub() 117 void CGNVCUDARuntime::emitDeviceStubBody(CodeGenFunction &CGF, in emitDeviceStubBody() argument 124 llvm::Value *V = CGF.GetAddrOfLocalVar(*I).getPointer(); in emitDeviceStubBody() 131 llvm::BasicBlock *EndBlock = CGF.createBasicBlock("setup.end"); in emitDeviceStubBody() 137 llvm::BasicBlock *NextBlock = CGF.createBasicBlock("setup.next"); in emitDeviceStubBody() 138 Args[0] = CGF.Builder.CreatePointerCast(ArgValues[I], VoidPtrTy); in emitDeviceStubBody() [all …]
|
D | CGCall.cpp | 760 static void forConstantArrayExpansion(CodeGenFunction &CGF, in forConstantArrayExpansion() argument 764 CharUnits EltSize = CGF.getContext().getTypeSizeInChars(CAE->EltTy); in forConstantArrayExpansion() 770 CGF.Builder.CreateConstGEP2_32(nullptr, BaseAddr.getPointer(), 0, i); in forConstantArrayExpansion() 865 static Address CreateTempAllocaForCoercion(CodeGenFunction &CGF, llvm::Type *Ty, in CreateTempAllocaForCoercion() argument 868 auto PrefAlign = CGF.CGM.getDataLayout().getPrefTypeAlignment(Ty); in CreateTempAllocaForCoercion() 871 return CGF.CreateTempAlloca(Ty, Align); in CreateTempAllocaForCoercion() 881 uint64_t DstSize, CodeGenFunction &CGF) { in EnterStructPointerForCoercedAccess() argument 892 CGF.CGM.getDataLayout().getTypeStoreSize(FirstElt); in EnterStructPointerForCoercedAccess() 894 FirstEltSize < CGF.CGM.getDataLayout().getTypeStoreSize(SrcSTy)) in EnterStructPointerForCoercedAccess() 898 SrcPtr = CGF.Builder.CreateStructGEP(SrcPtr, 0, CharUnits(), "coerce.dive"); in EnterStructPointerForCoercedAccess() [all …]
|