Searched defs:CGM (Results 1 - 25 of 36) sorted by relevance

12

/external/clang/lib/CodeGen/
H A DCGCUDARuntime.h33 CodeGenModule &CGM; member in class:clang::CodeGen::CGCUDARuntime
36 CGCUDARuntime(CodeGenModule &CGM) : CGM(CGM) {} argument
49 CGCUDARuntime *CreateNVCUDARuntime(CodeGenModule &CGM);
H A DCGOpenCLRuntime.h34 CodeGenModule &CGM; member in class:clang::CodeGen::CGOpenCLRuntime
37 CGOpenCLRuntime(CodeGenModule &CGM) : CGM(CGM) {} argument
H A DCGObjCRuntime.h65 CodeGen::CodeGenModule &CGM; member in class:clang::CodeGen::CGObjCRuntime
66 CGObjCRuntime(CodeGen::CodeGenModule &CGM) : CGM(CGM) {} argument
78 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM,
81 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM,
265 virtual llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM,
267 virtual llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM,
269 virtual llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM,
289 unsigned ComputeBitfieldBitOffset(CodeGen::CodeGenModule &CGM,
[all...]
H A DCGVTables.h32 CodeGenModule &CGM; member in class:clang::CodeGen::CodeGenVTables
69 CodeGenVTables(CodeGenModule &CGM);
H A DCGCUDANV.cpp40 CGNVCUDARuntime(CodeGenModule &CGM);
47 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) { argument
48 CodeGen::CodeGenTypes &Types = CGM.getTypes();
49 ASTContext &Ctx = CGM.getContext();
64 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy,
73 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy,
123 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { argument
124 return new CGNVCUDARuntime(CGM);
H A DCGCXXABI.h43 CodeGenModule &CGM; member in class:clang::CodeGen::CGCXXABI
46 CGCXXABI(CodeGenModule &CGM) argument
47 : CGM(CGM), MangleCtx(CGM.getContext().createMangleContext()) {}
74 ASTContext &getContext() const { return CGM.getContext(); }
526 CGCXXABI *CreateItaniumCXXABI(CodeGenModule &CGM);
529 CGCXXABI *CreateMicrosoftCXXABI(CodeGenModule &CGM);
H A DCGOpenMPRuntime.cpp27 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) argument
28 : CGM(CGM), DefaultOpenMPPSource(nullptr) {
30 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */,
31 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */,
32 CGM.Int8PtrTy /* psource */, NULL);
34 llvm::Type *MicroParams[] = {llvm::PointerType::getUnqual(CGM.Int32Ty),
35 llvm::PointerType::getUnqual(CGM
[all...]
H A DCGOpenMPRuntime.h75 CodeGenModule &CGM; member in class:clang::CodeGen::CGOpenMPRuntime
139 explicit CGOpenMPRuntime(CodeGenModule &CGM);
H A DCGVTT.cpp22 GetAddrOfVTTVTable(CodeGenVTables &CGVT, CodeGenModule &CGM, argument
31 return CGM.getCXXABI().getAddrOfVTable(MostDerivedClass, CharUnits());
45 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true);
47 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int64Ty = CGM.Int64Ty;
56 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage,
98 CGM.setGlobalVisibility(VTT, RD);
106 cast<ItaniumMangleContext>(CGM.getCXXABI().getMangleContext())
112 (void) CGM.getCXXABI().getAddrOfVTable(RD, CharUnits());
114 VTTBuilder Builder(CGM
[all...]
H A DCodeGenTypes.h62 CodeGenModule &CGM; member in class:clang::CodeGen::CodeGenTypes
63 // Some of this stuff should probably be left on the CGM.
H A DCGCXX.cpp310 assert(!CGF.CGM.getTarget().getCXXABI().isMicrosoft() &&
313 CodeGenModule &CGM = CGF.CGM; local
314 llvm::Value *VTable = CGM.getCXXABI().getAddrOfVTable(RD, CharUnits());
318 uint64_t VTableIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(GD);
320 CGM.getItaniumVTableContext().getVTableLayout(RD)
364 CGM.getTypes().arrangeCXXDestructor(DD, Dtor_Complete);
365 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FInfo);
H A DCGDebugInfo.h52 CodeGenModule &CGM; member in class:clang::CodeGen::CGDebugInfo
210 CGDebugInfo(CodeGenModule &CGM);
H A DCodeGenPGO.h33 CodeGenModule &CGM; member in class:clang::CodeGen::CodeGenPGO
47 CodeGenPGO(CodeGenModule &CGM) argument
48 : CGM(CGM), NumRegionCounters(0), FunctionHash(0),
113 static llvm::Function *emitInitialization(CodeGenModule &CGM);
H A DCGDeclCXX.cpp40 CodeGenModule &CGM = CGF.CGM; local
42 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init),
45 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init),
67 CodeGenModule &CGM = CGF.CGM; local
99 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete);
105 function = CodeGenFunction(CGM)
111 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument);
119 if (!CGF.CGM
166 createAtExitStub(CodeGenModule &CGM, const VarDecl &VD, llvm::Constant *dtor, llvm::Constant *addr) argument
230 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM, llvm::FunctionType *FTy, const Twine &Name, bool TLS) argument
[all...]
H A DCGObjCRuntime.cpp29 static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM, argument
43 RL = &CGM.getContext().getASTObjCImplementationLayout(ID);
45 RL = &CGM.getContext().getASTObjCInterfaceLayout(Container);
65 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, argument
68 return LookupFieldBitOffset(CGM, OID, nullptr, Ivar) /
69 CGM.getContext().getCharWidth();
72 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, argument
75 return LookupFieldBitOffset(CGM, OID->getClassInterface(), OID, Ivar) /
76 CGM.getContext().getCharWidth();
80 CodeGen::CodeGenModule &CGM,
79 ComputeBitfieldBitOffset( CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument
[all...]
H A DCGVTables.cpp32 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) argument
33 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {}
54 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, argument
56 CGM.setGlobalVisibility(Fn, MD);
91 ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment(CGF, ReturnValue,
136 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FnInfo);
137 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
144 CGM
748 shouldEmitVTableAtEndOfTranslationUnit(CodeGenModule &CGM, const CXXRecordDecl *RD) argument
[all...]
H A DCGAtomic.cpp91 return CGF.CGM.getSize(size);
129 CGF.CGM.getTypes().arrangeFreeFunctionCall(resultType, args,
131 llvm::FunctionType *fnTy = CGF.CGM.getTypes().GetFunctionType(fnInfo);
132 llvm::Constant *fn = CGF.CGM.CreateRuntimeFunction(fnTy, fnName);
137 static bool isFullSizeType(CodeGenModule &CGM, llvm::Type *type, argument
139 return (CGM.getDataLayout().getTypeStoreSize(type) * 8 == expectedSize);
154 return !isFullSizeType(CGF.CGM, type, AtomicSizeInBits);
156 return !isFullSizeType(CGF.CGM, type->getStructElementType(0),
550 Val1Scalar = Builder.CreateMul(Val1Scalar, CGM.getSize(PointeeIncAmt));
727 CGM
[all...]
H A DCodeGenPGO.cpp45 PrefixedFuncName.reset(new std::string(CGM.getCodeGenOpts().MainFileName));
52 static llvm::Function *getRegisterFunc(CodeGenModule &CGM) { argument
53 return CGM.getModule().getFunction("__llvm_profile_register_functions");
56 static llvm::BasicBlock *getOrInsertRegisterBB(CodeGenModule &CGM) { argument
58 if (CGM.getTarget().getTriple().isOSDarwin())
62 if (llvm::Function *RegisterF = getRegisterFunc(CGM))
66 auto *VoidTy = llvm::Type::getVoidTy(CGM.getLLVMContext());
71 &CGM.getModule());
73 if (CGM.getCodeGenOpts().DisableRedZone)
77 auto *BB = llvm::BasicBlock::Create(CGM
83 getOrInsertRuntimeRegister(CodeGenModule &CGM) argument
91 isMachO(const CodeGenModule &CGM) argument
95 getCountersSection(const CodeGenModule &CGM) argument
99 getNameSection(const CodeGenModule &CGM) argument
103 getDataSection(const CodeGenModule &CGM) argument
174 emitInitialization(CodeGenModule &CGM) argument
781 emitRuntimeHook(CodeGenModule &CGM) argument
[all...]
H A DCGBlocks.cpp46 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM,
51 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, argument
53 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo);
57 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, argument
59 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo);
76 static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM, argument
78 ASTContext &C = CGM.getContext();
80 llvm::Type *ulong = CGM.getTypes().ConvertType(C.UnsignedLongTy);
81 llvm::Type *i8p = CGM.getTypes().ConvertType(C.VoidPtrTy);
98 elements.push_back(buildCopyHelper(CGM, blockInf
266 tryCaptureAsConstant(CodeGenModule &CGM, CodeGenFunction *CGF, const VarDecl *var) argument
297 initializeForBlockHeader(CodeGenModule &CGM, CGBlockInfo &info, SmallVectorImpl<llvm::Type*> &elementTypes) argument
331 computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, CGBlockInfo &info) argument
1039 buildGlobalBlock(CodeGenModule &CGM, const CGBlockInfo &blockInfo, llvm::Constant *blockFn) argument
1799 buildByrefCopyHelper(CodeGenModule &CGM, llvm::StructType &byrefType, unsigned byrefValueIndex, CodeGenModule::ByrefHelpers &info) argument
1860 buildByrefDisposeHelper(CodeGenModule &CGM, llvm::StructType &byrefType, unsigned byrefValueIndex, CodeGenModule::ByrefHelpers &info) argument
1870 buildByrefHelpers(CodeGenModule &CGM, llvm::StructType &byrefTy, unsigned byrefValueIndex, T &byrefInfo) argument
2235 configureBlocksRuntimeObject(CodeGenModule &CGM, llvm::Constant *C) argument
[all...]
H A DCGDecl.cpp129 CGM.getLLVMLinkageVarDefinition(&D, /*isConstant=*/false);
143 return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D);
151 CodeGenModule &CGM = CGF.CGM; local
154 return CGM.getMangledName(&D).str();
162 ContextName = CGM.getBlockMangledName(GlobalDecl(), BD);
166 ContextName = CGM.getMangledName(FD);
185 Name = CGM.getMangledName(&D);
189 llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty);
191 CGM
[all...]
H A DCGException.cpp26 static llvm::Constant *getAllocateExceptionFn(CodeGenModule &CGM) { argument
30 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*IsVarArgs=*/false);
32 return CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception");
35 static llvm::Constant *getFreeExceptionFn(CodeGenModule &CGM) { argument
39 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false);
41 return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception");
44 static llvm::Constant *getThrowFn(CodeGenModule &CGM) { argument
48 llvm::Type *Args[3] = { CGM
55 getReThrowFn(CodeGenModule &CGM) argument
64 getGetExceptionPtrFn(CodeGenModule &CGM) argument
73 getBeginCatchFn(CodeGenModule &CGM) argument
82 getEndCatchFn(CodeGenModule &CGM) argument
91 getUnexpectedFn(CodeGenModule &CGM) argument
100 getTerminateFn(CodeGenModule &CGM) argument
119 getCatchallRethrowFn(CodeGenModule &CGM, StringRef Name) argument
234 getPersonalityFn(CodeGenModule &CGM, const EHPersonality &Personality) argument
242 getOpaquePersonalityFn(CodeGenModule &CGM, const EHPersonality &Personality) argument
1477 useClangCallTerminate(CodeGenModule &CGM) argument
1486 getClangCallTerminateFn(CodeGenModule &CGM) argument
[all...]
H A DCGExprConstant.cpp37 CodeGenModule &CGM; member in class:__anon17836::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) argument
52 : CGM(CGM), CGF(CGF), Packed(false),
78 CGM.getDataLayout().getABITypeAlignment(C->getType()));
83 CGM.getDataLayout().getTypeAllocSize(C->getType()));
90 const ASTContext &Context = CGM.getContext();
143 const ASTContext &Context = CGM
527 BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, InitListExpr *ILE) argument
538 BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, const APValue &Val, QualType ValTy) argument
562 CodeGenModule &CGM; member in class:__anon17836::ConstExprEmitter
1253 FillInNullDataMemberPointers(CodeGenModule &CGM, QualType T, SmallVectorImpl<llvm::Constant *> &Elements, uint64_t StartOffset) argument
1333 EmitNullConstant(CodeGenModule &CGM, const CXXRecordDecl *record, bool asCompleteObject) argument
1408 EmitNullConstantForBase(CodeGenModule &CGM, llvm::Type *baseType, const CXXRecordDecl *base) argument
[all...]
H A DCGStmt.cpp1193 if (!CGM.getCodeGenOpts().ProfileInstrGenerate &&
1194 CGM.getCodeGenOpts().OptimizationLevel > 0 &&
1241 if (CGM.getCodeGenOpts().ProfileInstrGenerate) {
1651 const TargetInfo &Target, CodeGenModule &CGM,
1672 CGM.ErrorUnsupported(&Stmt, "__asm__");
1691 uint64_t Size = CGM.getDataLayout().getTypeSizeInBits(Ty);
1737 const SourceManager &SM = CGF.CGM.getContext().getSourceManager();
1738 const LangOptions &LangOpts = CGF.CGM.getLangOpts();
1810 getTarget(), CGM, S);
1851 CGM
1650 AddVariableConstraints(const std::string &Constraint, const Expr &AsmExpr, const TargetInfo &Target, CodeGenModule &CGM, const AsmStmt &Stmt) argument
[all...]
H A DCodeGenFunction.cpp37 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()),
40 SanOpts(&CGM.getLangOpts().Sanitize), AutoreleaseResult(false), BlockInfo(nullptr),
44 EHSelectorSlot(nullptr), DebugInfo(CGM.getModuleDebugInfo()),
55 CGM.getCXXABI().getMangleContext().startNewFunction();
58 if (CGM.getLangOpts().FastMath)
60 if (CGM.getLangOpts().FiniteMathOnly) {
77 CGM.getOpenMPRuntime().FunctionFinished(*this);
83 return CGM.getTypes().ConvertTypeForMem(T);
87 return CGM.getTypes().ConvertType(T);
281 if (CGM
338 GenOpenCLArgMetadata(const FunctionDecl *FD, llvm::Function *Fn, CodeGenModule &CGM,llvm::LLVMContext &Context, SmallVector <llvm::Value*, 5> &kernelMDArgs, CGBuilderTy& Builder, ASTContext &ASTCtx) argument
[all...]
/external/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h77 CodeGen::CodeGenModule *CGM; member in class:clang::CodeGen::CodeGenABITypes

Completed in 1761 milliseconds

12