Searched refs:TheModule (Results 1 - 25 of 28) sorted by relevance

12

/external/llvm/lib/Transforms/ObjCARC/
H A DARCRuntimeEntryPoints.h46 ARCRuntimeEntryPoints() : TheModule(nullptr),
58 TheModule = M;
71 assert(TheModule != nullptr && "Not initialized.");
103 Module *TheModule; member in class:llvm::objcarc::ARCRuntimeEntryPoints
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
[all...]
/external/llvm/lib/Target/X86/
H A DX86WinEHState.cpp83 Module *TheModule = nullptr; member in class:__anon12397::WinEHStatePass
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
[all...]
/external/llvm/tools/llvm-jitlistener/
H A Dllvm-jitlistener.cpp117 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context));
118 if (!TheModule) {
130 Triple Tuple(TheModule->getTargetTriple());
136 TheModule->setTargetTriple(Tuple.getTriple());
141 TheJIT.reset(EngineBuilder(std::move(TheModule))
/external/clang/lib/CodeGen/
H A DCodeGenAction.cpp58 std::unique_ptr<llvm::Module> TheModule; member in class:clang::BackendConsumer
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
[all...]
H A DCGCUDANV.cpp38 llvm::Module &TheModule; member in class:__anon1092::CGNVCUDARuntime
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);
H A DCodeGenTypes.h124 llvm::Module &TheModule; member in class:clang::CodeGen::CodeGenTypes
170 return TheModule.getDataLayout();
176 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); }
H A DCGObjCGNU.cpp101 llvm::Module &TheModule; member in class:__anon1133::CGObjCGNU
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,
843 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName);
846 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false,
875 if (TheModule.getGlobalVariable(symbolRef))
878 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName);
880 ClassSymbol = new llvm::GlobalVariable(TheModule, LongT
[all...]
H A DBackendUtil.cpp56 Module *TheModule; member in class:__anon1084::EmitAssemblyHelper
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...]
H A DCodeGenModule.h265 llvm::Module &TheModule; member in class:clang::CodeGen::CodeGenModule
601 llvm::Module &getModule() const { return TheModule; }
604 return TheModule.getDataLayout();
H A DCodeGenModule.cpp87 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags),
704 new llvm::GlobalVariable(TheModule, AT, false,
1428 GV->setComdat(TheModule.getOrInsertComdat(GV->getName()));
2106 GV->setComdat(TheModule.getOrInsertComdat(GV->getName()));
2236 GO.setComdat(TheModule.getOrInsertComdat(GO.getName()));
3342 GV->setComdat(TheModule.getOrInsertComdat(GV->getName()));
3817 TheModule.getOrInsertNamedMetadata("llvm.ident");
3819 llvm::LLVMContext &Ctx = TheModule.getContext();
3842 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) {
3843 llvm::NamedMDNode *GCov = TheModule
[all...]
/external/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp389 static std::unique_ptr<Module> TheModule; variable
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/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp383 static std::unique_ptr<Module> TheModule; variable
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/Chapter5/
H A Dtoy.cpp513 static std::unique_ptr<Module> TheModule; variable
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/include/clang/CodeGen/
H A DCodeGenAction.h27 std::unique_ptr<llvm::Module> TheModule; member in class:clang::CodeGenAction
/external/llvm/include/llvm/CodeGen/
H A DMachineModuleInfo.h114 /// TheModule - This is the LLVM Module being worked on.
115 const Module *TheModule; member in class:llvm::MachineModuleInfo
221 void setModule(const Module *M) { TheModule = M; }
222 const Module *getModule() const { return TheModule; }
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp624 static Module *TheModule; variable
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);
1156 TheModule = parseInputIR(InputIR);
1158 TheModule = new Module("my cool jit", Context);
1163 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create();
1169 FunctionPassManager OurFPM(TheModule);
[all...]
/external/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp97 const Module *TheModule; member in class:__anon12139::CppWriter
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();
949 for (Module::const_global_iterator I = TheModule->global_begin(),
950 E = TheModule->global_end(); I != E; ++I)
955 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end();
1855 const Function* F = TheModule
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp609 static Module *TheModule; variable
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);
1164 TheModule
[all...]
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp604 static std::unique_ptr<Module> TheModule; variable
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/
H A Dtoy.cpp674 static std::unique_ptr<Module> TheModule; variable
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));
/external/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp858 static std::unique_ptr<Module> TheModule; variable
870 if (auto *F = TheModule->getFunction(Name))
1217 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get());
1322 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext());
1323 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout());
1423 TheModule->addModuleFlag(Module::Warning, "Debug Info Version",
1428 TheModule->addModuleFlag(llvm::Module::Warning, "Dwarf Version", 2);
1431 DBuilder = llvm::make_unique<DIBuilder>(*TheModule);
1446 TheModule->dump();
/external/llvm/lib/IR/
H A DAsmWriter.cpp569 /// TheModule - The module for which we are holding slot numbers.
570 const Module* TheModule; member in class:llvm::SlotTracker
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) {
2004 const Module *TheModule; member in class:__anon11908::AssemblyWriter
[all...]
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp135 Module *TheModule = nullptr;
1724 GO->setComdat(TheModule->getOrInsertComdat(V->getName()));
1773 Triple TT(TheModule->getTargetTriple());
1858 unsigned NewKind = TheModule->getMDKindID(Name.str());
1945 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name);
3116 for (Function &F : *TheModule) {
3123 for (GlobalVariable &GV : TheModule->globals())
3390 TheModule->setTargetTriple(S);
3397 TheModule->setDataLayout(S);
3404 TheModule
[all...]
/external/clang/lib/Frontend/
H A DCompilerInstance.cpp1682 Module *TheModule = I->second; local
1683 const FileEntry *Entry = TheModule->getASTFile();
1687 getPreprocessor().getIdentifierInfo(TheModule->Name), TriggerLoc));
1690 loadModule(TheModule->DefinitionLoc, Path, Module::Hidden, false);
/external/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp216 TheModule = nullptr;

Completed in 499 milliseconds

12