Home
last modified time | relevance | path

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

12

/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/llvm/lib/Target/X86/
DX86WinEHState.cpp83 Module *TheModule = nullptr; member in __anon34257a1f0111::WinEHStatePass
118 TheModule = &M; in doInitialization()
119 FrameEscape = Intrinsic::getDeclaration(TheModule, Intrinsic::localescape); in doInitialization()
120 FrameRecover = Intrinsic::getDeclaration(TheModule, Intrinsic::localrecover); in doInitialization()
121 FrameAddress = Intrinsic::getDeclaration(TheModule, Intrinsic::frameaddress); in doInitialization()
126 assert(TheModule == &M); in doFinalization()
127 TheModule = nullptr; in doFinalization()
198 LLVMContext &Context = TheModule->getContext(); in getEHLinkRegistrationType()
217 LLVMContext &Context = TheModule->getContext(); in getCXXEHRegistrationType()
239 LLVMContext &Context = TheModule->getContext(); in getSEHRegistrationType()
[all …]
/external/clang/lib/CodeGen/
DCodeGenAction.cpp58 std::unique_ptr<llvm::Module> TheModule; member in clang::BackendConsumer
86 std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); } in takeModule()
106 TheModule.reset(Gen->GetModule()); in Initialize()
154 if (!TheModule) in HandleTranslationUnit()
163 TheModule.release(); in HandleTranslationUnit()
167 assert(TheModule.get() == M && in HandleTranslationUnit()
172 LLVMContext &Ctx = TheModule->getContext(); in HandleTranslationUnit()
193 TheModule.get(), Action, AsmOutStream); in HandleTranslationUnit()
633 TheModule.reset(); in ~CodeGenAction()
650 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
[all …]
DCGCUDANV.cpp38 llvm::Module &TheModule; member in __anon9870150b0111::CGNVCUDARuntime
81 TheModule(CGM.getModule()) { in CGNVCUDARuntime()
173 llvm::GlobalValue::InternalLinkage, "__cuda_register_kernels", &TheModule); in makeRegisterKernelsFn()
230 llvm::GlobalValue::InternalLinkage, "__cuda_module_ctor", &TheModule); in makeModuleCtorFunction()
259 TheModule, FatbinWrapperTy, true, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
268 TheModule, VoidPtrPtrTy, false, llvm::GlobalValue::InternalLinkage, in makeModuleCtorFunction()
301 llvm::GlobalValue::InternalLinkage, "__cuda_module_dtor", &TheModule); in makeModuleDtorFunction()
DBackendUtil.cpp56 Module *TheModule; member in __anona74313260111::EmitAssemblyHelper
93 PerFunctionPasses = new legacy::FunctionPassManager(TheModule); in getPerFunctionPasses()
123 TheModule(M), FunctionIndex(std::move(Index)), in EmitAssemblyHelper()
291 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
443 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
594 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
637 TheModule->setDataLayout(TM->createDataLayout()); in EmitAssembly()
669 for (Function &F : *TheModule) in EmitAssembly()
677 PerModulePasses->run(*TheModule); in EmitAssembly()
682 CodeGenPasses->run(*TheModule); in EmitAssembly()
DCGObjCGNU.cpp101 llvm::Module &TheModule; member in __anon13748a720111::CGObjCGNU
180 auto *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
183 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
199 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
214 auto GV = new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
843 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
846 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
875 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
878 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
880 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
[all …]
DCodeGenTypes.h124 llvm::Module &TheModule; variable
170 return TheModule.getDataLayout(); in getDataLayout()
176 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
DCodeGenModule.h265 llvm::Module &TheModule; variable
601 llvm::Module &getModule() const { return TheModule; } in getModule()
604 return TheModule.getDataLayout(); in getDataLayout()
DCodeGenModule.cpp87 PreprocessorOpts(PPO), CodeGenOpts(CGO), TheModule(M), Diags(diags), in CodeGenModule()
704 new llvm::GlobalVariable(TheModule, AT, false, in EmitCtorList()
1428 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in GetAddrOfUuidDescriptor()
2106 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in CreateOrReplaceCXXRuntimeVariable()
2236 GO.setComdat(TheModule.getOrInsertComdat(GO.getName())); in maybeSetTrivialComdat()
3342 GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); in GetAddrOfGlobalTemporary()
3817 TheModule.getOrInsertNamedMetadata("llvm.ident"); in EmitVersionIdentMetadata()
3819 llvm::LLVMContext &Ctx = TheModule.getContext(); in EmitVersionIdentMetadata()
3842 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile()
3843 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile()
[all …]
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp117 std::unique_ptr<Module> TheModule(parseIRFile(IRFile, Err, Context)); in InitEE() local
118 if (!TheModule) { in InitEE()
130 Triple Tuple(TheModule->getTargetTriple()); in InitEE()
136 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
141 TheJIT.reset(EngineBuilder(std::move(TheModule)) in InitEE()
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp389 static std::unique_ptr<Module> TheModule; variable
403 if (auto *F = TheModule->getFunction(Name)) in getFunction()
479 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
531 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModuleAndPassManager()
532 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
535 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
554 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
583 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp624 static Module *TheModule; variable
660 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen()
709 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen()
718 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
941 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
947 F = TheModule->getFunction(Name); in Codegen()
1156 TheModule = parseInputIR(InputIR); in main()
1158 TheModule = new Module("my cool jit", Context); in main()
1163 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
1169 FunctionPassManager OurFPM(TheModule); in main()
[all …]
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp97 const Module *TheModule; member in __anon12aff8cd0111::CppWriter
692 for (Module::const_global_iterator I = TheModule->global_begin(), in printTypes()
693 E = TheModule->global_end(); I != E; ++I) { in printTypes()
700 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printTypes()
949 for (Module::const_global_iterator I = TheModule->global_begin(), in printConstants()
950 E = TheModule->global_end(); I != E; ++I) in printConstants()
955 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printConstants()
1855 const Function* F = TheModule->getFunction(func); in printInline()
1885 printTypes(TheModule); in printModuleBody()
1890 for (const Function &I : *TheModule) in printModuleBody()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp383 static std::unique_ptr<Module> TheModule; variable
429 Function *CalleeF = TheModule->getFunction(Callee); in codegen()
455 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
467 Function *TheFunction = TheModule->getFunction(Proto->getName()); in codegen()
580 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in main()
586 TheModule->dump(); in main()
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp609 static Module *TheModule; variable
645 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen()
691 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen()
700 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
923 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
929 F = TheModule->getFunction(Name); in Codegen()
1119 TheModule = new Module("my cool jit", Context); in main()
1123 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
1129 FunctionPassManager OurFPM(TheModule); in main()
1164 TheModule->dump(); in main()
/external/llvm/examples/Kaleidoscope/Chapter5/
Dtoy.cpp513 static std::unique_ptr<Module> TheModule; variable
527 if (auto *F = TheModule->getFunction(Name)) in getFunction()
753 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
805 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModuleAndPassManager()
806 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
809 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
828 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
857 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
/external/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp604 static std::unique_ptr<Module> TheModule; variable
618 if (auto *F = TheModule->getFunction(Name)) in getFunction()
864 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
923 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModuleAndPassManager()
924 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
927 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
946 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
975 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
/external/llvm/include/llvm/CodeGen/
DMachineModuleInfo.h115 const Module *TheModule; variable
221 void setModule(const Module *M) { TheModule = M; } in setModule()
222 const Module *getModule() const { return TheModule; } in getModule()
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp674 static std::unique_ptr<Module> TheModule; variable
688 if (auto *F = TheModule->getFunction(Name)) in getFunction()
1022 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
1089 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModuleAndPassManager()
1090 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModuleAndPassManager()
1093 TheFPM = llvm::make_unique<legacy::FunctionPassManager>(TheModule.get()); in InitializeModuleAndPassManager()
1112 TheJIT->addModule(std::move(TheModule)); in HandleDefinition()
1141 auto H = TheJIT->addModule(std::move(TheModule)); in HandleTopLevelExpression()
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp858 static std::unique_ptr<Module> TheModule; variable
870 if (auto *F = TheModule->getFunction(Name)) in getFunction()
1217 Function::Create(FT, Function::ExternalLinkage, Name, TheModule.get()); in codegen()
1322 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext()); in InitializeModule()
1323 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout()); in InitializeModule()
1423 TheModule->addModuleFlag(Module::Warning, "Debug Info Version", in main()
1428 TheModule->addModuleFlag(llvm::Module::Warning, "Dwarf Version", 2); in main()
1431 DBuilder = llvm::make_unique<DIBuilder>(*TheModule); in main()
1446 TheModule->dump(); in main()
/external/llvm/docs/tutorial/
DLangImpl4.rst134 TheModule = llvm::make_unique<Module>("my cool jit", getGlobalContext());
135 TheModule->setDataLayout(TheJIT->getTargetMachine().createDataLayout());
138 TheFPM = llvm::make_unique<FunctionPassManager>(TheModule.get());
154 This code initializes the global module ``TheModule``, and the function pass
155 manager ``TheFPM``, which is attached to ``TheModule``. Once the pass manager is
267 auto H = TheJIT->addModule(std::move(TheModule));
410 if (auto *F = TheModule->getFunction(Name))
443 method, ``getFunction()``, to replace calls to ``TheModule->getFunction()``.
444 Our convenience method searches ``TheModule`` for an existing function
447 call to ``TheModule->getFunction()``. In ``FunctionAST::codegen()`` we need to
[all …]
DLangImpl3.rst76 static std::unique_ptr<Module> *TheModule;
85 The static variables will be used during code generation. ``TheModule``
215 Function *CalleeF = TheModule->getFunction(Callee);
272 Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
295 specified: since "``TheModule``" is specified, this name is registered
296 in "``TheModule``"s symbol table.
322 Function *TheFunction = TheModule->getFunction(Proto->getName());
334 For function definitions, we start by searching TheModule's symbol table for an
/external/llvm/lib/IR/
DAsmWriter.cpp570 const Module* TheModule; member in llvm::SlotTracker
740 : TheModule(M), TheFunction(nullptr), FunctionProcessed(false), in SlotTracker()
747 : TheModule(F ? F->getParent() : nullptr), TheFunction(F), in SlotTracker()
753 if (TheModule) { in initialize()
755 TheModule = nullptr; ///< Prevent re-processing next time we're called. in initialize()
768 for (const GlobalVariable &Var : TheModule->globals()) { in processModule()
773 for (const GlobalAlias &A : TheModule->aliases()) { in processModule()
779 for (const NamedMDNode &NMD : TheModule->named_metadata()) { in processModule()
784 for (const Function &F : *TheModule) { in processModule()
2004 const Module *TheModule; member in __anond169a03a0611::AssemblyWriter
[all …]
/external/clang/include/clang/CodeGen/
DCodeGenAction.h27 std::unique_ptr<llvm::Module> TheModule; variable
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp135 Module *TheModule = nullptr; member in __anonecb5182a0111::BitcodeReader
1724 GO->setComdat(TheModule->getOrInsertComdat(V->getName())); in recordValue()
1773 Triple TT(TheModule->getTargetTriple()); in parseValueSymbolTable()
1858 unsigned NewKind = TheModule->getMDKindID(Name.str()); in parseMetadataKindRecord()
1945 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in parseMetadata()
3116 for (Function &F : *TheModule) { in globalCleanup()
3123 for (GlobalVariable &GV : TheModule->globals()) in globalCleanup()
3390 TheModule->setTargetTriple(S); in parseModule()
3397 TheModule->setDataLayout(S); in parseModule()
3404 TheModule->setModuleInlineAsm(S); in parseModule()
[all …]

12