/external/llvm/tools/llvm-lto/ |
llvm-lto.cpp | 384 static void writeModuleToFile(Module &TheModule, StringRef Filename) { 388 maybeVerifyModule(TheModule); 389 WriteBitcodeToFile(&TheModule, OS, /* ShouldPreserveUseListOrder */ true); 527 auto TheModule = loadModule(Filename, Ctx); 529 ThinGenerator.promote(*TheModule, *Index); 535 writeModuleToFile(*TheModule, OutputName); 558 auto TheModule = loadModule(Filename, Ctx); 560 ThinGenerator.crossModuleImport(*TheModule, *Index); 566 writeModuleToFile(*TheModule, OutputName); 589 auto TheModule = loadModule(Filename, Ctx) [all...] |
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 348 static Module *TheModule; 384 Function *CalleeF = TheModule->getFunction(Callee); 408 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 415 F = TheModule->getFunction(Name); 554 TheModule = new Module("my cool jit", Context); 560 TheModule->dump();
|
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter4/ |
toy.cpp | 355 static Module *TheModule; 392 Function *CalleeF = TheModule->getFunction(Callee); 416 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 423 F = TheModule->getFunction(Name); 573 TheModule = new Module("my cool jit", Context); 577 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 583 FunctionPassManager OurFPM(TheModule); 610 TheModule->dump();
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
MachineModuleInfo.h | 102 /// TheModule - This is the LLVM Module being worked on. 103 const Module *TheModule; 193 void setModule(const Module *M) { TheModule = M; } 194 const Module *getModule() const { return TheModule; }
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 527 static std::unique_ptr<Module> TheModule; 540 if (auto *F = TheModule->getFunction(Name)) 761 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 813 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 814 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 817 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 836 TheJIT->addModule(std::move(TheModule)); 864 auto H = TheJIT->addModule(std::move(TheModule));
|
/external/llvm/lib/Target/X86/ |
X86WinEHState.cpp | 90 Module *TheModule = nullptr; 128 TheModule = &M; 133 assert(TheModule == &M); 134 TheModule = nullptr; 175 Type *Int8PtrType = Type::getInt8PtrTy(TheModule->getContext()); 176 SetJmp3 = TheModule->getOrInsertFunction( 178 Type::getInt32Ty(TheModule->getContext()), 179 {Int8PtrType, Type::getInt32Ty(TheModule->getContext())}, 217 LLVMContext &Context = TheModule->getContext(); 236 LLVMContext &Context = TheModule->getContext() [all...] |
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 456 static Module *TheModule; 493 Function *CalleeF = TheModule->getFunction(Callee); 661 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 668 F = TheModule->getFunction(Name); 818 TheModule = new Module("my cool jit", Context); 822 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 828 FunctionPassManager OurFPM(TheModule); 855 TheModule->dump();
|
/external/clang/lib/Frontend/ |
CompilerInstance.cpp | [all...] |
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
toy.cpp | 689 static std::unique_ptr<Module> TheModule; 701 if (auto *F = TheModule->getFunction(Name)) 1029 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1093 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1102 TheJIT->addModule(std::move(TheModule)); 1130 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
toy.cpp | 689 static std::unique_ptr<Module> TheModule; 701 if (auto *F = TheModule->getFunction(Name)) 1029 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1093 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1102 TheJIT->addModule(std::move(TheModule)); 1130 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
toy.cpp | 689 static std::unique_ptr<Module> TheModule; 701 if (auto *F = TheModule->getFunction(Name)) 1029 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1093 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1094 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1102 TheJIT->addModule(std::move(TheModule)); 1130 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
toy.cpp | 677 static std::unique_ptr<Module> TheModule; 690 if (auto *F = TheModule->getFunction(Name)) 1018 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1089 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1090 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1097 auto M = std::move(TheModule); 1137 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/ |
toy.cpp | 699 static std::unique_ptr<Module> TheModule; 712 if (auto *F = TheModule->getFunction(Name)) 1040 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1111 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1112 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1119 auto M = std::move(TheModule); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 618 static std::unique_ptr<Module> TheModule; 631 if (auto *F = TheModule->getFunction(Name)) 872 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 931 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 932 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 935 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 954 TheJIT->addModule(std::move(TheModule)); 982 auto H = TheJIT->addModule(std::move(TheModule));
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 689 static std::unique_ptr<Module> TheModule; 702 if (auto *F = TheModule->getFunction(Name)) 1030 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1097 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); 1098 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1101 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 1120 TheJIT->addModule(std::move(TheModule)); 1148 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter8/ |
toy.cpp | 686 static std::unique_ptr<Module> TheModule; 697 if (auto *F = TheModule->getFunction(Name)) 1025 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1089 TheModule = llvm::make_unique<Module>("my cool jit", TheContext); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
toy-jit.cpp | 624 static Module *TheModule; 660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 708 Function *F = TheModule->getFunction(std::string("binary")+Op); 717 Function *CalleeF = TheModule->getFunction(Callee); 937 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 943 F = TheModule->getFunction(Name); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
toy-jit.cpp | 609 static Module *TheModule; 645 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 690 Function *F = TheModule->getFunction(std::string("binary")+Op); 699 Function *CalleeF = TheModule->getFunction(Callee); 919 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 925 F = TheModule->getFunction(Name); 1115 TheModule = new Module("my cool jit", Context); 1119 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 1125 FunctionPassManager OurFPM(TheModule); [all...] |
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 541 static Module *TheModule; 562 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 588 Function *F = TheModule->getFunction(std::string("binary")+Op); 597 Function *CalleeF = TheModule->getFunction(Callee); 765 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 772 F = TheModule->getFunction(Name); 936 TheModule = new Module("my cool jit", Context); 940 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 946 FunctionPassManager OurFPM(TheModule); 973 TheModule->dump() [all...] |
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 606 static Module *TheModule; 640 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 684 Function *F = TheModule->getFunction(std::string("binary")+Op); 693 Function *CalleeF = TheModule->getFunction(Callee); 913 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 920 F = TheModule->getFunction(Name); 1100 TheModule = new Module("my cool jit", Context); 1104 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 1110 FunctionPassManager OurFPM(TheModule); [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/ |
CPPBackend.cpp | 93 const Module *TheModule; 637 for (Module::const_global_iterator I = TheModule->global_begin(), 638 E = TheModule->global_end(); I != E; ++I) { 645 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); 885 for (Module::const_global_iterator I = TheModule->global_begin(), 886 E = TheModule->global_end(); I != E; ++I) [all...] |
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
AsmWriter.cpp | 307 /// TheModule - The module for which we are holding slot numbers. 308 const Module* TheModule; 423 : TheModule(M), TheFunction(0), FunctionProcessed(false), 430 : TheModule(F ? F->getParent() : 0), TheFunction(F), FunctionProcessed(false), 435 if (TheModule) { 437 TheModule = 0; ///< Prevent re-processing next time we're called. 450 for (Module::const_global_iterator I = TheModule->global_begin(), 451 E = TheModule->global_end(); I != E; ++I) { 458 I = TheModule->named_metadata_begin(), 459 E = TheModule->named_metadata_end(); I != E; ++I) [all...] |
/external/clang/lib/CodeGen/ |
CodeGenModule.h | 270 llvm::Module &TheModule; 607 llvm::Module &getModule() const { return TheModule; } 610 return TheModule.getDataLayout(); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter9/ |
toy.cpp | 859 static std::unique_ptr<Module> TheModule; 871 if (auto *F = TheModule->getFunction(Name)) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/ |
CBackend.cpp | 83 const Module *TheModule; 106 TheModule(0), TAsm(0), MRI(0), MOFI(0), TCtx(0), TD(0), [all...] |