Home
last modified time | relevance | path

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

1234

/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/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp81 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
92 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in saveTempBitcode()
148 static void promoteModule(Module &TheModule, const ModuleSummaryIndex &Index) { in promoteModule() argument
149 if (renameModuleForThinLTO(TheModule, Index)) in promoteModule()
165 static void verifyLoadedModule(Module &TheModule) { in verifyLoadedModule() argument
167 if (verifyModule(TheModule, &dbgs(), &BrokenDebugInfo)) in verifyLoadedModule()
170 TheModule.getContext().diagnose(ThinLTODiagnosticInfo( in verifyLoadedModule()
172 StripDebugInfo(TheModule); in verifyLoadedModule()
199 crossImportIntoModule(Module &TheModule, const ModuleSummaryIndex &Index, in crossImportIntoModule() argument
203 return loadModuleFromBuffer(ModuleMap[Identifier], 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()
117 void llvm::updateCompilerUsed(Module &TheModule, const TargetMachine &TM, in updateCompilerUsed() argument
121 .findInModule(TheModule); in updateCompilerUsed()
126 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h60 TheModule = M; in init()
73 assert(TheModule != nullptr && "Not initialized."); in get()
105 Module *TheModule = nullptr;
138 LLVMContext &C = TheModule->getContext(); in getVoidRetI8XEntryPoint()
144 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
152 LLVMContext &C = TheModule->getContext();
162 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
169 LLVMContext &C = TheModule->getContext(); in getI8XRetI8XXI8XEntryPoint()
181 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp90 Module *TheModule = nullptr; member in __anon80e225ea0111::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-7.0/llvm/lib/Target/X86/
DX86WinEHState.cpp90 Module *TheModule = nullptr; member in __anon169589820111::WinEHStatePass
128 TheModule = &M; in doInitialization()
133 assert(TheModule == &M); in doFinalization()
134 TheModule = nullptr; in doFinalization()
181 Type *Int8PtrType = Type::getInt8PtrTy(TheModule->getContext()); in runOnFunction()
182 SetJmp3 = TheModule->getOrInsertFunction( in runOnFunction()
184 Type::getInt32Ty(TheModule->getContext()), in runOnFunction()
185 {Int8PtrType, Type::getInt32Ty(TheModule->getContext())}, in runOnFunction()
223 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType()
242 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp113 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context)); in InitEE() local
114 if (!TheModule) { in InitEE()
126 Triple Tuple(TheModule->getTargetTriple()); in InitEE()
132 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
137 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DNameAnonGlobals.cpp28 Module &TheModule; member in __anon128f3ba40111::ModuleHasher
32 ModuleHasher(Module &M) : TheModule(M) {} in ModuleHasher()
41 for (auto &F : TheModule) { in get()
47 for (auto &GV : TheModule.globals()) { in get()
/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-7.0/llvm/include/llvm/Transforms/IPO/
DInternalize.h64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
71 internalizeModule(Module &TheModule,
75 .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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-lto/
Dllvm-lto.cpp467 static void writeModuleToFile(Module &TheModule, StringRef Filename) { in writeModuleToFile() argument
471 maybeVerifyModule(TheModule); in writeModuleToFile()
472 WriteBitcodeToFile(TheModule, OS, /* ShouldPreserveUseListOrder */ true); in writeModuleToFile()
615 auto TheModule = loadModule(Filename, Ctx); in promote() local
617 ThinGenerator.promote(*TheModule, *Index); in promote()
623 writeModuleToFile(*TheModule, OutputName); in promote()
646 auto TheModule = loadModule(Filename, Ctx); in import() local
648 ThinGenerator.crossModuleImport(*TheModule, *Index); in import()
654 writeModuleToFile(*TheModule, OutputName); in import()
677 auto TheModule = loadModule(Filename, Ctx); in internalize() local
[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()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp414 static std::unique_ptr<Module> TheModule; variable
427 if (auto *F = TheModule->getFunction(Name)) in getFunction()
501 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
553 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in InitializeModuleAndPassManager()
554 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
557 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
577 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
606 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
/external/clang/lib/CodeGen/
DCGCUDANV.cpp38 llvm::Module &TheModule; member in __anon30513f360111::CGNVCUDARuntime
86 TheModule(CGM.getModule()) { in CGNVCUDARuntime()
184 llvm::GlobalValue::InternalLinkage, "__cuda_register_globals", &TheModule); in makeRegisterGlobalsFn()
271 llvm::GlobalValue::InternalLinkage, "__cuda_module_ctor", &TheModule); in makeModuleCtorFunction()
300 TheModule, FatbinWrapperTy, true, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
311 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
349 llvm::GlobalValue::InternalLinkage, "__cuda_module_dtor", &TheModule); in makeModuleDtorFunction()
DCGObjCGNU.cpp99 llvm::Module &TheModule; member in __anona77af9fd0111::CGObjCGNU
180 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
183 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
200 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
216 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
877 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
880 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
908 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
911 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
913 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp624 static Module *TheModule; variable
660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen()
708 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen()
717 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
937 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
943 F = TheModule->getFunction(Name); in Codegen()
1152 TheModule = parseInputIR(InputIR); in main()
1154 TheModule = new Module("my cool jit", Context); in main()
1159 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
1165 FunctionPassManager OurFPM(TheModule); in main()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp624 static Module *TheModule; variable
660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen()
708 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen()
717 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
937 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
943 F = TheModule->getFunction(Name); in Codegen()
1152 TheModule = parseInputIR(InputIR); in main()
1154 TheModule = new Module("my cool jit", Context); in main()
1159 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
1165 FunctionPassManager OurFPM(TheModule); in main()
[all …]
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp478 Module &TheModule, const GVSummaryMapTy &DefinedGlobals) { in thinLTOResolveWeakForLinkerModule() argument
495 for (auto &GV : TheModule) in thinLTOResolveWeakForLinkerModule()
497 for (auto &GV : TheModule.globals()) in thinLTOResolveWeakForLinkerModule()
499 for (auto &GV : TheModule.aliases()) in thinLTOResolveWeakForLinkerModule()
504 void llvm::thinLTOInternalizeModule(Module &TheModule, in thinLTOInternalizeModule() argument
510 Triple(TheModule.getTargetTriple()), TheModule.getModuleInlineAsm(), in thinLTOInternalizeModule()
536 TheModule.getSourceFileName()); in thinLTOInternalizeModule()
558 llvm::internalizeModule(TheModule, MustPreserveGV); in thinLTOInternalizeModule()
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp393 static std::unique_ptr<Module> TheModule; variable
437 Function *CalleeF = TheModule->getFunction(Callee); in codegen()
462 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
474 Function *TheFunction = TheModule->getFunction(Proto->getName()); in codegen()
587 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in main()
593 TheModule->dump(); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp404 static std::unique_ptr<Module> TheModule; variable
448 Function *CalleeF = TheModule->getFunction(Callee); in codegen()
473 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
485 Function *TheFunction = TheModule->getFunction(Proto->getName()); in codegen()
601 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); in main()
607 TheModule->print(errs(), nullptr); in main()

1234