| /llvm-project-15.0.7/llvm/lib/LTO/ |
| H A D | ThinLTOCodeGenerator.cpp | 178 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument 185 StripDebugInfo(TheModule); in verifyLoadedModule() 234 verifyLoadedModule(TheModule); in crossImportIntoModule() 290 MPM.run(TheModule, MAM); in optimizeModule() 345 PM.run(TheModule); in codegenModule() 457 updatePublicTypeTestCalls(TheModule, in ProcessThinLTOModule() 508 ProfileSummaryInfo PSI(TheModule); in ProcessThinLTOModule() 516 return codegenModule(TheModule, TM); in ProcessThinLTOModule() 731 thinLTOFinalizeInModule(TheModule, in promote() 907 thinLTOFinalizeInModule(TheModule, in internalize() [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 | 364 Module &TheModule, in preserveDiscardableGVs() argument 380 for (auto &GV : TheModule) in preserveDiscardableGVs() 382 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs() 384 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs() 390 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
|
| /llvm-project-15.0.7/clang/unittests/Interpreter/ |
| H A D | IncrementalProcessingTest.cpp | 61 ASSERT_TRUE(PTUs[0]->TheModule); in TEST() 62 ASSERT_TRUE(PTUs[0]->TheModule->getFunction("funcForProg1")); in TEST() 65 ASSERT_TRUE(PTUs[1]->TheModule); in TEST() 66 ASSERT_TRUE(PTUs[1]->TheModule->getFunction("funcForProg2")); in TEST() 68 ASSERT_FALSE(PTUs[1]->TheModule->getFunction("funcForProg1")); in TEST() 71 const Function *GlobalInit1 = getGlobalInit(PTUs[0]->TheModule.get()); in TEST() 74 const Function *GlobalInit2 = getGlobalInit(PTUs[1]->TheModule.get()); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 84 Module *TheModule = nullptr; member in __anon2d75d06d0111::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() 231 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType() 253 LLVMContext &Context = TheModule->getContext(); in getSEHRegistrationType() 297 CxxLongjmpUnwind = TheModule->getOrInsertFunction( in emitExceptionRegistrationRecord() 339 TheModule, Intrinsic::frameaddress, in emitExceptionRegistrationRecord() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 28 Module &TheModule; member in __anonfe913d8f0111::ModuleHasher 32 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher() 41 for (auto &F : TheModule) { in get() 47 for (auto &GV : TheModule.globals()) { in get()
|
| /llvm-project-15.0.7/llvm/tools/llvm-jitlistener/ |
| H A D | llvm-jitlistener.cpp | 152 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context)); in InitEE() local 153 if (!TheModule) { in InitEE() 165 Triple Tuple(TheModule->getTargetTriple()); in InitEE() 171 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE() 176 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | Internalize.h | 72 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr); 79 internalizeModule(Module &TheModule, 83 .internalizeModule(TheModule, CG);
|
| H A D | FunctionImport.h | 231 void thinLTOFinalizeInModule(Module &TheModule, 237 void thinLTOInternalizeModule(Module &TheModule,
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGObjCGNU.cpp | 99 llvm::Module &TheModule; member in __anon128dbe400111::CGObjCGNU 283 llvm::DataLayout td(&TheModule); in PushPropertyListHeader() 1178 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList() 1540 &TheModule); in ModuleInitFunction() 1825 llvm::DataLayout td(&TheModule); in GenerateClass() 2126 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef() 2891 llvm::DataLayout td(&TheModule); in GenerateMethodList() 3033 llvm::DataLayout td(&TheModule); in GenerateClassStructure() 3899 &TheModule); in ModuleInitFunction() 3919 &TheModule); in ModuleInitFunction() [all …]
|
| H A D | CodeGenAction.cpp | 963 TheModule.reset(); in ~CodeGenAction() 976 TheModule = BEConsumer->takeModule(); in EndSourceFileAction() 980 return std::move(TheModule); in takeModule() 1164 TheModule = loadModule(*MainFile); in ExecuteAction() 1165 if (!TheModule) in ExecuteAction() 1169 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction() 1172 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction() 1175 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction() 1176 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction() 1178 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction() [all …]
|
| H A D | BackendUtil.cpp | 114 Module *TheModule; member in __anond17872740111::EmitAssemblyHelper 181 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper() 183 TargetTriple(TheModule->getTargetTriple()) {} in EmitAssemblyHelper() 542 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine() 944 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 945 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in RunOptimizationPipeline() 954 if (!TheModule->getModuleFlag("ThinLTO")) in RunOptimizationPipeline() 956 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 977 MPM.run(*TheModule, MAM); in RunOptimizationPipeline() 1013 CodeGenPasses.run(*TheModule); in RunCodegenPipeline() [all …]
|
| H A D | CodeGenTypes.h | 58 llvm::Module &TheModule; variable 110 return TheModule.getDataLayout(); in getDataLayout() 116 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
|
| /llvm-project-15.0.7/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 590 maybeVerifyModule(TheModule); in writeModuleToFile() 684 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local 721 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local 748 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local 750 ThinGenerator.promote(*TheModule, *Index, *Input); in promote() 756 writeModuleToFile(*TheModule, OutputName); in promote() 781 auto TheModule = loadModuleFromInput(*Input, Ctx); in import() local 789 writeModuleToFile(*TheModule, OutputName); in import() 822 writeModuleToFile(*TheModule, OutputName); in internalize() 841 ThinGenerator.optimize(*TheModule); in optimize() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantsTest.cpp | 522 if (!TheModule) { in foldFuncPtrAndConstToNull() 532 Module TheModule("TestModule", Context); in TEST() local 543 Module TheModule("TestModule", Context); in TEST() local 549 Module TheModule("TestModule", Context); in TEST() local 554 TheModule.setDataLayout(AlignmentString); in TEST() 562 Module TheModule("TestModule", Context); in TEST() local 566 TheModule.setDataLayout(AlignmentString); in TEST() 573 Module TheModule("TestModule", Context); in TEST() local 574 TheModule.setDataLayout("Fn8"); in TEST() 580 Module TheModule("TestModule", Context); in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter4/ |
| H A D | toy.cpp | 413 static std::unique_ptr<Module> TheModule; variable 428 if (auto *F = TheModule->getFunction(Name)) in getFunction() 502 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen() 555 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() 556 TheModule->setDataLayout(TheJIT->getDataLayout()); in InitializeModuleAndPassManager() 562 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager() 583 ThreadSafeModule(std::move(TheModule), std::move(TheContext)))); in HandleDefinition() 614 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A D | toy-jit.cpp | 624 static Module *TheModule; variable 660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen() 708 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen() 717 Function *CalleeF = TheModule->getFunction(Callee); in Codegen() 937 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen() 943 F = TheModule->getFunction(Name); in Codegen() 1152 TheModule = parseInputIR(InputIR); in main() 1154 TheModule = new Module("my cool jit", Context); in main() 1159 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main() 1165 FunctionPassManager OurFPM(TheModule); in main() [all …]
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter3/ |
| H A D | toy.cpp | 403 static std::unique_ptr<Module> TheModule; variable 448 Function *CalleeF = TheModule->getFunction(Callee); in codegen() 473 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen() 485 Function *TheFunction = TheModule->getFunction(Proto->getName()); in codegen() 524 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModule() 619 TheModule->print(errs(), nullptr); in main()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineModuleInfo.cpp | 69 TheModule = MMI.TheModule; in MachineModuleInfo() 223 MMI.TheModule = &M; in doInitialization() 251 MMI.TheModule = &M; in run()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A D | toy-jit.cpp | 609 static Module *TheModule; variable 645 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen() 690 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen() 699 Function *CalleeF = TheModule->getFunction(Callee); in Codegen() 919 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen() 925 F = TheModule->getFunction(Name); in Codegen() 1117 TheModule = new Module("my cool jit", Context); in main() 1121 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main() 1127 FunctionPassManager OurFPM(TheModule); in main() 1162 TheModule->print(errs(), nullptr); in main()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter5/ |
| H A D | toy.cpp | 540 static std::unique_ptr<Module> TheModule; variable 555 if (auto *F = TheModule->getFunction(Name)) in getFunction() 776 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen() 829 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() 830 TheModule->setDataLayout(TheJIT->getDataLayout()); in InitializeModuleAndPassManager() 836 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager() 857 ThreadSafeModule(std::move(TheModule), std::move(TheContext)))); in HandleDefinition() 888 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter6/ |
| H A D | toy.cpp | 632 static std::unique_ptr<Module> TheModule; variable 647 if (auto *F = TheModule->getFunction(Name)) in getFunction() 888 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen() 948 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() 949 TheModule->setDataLayout(TheJIT->getDataLayout()); in InitializeModuleAndPassManager() 955 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager() 976 ThreadSafeModule(std::move(TheModule), std::move(TheContext)))); in HandleDefinition() 1007 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleTopLevelExpression()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineModuleInfo.h | 87 const Module *TheModule; variable 150 const Module *getModule() const { return TheModule; } in getModule()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/ |
| H A D | toy.cpp | 705 static std::unique_ptr<Module> TheModule; variable 720 if (auto *F = TheModule->getFunction(Name)) in getFunction() 1049 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen() 1117 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager() 1118 TheModule->setDataLayout(TheJIT->getDataLayout()); in InitializeModuleAndPassManager() 1124 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager() 1147 ThreadSafeModule(std::move(TheModule), std::move(TheContext)))); in HandleDefinition() 1178 auto TSM = ThreadSafeModule(std::move(TheModule), std::move(TheContext)); in HandleTopLevelExpression()
|