| /freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | ThinLTOCodeGenerator.cpp | 180 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument 187 StripDebugInfo(TheModule); in verifyLoadedModule() 236 verifyLoadedModule(TheModule); in crossImportIntoModule() 292 MPM.run(TheModule, MAM); in optimizeModule() 347 PM.run(TheModule); in codegenModule() 479 updatePublicTypeTestCalls(TheModule, in ProcessThinLTOModule() 495 ProfileSummaryInfo PSI(TheModule); in ProcessThinLTOModule() 503 return codegenModule(TheModule, TM); in ProcessThinLTOModule() 719 thinLTOFinalizeInModule(TheModule, in promote() 912 thinLTOFinalizeInModule(TheModule, in internalize() [all …]
|
| H A D | UpdateCompilerUsed.cpp | 33 void findInModule(Module &TheModule) { in findInModule() argument 34 initializeLibCalls(TheModule); in findInModule() 35 for (Function &F : TheModule) in findInModule() 37 for (GlobalVariable &GV : TheModule.globals()) in findInModule() 39 for (GlobalAlias &GA : TheModule.aliases()) in findInModule() 58 void initializeLibCalls(const Module &TheModule) { in initializeLibCalls() argument 73 for (const Function &F : TheModule) { in initializeLibCalls() 122 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed() argument 126 .findInModule(TheModule); in updateCompilerUsed() 131 appendToCompilerUsed(TheModule, UsedValues); in updateCompilerUsed()
|
| H A D | LTOCodeGenerator.cpp | 447 Module &TheModule, in preserveDiscardableGVs() argument 463 for (auto &GV : TheModule) in preserveDiscardableGVs() 465 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs() 467 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs() 473 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 84 Module *TheModule = nullptr; member in __anone5fa09f30111::WinEHStatePass 122 TheModule = &M; in doInitialization() 127 assert(TheModule == &M); in doFinalization() 128 TheModule = nullptr; in doFinalization() 176 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction() 212 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType() 232 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType() 254 LLVMContext &Context = TheModule->getContext(); in getSEHRegistrationType() 297 CxxLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord() 338 TheModule, Intrinsic::frameaddress, in emitExceptionRegistrationRecord() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 26 Module &TheModule; member in __anona9619d150111::ModuleHasher 30 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher() 39 for (auto &F : TheModule) { in get() 45 for (auto &GV : TheModule.globals()) { in get()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ARCRuntimeEntryPoints.h | 57 TheModule = M; in init() 71 assert(TheModule != nullptr && "Not initialized."); in get() 106 Module *TheModule = nullptr; 142 return Decl = Intrinsic::getDeclaration(TheModule, IntID); in getIntrinsicEntryPoint()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | Internalize.h | 68 bool internalizeModule(Module &TheModule); 75 internalizeModule(Module &TheModule, in internalizeModule() argument 78 .internalizeModule(TheModule); in internalizeModule()
|
| H A D | FunctionImport.h | 227 void thinLTOFinalizeInModule(Module &TheModule, 233 void thinLTOInternalizeModule(Module &TheModule,
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjCGNU.cpp | 97 llvm::Module &TheModule; member in __anonaf5ecb460111::CGObjCGNU 283 llvm::DataLayout td(&TheModule); in PushPropertyListHeader() 1194 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList() 1319 auto *GV = TheModule.getGlobalVariable(Name); in GenerateEmptyProtocol() 1551 &TheModule); in ModuleInitFunction() 1833 llvm::DataLayout td(&TheModule); in GenerateClass() 2234 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef() 3018 llvm::DataLayout td(&TheModule); in GenerateMethodList() 3160 llvm::DataLayout td(&TheModule); in GenerateClassStructure() 4004 &TheModule); in ModuleInitFunction() [all …]
|
| H A D | CodeGenAction.cpp | 938 TheModule.reset(); in ~CodeGenAction() 981 TheModule = BEConsumer->takeModule(); in EndSourceFileAction() 985 return std::move(TheModule); in takeModule() 1173 TheModule = loadModule(*MainFile); in ExecuteAction() 1174 if (!TheModule) in ExecuteAction() 1178 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction() 1181 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction() 1184 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction() 1185 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction() 1187 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction() [all …]
|
| H A D | BackendUtil.cpp | 129 llvm::Module *TheModule; member in __anone6c0d8fa0111::EmitAssemblyHelper 205 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), VFS(std::move(VFS)), in EmitAssemblyHelper() 207 TargetTriple(TheModule->getTargetTriple()) {} in EmitAssemblyHelper() 537 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine() 840 TheModule->getContext(), in RunOptimizationPipeline() 1043 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 1044 TheModule->addModuleFlag(llvm::Module::Error, "EnableSplitLTOUnit", in RunOptimizationPipeline() 1065 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 1101 MPM.run(*TheModule, MAM); in RunOptimizationPipeline() 1144 CodeGenPasses.run(*TheModule); in RunCodegenPipeline() [all …]
|
| H A D | CodeGenTypes.h | 58 llvm::Module &TheModule; variable 105 return TheModule.getDataLayout(); in getDataLayout() 112 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
|
| H A D | CGCUDANV.cpp | 47 llvm::Module &TheModule; member in __anona4eb8b5f0111::CGNVCUDARuntime 110 TheModule, Value->getType(), /*isConstant=*/true, in makeConstantArray() 128 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction() 227 TheModule(CGM.getModule()), in CGNVCUDARuntime() 527 addUnderscoredPrefixToName("_register_globals"), &TheModule); in makeRegisterGlobalsFn() 731 addUnderscoredPrefixToName("_module_ctor"), &TheModule); in makeModuleCtorFunction() 828 TheModule, PtrTy, /*isConstant=*/false, Linkage, in makeModuleCtorFunction() 871 TheModule, PtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction() 964 addUnderscoredPrefixToName("_module_dtor"), &TheModule); in makeModuleDtorFunction() 1224 TheModule, F->getType(), /*isConstant=*/true, F->getLinkage(), in getKernelHandle()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 587 maybeVerifyModule(TheModule); in writeModuleToFile() 681 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local 718 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local 745 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local 747 ThinGenerator.promote(*TheModule, *Index, *Input); in promote() 753 writeModuleToFile(*TheModule, OutputName); in promote() 778 auto TheModule = loadModuleFromInput(*Input, Ctx); in import() local 786 writeModuleToFile(*TheModule, OutputName); in import() 819 writeModuleToFile(*TheModule, OutputName); in internalize() 838 ThinGenerator.optimize(*TheModule); in optimize() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | DeviceOffload.cpp | 76 PTU.TheModule->getTargetTriple(), Error); in GeneratePTX() 82 PTU.TheModule->getTargetTriple(), getCI()->getTargetOpts().CPU, "", TO, in GeneratePTX() 84 PTU.TheModule->setDataLayout(TargetMachine->createDataLayout()); in GeneratePTX() 97 if (!PM.run(*PTU.TheModule)) in GeneratePTX()
|
| H A D | IncrementalParser.cpp | 232 PTU->TheModule = GenModule(); in IncrementalParser() 233 assert(PTU->TheModule && "Failed to create initial PTU"); in IncrementalParser() 360 PTU->TheModule = std::move(M); in Parse()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineModuleInfo.cpp | 66 TheModule = MMI.TheModule; in MachineModuleInfo() 215 MMI.TheModule = &M; in doInitialization() 243 MMI.TheModule = &M; in run()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineModuleInfo.h | 87 const Module *TheModule = nullptr; variable 146 const Module *getModule() const { return TheModule; } in getModule()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | UpdateCompilerUsed.h | 27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Interpreter/ |
| H A D | PartialTranslationUnit.h | 33 std::unique_ptr<llvm::Module> TheModule; member
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | MetadataLoader.cpp | 409 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl 500 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables() 514 for (auto &GV : TheModule.globals()) { in upgradeCUVariables() 551 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) { in upgradeCULocals() 717 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument 720 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()), in MetadataLoaderImpl() 722 TheModule(TheModule), Callbacks(std::move(Callbacks)), in MetadataLoaderImpl() 893 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() 1308 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata() 2422 unsigned NewKind = TheModule.getMDKindID(Name.str()); in parseMetadataKindRecord() [all …]
|
| H A D | MetadataLoader.h | 55 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionImport.cpp | 1400 void llvm::thinLTOFinalizeInModule(Module &TheModule, in thinLTOFinalizeInModule() argument 1489 for (auto &GV : TheModule) in thinLTOFinalizeInModule() 1491 for (auto &GV : TheModule.globals()) in thinLTOFinalizeInModule() 1493 for (auto &GV : TheModule.aliases()) in thinLTOFinalizeInModule() 1501 for (auto &GO : TheModule.global_objects()) { in thinLTOFinalizeInModule() 1514 for (auto &GA : TheModule.aliases()) { in thinLTOFinalizeInModule() 1528 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument 1553 TheModule.getSourceFileName()); in thinLTOInternalizeModule() 1571 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/APINotes/ |
| H A D | APINotesYAMLCompiler.cpp | 663 YAMLConverter(const Module &TheModule, const FileEntry *SourceFile, in YAMLConverter() argument 667 : M(TheModule), Writer(TheModule.Name, SourceFile), OS(OS), in YAMLConverter() 1104 Module TheModule; in compileAPINotes() local 1109 if (parseAPINotes(YAMLInput, TheModule, DiagHandler, DiagHandlerCtxt)) in compileAPINotes() 1112 return compile(TheModule, SourceFile, OS, DiagHandler, DiagHandlerCtxt); in compileAPINotes()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | CodeGenAction.h | 47 std::unique_ptr<llvm::Module> TheModule; variable
|