| /freebsd/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | ThinLTOCodeGenerator.cpp | 90 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument 101 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode() 157 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument 159 renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations); in promoteModule() 174 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument 176 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule() 179 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule() 181 StripDebugInfo(TheModule); in verifyLoadedModule() 209 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument 215 return loadModuleFromInput(Input, TheModule.getContext(), in crossImportIntoModule() [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 | 423 Module &TheModule, in preserveDiscardableGVs() argument 439 for (auto &GV : TheModule) in preserveDiscardableGVs() 441 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs() 443 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs() 449 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
|
| /freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | Wasm.cpp | 69 PTU.TheModule->getTargetTriple(), ErrorString); in addModule() 77 PTU.TheModule->getTargetTriple(), "", "", TO, llvm::Reloc::Model::PIC_); in addModule() 78 PTU.TheModule->setDataLayout(TargetMachine->createDataLayout()); in addModule() 79 std::string ObjectFileName = PTU.TheModule->getName().str() + ".o"; in addModule() 80 std::string BinaryFileName = PTU.TheModule->getName().str() + ".wasm"; in addModule() 92 if (!PM.run(*PTU.TheModule)) { in addModule()
|
| H A D | DeviceOffload.cpp | 50 PTU.TheModule->getTargetTriple(), Error); in GeneratePTX() 56 PTU.TheModule->getTargetTriple(), TargetOpts.CPU, "", TO, in GeneratePTX() 58 PTU.TheModule->setDataLayout(TargetMachine->createDataLayout()); in GeneratePTX() 71 if (!PM.run(*PTU.TheModule)) in GeneratePTX() 147 std::string FatbinFileName = "/" + PTU.TheModule->getName().str() + ".fatbin"; in GenerateFatbinary()
|
| H A D | Interpreter.cpp | 574 LastPTU.TheModule = std::move(M); in RegisterPTU() 577 if (LastPTU.TheModule) in RegisterPTU() 578 LLVM_DEBUG(llvm::dbgs() << ", M=" << LastPTU.TheModule.get() << " (" in RegisterPTU() 579 << LastPTU.TheModule->getName() << ")"); in RegisterPTU() 681 assert(T.TheModule); in Execute() 687 << ": [TU=" << T.TUPart << ", M=" << T.TheModule.get() in Execute() 688 << " (" << T.TheModule->getName() << ")]\n"); in Execute() 709 if (PTU->TheModule) in ParseAndExecute()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 26 Module &TheModule; member in __anon100f665f0111::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/contrib/llvm-project/clang/include/clang/Interpreter/ |
| H A D | PartialTranslationUnit.h | 33 std::unique_ptr<llvm::Module> TheModule; member 35 return other.TUPart == TUPart && other.TheModule == TheModule;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86WinEHState.cpp | 87 Module *TheModule = nullptr; member in __anone900293d0111::WinEHStatePass 128 TheModule = &M; in doInitialization() 133 assert(TheModule == &M); in doFinalization() 134 TheModule = nullptr; in doFinalization() 180 Type *Int8PtrType = PointerType::getUnqual(TheModule->getContext()); in runOnFunction() 181 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction() 183 Type::getInt32Ty(TheModule->getContext()), in runOnFunction() 184 {Int8PtrType, Type::getInt32Ty(TheModule->getContext())}, in runOnFunction() 219 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType() 237 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ARCRuntimeEntryPoints.h | 58 TheModule = M; in init() 73 assert(TheModule != nullptr && "Not initialized."); in get() 111 Module *TheModule = nullptr; 150 return Decl = Intrinsic::getOrInsertDeclaration(TheModule, IntID); in getIntrinsicEntryPoint()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGObjCGNU.cpp | 96 llvm::Module &TheModule; member in __anonbab9bb100111::CGObjCGNU 212 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString() 215 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString() 217 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString() 280 const llvm::DataLayout &DL = TheModule.getDataLayout(); in PushPropertyListHeader() 1031 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString() 1034 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString() 1086 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString() 1124 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString() 1193 const llvm::DataLayout &DL = TheModule.getDataLayout(); in GenerateProtocolMethodList() [all …]
|
| H A D | CodeGenAction.cpp | 873 TheModule.reset(); in ~CodeGenAction() 916 TheModule = BEConsumer->takeModule(); in EndSourceFileAction() 920 return std::move(TheModule); in takeModule() 1131 TheModule = loadModule(*MainFile); in ExecuteAction() 1132 if (!TheModule) in ExecuteAction() 1136 if (TheModule->getTargetTriple().str() != TargetOpts.Triple) { in ExecuteAction() 1139 TheModule->setTargetTriple(Triple(TargetOpts.Triple)); in ExecuteAction() 1142 EmbedObject(TheModule.get(), CodeGenOpts, Diagnostics); in ExecuteAction() 1143 EmbedBitcode(TheModule.get(), CodeGenOpts, *MainFile); in ExecuteAction() 1145 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction() [all …]
|
| H A D | BackendUtil.cpp | 146 llvm::Module *TheModule; member in __anon3496e3440111::EmitAssemblyHelper 218 TheModule(M), VFS(std::move(VFS)), in EmitAssemblyHelper() 219 TargetTriple(TheModule->getTargetTriple()) {} in EmitAssemblyHelper() 593 const llvm::Triple &Triple = TheModule->getTargetTriple(); in CreateTargetMachine() 922 TheModule->getContext(), in RunOptimizationPipeline() 971 for (Function &F : *TheModule) { in RunOptimizationPipeline() 1149 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 1150 TheModule->addModuleFlag(llvm::Module::Error, "EnableSplitLTOUnit", in RunOptimizationPipeline() 1169 if (!TheModule->getModuleFlag("ThinLTO") && !CodeGenOpts.UnifiedLTO) in RunOptimizationPipeline() 1170 TheModule->addModuleFlag(llvm::Module::Error, "ThinLTO", uint32_t(0)); in RunOptimizationPipeline() [all …]
|
| H A D | CodeGenTypes.h | 58 llvm::Module &TheModule; variable 100 return TheModule.getDataLayout(); in getDataLayout() 106 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
|
| H A D | CGCUDANV.cpp | 52 llvm::Module &TheModule; member in __anon2162a9e90111::CGNVCUDARuntime 111 TheModule, Value->getType(), /*isConstant=*/true, in makeConstantArray() 129 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction() 227 TheModule(CGM.getModule()), in CGNVCUDARuntime() 612 addUnderscoredPrefixToName("_register_globals"), &TheModule); in makeRegisterGlobalsFn() 806 addUnderscoredPrefixToName("_module_ctor"), &TheModule); in makeModuleCtorFunction() 905 TheModule, PtrTy, /*isConstant=*/false, Linkage, in makeModuleCtorFunction() 949 TheModule, PtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction() 1042 addUnderscoredPrefixToName("_module_dtor"), &TheModule); in makeModuleDtorFunction() 1320 TheModule, F->getType(), /*isConstant=*/true, F->getLinkage(), in getKernelHandle()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | Internalize.h | 71 LLVM_ABI bool internalizeModule(Module &TheModule); 78 internalizeModule(Module &TheModule, in internalizeModule() argument 81 .internalizeModule(TheModule); in internalizeModule()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-lto/ |
| H A D | llvm-lto.cpp | 646 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument 650 maybeVerifyModule(TheModule); in writeModuleToFile() 651 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile() 744 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local 751 *TheModule, *Index, ModuleToSummariesForIndex, DecSummaries, *Input); in distributedIndexes() 782 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local 789 ThinGenerator.emitImports(*TheModule, OutputName, *Index, *Input); in emitImports() 809 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local 811 ThinGenerator.promote(*TheModule, *Index, *Input); in promote() 817 writeModuleToFile(*TheModule, OutputName); in promote() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineModuleInfo.cpp | 48 TheModule = MMI.TheModule; in MachineModuleInfo() 197 MMI.TheModule = &M; in doInitialization() 221 MMI.TheModule = &M; in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/CGData/ |
| H A D | CodeGenData.cpp | 222 void saveModuleForTwoRounds(const Module &TheModule, unsigned Task, in saveModuleForTwoRounds() argument 224 LLVM_DEBUG(dbgs() << "Saving module: " << TheModule.getModuleIdentifier() in saveModuleForTwoRounds() 227 AddStream(Task, TheModule.getModuleIdentifier()); in saveModuleForTwoRounds() 232 WriteBitcodeToFile(TheModule, *Stream->OS, in saveModuleForTwoRounds()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineModuleInfo.h | 96 const Module *TheModule = nullptr; variable 134 const Module *getModule() const { return TheModule; } in getModule()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | UpdateCompilerUsed.h | 27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroInternal.h | 51 Module &TheModule; member
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | MetadataLoader.cpp | 406 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl 497 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables() 511 for (auto &GV : TheModule.globals()) { in upgradeCUVariables() 547 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) { in upgradeCULocals() 721 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument 724 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()), in MetadataLoaderImpl() 725 ValueList(ValueList), Stream(Stream), Context(TheModule.getContext()), in MetadataLoaderImpl() 726 TheModule(TheModule), Callbacks(std::move(Callbacks)), in MetadataLoaderImpl() 897 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() 1322 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata() [all …]
|
| H A D | MetadataLoader.h | 55 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionImport.cpp | 1664 void llvm::thinLTOFinalizeInModule(Module &TheModule, in thinLTOFinalizeInModule() argument 1753 for (auto &GV : TheModule) in thinLTOFinalizeInModule() 1755 for (auto &GV : TheModule.globals()) in thinLTOFinalizeInModule() 1757 for (auto &GV : TheModule.aliases()) in thinLTOFinalizeInModule() 1765 for (auto &GO : TheModule.global_objects()) { in thinLTOFinalizeInModule() 1778 for (auto &GA : TheModule.aliases()) { in thinLTOFinalizeInModule() 1792 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument 1817 TheModule.getSourceFileName()); in thinLTOInternalizeModule() 1837 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
|