| /freebsd-12.1/contrib/llvm/lib/LTO/ |
| H A D | ThinLTOCodeGenerator.cpp | 174 StripDebugInfo(TheModule); in verifyLoadedModule() 220 verifyLoadedModule(TheModule); in crossImportIntoModule() 248 PM.run(TheModule); in optimizeModule() 284 PM.run(TheModule); in codegenModule() 397 promoteModule(TheModule, Index); in ProcessThinLTOModule() 432 ProfileSummaryInfo PSI(TheModule); in ProcessThinLTOModule() 439 return codegenModule(TheModule, TM); in ProcessThinLTOModule() 629 promoteModule(TheModule, Index); in promote() 763 thinLTOInternalizeModule(TheModule, in internalize() 839 auto TheModule = in run() local [all …]
|
| H A D | UpdateCompilerUsed.cpp | 34 void findInModule(Module &TheModule) { in findInModule() argument 35 initializeLibCalls(TheModule); in findInModule() 36 for (Function &F : TheModule) in findInModule() 38 for (GlobalVariable &GV : TheModule.globals()) in findInModule() 40 for (GlobalAlias &GA : TheModule.aliases()) in findInModule() 59 void initializeLibCalls(const Module &TheModule) { in initializeLibCalls() argument 74 for (const Function &F : TheModule) { in initializeLibCalls() 123 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed() argument 127 .findInModule(TheModule); in updateCompilerUsed() 132 appendToCompilerUsed(TheModule, UsedValues); in updateCompilerUsed()
|
| H A D | LTOCodeGenerator.cpp | 368 Module &TheModule, in preserveDiscardableGVs() argument 384 for (auto &GV : TheModule) in preserveDiscardableGVs() 386 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs() 388 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs() 394 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 86 Module *TheModule = nullptr; member in __anon7bd348620111::WinEHStatePass 124 TheModule = &M; in doInitialization() 129 assert(TheModule == &M); in doFinalization() 130 TheModule = nullptr; in doFinalization() 178 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction() 219 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType() 238 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType() 260 LLVMContext &Context = TheModule->getContext(); in getSEHRegistrationType() 304 CxxLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord() 356 SehLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 475 maybeVerifyModule(TheModule); in writeModuleToFile() 566 auto TheModule = loadModule(Filename, Ctx); in distributedIndexes() local 601 auto TheModule = loadModule(Filename, Ctx); in emitImports() local 625 auto TheModule = loadModule(Filename, Ctx); in promote() local 627 ThinGenerator.promote(*TheModule, *Index); in promote() 633 writeModuleToFile(*TheModule, OutputName); in promote() 656 auto TheModule = loadModule(Filename, Ctx); in import() local 664 writeModuleToFile(*TheModule, OutputName); in import() 695 writeModuleToFile(*TheModule, OutputName); in internalize() 712 ThinGenerator.optimize(*TheModule); in optimize() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 28 Module &TheModule; member in __anonad8dda840111::ModuleHasher 32 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher() 41 for (auto &F : TheModule) { in get() 47 for (auto &GV : TheModule.globals()) { in get()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/ |
| H A D | ARCRuntimeEntryPoints.h | 61 TheModule = M; in init() 74 assert(TheModule != nullptr && "Not initialized."); in get() 106 Module *TheModule = nullptr; 139 return Decl = Intrinsic::getDeclaration(TheModule, IntID); in getIntrinsicEntryPoint()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGObjCGNU.cpp | 113 llvm::Module &TheModule; member in __anon0fc3211f0111::CGObjCGNU 288 llvm::DataLayout td(&TheModule); in PushPropertyListHeader() 1154 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList() 1480 &TheModule); in ModuleInitFunction() 1722 llvm::DataLayout td(&TheModule); in GenerateClass() 2005 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef() 2688 llvm::DataLayout td(&TheModule); in GenerateMethodList() 2832 llvm::DataLayout td(&TheModule); in GenerateClassStructure() 3697 &TheModule); in ModuleInitFunction() 3716 &TheModule); in ModuleInitFunction() [all …]
|
| H A D | BackendUtil.cpp | 82 Module *TheModule; member in __anonf19209130111::EmitAssemblyHelper 529 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses() 726 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine() 831 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly() 869 for (Function &F : *TheModule) in EmitAssembly() 877 PerModulePasses.run(*TheModule); in EmitAssembly() 882 CodeGenPasses.run(*TheModule); in EmitAssembly() 938 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssemblyWithNewPassManager() 1076 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssemblyWithNewPassManager() 1114 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager() [all …]
|
| H A D | CGCUDANV.cpp | 43 llvm::Module &TheModule; member in __anon4ac00a180111::CGNVCUDARuntime 96 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction() 139 TheModule(CGM.getModule()), in CGNVCUDARuntime() 251 addUnderscoredPrefixToName("_register_globals"), &TheModule); in makeRegisterGlobalsFn() 371 addUnderscoredPrefixToName("_module_ctor"), &TheModule); in makeModuleCtorFunction() 467 TheModule, VoidPtrPtrTy, /*isConstant=*/false, in makeModuleCtorFunction() 510 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction() 595 addUnderscoredPrefixToName("_module_dtor"), &TheModule); in makeModuleDtorFunction()
|
| H A D | CodeGenAction.cpp | 806 TheModule.reset(); in ~CodeGenAction() 819 TheModule = BEConsumer->takeModule(); in EndSourceFileAction() 823 return std::move(TheModule); in takeModule() 1021 TheModule = loadModule(*MainFile); in ExecuteAction() 1022 if (!TheModule) in ExecuteAction() 1026 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction() 1030 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction() 1033 EmbedBitcode(TheModule.get(), CI.getCodeGenOpts(), in ExecuteAction() 1036 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction() 1042 CI.getTarget().getDataLayout(), TheModule.get(), BA, in ExecuteAction()
|
| H A D | CodeGenTypes.h | 123 llvm::Module &TheModule; variable 171 return TheModule.getDataLayout(); in getDataLayout() 177 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/IPO/ |
| H A D | Internalize.h | 64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr); 71 internalizeModule(Module &TheModule, 75 .internalizeModule(TheModule, CG);
|
| H A D | FunctionImport.h | 214 void thinLTOResolvePrevailingInModule(Module &TheModule, 219 void thinLTOInternalizeModule(Module &TheModule,
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | MachineModuleInfo.h | 85 const Module *TheModule; variable 158 const Module *getModule() const { return TheModule; } in getModule()
|
| /freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/ |
| H A D | MetadataLoader.cpp | 416 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl 489 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables() 503 for (auto &GV : TheModule.globals()) { in upgradeCUVariables() 625 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument 629 : MetadataList(TheModule.getContext()), ValueList(ValueList), in MetadataLoaderImpl() 630 Stream(Stream), Context(TheModule.getContext()), TheModule(TheModule), in MetadataLoaderImpl() 764 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() 1044 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata() 1953 unsigned NewKind = TheModule.getMDKindID(Name.str()); in parseMetadataKindRecord() 2005 MetadataLoader::MetadataLoader(BitstreamCursor &Stream, Module &TheModule, in MetadataLoader() argument [all …]
|
| H A D | MetadataLoader.h | 43 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
|
| H A D | BitcodeReader.cpp | 443 Module *TheModule = nullptr; member in __anond7564fed0411::BitcodeReader 1986 Triple TT(TheModule->getTargetTriple()); in parseValueSymbolTable() 2776 for (Function &F : *TheModule) { in globalCleanup() 3311 TheModule->setTargetTriple(S); in parseModule() 3318 TheModule->setDataLayout(S); in parseModule() 3325 TheModule->setModuleInlineAsm(S); in parseModule() 3391 TheModule = M; in parseBitcodeInto() 4828 for (Function &F : *TheModule) { in materializeModule() 4867 UpgradeDebugInfo(*TheModule); in materializeModule() 4869 UpgradeModuleFlags(*TheModule); in materializeModule() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/LTO/legacy/ |
| H A D | UpdateCompilerUsed.h | 28 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
|
| H A D | LTOCodeGenerator.h | 205 Module &TheModule,
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | FunctionImport.cpp | 937 Module &TheModule, const GVSummaryMapTy &DefinedGlobals) { in thinLTOResolvePrevailingInModule() argument 997 for (auto &GV : TheModule) in thinLTOResolvePrevailingInModule() 999 for (auto &GV : TheModule.globals()) in thinLTOResolvePrevailingInModule() 1001 for (auto &GV : TheModule.aliases()) in thinLTOResolvePrevailingInModule() 1006 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument 1023 TheModule.getSourceFileName()); in thinLTOInternalizeModule() 1041 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 55 Module &TheModule; member
|
| H A D | Coroutines.cpp | 96 : TheModule(M), Context(M.getContext()), in LowererBase() 111 auto *Fn = Intrinsic::getDeclaration(&TheModule, Intrinsic::coro_subfn_addr); in makeSubFnCall()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | AsmWriter.cpp | 673 const Module* TheModule; member in llvm::SlotTracker 900 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker() 907 if (TheModule) { in initializeIfNeeded() 929 for (const GlobalVariable &Var : TheModule->globals()) { in processModule() 938 for (const GlobalAlias &A : TheModule->aliases()) { in processModule() 943 for (const GlobalIFunc &I : TheModule->ifuncs()) { in processModule() 949 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule() 954 for (const Function &F : *TheModule) { in processModule() 2330 const Module *TheModule = nullptr; member in __anon1811b1fd0611::AssemblyWriter 2431 if (!TheModule) in AssemblyWriter() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/ |
| H A D | CodeGenAction.h | 47 std::unique_ptr<llvm::Module> TheModule; variable
|