Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp179 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
186 StripDebugInfo(TheModule); in verifyLoadedModule()
235 verifyLoadedModule(TheModule); in crossImportIntoModule()
265 PM.run(TheModule); in optimizeModule()
327 MPM.run(TheModule, MAM); in optimizeModuleNewPM()
382 PM.run(TheModule); in codegenModule()
500 TheModule.getPIELevel() == PIELevel::Default; in ProcessThinLTOModule()
543 ProfileSummaryInfo PSI(TheModule); in ProcessThinLTOModule()
550 return codegenModule(TheModule, TM); in ProcessThinLTOModule()
816 Module &TheModule, ModuleSummaryIndex &Index, in gatherImportedSummariesForModule() argument
[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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anon40a926f10111::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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DNameAnonGlobals.cpp27 Module &TheModule; member in __anon72e4d8130111::ModuleHasher
31 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
40 for (auto &F : TheModule) { in get()
46 for (auto &GV : TheModule.globals()) { in get()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h73 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
80 internalizeModule(Module &TheModule,
84 .internalizeModule(TheModule, CG);
H A DFunctionImport.h221 void thinLTOResolvePrevailingInModule(Module &TheModule,
226 void thinLTOInternalizeModule(Module &TheModule,
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCGNU.cpp99 llvm::Module &TheModule; member in __anon90b381c40111::CGObjCGNU
279 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1177 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
1537 &TheModule); in ModuleInitFunction()
1822 llvm::DataLayout td(&TheModule); in GenerateClass()
2123 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
2809 llvm::DataLayout td(&TheModule); in GenerateMethodList()
2951 llvm::DataLayout td(&TheModule); in GenerateClassStructure()
3817 &TheModule); in ModuleInitFunction()
3837 &TheModule); in ModuleInitFunction()
[all …]
H A DBackendUtil.cpp108 Module *TheModule; member in __anon701d26f80111::EmitAssemblyHelper
651 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
894 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
1010 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssembly()
1048 for (Function &F : *TheModule) in EmitAssembly()
1057 PerModulePasses.run(*TheModule); in EmitAssembly()
1063 CodeGenPasses.run(*TheModule); in EmitAssembly()
1311 Triple TargetTriple(TheModule->getTargetTriple()); in EmitAssemblyWithNewPassManager()
1456 if (!TheModule->getModuleFlag("ThinLTO")) in EmitAssemblyWithNewPassManager()
1494 MPM.run(*TheModule, MAM); in EmitAssemblyWithNewPassManager()
[all …]
H A DCodeGenTypes.h63 llvm::Module &TheModule; variable
114 return TheModule.getDataLayout(); in getDataLayout()
120 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
H A DCodeGenAction.cpp865 TheModule.reset(); in ~CodeGenAction()
878 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
882 return std::move(TheModule); in takeModule()
1064 TheModule = loadModule(*MainFile); in ExecuteAction()
1065 if (!TheModule) in ExecuteAction()
1069 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
1072 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
1075 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction()
1077 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction()
1114 CI.getTarget().getDataLayoutString(), TheModule.get(), BA, in ExecuteAction()
H A DCGCUDANV.cpp45 llvm::Module &TheModule; member in __anon3f246a1d0111::CGNVCUDARuntime
115 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction()
212 TheModule(CGM.getModule()), in CGNVCUDARuntime()
509 addUnderscoredPrefixToName("_register_globals"), &TheModule); in makeRegisterGlobalsFn()
716 addUnderscoredPrefixToName("_module_ctor"), &TheModule); in makeModuleCtorFunction()
814 TheModule, VoidPtrPtrTy, /*isConstant=*/false, in makeModuleCtorFunction()
857 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
952 addUnderscoredPrefixToName("_module_dtor"), &TheModule); in makeModuleDtorFunction()
1144 TheModule, F->getType(), /*isConstant=*/true, F->getLinkage(), in getKernelHandle()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp576 maybeVerifyModule(TheModule); in writeModuleToFile()
671 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local
708 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local
735 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local
737 ThinGenerator.promote(*TheModule, *Index, *Input); in promote()
743 writeModuleToFile(*TheModule, OutputName); in promote()
768 auto TheModule = loadModuleFromInput(*Input, Ctx); in import() local
776 writeModuleToFile(*TheModule, OutputName); in import()
809 writeModuleToFile(*TheModule, OutputName); in internalize()
828 ThinGenerator.optimize(*TheModule); in optimize()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp233 TheModule = MMI.TheModule; in MachineModuleInfo()
399 MMI.TheModule = &M; in doInitialization()
424 MMI.TheModule = &M; in run()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DUpdateCompilerUsed.h27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Interpreter/
H A DPartialTranslationUnit.h33 std::unique_ptr<llvm::Module> TheModule; member
H A DInterpreter.h64 if (PTU->TheModule) in ParseAndExecute()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineModuleInfo.h91 const Module *TheModule; variable
174 const Module *getModule() const { return TheModule; } in getModule()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp423 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl
510 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables()
524 for (auto &GV : TheModule.globals()) { in upgradeCUVariables()
645 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument
649 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()), in MetadataLoaderImpl()
650 ValueList(ValueList), Stream(Stream), Context(TheModule.getContext()), in MetadataLoaderImpl()
651 TheModule(TheModule), getTypeByID(std::move(getTypeByID)), in MetadataLoaderImpl()
822 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock()
1210 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata()
2253 unsigned NewKind = TheModule.getMDKindID(Name.str()); in parseMetadataKindRecord()
[all …]
H A DMetadataLoader.h40 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
H A DBitcodeReader.cpp484 Module *TheModule = nullptr; member in __anonba06ddfc0411::BitcodeReader
3067 for (Function &F : *TheModule) { in globalCleanup()
3536 TheModule->getDataLayoutStr(), TheModule->getTargetTriple()); in parseModule()
3537 TheModule->setDataLayout(DL); in parseModule()
3713 TheModule->setTargetTriple(S); in parseModule()
3722 TheModule->setDataLayout(S); in parseModule()
3797 TheModule = M; in parseBitcodeInto()
5597 for (Function &F : *TheModule) { in materializeModule()
5636 UpgradeDebugInfo(*TheModule); in materializeModule()
5638 UpgradeModuleFlags(*TheModule); in materializeModule()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreter.cpp207 assert(T.TheModule); in Execute()
218 if (auto Err = IncrExecutor->addModule(std::move(T.TheModule))) in Execute()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp1044 Module &TheModule, const GVSummaryMapTy &DefinedGlobals) { in thinLTOResolvePrevailingInModule() argument
1107 for (auto &GV : TheModule) in thinLTOResolvePrevailingInModule()
1109 for (auto &GV : TheModule.globals()) in thinLTOResolvePrevailingInModule()
1111 for (auto &GV : TheModule.aliases()) in thinLTOResolvePrevailingInModule()
1116 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument
1133 TheModule.getSourceFileName()); in thinLTOInternalizeModule()
1151 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenAction.h47 std::unique_ptr<llvm::Module> TheModule; variable

12