Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp96 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 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.cpp436 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 DX86WinEHState.cpp84 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 DWasm.cpp69 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 DDeviceOffload.cpp77 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 DIncrementalParser.cpp232 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 DNameAnonGlobals.cpp26 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 DCGObjCGNU.cpp97 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 DCodeGenAction.cpp913 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 DBackendUtil.cpp140 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 DCodeGenTypes.h58 llvm::Module &TheModule; variable
100 return TheModule.getDataLayout(); in getDataLayout()
106 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
H A DCGCUDANV.cpp47 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 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/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DInternalize.h70 bool internalizeModule(Module &TheModule);
77 internalizeModule(Module &TheModule, in internalizeModule() argument
80 .internalizeModule(TheModule); in internalizeModule()
H A DFunctionImport.h238 void thinLTOFinalizeInModule(Module &TheModule,
244 void thinLTOInternalizeModule(Module &TheModule,
/freebsd/contrib/llvm-project/llvm/tools/llvm-lto/
H A Dllvm-lto.cpp592 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 DMachineModuleInfo.cpp66 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 DMachineModuleInfo.h95 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 DUpdateCompilerUsed.h27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
/freebsd/contrib/llvm-project/clang/include/clang/Interpreter/
H A DPartialTranslationUnit.h33 std::unique_ptr<llvm::Module> TheModule; member
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp409 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 DMetadataLoader.h55 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp1499 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 DAPINotesYAMLCompiler.cpp667 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()

12