Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp94 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
105 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
160 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument
162 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations)) in promoteModule()
178 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
180 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule()
183 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule()
185 StripDebugInfo(TheModule); in verifyLoadedModule()
213 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
219 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.cpp446 Module &TheModule, in preserveDiscardableGVs() argument
462 for (auto &GV : TheModule) in preserveDiscardableGVs()
464 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs()
466 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs()
472 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anon54fa0f540111::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 …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DNameAnonGlobals.cpp28 Module &TheModule; member in __anona9bd73760111::ModuleHasher
32 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
41 for (auto &F : TheModule) { in get()
47 for (auto &GV : TheModule.globals()) { in get()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h72 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
79 internalizeModule(Module &TheModule,
83 .internalizeModule(TheModule, CG);
H A DFunctionImport.h231 void thinLTOFinalizeInModule(Module &TheModule,
237 void thinLTOInternalizeModule(Module &TheModule,
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGObjCGNU.cpp99 llvm::Module &TheModule; member in __anon2d629be70111::CGObjCGNU
214 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
217 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
219 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
283 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1013 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1016 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1069 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1108 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1178 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
[all …]
H A DBackendUtil.cpp125 Module *TheModule; member in __anonf4fb55db0111::EmitAssemblyHelper
192 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
194 TargetTriple(TheModule->getTargetTriple()) {} in EmitAssemblyHelper()
555 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
846 TheModule->getContext(), in RunOptimizationPipeline()
1009 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline()
1010 TheModule->addModuleFlag(Module::Error, "EnableSplitLTOUnit", in RunOptimizationPipeline()
1030 if (!TheModule->getModuleFlag("ThinLTO")) in RunOptimizationPipeline()
1031 TheModule->addModuleFlag(Module::Error, "ThinLTO", uint32_t(0)); in RunOptimizationPipeline()
1032 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline()
[all …]
H A DCodeGenAction.cpp988 TheModule.reset(); in ~CodeGenAction()
1001 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
1005 return std::move(TheModule); in takeModule()
1191 TheModule = loadModule(*MainFile); in ExecuteAction()
1192 if (!TheModule) in ExecuteAction()
1196 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
1199 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
1202 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction()
1203 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction()
1205 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction()
[all …]
H A DCodeGenTypes.h58 llvm::Module &TheModule; variable
110 return TheModule.getDataLayout(); in getDataLayout()
117 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
/openbsd-src/gnu/llvm/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp586 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument
590 maybeVerifyModule(TheModule); in writeModuleToFile()
591 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile()
684 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local
690 *TheModule, *Index, ModuleToSummariesForIndex, *Input); in distributedIndexes()
721 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local
728 ThinGenerator.emitImports(*TheModule, OutputName, *Index, *Input); in emitImports()
748 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local
750 ThinGenerator.promote(*TheModule, *Index, *Input); in promote()
756 writeModuleToFile(*TheModule, OutputName); in promote()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp67 TheModule = MMI.TheModule; in MachineModuleInfo()
212 MMI.TheModule = &M; in doInitialization()
240 MMI.TheModule = &M; in run()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineModuleInfo.h87 const Module *TheModule; variable
146 const Module *getModule() const { return TheModule; } in getModule()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/LTO/legacy/
H A DUpdateCompilerUsed.h27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
/openbsd-src/gnu/llvm/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()

123