Home
last modified time | relevance | path

Searched refs:getModule (Results 1 – 25 of 57) sorted by relevance

123

/minix3/external/bsd/llvm/dist/llvm/include/llvm/LTO/
H A DLTOModule.h110 const Module &getModule() const { in getModule() function
111 return const_cast<LTOModule*>(this)->getModule(); in getModule()
113 Module &getModule() { in getModule() function
114 return IRFile->getModule(); in getModule()
119 return getModule().getTargetTriple(); in getTargetTriple()
124 getModule().setTargetTriple(Triple); in setTargetTriple()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Object/
H A DIRObjectFile.h46 const Module &getModule() const { in getModule() function
47 return const_cast<IRObjectFile*>(this)->getModule(); in getModule()
49 Module &getModule() { in getModule() function
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DTrace.cpp28 Module *Trace::getModule() const { in getModule() function in Trace
39 (*i)->printAsOperand(O, true, getModule()); in print()
/minix3/external/bsd/llvm/dist/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp131 assert(&mod->getModule().getContext() == &Context && in addModule()
134 bool ret = IRLinker.linkInModule(&mod->getModule()); in addModule()
190 WriteBitcodeToFile(IRLinker.getModule(), Out.os()); in writeMergedModules()
279 std::string TripleStr = IRLinker.getModule()->getTargetTriple(); in determineTarget()
401 Module *mergedModule = IRLinker.getModule(); in applyScopeRestrictions()
469 Module *mergedModule = IRLinker.getModule(); in generateObjectFile()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DSanitizerMetadata.cpp53 CGM.getModule().getOrInsertNamedMetadata("llvm.asan.globals"); in reportGlobalToASan()
75 I->setMetadata(CGM.getModule().getMDKindID("nosanitize"), in disableSanitizerForInstruction()
H A DCodeGenModule.cpp367 getModule().addModuleFlag(llvm::Module::Warning, "Dwarf Version", in Release()
373 getModule().addModuleFlag(llvm::Module::Warning, "Debug Info Version", in Release()
386 getModule().addModuleFlag(llvm::Module::Error, "wchar_size", WCharWidth); in Release()
390 getModule().addModuleFlag(llvm::Module::Error, "min_enum_size", EnumWidth); in Release()
402 getModule().setPICLevel(PL); in Release()
601 return getModule().getNamedValue(Name); in GetGlobalValue()
948 CGM.getModule(), ATy, false, llvm::GlobalValue::AppendingLinkage, in emitUsed()
1078 getModule().addModuleFlag(llvm::Module::AppendUnique, "Linker Options", in EmitModuleLinkOptions()
1132 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, in EmitGlobalAnnotations()
1146 new llvm::GlobalVariable(getModule(), s->getType(), true, in EmitAnnotationString()
[all …]
H A DCGObjCMac.cpp2634 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, in GetOrEmitProtocol()
2655 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, in GetOrEmitProtocolRef()
3084 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in GenerateClass()
3150 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClass()
3156 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClass()
3178 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClassRef()
3180 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClassRef()
3191 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitSuperClassRef()
3194 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitSuperClassRef()
3356 &CGM.getModule()); in GenerateMethod()
[all …]
H A DItaniumCXXABI.cpp1707 guard = new llvm::GlobalVariable(CGM.getModule(), guardTy, in EmitGuardedInit()
1718 llvm::Comdat *C = CGM.getModule().getOrInsertComdat(var->getName()); in EmitGuardedInit()
1928 if (llvm::Value *V = CGM.getModule().getNamedValue(WrapperName)) in getOrCreateThreadLocalWrapper()
1938 WrapperName.str(), &CGM.getModule()); in getOrCreateThreadLocalWrapper()
1959 CGM.getModule(), CGM.Int8Ty, /*isConstant=*/false, in EmitThreadLocalInitFuncs()
2002 &CGM.getModule()); in EmitThreadLocalInitFuncs()
2009 llvm::LLVMContext &Context = CGM.getModule().getContext(); in EmitThreadLocalInitFuncs()
2126 : CGM(ABI.CGM), VMContext(CGM.getModule().getContext()), CXXABI(ABI) {} in ItaniumRTTIBuilder()
2204 llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name); in GetAddrOfExternalRTTIDescriptor()
2208 GV = new llvm::GlobalVariable(CGM.getModule(), CGM.Int8PtrTy, in GetAddrOfExternalRTTIDescriptor()
[all …]
H A DMicrosoftCXXABI.cpp400 if (llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name)) in getImageBase()
403 return new llvm::GlobalVariable(CGM.getModule(), CGM.Int8Ty, in getImageBase()
1358 VTable = CGM.getModule().getNamedGlobal(VFTableName); in getAddrOfVTable()
1363 CGM.getModule(), VTableType, /*isConstant=*/true, VTableLinkage, in getAddrOfVTable()
1385 VFTableName.str(), VTableGEP, &CGM.getModule()); in getAddrOfVTable()
1412 CGM.getModule().getOrInsertComdat(VFTable->getName()); in getAddrOfVTable()
1519 if (llvm::GlobalValue *GV = CGM.getModule().getNamedValue(ThunkName)) in EmitVirtualMemPtrThunk()
1527 ThunkName.str(), &CGM.getModule()); in EmitVirtualMemPtrThunk()
1595 assert(!CGM.getModule().getNamedGlobal(Name) && in getAddrOfVBTable()
1822 CGM.getModule(), InitFunc->getType(), /*IsConstant=*/true, in EmitThreadLocalInitFuncs()
[all …]
H A DCGBlocks.cpp129 new llvm::GlobalVariable(CGM.getModule(), init->getType(), true, in buildBlockDescriptor()
1088 new llvm::GlobalVariable(CGM.getModule(), in buildGlobalBlock()
1154 fnLLVMType, llvm::GlobalValue::InternalLinkage, name, &CGM.getModule()); in GenerateBlockFunction()
1319 "__copy_helper_block_", &CGM.getModule()); in GenerateCopyHelperFunction()
1492 "__destroy_helper_block_", &CGM.getModule()); in GenerateDestroyHelperFunction()
1783 "__Block_byref_object_copy_", &CGF.CGM.getModule()); in generateByrefCopyHelper()
1854 &CGF.CGM.getModule()); in generateByrefDisposeHelper()
H A DCGCXX.cpp186 Linkage, "", Aliasee, &getModule()); in TryEmitDefinitionAsAlias()
H A DCGDecl.cpp201 new llvm::GlobalVariable(getModule(), LTy, in getOrCreateStaticVarDecl()
299 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), in AddInitializerToStaticVarDecl()
1167 new llvm::GlobalVariable(CGM.getModule(), constant->getType(), true, in EmitAutoVarInit()
1606 LifetimeStartFn = llvm::Intrinsic::getDeclaration(&getModule(), in getLLVMLifetimeStartFn()
1614 LifetimeEndFn = llvm::Intrinsic::getDeclaration(&getModule(), in getLLVMLifetimeEndFn()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DCallGraph.h116 Module &getModule() const { return M; } in getModule() function
332 Module &getModule() const { return G->getModule(); } in getModule() function
H A DTrace.h58 Module *getModule () const;
/minix3/external/bsd/llvm/dist/clang/include/clang/Lex/
H A DModuleMap.h95 Module *getModule() const { return Storage.getPointer(); } in getModule() function
102 return getModule()->isAvailable(); in isAvailable()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Linker/
H A DLinker.h66 Module *getModule() const { return Composite; } in getModule() function
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp103 LLVMContext &LLVMCtx = MMI->getModule()->getContext(); in EmitInlineAsm()
254 MMI->getModule()->getContext().emitError(LocCookie, Msg.str()); in EmitMSInlineAsmStr()
426 MMI->getModule()->getContext().emitError(LocCookie, Msg.str()); in EmitGCCInlineAsmStr()
H A DWinCodeViewLineTables.cpp110 if (!MMI->getModule()->getNamedMetadata("llvm.dbg.cu") || in WinCodeViewLineTables()
/minix3/external/bsd/llvm/dist/clang/lib/Lex/
H A DModuleMap.cpp262 if (Header.getModule() == RequestingModule) in diagnoseHeaderInclusion()
267 Header.getModule())) { in diagnoseHeaderInclusion()
268 Private = Header.getModule(); in diagnoseHeaderInclusion()
275 !directlyUses(RequestingModule, Header.getModule())) { in diagnoseHeaderInclusion()
276 NotUsed = Header.getModule(); in diagnoseHeaderInclusion()
337 if (!I->getModule()->isAvailable()) in findModuleForHeader()
342 if (I->getModule() == RequestingModule) in findModuleForHeader()
348 !directlyUses(RequestingModule, I->getModule())) in findModuleForHeader()
361 Module *Result = H.getModule(); in findModuleForHeader()
445 I->getModule()->isSubModuleOf(RequestingModule))) in isHeaderUnavailableInModule()
[all …]
H A DPPDirectives.cpp600 return ModMap.findModuleForHeader(EntryOfIncl).getModule(); in getModuleForLocation()
1630 SuggestedModule.getModule()->getTopLevelModuleName() != in HandleIncludeDirective()
1636 for (Module *Mod = SuggestedModule.getModule(); Mod; Mod = Mod->Parent) in HandleIncludeDirective()
1694 assert((Imported == nullptr || Imported == SuggestedModule.getModule()) && in HandleIncludeDirective()
1788 CurSubmodule = BuildingModule.getModule(); in HandleIncludeDirective()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DDiagnosticInfo.cpp120 << ") in " << getModule(); in print()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/
H A DCallGraphSCCPass.cpp495 Changed |= ((FPPassManager*)PM)->doInitialization(CG.getModule()); in doInitialization()
510 Changed |= ((FPPassManager*)PM)->doFinalization(CG.getModule()); in doFinalization()
/minix3/external/bsd/llvm/dist/llvm/tools/gold/
H A Dgold-plugin.cpp583 Module &M = Obj.getModule(); in getModuleForFile()
838 saveBCFile(path, *L.getModule()); in allSymbolsReadHook()
843 codegen(*L.getModule()); in allSymbolsReadHook()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineModuleInfo.h204 const Module *getModule() const { return TheModule; } in getModule() function
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DDiagnosticInfo.h196 const Module &getModule() const { return M; } in getModule() function

123