Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp88 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
99 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
154 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index) { in promoteModule() argument
155 if (renameModuleForThinLTO(TheModule, Index)) in promoteModule()
171 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
173 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule()
176 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule()
178 StripDebugInfo(TheModule); in verifyLoadedModule()
206 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
211 return loadModuleFromInput(Input, TheModule.getContext(), in crossImportIntoModule()
[all …]
DUpdateCompilerUsed.cpp33 void findInModule(Module &TheModule) { in findInModule() argument
34 initializeLibCalls(TheModule); in findInModule()
35 for (Function &F : TheModule) in findInModule()
37 for (GlobalVariable &GV : TheModule.globals()) in findInModule()
39 for (GlobalAlias &GA : TheModule.aliases()) in findInModule()
58 void initializeLibCalls(const Module &TheModule) { in initializeLibCalls() argument
73 for (const Function &F : TheModule) { in initializeLibCalls()
122 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed() argument
126 .findInModule(TheModule); in updateCompilerUsed()
131 appendToCompilerUsed(TheModule, UsedValues); in updateCompilerUsed()
DLTOCodeGenerator.cpp386 Module &TheModule, in preserveDiscardableGVs() argument
402 for (auto &GV : TheModule) in preserveDiscardableGVs()
404 for (auto &GV : TheModule.globals()) in preserveDiscardableGVs()
406 for (auto &GV : TheModule.aliases()) in preserveDiscardableGVs()
412 appendToCompilerUsed(TheModule, Used); in preserveDiscardableGVs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anon59ee6ce70111::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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DNameAnonGlobals.cpp27 Module &TheModule; member in __anon7b33b4090111::ModuleHasher
31 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
40 for (auto &F : TheModule) { in get()
46 for (auto &GV : TheModule.globals()) { in get()
DCloneFunction.cpp50 Module *TheModule = F ? F->getParent() : nullptr; in CloneBasicBlock() local
54 if (DIFinder && TheModule) in CloneBasicBlock()
55 DIFinder->processInstruction(*TheModule, I); in CloneBasicBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h60 TheModule = M; in init()
73 assert(TheModule != nullptr && "Not initialized."); in get()
105 Module *TheModule = nullptr;
138 return Decl = Intrinsic::getDeclaration(TheModule, IntID); in getIntrinsicEntryPoint()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DInternalize.h63 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
70 internalizeModule(Module &TheModule,
74 .internalizeModule(TheModule, CG);
DFunctionImport.h213 void thinLTOResolvePrevailingInModule(Module &TheModule,
218 void thinLTOInternalizeModule(Module &TheModule,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineModuleInfo.cpp234 TheModule = MMI.TheModule; in MachineModuleInfo()
360 MMI.TheModule = &M; in doInitialization()
375 MMI.TheModule = &M; in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineModuleInfo.h88 const Module *TheModule; variable
164 const Module *getModule() const { return TheModule; } in getModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/LTO/legacy/
DUpdateCompilerUsed.h27 void updateCompilerUsed(Module &TheModule, const TargetMachine &TM,
DLTOCodeGenerator.h206 Module &TheModule,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DMetadataLoader.cpp426 Module &TheModule; member in MetadataLoader::MetadataLoaderImpl
499 if (NamedMDNode *CUNodes = TheModule.getNamedMetadata("llvm.dbg.cu")) in upgradeCUVariables()
513 for (auto &GV : TheModule.globals()) { in upgradeCUVariables()
635 MetadataLoaderImpl(BitstreamCursor &Stream, Module &TheModule, in MetadataLoaderImpl() argument
639 : MetadataList(TheModule.getContext(), Stream.SizeInBytes()), in MetadataLoaderImpl()
640 ValueList(ValueList), Stream(Stream), Context(TheModule.getContext()), in MetadataLoaderImpl()
641 TheModule(TheModule), getTypeByID(std::move(getTypeByID)), in MetadataLoaderImpl()
810 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in lazyLoadModuleMetadataBlock()
1125 NamedMDNode *NMD = TheModule.getOrInsertNamedMetadata(Name); in parseOneMetadata()
2075 unsigned NewKind = TheModule.getMDKindID(Name.str()); in parseMetadataKindRecord()
[all …]
DMetadataLoader.h42 MetadataLoader(BitstreamCursor &Stream, Module &TheModule,
DBitcodeReader.cpp485 Module *TheModule = nullptr; member in __anondfca2ef20411::BitcodeReader
2029 GO->setComdat(TheModule->getOrInsertComdat(V->getName())); in recordValue()
2151 Triple TT(TheModule->getTargetTriple()); in parseValueSymbolTable()
2926 if (Metadata *Val = TheModule->getModuleFlag("Linker Options")) { in materializeMetadata()
2928 TheModule->getOrInsertNamedMetadata("llvm.linker.options"); in materializeMetadata()
2970 for (Function &F : *TheModule) { in globalCleanup()
2984 for (GlobalVariable &GV : TheModule->globals()) in globalCleanup()
2989 TheModule->getGlobalList().push_back(Pair.second); in globalCleanup()
3075 Comdat *C = TheModule->getOrInsertComdat(Name); in parseComdatRecord()
3145 new GlobalVariable(*TheModule, Ty, isConstant, Linkage, nullptr, Name, in parseGlobalVarRecord()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp984 Module &TheModule, const GVSummaryMapTy &DefinedGlobals) { in thinLTOResolvePrevailingInModule() argument
1039 for (auto &GV : TheModule) in thinLTOResolvePrevailingInModule()
1041 for (auto &GV : TheModule.globals()) in thinLTOResolvePrevailingInModule()
1043 for (auto &GV : TheModule.aliases()) in thinLTOResolvePrevailingInModule()
1048 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument
1065 TheModule.getSourceFileName()); in thinLTOInternalizeModule()
1083 internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAsmWriter.cpp680 const Module* TheModule; member in llvm::SlotTracker
902 : TheModule(M), ShouldInitializeAllMetadata(ShouldInitializeAllMetadata) {} in SlotTracker()
907 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker()
911 : TheModule(nullptr), ShouldInitializeAllMetadata(false), TheIndex(Index) {} in SlotTracker()
914 if (TheModule) { in initializeIfNeeded()
916 TheModule = nullptr; ///< Prevent re-processing next time we're called. in initializeIfNeeded()
936 for (const GlobalVariable &Var : TheModule->globals()) { in processModule()
945 for (const GlobalAlias &A : TheModule->aliases()) { in processModule()
950 for (const GlobalIFunc &I : TheModule->ifuncs()) { in processModule()
956 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule()
[all …]
DConstantFold.cpp1175 if (Module *TheModule = GV->getParent()) { in ConstantFoldBinaryInstruction() local
1176 GVAlign = GV->getPointerAlignment(TheModule->getDataLayout()); in ConstantFoldBinaryInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInternal.h56 Module &TheModule; member
DCoroutines.cpp96 : TheModule(M), Context(M.getContext()), in LowererBase()
111 auto *Fn = Intrinsic::getDeclaration(&TheModule, Intrinsic::coro_subfn_addr); in makeSubFnCall()
DCoroEarly.cpp72 const DataLayout &DL = TheModule.getDataLayout(); in lowerCoroPromise()