/freebsd/contrib/llvm-project/llvm/lib/LTO/ |
H A D | ThinLTOCodeGenerator.cpp | 96 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument 107 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode() 163 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument 165 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations)) in promoteModule() 181 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument 183 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule() 186 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule() 188 StripDebugInfo(TheModule); in verifyLoadedModule() 216 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument 222 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 | 436 Module &TheModule, in preserveDiscardableGVs() argument 452 for (auto &GV : TheModule) in preserveDiscardableGVs() 454 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs() 456 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs() 462 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86WinEHState.cpp | 84 Module *TheModule = nullptr; member in __anone900293d0111::WinEHStatePass 122 TheModule = &M; in doInitialization() 127 assert(TheModule == &M); in doFinalization() 128 TheModule = nullptr; in doFinalization() 175 Type *Int8PtrType = PointerType::getUnqual(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() 232 LLVMContext &Context = TheModule in getCXXEHRegistrationType() [all...] |
/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 | 77 PTU.TheModule->getTargetTriple(), Error); in GeneratePTX() 83 PTU.TheModule->getTargetTriple(), getCI()->getTargetOpts().CPU, "", TO, in GeneratePTX() 85 PTU.TheModule->setDataLayout(TargetMachine->createDataLayout()); in GeneratePTX() 98 if (!PM.run(*PTU.TheModule)) in GeneratePTX()
|
H A D | IncrementalParser.cpp | 232 PTU->TheModule = GenModule(); in IncrementalParser() 233 assert(PTU->TheModule && "Failed to create initial PTU"); in IncrementalParser() 360 PTU->TheModule = std::move(M); in Parse()
|
/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/lib/CodeGen/ |
H A D | CGObjCGNU.cpp | 97 llvm::Module &TheModule; member in __anonbab9bb100111::CGObjCGNU 213 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString() 216 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString() 218 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString() 281 llvm::DataLayout td(&TheModule); in PushPropertyListHeader() 1030 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString() 1033 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString() 1085 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString() 1124 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString() 1193 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList() [all …]
|
H A D | CodeGenAction.cpp | 913 TheModule.reset(); in ~CodeGenAction() 956 TheModule = BEConsumer->takeModule(); in EndSourceFileAction() 960 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 | 140 llvm::Module *TheModule; member in __anon3496e3440111::EmitAssemblyHelper 216 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), VFS(std::move(VFS)), in EmitAssemblyHelper() 218 TargetTriple(TheModule->getTargetTriple()) {} in EmitAssemblyHelper() 552 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine() 872 TheModule->getContext(), in RunOptimizationPipeline() 1056 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline() 1057 TheModule->addModuleFlag(llvm::Module::Error, "EnableSplitLTOUnit", in RunOptimizationPipeline() 1076 if (!TheModule->getModuleFlag("ThinLTO") && !CodeGenOpts.UnifiedLTO) in RunOptimizationPipeline() 1077 TheModule->addModuleFlag(llvm::Module::Error, "ThinLTO", uint32_t(0)); in RunOptimizationPipeline() 1078 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) 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 | 47 llvm::Module &TheModule; member in __anon2162a9e90111::CGNVCUDARuntime 106 TheModule, Value->getType(), /*isConstant=*/true, in makeConstantArray() 124 FnTy, llvm::GlobalValue::InternalLinkage, "dummy", &TheModule); in makeDummyFunction() 223 TheModule(CGM.getModule()), in CGNVCUDARuntime() 550 addUnderscoredPrefixToName("_register_globals"), &TheModule); in makeRegisterGlobalsFn() 744 addUnderscoredPrefixToName("_module_ctor"), &TheModule); in makeModuleCtorFunction() 841 TheModule, PtrTy, /*isConstant=*/false, Linkage, in makeModuleCtorFunction() 884 TheModule, PtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction() 977 addUnderscoredPrefixToName("_module_dtor"), &TheModule); in makeModuleDtorFunction() 1238 TheModule, F->getType(), /*isConstant=*/true, F->getLinkage(), in getKernelHandle()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | Internalize.h | 70 bool internalizeModule(Module &TheModule); 77 internalizeModule(Module &TheModule, in internalizeModule() argument 80 .internalizeModule(TheModule); in internalizeModule()
|
H A D | FunctionImport.h | 238 void thinLTOFinalizeInModule(Module &TheModule, 244 void thinLTOInternalizeModule(Module &TheModule,
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-lto/ |
H A D | llvm-lto.cpp | 592 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument 596 maybeVerifyModule(TheModule); in writeModuleToFile() 597 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile() 690 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local 697 *TheModule, *Index, ModuleToSummariesForIndex, DecSummaries, *Input); in distributedIndexes() 728 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local 735 ThinGenerator.emitImports(*TheModule, OutputName, *Index, *Input); in emitImports() 755 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local 757 ThinGenerator.promote(*TheModule, *Index, *Input); in promote() 763 writeModuleToFile(*TheModule, OutputName); in promote() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineModuleInfo.cpp | 66 TheModule = MMI.TheModule; in MachineModuleInfo() 215 MMI.TheModule = &M; in doInitialization() 241 MMI.TheModule = &M; in run()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineModuleInfo.h | 95 const Module *TheModule = nullptr; variable 154 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/clang/include/clang/Interpreter/ |
H A D | PartialTranslationUnit.h | 33 std::unique_ptr<llvm::Module> TheModule; member
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | MetadataLoader.cpp | 409 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl 500 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables() 514 for (auto &GV : TheModule.globals()) { in upgradeCUVariables() 551 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) { in upgradeCULocals() 725 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument 728 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()), in MetadataLoaderImpl() 729 ValueList(ValueList), Stream(Stream), Context(TheModule.getContext()), in MetadataLoaderImpl() 730 TheModule(TheModule), Callbacks(std::move(Callbacks)), in MetadataLoaderImpl() 901 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock() 1316 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 | 1499 void llvm::thinLTOFinalizeInModule(Module &TheModule, in thinLTOFinalizeInModule() argument 1588 for (auto &GV : TheModule) in thinLTOFinalizeInModule() 1590 for (auto &GV : TheModule.globals()) in thinLTOFinalizeInModule() 1592 for (auto &GV : TheModule.aliases()) in thinLTOFinalizeInModule() 1600 for (auto &GO : TheModule.global_objects()) { in thinLTOFinalizeInModule() 1613 for (auto &GA : TheModule.aliases()) { in thinLTOFinalizeInModule() 1627 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument 1652 TheModule.getSourceFileName()); in thinLTOInternalizeModule() 1670 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
|
/freebsd/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesYAMLCompiler.cpp | 667 YAMLConverter(const Module &TheModule, const FileEntry *SourceFile, in YAMLConverter() argument 671 : M(TheModule), Writer(TheModule.Name, SourceFile), OS(OS), in YAMLConverter() 1133 Module TheModule; in compileAPINotes() local 1138 if (parseAPINotes(YAMLInput, TheModule, DiagHandler, DiagHandlerCtxt)) in compileAPINotes() 1141 return compile(TheModule, SourceFile, OS, DiagHandler, DiagHandlerCtxt); in compileAPINotes()
|