Home
last modified time | relevance | path

Searched refs:CGM (Results 1 – 25 of 38) sorted by relevance

12

/external/clang/lib/CodeGen/
DCGRTTI.cpp26 CodeGenModule &CGM; // Per-module state. member in __anon444cddb10111::RTTIBuilder
65 RTTIBuilder(CodeGenModule &CGM) : CGM(CGM), in RTTIBuilder() argument
66 VMContext(CGM.getModule().getContext()) { } in RTTIBuilder()
118 CGM.getCXXABI().getMangleContext().mangleCXXRTTIName(Ty, Out); in GetAddrOfTypeName()
129 CGM.CreateOrReplaceCXXRuntimeVariable(Name, Init->getType(), Linkage); in GetAddrOfTypeName()
140 CGM.getCXXABI().getMangleContext().mangleCXXRTTI(Ty, Out); in GetAddrOfExternalRTTIDescriptor()
145 llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name); in GetAddrOfExternalRTTIDescriptor()
149 GV = new llvm::GlobalVariable(CGM.getModule(), CGM.Int8PtrTy, in GetAddrOfExternalRTTIDescriptor()
154 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy); in GetAddrOfExternalRTTIDescriptor()
248 static bool ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, QualType Ty) { in ShouldUseExternalRTTIDescriptor() argument
[all …]
DCGVTables.cpp31 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) in CodeGenVTables() argument
32 : CGM(CGM), VTContext(CGM.getContext()) { } in CodeGenVTables()
41 const CXXMethodDecl *KeyFunction = CGM.getContext().getKeyFunction(RD); in ShouldEmitVTableInThisTU()
55 if (CGM.getCodeGenOpts().OptimizationLevel && !CGM.getLangOpts().AppleKext) in ShouldEmitVTableInThisTU()
120 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, in setThunkVisibility() argument
122 CGM.setGlobalVisibility(Fn, MD); in setThunkVisibility()
124 if (!CGM.getCodeGenOpts().HiddenWeakVTables) in setThunkVisibility()
153 if (!CGM.getCodeGenOpts().HiddenWeakTemplateVTables) in setThunkVisibility()
246 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FnInfo); in GenerateVarArgsThunk()
247 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); in GenerateVarArgsThunk()
[all …]
DCGDeclCXX.cpp37 CodeGenModule &CGM = CGF.CGM; in EmitDeclInit() local
39 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit()
42 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit()
59 CodeGenModule &CGM = CGF.CGM; in EmitDeclDestroy() local
90 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete); in EmitDeclDestroy()
95 function = CodeGenFunction(CGM).generateDestroyHelper(addr, type, in EmitDeclDestroy()
109 if (!CGF.CGM.getCodeGenOpts().OptimizationLevel) in EmitDeclInvariant()
114 llvm::Constant *InvariantStart = CGF.CGM.getIntrinsic(InvStartID); in EmitDeclInvariant()
134 if (CGM.isTypeConstant(D.getType(), true)) in EmitCXXGlobalVarDeclInit()
165 CGF.CGM.CreateRuntimeFunction(atexitTy, "__cxa_atexit"); in emitGlobalDtorWithCXAAtExit()
[all …]
DCGExprConstant.cpp37 CodeGenModule &CGM; member in __anon2bb5a5970111::ConstStructBuilder
45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
51 ConstStructBuilder(CodeGenModule &CGM, CodeGenFunction *CGF) in ConstStructBuilder() argument
52 : CGM(CGM), CGF(CGF), Packed(false), in ConstStructBuilder()
82 CGM.getTargetData().getABITypeAlignment(C->getType())); in getAlignment()
87 CGM.getTargetData().getTypeAllocSize(C->getType())); in getSizeInChars()
96 CGM.getVTableContext().getVTableLayout(VTableClass).getAddressPoint(Base); in AppendVTablePointer()
98 llvm::ConstantInt::get(CGM.Int64Ty, 0), in AppendVTablePointer()
99 llvm::ConstantInt::get(CGM.Int64Ty, AddressPoint) in AppendVTablePointer()
[all …]
DCGCXXABI.cpp24 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); in ErrorUnsupportedABI()
32 static llvm::Constant *GetBogusMemberPointer(CodeGenModule &CGM, in GetBogusMemberPointer() argument
34 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); in GetBogusMemberPointer()
39 return CGM.getTypes().ConvertType(CGM.getContext().getPointerDiffType()); in ConvertMemberPointerType()
52 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( in EmitLoadOfMemberFunctionPointer()
53 CGM.getTypes().arrangeCXXMethodType(RD, FPT)); in EmitLoadOfMemberFunctionPointer()
70 return GetBogusMemberPointer(CGM, E->getType()); in EmitMemberPointerConversion()
75 return GetBogusMemberPointer(CGM, E->getType()); in EmitMemberPointerConversion()
98 return GetBogusMemberPointer(CGM, QualType(MPT, 0)); in EmitNullMemberPointer()
102 return GetBogusMemberPointer(CGM, in EmitMemberPointer()
[all …]
DCGBlocks.cpp43 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM,
48 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, in buildCopyHelper() argument
50 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper()
54 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, in buildDisposeHelper() argument
56 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper()
60 static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM, in buildBlockDescriptor() argument
62 ASTContext &C = CGM.getContext(); in buildBlockDescriptor()
64 llvm::Type *ulong = CGM.getTypes().ConvertType(C.UnsignedLongTy); in buildBlockDescriptor()
65 llvm::Type *i8p = CGM.getTypes().ConvertType(C.VoidPtrTy); in buildBlockDescriptor()
82 elements.push_back(buildCopyHelper(CGM, blockInfo)); in buildBlockDescriptor()
[all …]
DCGObjCRuntime.cpp31 static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM, in LookupFieldBitOffset() argument
45 RL = &CGM.getContext().getASTObjCImplementationLayout(ID); in LookupFieldBitOffset()
47 RL = &CGM.getContext().getASTObjCInterfaceLayout(Container); in LookupFieldBitOffset()
67 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument
70 return LookupFieldBitOffset(CGM, OID, 0, Ivar) / in ComputeIvarBaseOffset()
71 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset()
74 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument
77 return LookupFieldBitOffset(CGM, OID->getClassInterface(), OID, Ivar) / in ComputeIvarBaseOffset()
78 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset()
90 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy); in EmitValueForIvarAtOffset()
[all …]
DCGObjCMac.cpp66 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendFn()
79 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, in getMessageSendStretFn()
92 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.DoubleTy, in getMessageSendFpretFn()
109 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(resultType, in getMessageSendFp2retFn()
121 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuperFn()
132 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuperFn2()
143 return CGM.CreateRuntimeFunction( in getMessageSendSuperStretFn()
144 llvm::FunctionType::get(CGM.VoidTy, params, true), in getMessageSendSuperStretFn()
154 return CGM.CreateRuntimeFunction( in getMessageSendSuperStretFn2()
155 llvm::FunctionType::get(CGM.VoidTy, params, true), in getMessageSendSuperStretFn2()
[all …]
DCGObjC.cpp49 CGM.getObjCRuntime().GenerateConstantString(E->getString()); in EmitObjCStringLiteral()
71 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr()
90 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral()
155 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral()
165 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCCollectionLiteral()
194 return CGM.getObjCRuntime().GetSelector(Builder, E->getSelector()); in EmitObjCSelectorExpr()
199 return CGM.getObjCRuntime().GenerateProtocolRef(Builder, E->getProtocol()); in EmitObjCProtocolExpr()
284 CGM.getLangOpts().ObjCAutoRefCount && in EmitObjCMessageExpr()
288 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMessageExpr()
422 CGF.CGM.getObjCRuntime().GenerateMessageSendSuper(CGF, ReturnValueSlot(), in Emit()
[all …]
DCGDebugInfo.cpp41 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument
42 : CGM(CGM), DBuilder(CGM.getModule()), in CGDebugInfo()
56 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
63 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation()
106 llvm::DIType Ty = getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor()
133 PrintingPolicy Policy(CGM.getLangOpts()); in getFunctionName()
198 PrintingPolicy Policy(CGM.getLangOpts()); in getClassName()
216 SourceManager &SM = CGM.getContext().getSourceManager(); in getOrCreateFile()
250 SourceManager &SM = CGM.getContext().getSourceManager(); in getLineNumber()
260 SourceManager &SM = CGM.getContext().getSourceManager(); in getColumnNumber()
[all …]
DCGCUDARuntime.h33 CodeGenModule &CGM;
36 CGCUDARuntime(CodeGenModule &CGM) : CGM(CGM) {} in CGCUDARuntime() argument
49 CGCUDARuntime *CreateNVCUDARuntime(CodeGenModule &CGM);
DCGCUDANV.cpp41 CGNVCUDARuntime(CodeGenModule &CGM);
48 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) { in CGNVCUDARuntime() argument
49 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in CGNVCUDARuntime()
50 ASTContext &Ctx = CGM.getContext(); in CGNVCUDARuntime()
65 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getSetupArgumentFn()
74 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getLaunchFn()
124 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { in CreateNVCUDARuntime() argument
125 return new CGNVCUDARuntime(CGM); in CreateNVCUDARuntime()
DMicrosoftCXXABI.cpp29 MicrosoftCXXABI(CodeGenModule &CGM) : CGCXXABI(CGM) {} in MicrosoftCXXABI() argument
85 CGF.CGM.ErrorUnsupported(expr, "don't know how to handle array cookies " in ReadArrayCookie()
92 CGCXXABI *clang::CodeGen::CreateMicrosoftCXXABI(CodeGenModule &CGM) { in CreateMicrosoftCXXABI() argument
93 return new MicrosoftCXXABI(CGM); in CreateMicrosoftCXXABI()
DCGCXXABI.h44 CodeGenModule &CGM;
47 CGCXXABI(CodeGenModule &CGM) in CGCXXABI() argument
48 : CGM(CGM), MangleCtx(CGM.getContext().createMangleContext()) {} in CGCXXABI()
72 ASTContext &getContext() const { return CGM.getContext(); } in getContext()
255 CGCXXABI *CreateARMCXXABI(CodeGenModule &CGM);
256 CGCXXABI *CreateItaniumCXXABI(CodeGenModule &CGM);
257 CGCXXABI *CreateMicrosoftCXXABI(CodeGenModule &CGM);
DCGOpenCLRuntime.h30 CodeGenModule &CGM;
33 CGOpenCLRuntime(CodeGenModule &CGM) : CGM(CGM) {} in CGOpenCLRuntime() argument
DCGVTT.cpp44 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); in EmitVTTDefinition()
46 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int64Ty = CGM.Int64Ty; in EmitVTTDefinition()
96 CGM.setTypeVisibility(VTT, RD, CodeGenModule::TVK_ForVTT); in EmitVTTDefinition()
104 CGM.getCXXABI().getMangleContext().mangleCXXVTT(RD, Out); in GetAddrOfVTT()
111 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false); in GetAddrOfVTT()
114 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in GetAddrOfVTT()
117 CGM.CreateOrReplaceCXXRuntimeVariable(Name, ArrayType, in GetAddrOfVTT()
149 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false); in getSubVTTIndex()
175 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false); in getSecondaryVirtualPointerIndex()
DCodeGenFunction.cpp32 : CodeGenTypeCache(cgm), CGM(cgm), in CodeGenFunction()
33 Target(CGM.getContext().getTargetInfo()), in CodeGenFunction()
45 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction()
58 return CGM.getTypes().ConvertTypeForMem(T); in ConvertTypeForMem()
62 return CGM.getTypes().ConvertType(T); in ConvertType()
211 if (CGM.getCodeGenOpts().EmitDeclMetadata) in FinishFunction()
218 if (!CGM.getCodeGenOpts().InstrumentFunctions) in ShouldInstrumentFunction()
235 llvm::Constant *F = CGM.CreateRuntimeFunction(FunctionTy, Fn); in EmitFunctionInstrumentation()
237 CGM.getIntrinsic(llvm::Intrinsic::returnaddress), in EmitFunctionInstrumentation()
249 llvm::Constant *MCountFn = CGM.CreateRuntimeFunction(FTy, in EmitMCountInstrumentation()
[all …]
DCGObjCGNU.cpp50 CodeGenModule *CGM; member in __anon5d69dbf60111::LazyRuntimeFunction
58 LazyRuntimeFunction() : CGM(0), FunctionName(0), Function(0) {} in LazyRuntimeFunction()
65 CGM =Mod; in init()
87 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName)); in operator llvm::Constant*()
175 llvm::Constant *ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in MakeConstantString()
513 virtual llvm::Constant *BuildGCBlockLayout(CodeGenModule &CGM, in BuildGCBlockLayout() argument
562 MsgLookupFn.init(&CGM, "objc_msg_lookup", IMPTy, IdTy, SelectorTy, NULL); in CGObjCGCC()
564 MsgLookupSuperFn.init(&CGM, "objc_msg_lookup_super", IMPTy, in CGObjCGCC()
638 SlotLookupFn.init(&CGM, "objc_msg_lookup_sender", SlotTy, PtrToIdTy, in CGObjCGNUstep()
641 SlotLookupSuperFn.init(&CGM, "objc_slot_lookup_super", SlotTy, in CGObjCGNUstep()
[all …]
DCGObjCRuntime.h66 CodeGen::CodeGenModule &CGM;
67 CGObjCRuntime(CodeGen::CodeGenModule &CGM) : CGM(CGM) {} in CGObjCRuntime() argument
79 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM,
82 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM,
262 virtual llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM,
282 CGObjCRuntime *CreateGNUObjCRuntime(CodeGenModule &CGM);
283 CGObjCRuntime *CreateMacObjCRuntime(CodeGenModule &CGM);
DCGBuiltin.cpp163 llvm::Value *Fn = CGF.CGM.CreateRuntimeFunction(FT, FnName); in EmitFAbs()
178 if (E->EvaluateAsRValue(Result, CGM.getContext()) && in EmitBuiltinExpr()
192 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), 0)); in EmitBuiltinExpr()
204 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue)); in EmitBuiltinExpr()
214 return RValue::get(Builder.CreateCall2(CGM.getIntrinsic(Intrinsic::vacopy), in EmitBuiltinExpr()
239 Value *F = CGM.getIntrinsic(Intrinsic::cttz, ArgType); in EmitBuiltinExpr()
256 Value *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitBuiltinExpr()
273 Value *F = CGM.getIntrinsic(Intrinsic::cttz, ArgType); in EmitBuiltinExpr()
294 Value *F = CGM.getIntrinsic(Intrinsic::ctpop, ArgType); in EmitBuiltinExpr()
310 Value *F = CGM.getIntrinsic(Intrinsic::ctpop, ArgType); in EmitBuiltinExpr()
[all …]
DCGException.cpp31 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); in getAllocateExceptionFn()
40 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); in getFreeExceptionFn()
51 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_throw"); in getThrowFn()
60 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_rethrow"); in getReThrowFn()
69 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_get_exception_ptr"); in getGetExceptionPtrFn()
78 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_begin_catch"); in getBeginCatchFn()
87 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_end_catch"); in getEndCatchFn()
96 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_call_unexpected"); in getUnexpectedFn()
103 if (CGM.getLangOpts().SjLjExceptions) in getUnwindResumeFn()
104 return CGM.CreateRuntimeFunction(FTy, "_Unwind_SjLj_Resume"); in getUnwindResumeFn()
[all …]
DItaniumCXXABI.cpp45 llvm::Type *Ty = CGM.getTypes().ConvertType(T); in getPtrDiffTy()
56 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, bool IsARM = false) : in ItaniumCXXABI() argument
57 CGCXXABI(CGM), PtrDiffTy(0), IsARM(IsARM) { } in ItaniumCXXABI()
131 ARMCXXABI(CodeGen::CodeGenModule &CGM) : ItaniumCXXABI(CGM, /*ARM*/ true) {} in ARMCXXABI() argument
173 CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) { in CreateItaniumCXXABI() argument
174 return new ItaniumCXXABI(CGM); in CreateItaniumCXXABI()
177 CodeGen::CGCXXABI *CodeGen::CreateARMCXXABI(CodeGenModule &CGM) { in CreateARMCXXABI() argument
178 return new ARMCXXABI(CGM); in CreateARMCXXABI()
221 CGM.getTypes().GetFunctionType( in EmitLoadOfMemberFunctionPointer()
222 CGM.getTypes().arrangeCXXMethodType(RD, FPT)); in EmitLoadOfMemberFunctionPointer()
[all …]
DCGExprCXX.cpp53 return EmitCall(CGM.getTypes().arrangeFunctionCall(FPT->getResultType(), Args, in EmitCXXMemberCall()
182 if (DI && CGM.getCodeGenOpts().LimitDebugInfo in EmitCXXMemberCallExpr()
193 llvm::Value *Callee = CGM.GetAddrOfFunction(MD); in EmitCXXMemberCallExpr()
233 FInfo = &CGM.getTypes().arrangeCXXDestructor(cast<CXXDestructorDecl>(MD), in EmitCXXMemberCallExpr()
236 FInfo = &CGM.getTypes().arrangeCXXConstructorDeclaration( in EmitCXXMemberCallExpr()
240 FInfo = &CGM.getTypes().arrangeCXXMethodDeclaration(MD); in EmitCXXMemberCallExpr()
242 llvm::Type *Ty = CGM.getTypes().GetFunctionType(*FInfo); in EmitCXXMemberCallExpr()
264 Callee = CGM.GetAddrOfFunction(GlobalDecl(Dtor, Dtor_Complete), Ty); in EmitCXXMemberCallExpr()
268 Callee = CGM.GetAddrOfFunction(GlobalDecl(Ctor, Ctor_Complete), Ty); in EmitCXXMemberCallExpr()
277 Callee = CGM.GetAddrOfFunction(MD, Ty); in EmitCXXMemberCallExpr()
[all …]
DCGCXX.cpp307 uint64_t VTableIndex = CGM.getVTableContext().getMethodVTableIndex(MD); in BuildVirtualCall()
332 VTable = CGM.getVTables().GetAddrOfVTable(RD); in BuildAppleKextVirtualCall()
337 uint64_t VTableIndex = CGM.getVTableContext().getMethodVTableIndex(MD); in BuildAppleKextVirtualCall()
339 CGM.getVTableContext().getVTableLayout(RD) in BuildAppleKextVirtualCall()
362 CGM.getTypes().arrangeCXXDestructor(cast<CXXDestructorDecl>(MD), in BuildAppleKextVirtualDestructorCall()
364 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FInfo); in BuildAppleKextVirtualDestructorCall()
366 llvm::Value *VTable = CGM.getVTables().GetAddrOfVTable(RD); in BuildAppleKextVirtualDestructorCall()
371 CGM.getVTableContext().getMethodVTableIndex(GlobalDecl(DD, Type)); in BuildAppleKextVirtualDestructorCall()
373 CGM.getVTableContext().getVTableLayout(RD) in BuildAppleKextVirtualDestructorCall()
388 CGM.getVTableContext().getMethodVTableIndex(GlobalDecl(DD, Type)); in BuildVirtualCall()
DCGDecl.cpp135 return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D); in EmitVarDecl()
143 CodeGenModule &CGM = CGF.CGM; in GetStaticDeclName() local
145 StringRef Name = CGM.getMangledName(&D); in GetStaticDeclName()
156 CGM.getBlockMangledName(GlobalDecl(), Name, BD); in GetStaticDeclName()
162 StringRef Name = CGM.getMangledName(FD); in GetStaticDeclName()
182 Name = CGM.getMangledName(&D); in CreateStaticVarDecl()
186 llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty); in CreateStaticVarDecl()
188 new llvm::GlobalVariable(CGM.getModule(), LTy, in CreateStaticVarDecl()
190 CGM.EmitNullConstant(D.getType()), Name, 0, in CreateStaticVarDecl()
192 CGM.getContext().getTargetAddressSpace(Ty)); in CreateStaticVarDecl()
[all …]

12