Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h46 ARCRuntimeEntryPoints() : TheModule(0), in ARCRuntimeEntryPoints()
60 TheModule = M; in Initialize()
73 assert(TheModule != 0 && "Not initialized."); in get()
105 Module *TheModule;
131 LLVMContext &C = TheModule->getContext(); in getVoidRetI8XEntryPoint()
138 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getVoidRetI8XEntryPoint()
147 LLVMContext &C = TheModule->getContext();
157 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr);
165 LLVMContext &C = TheModule->getContext(); in getI8XRetI8XXI8XEntryPoint()
178 return Decl = TheModule->getOrInsertFunction(Name, Fty, Attr); in getI8XRetI8XXI8XEntryPoint()
/external/clang/lib/CodeGen/
DCodeGenAction.cpp50 OwningPtr<llvm::Module> TheModule, LinkModule; member in clang::BackendConsumer
76 llvm::Module *takeModule() { return TheModule.take(); } in takeModule()
91 TheModule.reset(Gen->GetModule()); in Initialize()
126 if (!TheModule) in HandleTranslationUnit()
135 TheModule.take(); in HandleTranslationUnit()
139 assert(TheModule.get() == M && in HandleTranslationUnit()
155 LLVMContext &Ctx = TheModule->getContext(); in HandleTranslationUnit()
162 TheModule.get(), Action, AsmOutStream); in HandleTranslationUnit()
293 TheModule.reset(); in ~CodeGenAction()
310 TheModule.reset(BEConsumer->takeModule()); in EndSourceFileAction()
[all …]
DBackendUtil.cpp49 Module *TheModule; member in __anon77725cf00111::EmitAssemblyHelper
61 CodeGenPasses->add(new DataLayout(TheModule)); in getCodeGenPasses()
71 PerModulePasses->add(new DataLayout(TheModule)); in getPerModulePasses()
80 PerFunctionPasses = new FunctionPassManager(TheModule); in getPerFunctionPasses()
81 PerFunctionPasses->add(new DataLayout(TheModule)); in getPerFunctionPasses()
114 TheModule(M), CodeGenerationTime("Code Generation Time"), in EmitAssemblyHelper()
269 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses()
330 std::string Triple = TheModule->getTargetTriple(); in CreateTargetMachine()
485 llvm::Triple TargetTriple(TheModule->getTargetTriple()); in AddEmitPasses()
561 for (Module::iterator I = TheModule->begin(), in EmitAssembly()
[all …]
DCGObjCGNU.cpp105 llvm::Module &TheModule; member in __anon92d2d9bc0111::CGObjCGNU
183 llvm::Constant *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
186 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString()
200 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
212 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal()
857 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed()
860 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed()
889 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef()
892 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef()
894 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef()
[all …]
DCodeGenTypes.h65 llvm::Module &TheModule; variable
122 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
DCodeGenModule.h235 llvm::Module &TheModule; variable
508 llvm::Module &getModule() const { return TheModule; } in getModule()
DCodeGenModule.cpp74 : Context(C), LangOpts(C.getLangOpts()), CodeGenOpts(CGO), TheModule(M), in CodeGenModule()
506 new llvm::GlobalVariable(TheModule, AT, false, in EmitCtorList()
3071 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile()
3072 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile()
3073 llvm::LLVMContext &Ctx = TheModule.getContext(); in EmitCoverageFile()
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp117 TheModule = ParseIRFile(IRFile, Err, Context); in InitEE()
118 if (!TheModule) { in InitEE()
138 Triple Tuple(TheModule->getTargetTriple()); in InitEE()
144 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
149 TheJIT.reset(EngineBuilder(TheModule) in InitEE()
164 Module *TheModule; // Owned by ExecutionEngine. member in __anone3a490af0111::JitEventListenerTest
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp355 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/llvm/examples/Kaleidoscope/Chapter3/
Dtoy.cpp348 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/llvm/examples/Kaleidoscope/Chapter6/
Dtoy.cpp541 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/llvm/lib/Target/CppBackend/
DCPPBackend.cpp94 const Module *TheModule; member in __anon08496c970111::CppWriter
680 for (Module::const_global_iterator I = TheModule->global_begin(), in printTypes()
681 E = TheModule->global_end(); I != E; ++I) { in printTypes()
688 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printTypes()
937 for (Module::const_global_iterator I = TheModule->global_begin(), in printConstants()
938 E = TheModule->global_end(); I != E; ++I) in printConstants()
943 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printConstants()
1821 const Function* F = TheModule->getFunction(func); in printInline()
1851 printTypes(TheModule); in printModuleBody()
1856 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in printModuleBody()
[all …]
/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/examples/Kaleidoscope/Chapter5/
Dtoy.cpp456 static Module *TheModule; variable
493 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
661 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
668 F = TheModule->getFunction(Name); in Codegen()
818 TheModule = new Module("my cool jit", Context); in main()
822 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
828 FunctionPassManager OurFPM(TheModule); in main()
855 TheModule->dump(); in main()
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp606 static Module *TheModule; variable
640 Function *F = TheModule->getFunction(std::string("unary")+Opcode); in Codegen()
684 Function *F = TheModule->getFunction(std::string("binary")+Op); in Codegen()
693 Function *CalleeF = TheModule->getFunction(Callee); in Codegen()
913 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule); in Codegen()
920 F = TheModule->getFunction(Name); in Codegen()
1100 TheModule = new Module("my cool jit", Context); in main()
1104 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in main()
1110 FunctionPassManager OurFPM(TheModule); in main()
1139 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/include/llvm/CodeGen/
DMachineModuleInfo.h102 const Module *TheModule; variable
193 void setModule(const Module *M) { TheModule = M; } in setModule()
194 const Module *getModule() const { return TheModule; } in getModule()
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp803 TheModule = parseInputIR(InputIR, Context); in JITHelper()
805 TheModule = new Module("my cool jit", Context); in JITHelper()
810 TheExecutionEngine = EngineBuilder(TheModule).setErrorStr(&ErrStr).create(); in JITHelper()
816 TheFPM = new FunctionPassManager(TheModule); in JITHelper()
845 assert(TheModule); in getFunction()
846 return TheModule->getFunction(FnName); in getFunction()
850 assert(TheModule); in getModuleForNewFunction()
851 return TheModule; in getModuleForNewFunction()
874 assert(TheModule); in dump()
875 TheModule->dump(); in dump()
[all …]
/external/llvm/lib/IR/
DAsmWriter.cpp306 const Module* TheModule; member in llvm::SlotTracker
437 : TheModule(M), TheFunction(0), FunctionProcessed(false), in SlotTracker()
444 : TheModule(F ? F->getParent() : 0), TheFunction(F), FunctionProcessed(false), in SlotTracker()
449 if (TheModule) { in initialize()
451 TheModule = 0; ///< Prevent re-processing next time we're called. in initialize()
464 for (Module::const_global_iterator I = TheModule->global_begin(), in processModule()
465 E = TheModule->global_end(); I != E; ++I) { in processModule()
472 I = TheModule->named_metadata_begin(), in processModule()
473 E = TheModule->named_metadata_end(); I != E; ++I) { in processModule()
479 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in processModule()
[all …]
DAsmWriter.h67 const Module *TheModule; variable
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.h126 Module *TheModule; variable
196 : Context(C), TheModule(0), Buffer(buffer), BufferOwned(false), in BitcodeReader()
202 : Context(C), TheModule(0), Buffer(0), BufferOwned(false), in BitcodeReader()
DBitcodeReader.cpp1035 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in ParseMetadata()
1081 unsigned NewKind = TheModule->getMDKindID(Name.str()); in ParseMetadata()
1607 for (Module::iterator FI = TheModule->begin(), FE = TheModule->end(); in GlobalCleanup()
1616 GI = TheModule->global_begin(), GE = TheModule->global_end(); in GlobalCleanup()
1741 TheModule->setTargetTriple(S); in ParseModule()
1748 TheModule->setDataLayout(S); in ParseModule()
1755 TheModule->setModuleInlineAsm(S); in ParseModule()
1819 new GlobalVariable(*TheModule, Ty, isConstant, Linkage, 0, "", 0, in ParseModule()
1849 "", TheModule); in ParseModule()
1893 "", 0, TheModule); in ParseModule()
[all …]
/external/clang/include/clang/CodeGen/
DCodeGenAction.h27 OwningPtr<llvm::Module> TheModule; variable
/external/llvm/docs/tutorial/
DLangImpl3.rst77 static Module *TheModule;
81 The static variables will be used during code generation. ``TheModule``
203 Function *CalleeF = TheModule->getFunction(Callee);
259 Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule);
282 specified: since "``TheModule``" is specified, this name is registered
283 in "``TheModule``"s symbol table, which is used by the function call
293 F = TheModule->getFunction(Name);
/external/llvm/lib/CodeGen/
DMachineModuleInfo.cpp281 TheModule = 0; in doInitialization()

12