Home
last modified time | relevance | path

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

12345

/external/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp76 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
87 WriteBitcodeToFile(&TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
142 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index) { in promoteModule() argument
143 if (renameModuleForThinLTO(TheModule, Index)) in promoteModule()
148 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
151 ModuleLoader Loader(TheModule.getContext(), ModuleMap); in crossImportIntoModule()
153 Importer.importFunctions(TheModule, ImportList); in crossImportIntoModule()
156 static void optimizeModule(Module &TheModule, TargetMachine &TM) { in optimizeModule() argument
177 PM.run(TheModule); in optimizeModule()
194 std::unique_ptr<MemoryBuffer> codegenModule(Module &TheModule, in codegenModule() argument
[all …]
DUpdateCompilerUsed.cpp34 void findInModule(const Module &TheModule) { in findInModule() argument
35 initializeLibCalls(TheModule); in findInModule()
36 for (const Function &F : TheModule) in findInModule()
38 for (const GlobalVariable &GV : TheModule.globals()) in findInModule()
40 for (const GlobalAlias &GA : TheModule.aliases()) in findInModule()
59 void initializeLibCalls(const Module &TheModule) { in initializeLibCalls() argument
74 for (const Function &F : TheModule) { in initializeLibCalls()
115 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed() argument
119 .findInModule(TheModule); in updateCompilerUsed()
124 llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(TheModule.getContext()); in updateCompilerUsed()
[all …]
/external/llvm-project/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp92 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
103 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
158 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index, in promoteModule() argument
160 if (renameModuleForThinLTO(TheModule, Index, ClearDSOLocalOnDeclarations)) in promoteModule()
176 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
178 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule()
181 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule()
183 StripDebugInfo(TheModule); in verifyLoadedModule()
211 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
217 return loadModuleFromInput(Input, TheModule.getContext(), in crossImportIntoModule()
[all …]
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()
/external/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()
/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h46 ARCRuntimeEntryPoints() : TheModule(nullptr), in ARCRuntimeEntryPoints()
58 TheModule = M; in init()
71 assert(TheModule != nullptr && "Not initialized."); in get()
103 Module *TheModule;
129 LLVMContext &C = TheModule->getContext(); in getVoidRetI8XEntryPoint()
136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
145 LLVMContext &C = TheModule->getContext();
155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
163 LLVMContext &C = TheModule->getContext(); in getI8XRetI8XXI8XEntryPoint()
176 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/external/llvm-project/llvm/lib/Target/X86/
DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anone43564b40111::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 …]
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp90 Module *TheModule = nullptr; member in __anon40db93460111::WinEHStatePass
128 TheModule = &M; in doInitialization()
133 assert(TheModule == &M); in doFinalization()
134 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()
217 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType()
236 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86WinEHState.cpp84 Module *TheModule = nullptr; member in __anon6a2a34280111::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 …]
/external/llvm/lib/Transforms/Utils/
DNameAnonFunctions.cpp25 Module &TheModule; member in ModuleHasher
29 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
38 for (auto &F : TheModule) { in get()
44 for (auto &GV : TheModule.globals()) { in get()
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp115 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context)); in InitEE() local
116 if (!TheModule) { in InitEE()
128 Triple Tuple(TheModule->getTargetTriple()); in InitEE()
134 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
139 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
/external/llvm-project/llvm/lib/Transforms/Utils/
DNameAnonGlobals.cpp27 Module &TheModule; member in __anon442828d60111::ModuleHasher
31 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
40 for (auto &F : TheModule) { in get()
46 for (auto &GV : TheModule.globals()) { in get()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DNameAnonGlobals.cpp27 Module &TheModule; member in __anone5df2c4a0111::ModuleHasher
31 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
40 for (auto &F : TheModule) { in get()
46 for (auto &GV : TheModule.globals()) { in get()
/external/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()
/external/llvm-project/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h56 TheModule = M; in init()
69 assert(TheModule != nullptr && "Not initialized."); in get()
101 Module *TheModule = nullptr;
134 return Decl = Intrinsic::getDeclaration(TheModule, IntID); in getIntrinsicEntryPoint()
/external/llvm-project/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp152 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context)); in InitEE() local
153 if (!TheModule) { in InitEE()
165 Triple Tuple(TheModule->getTargetTriple()); in InitEE()
171 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
176 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
/external/llvm/tools/llvm-lto/
Dllvm-lto.cpp384 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument
388 maybeVerifyModule(TheModule); in writeModuleToFile()
389 WriteBitcodeToFile(&TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile()
527 auto TheModule = loadModule(Filename, Ctx); in promote() local
529 ThinGenerator.promote(*TheModule, *Index); in promote()
535 writeModuleToFile(*TheModule, OutputName); in promote()
558 auto TheModule = loadModule(Filename, Ctx); in import() local
560 ThinGenerator.crossModuleImport(*TheModule, *Index); in import()
566 writeModuleToFile(*TheModule, OutputName); in import()
589 auto TheModule = loadModule(Filename, Ctx); in internalize() local
[all …]
/external/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);
/external/llvm-project/llvm/include/llvm/Transforms/IPO/
DInternalize.h63 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
70 internalizeModule(Module &TheModule,
74 .internalizeModule(TheModule, CG);
/external/llvm/include/llvm/Transforms/IPO/
DInternalize.h64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
71 internalizeModule(Module &TheModule,
75 .internalizeModule(TheModule, CG);
/external/llvm-project/clang/lib/CodeGen/
DCGObjCGNU.cpp99 llvm::Module &TheModule; member in __anonc5a169470111::CGObjCGNU
210 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
213 auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
215 GV->setComdat(TheModule.getOrInsertComdat(name)); in ExportUniqueString()
279 llvm::DataLayout td(&TheModule); in PushPropertyListHeader()
1008 llvm::Constant *isa = TheModule.getNamedGlobal(Sym); in GenerateConstantString()
1011 isa = new llvm::GlobalVariable(TheModule, IdTy, /* isConstant */false, in GenerateConstantString()
1064 auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(), in GenerateConstantString()
1103 ObjCStrGV->setComdat(TheModule.getOrInsertComdat(StringName)); in GenerateConstantString()
1173 llvm::DataLayout td(&TheModule); in GenerateProtocolMethodList()
[all …]
/external/llvm-project/llvm/tools/llvm-lto/
Dllvm-lto.cpp545 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument
549 maybeVerifyModule(TheModule); in writeModuleToFile()
550 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile()
642 auto TheModule = loadModuleFromInput(*Input, Ctx); in distributedIndexes() local
648 *TheModule, *Index, ModuleToSummariesForIndex, *Input); in distributedIndexes()
679 auto TheModule = loadModuleFromInput(*Input, Ctx); in emitImports() local
686 ThinGenerator.emitImports(*TheModule, OutputName, *Index, *Input); in emitImports()
706 auto TheModule = loadModuleFromInput(*Input, Ctx); in promote() local
708 ThinGenerator.promote(*TheModule, *Index, *Input); in promote()
714 writeModuleToFile(*TheModule, OutputName); in promote()
[all …]
/external/llvm-project/llvm/unittests/IR/
DConstantsTest.cpp478 bool foldFuncPtrAndConstToNull(LLVMContext &Context, Module *TheModule, in foldFuncPtrAndConstToNull() argument
484 FuncType, GlobalValue::ExternalLinkage, "", TheModule)); in foldFuncPtrAndConstToNull()
499 if (!TheModule) { in foldFuncPtrAndConstToNull()
509 Module TheModule("TestModule", Context); in TEST() local
515 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, 2)); in TEST()
520 Module TheModule("TestModule", Context); in TEST() local
521 ASSERT_FALSE(foldFuncPtrAndConstToNull(Context, &TheModule, 4)); in TEST()
526 Module TheModule("TestModule", Context); in TEST() local
531 TheModule.setDataLayout(AlignmentString); in TEST()
532 ASSERT_TRUE(foldFuncPtrAndConstToNull(Context, &TheModule, AndValue)); in TEST()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp402 static std::unique_ptr<Module> TheModule; variable
415 if (auto *F = TheModule->getFunction(Name)) in getFunction()
489 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
541 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in InitializeModuleAndPassManager()
542 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
545 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
564 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
592 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()

12345