/external/llvm/lib/LTO/ |
D | ThinLTOCodeGenerator.cpp | 76 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 …]
|
D | UpdateCompilerUsed.cpp | 34 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/ |
D | ThinLTOCodeGenerator.cpp | 81 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 …]
|
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() 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/ |
D | ARCRuntimeEntryPoints.h | 46 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/ |
D | ARCRuntimeEntryPoints.h | 60 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 90 Module *TheModule = nullptr; member in __anon769178570111::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/Target/X86/ |
D | X86WinEHState.cpp | 90 Module *TheModule = nullptr; member in __anon34257a1f0111::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/llvm/lib/Transforms/Utils/ |
D | NameAnonFunctions.cpp | 25 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-jitlistener/ |
D | llvm-jitlistener.cpp | 113 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/llvm/tools/llvm-jitlistener/ |
D | llvm-jitlistener.cpp | 115 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/tools/llvm-lto/ |
D | llvm-lto.cpp | 384 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/lib/Transforms/Utils/ |
D | NameAnonGlobals.cpp | 28 Module &TheModule; member in __anonda232f790111::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/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 355 static Module *TheModule; variable 392 Function *CalleeF = TheModule->getFunction(Callee); in Codegen() 416 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen() 423 F = TheModule->getFunction(Name); in Codegen() 573 TheModule = new Module("my cool jit", Context); in main() 577 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main() 583 FunctionPassManager OurFPM(TheModule); in main() 610 TheModule->dump(); in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/ |
D | Internalize.h | 64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr); 71 internalizeModule(Module &TheModule, 75 .internalizeModule(TheModule, CG);
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | Internalize.h | 64 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/ |
D | llvm-lto.cpp | 467 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/swiftshader/third_party/LLVM/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 93 const Module *TheModule; member in __anon14c515f90111::CppWriter 637 for (Module::const_global_iterator I = TheModule->global_begin(), in printTypes() 638 E = TheModule->global_end(); I != E; ++I) { in printTypes() 645 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printTypes() 885 for (Module::const_global_iterator I = TheModule->global_begin(), in printConstants() 886 E = TheModule->global_end(); I != E; ++I) in printConstants() 891 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printConstants() 1677 const Function* F = TheModule->getFunction(func); in printInline() 1707 printTypes(TheModule); in printModuleBody() 1712 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in printModuleBody() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 402 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/ |
D | toy.cpp | 414 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/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 541 static Module *TheModule; variable 562 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen() 588 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen() 597 Function *CalleeF = TheModule->getFunction(Callee); in Codegen() 765 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen() 772 F = TheModule->getFunction(Name); in Codegen() 936 TheModule = new Module("my cool jit", Context); in main() 940 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main() 946 FunctionPassManager OurFPM(TheModule); in main() 973 TheModule->dump(); in main()
|
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 348 static Module *TheModule; variable 384 Function *CalleeF = TheModule->getFunction(Callee); in Codegen() 408 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen() 415 F = TheModule->getFunction(Name); in Codegen() 554 TheModule = new Module("my cool jit", Context); in main() 560 TheModule->dump(); in main()
|
/external/clang/lib/CodeGen/ |
D | CGCUDANV.cpp | 38 llvm::Module &TheModule; member in __anon9870150b0111::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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 624 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/ |
D | toy-jit.cpp | 624 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 …]
|