/external/clang/include/clang/CodeGen/ |
CodeGenAction.h | 27 std::unique_ptr<llvm::Module> TheModule;
|
/external/llvm/lib/Transforms/ObjCARC/ |
ARCRuntimeEntryPoints.h | 46 ARCRuntimeEntryPoints() : TheModule(nullptr), 58 TheModule = M; 71 assert(TheModule != nullptr && "Not initialized."); 103 Module *TheModule; 129 LLVMContext &C = TheModule->getContext(); 136 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); 145 LLVMContext &C = TheModule->getContext(); 155 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); 163 LLVMContext &C = TheModule->getContext(); 176 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr) [all...] |
/external/clang/lib/CodeGen/ |
CodeGenTypes.h | 124 llvm::Module &TheModule; 170 return TheModule.getDataLayout(); 176 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); }
|
CGCUDANV.cpp | 38 llvm::Module &TheModule; 81 TheModule(CGM.getModule()) { 173 llvm::GlobalValue::InternalLinkage, "__cuda_register_kernels", &TheModule); 230 llvm::GlobalValue::InternalLinkage, "__cuda_module_ctor", &TheModule); 259 TheModule, FatbinWrapperTy, true, llvm::GlobalValue::InternalLinkage, 268 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, 301 llvm::GlobalValue::InternalLinkage, "__cuda_module_dtor", &TheModule);
|
BackendUtil.cpp | 56 Module *TheModule; 93 PerFunctionPasses = new legacy::FunctionPassManager(TheModule); 123 TheModule(M), FunctionIndex(std::move(Index)), 291 Triple TargetTriple(TheModule->getTargetTriple()); 443 std::string Triple = TheModule->getTargetTriple(); 594 llvm::Triple TargetTriple(TheModule->getTargetTriple()); 637 TheModule->setDataLayout(TM->createDataLayout()); 669 for (Function &F : *TheModule) 677 PerModulePasses->run(*TheModule); 682 CodeGenPasses->run(*TheModule); [all...] |
CodeGenAction.cpp | 58 std::unique_ptr<llvm::Module> TheModule; 86 std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); } 106 TheModule.reset(Gen->GetModule()); 154 if (!TheModule) 163 TheModule.release(); 167 assert(TheModule.get() == M && 172 LLVMContext &Ctx = TheModule->getContext(); 193 TheModule.get(), Action, AsmOutStream); 633 TheModule.reset(); 650 TheModule = BEConsumer->takeModule() [all...] |
CodeGenModule.h | 265 llvm::Module &TheModule; 601 llvm::Module &getModule() const { return TheModule; } 604 return TheModule.getDataLayout(); [all...] |
CGObjCGNU.cpp | 101 llvm::Module &TheModule; 180 auto *ConstStr = TheModule.getGlobalVariable(name); 183 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, 199 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, 214 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, [all...] |
/external/llvm/examples/Kaleidoscope/Chapter3/ |
toy.cpp | 383 static std::unique_ptr<Module> TheModule; 429 Function *CalleeF = TheModule->getFunction(Callee); 455 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 467 Function *TheFunction = TheModule->getFunction(Proto->getName()); 580 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); 586 TheModule->dump();
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
toy.cpp | 389 static std::unique_ptr<Module> TheModule; 403 if (auto *F = TheModule->getFunction(Name)) 479 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 531 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); 532 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 535 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 554 TheJIT->addModule(std::move(TheModule)); 583 auto H = TheJIT->addModule(std::move(TheModule));
|
/external/llvm/include/llvm/CodeGen/ |
MachineModuleInfo.h | 114 /// TheModule - This is the LLVM Module being worked on. 115 const Module *TheModule; 221 void setModule(const Module *M) { TheModule = M; } 222 const Module *getModule() const { return TheModule; }
|
/external/llvm/lib/Target/X86/ |
X86WinEHState.cpp | 83 Module *TheModule = nullptr; 118 TheModule = &M; 119 FrameEscape = Intrinsic::getDeclaration(TheModule, Intrinsic::localescape); 120 FrameRecover = Intrinsic::getDeclaration(TheModule, Intrinsic::localrecover); 121 FrameAddress = Intrinsic::getDeclaration(TheModule, Intrinsic::frameaddress); 126 assert(TheModule == &M); 127 TheModule = nullptr; 198 LLVMContext &Context = TheModule->getContext(); 217 LLVMContext &Context = TheModule->getContext(); 239 LLVMContext &Context = TheModule->getContext() [all...] |
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 513 static std::unique_ptr<Module> TheModule; 527 if (auto *F = TheModule->getFunction(Name)) 753 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 805 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); 806 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 809 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 828 TheJIT->addModule(std::move(TheModule)); 857 auto H = TheJIT->addModule(std::move(TheModule));
|
/external/clang/lib/Frontend/ |
CompilerInstance.cpp | [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 604 static std::unique_ptr<Module> TheModule; 618 if (auto *F = TheModule->getFunction(Name)) 864 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 923 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); 924 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 927 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 946 TheJIT->addModule(std::move(TheModule)); 975 auto H = TheJIT->addModule(std::move(TheModule));
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 674 static std::unique_ptr<Module> TheModule; 688 if (auto *F = TheModule->getFunction(Name)) 1022 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); 1089 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); 1090 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); 1093 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); 1112 TheJIT->addModule(std::move(TheModule)); 1141 auto H = TheJIT->addModule(std::move(TheModule)); [all...] |
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
toy-jit.cpp | 624 static Module *TheModule; 660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); 709 Function *F = TheModule->getFunction(std::string("binary")+Op); 718 Function *CalleeF = TheModule->getFunction(Callee); 941 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 947 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); 691 Function *F = TheModule->getFunction(std::string("binary")+Op); 700 Function *CalleeF = TheModule->getFunction(Callee); 923 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); 929 F = TheModule->getFunction(Name); 1119 TheModule = new Module("my cool jit", Context); 1123 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); 1129 FunctionPassManager OurFPM(TheModule); [all...] |
/external/llvm/lib/Target/CppBackend/ |
CPPBackend.cpp | 97 const Module *TheModule; 692 for (Module::const_global_iterator I = TheModule->global_begin(), 693 E = TheModule->global_end(); I != E; ++I) { 700 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); [all...] |
/external/llvm/examples/Kaleidoscope/Chapter8/ |
toy.cpp | 858 static std::unique_ptr<Module> TheModule; 870 if (auto *F = TheModule->getFunction(Name)) [all...] |
/external/llvm/lib/IR/ |
AsmWriter.cpp | 569 /// TheModule - The module for which we are holding slot numbers. 570 const Module* TheModule; 740 : TheModule(M), TheFunction(nullptr), FunctionProcessed(false), 747 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), 753 if (TheModule) { 755 TheModule = nullptr; ///< Prevent re-processing next time we're called. 768 for (const GlobalVariable &Var : TheModule->globals()) { 773 for (const GlobalAlias &A : TheModule->aliases()) { 779 for (const NamedMDNode &NMD : TheModule->named_metadata()) { 784 for (const Function &F : *TheModule) { [all...] |