Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp92 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
103 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
158 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument
160 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations)) in promoteModule()
176 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
178 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule()
181 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule()
183 StripDebugInfo(TheModule); in verifyLoadedModule()
211 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
217 return loadModuleFromInput(Input, TheModule.getContext(), in crossImportIntoModule()
[all …]
H A DUpdateCompilerUsed.cpp34 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 DLTOCodeGenerator.cpp370 Module &TheModule, in preserveDiscardableGVs() argument
386 for (auto &GV : TheModule) in preserveDiscardableGVs()
388 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs()
390 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs()
396 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anon02607c880111::WinEHStatePass
122 TheModule = &M; in doInitialization()
127 assert(TheModule == &M); in doFinalization()
128 TheModule = nullptr; in doFinalization()
175 Type *Int8PtrType = Type::getInt8PtrTy(TheModule->getContext()); in runOnFunction()
176 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction()
178 Type::getInt32Ty(TheModule->getContext()), in runOnFunction()
179 {Int8PtrType, Type::getInt32Ty(TheModule->getContext())}, in runOnFunction()
212 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType()
231 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGObjCGNU.cpp99 llvm::Module &TheModule; member in __anon119c321b0111::CGObjCGNU
210 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
213 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
215 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
279 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1010 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1013 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1066 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1105 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1175 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
[all …]
H A DBackendUtil.cpp107 Module *TheModule; member in __anoncdf3490f0111::EmitAssemblyHelper
156 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
643 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
888 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
915 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
953 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
968 legacy::FunctionPassManager PerFunctionPasses(TheModule); in EmitAssembly()
991 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in EmitAssembly()
1001 llvm::Triple(TheModule->getTargetTriple()).getVendor() != in EmitAssembly()
1004 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly()
[all …]
H A DCodeGenAction.cpp863 TheModule.reset(); in ~CodeGenAction()
876 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
880 return std::move(TheModule); in takeModule()
1062 TheModule = loadModule(*MainFile); in ExecuteAction()
1063 if (!TheModule) in ExecuteAction()
1067 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
1070 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
1073 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction()
1075 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction()
1112 CI.getTarget().getDataLayoutString(), TheModule.get(), BA, in ExecuteAction()
H A DCodeGenTypes.h63 llvm::Module &TheModule; variable
114 return TheModule.getDataLayout(); in getDataLayout()
120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp539 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument
543 maybeVerifyModule(TheModule); in writeModuleToFile()
544 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile()
636 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local
642 *TheModule, *Index, ModuleToSummariesForIndex, *Input); in distributedIndexes()
673 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local
680 ThinGenerator.emitImports(*TheModule, OutputName, *Index, *Input); in emitImports()
700 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local
702 ThinGenerator.promote(*TheModule, *Index, *Input); in promote()
708 writeModuleToFile(*TheModule, OutputName); in promote()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-jitlistener/
H A Dllvm-jitlistener.cpp152 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DNameAnonGlobals.cpp27 Module &TheModule; member in __anon0287d4aa0111::ModuleHasher
31 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
40 for (auto &F : TheModule) { in get()
46 for (auto &GV : TheModule.globals()) { in get()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h57 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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h63 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
70 internalizeModule(Module &TheModule,
74 .internalizeModule(TheModule, CG);
H A DFunctionImport.h221 void thinLTOResolvePrevailingInModule(Module &TheModule,
226 void thinLTOInternalizeModule(Module &TheModule,
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp413 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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp624 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp403 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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp609 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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp540 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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp632 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp233 TheModule = MMI.TheModule; in MachineModuleInfo()
399 MMI.TheModule = &M; in doInitialization()
424 MMI.TheModule = &M; in run()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp705 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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp821 static std::unique_ptr<Module> TheModule; variable
879 if (auto *F = TheModule->getFunction(Name)) in getFunction()
1221 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
1326 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModule()
1327 TheModule->setDataLayout(TheJIT->getDataLayout()); in InitializeModule()
1435 TheModule->addModuleFlag(Module::Warning, "Debug Info Version", in main()
1440 TheModule->addModuleFlag(llvm::Module::Warning, "Dwarf Version", 2); in main()
1443 DBuilder = std::make_unique<DIBuilder>(*TheModule); in main()
1459 TheModule->print(errs(), nullptr); in main()
/netbsd-src/external/apache2/llvm/dist/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl04.rst142 TheModule = std::make_unique<Module>("my cool jit", TheContext);
145 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get());
159 This code initializes the global module ``TheModule``, and the function pass
160 manager ``TheFPM``, which is attached to ``TheModule``. Once the pass manager is
274 TheModule = std::make_unique<Module>("my cool jit", TheContext);
275 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout());
278 TheFPM = std::make_unique<legacy::FunctionPassManager>(TheModule.get());
303 auto H = TheJIT->addModule(std::move(TheModule));
446 if (auto *F = TheModule->getFunction(Name))
479 method, ``getFunction()``, to replace calls to ``TheModule->getFunction()``.
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp706 static std::unique_ptr<Module> TheModule; variable
719 if (auto *F = TheModule->getFunction(Name)) in getFunction()
1048 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
1113 TheModule = std::make_unique<Module>("my cool jit", *TheContext); in InitializeModuleAndPassManager()
1229 TheModule->setTargetTriple(TargetTriple); in main()
1250 TheModule->setDataLayout(TheTargetMachine->createDataLayout()); in main()
1269 pass.run(*TheModule); in main()

123