/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 50 OwningPtr<llvm::Module> TheModule, LinkModule; member in clang::BackendConsumer 74 llvm::Module *takeModule() { return TheModule.take(); } in takeModule() 89 TheModule.reset(Gen->GetModule()); in Initialize() 124 if (!TheModule) in HandleTranslationUnit() 133 TheModule.take(); in HandleTranslationUnit() 137 assert(TheModule.get() == M && in HandleTranslationUnit() 153 LLVMContext &Ctx = TheModule->getContext(); in HandleTranslationUnit() 160 TheModule.get(), Action, AsmOutStream); in HandleTranslationUnit() 274 TheModule.reset(); in ~CodeGenAction() 291 TheModule.reset(BEConsumer->takeModule()); in EndSourceFileAction() [all …]
|
D | BackendUtil.cpp | 48 Module *TheModule; member in __anonffb2ad6c0111::EmitAssemblyHelper 60 CodeGenPasses->add(new TargetData(TheModule)); in getCodeGenPasses() 68 PerModulePasses->add(new TargetData(TheModule)); in getPerModulePasses() 75 PerFunctionPasses = new FunctionPassManager(TheModule); in getPerFunctionPasses() 76 PerFunctionPasses->add(new TargetData(TheModule)); in getPerFunctionPasses() 95 TheModule(M), CodeGenerationTime("Code Generation Time"), in EmitAssemblyHelper() 192 Triple TargetTriple(TheModule->getTargetTriple()); in CreatePasses() 248 std::string Triple = TheModule->getTargetTriple(); in AddEmitPasses() 464 for (Module::iterator I = TheModule->begin(), in EmitAssembly() 465 E = TheModule->end(); I != E; ++I) in EmitAssembly() [all …]
|
D | CGObjCGNU.cpp | 107 llvm::Module &TheModule; member in __anonc48cdb380111::CGObjCGNU 185 llvm::Constant *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString() 188 ConstStr = new llvm::GlobalVariable(TheModule, value->getType(), true, in ExportUniqueString() 202 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal() 214 return new llvm::GlobalVariable(TheModule, Ty, false, in MakeGlobal() 699 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(SymbolName); in GetClassNamed() 702 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in GetClassNamed() 727 if (TheModule.getGlobalVariable(symbolRef)) in EmitClassRef() 730 llvm::GlobalVariable *ClassSymbol = TheModule.getGlobalVariable(symbolName); in EmitClassRef() 732 ClassSymbol = new llvm::GlobalVariable(TheModule, LongTy, false, in EmitClassRef() [all …]
|
D | CodeGenTypes.h | 64 llvm::Module &TheModule; variable 117 llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } in getLLVMContext()
|
D | CodeGenModule.h | 221 llvm::Module &TheModule; variable 449 llvm::Module &getModule() const { return TheModule; } in getModule()
|
D | CodeGenModule.cpp | 67 : Context(C), LangOpts(C.getLangOpts()), CodeGenOpts(CGO), TheModule(M), in CodeGenModule() 461 new llvm::GlobalVariable(TheModule, AT, false, in EmitCtorList() 2734 if (llvm::NamedMDNode *CUNode = TheModule.getNamedMetadata("llvm.dbg.cu")) { in EmitCoverageFile() 2735 llvm::NamedMDNode *GCov = TheModule.getOrInsertNamedMetadata("llvm.gcov"); in EmitCoverageFile() 2736 llvm::LLVMContext &Ctx = TheModule.getContext(); in EmitCoverageFile()
|
D | CodeGenTypes.cpp | 32 TheModule(CGM.getModule()), TheTargetData(CGM.getTargetData()), in CodeGenTypes()
|
/external/llvm/examples/Kaleidoscope/Chapter4/ |
D | toy.cpp | 355 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/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 94 const Module *TheModule; member in __anon202079130111::CppWriter 669 for (Module::const_global_iterator I = TheModule->global_begin(), in printTypes() 670 E = TheModule->global_end(); I != E; ++I) { in printTypes() 677 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printTypes() 926 for (Module::const_global_iterator I = TheModule->global_begin(), in printConstants() 927 E = TheModule->global_end(); I != E; ++I) in printConstants() 932 for (Module::const_iterator FI = TheModule->begin(), FE = TheModule->end(); in printConstants() 1810 const Function* F = TheModule->getFunction(func); in printInline() 1840 printTypes(TheModule); in printModuleBody() 1845 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in printModuleBody() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter3/ |
D | toy.cpp | 348 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/ |
D | toy.cpp | 541 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/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 456 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/ |
D | toy.cpp | 606 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/include/llvm/CodeGen/ |
D | MachineModuleInfo.h | 103 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/lib/Bitcode/Reader/ |
D | BitcodeReader.h | 126 Module *TheModule; variable 184 : Context(C), TheModule(0), Buffer(buffer), BufferOwned(false), in BitcodeReader() 190 : Context(C), TheModule(0), Buffer(0), BufferOwned(false), in BitcodeReader()
|
D | BitcodeReader.cpp | 837 NamedMDNode *NMD = TheModule->getOrInsertNamedMetadata(Name); in ParseMetadata() 883 unsigned NewKind = TheModule->getMDKindID(Name.str()); in ParseMetadata() 1402 for (Module::iterator FI = TheModule->begin(), FE = TheModule->end(); in GlobalCleanup() 1411 GI = TheModule->global_begin(), GE = TheModule->global_end(); in GlobalCleanup() 1522 TheModule->setTargetTriple(S); in ParseModule() 1529 TheModule->setDataLayout(S); in ParseModule() 1536 TheModule->setModuleInlineAsm(S); in ParseModule() 1543 TheModule->addLibrary(S); in ParseModule() 1595 new GlobalVariable(*TheModule, Ty, isConstant, Linkage, 0, "", 0, in ParseModule() 1625 "", TheModule); in ParseModule() [all …]
|
/external/llvm/lib/VMCore/ |
D | AsmWriter.cpp | 314 const Module* TheModule; member in __anone32a09910211::SlotTracker 429 : TheModule(M), TheFunction(0), FunctionProcessed(false), in SlotTracker() 436 : TheModule(F ? F->getParent() : 0), TheFunction(F), FunctionProcessed(false), in SlotTracker() 441 if (TheModule) { in initialize() 443 TheModule = 0; ///< Prevent re-processing next time we're called. in initialize() 456 for (Module::const_global_iterator I = TheModule->global_begin(), in processModule() 457 E = TheModule->global_end(); I != E; ++I) { in processModule() 464 I = TheModule->named_metadata_begin(), in processModule() 465 E = TheModule->named_metadata_end(); I != E; ++I) { in processModule() 472 for (Module::const_iterator I = TheModule->begin(), E = TheModule->end(); in processModule() [all …]
|
/external/clang/include/clang/CodeGen/ |
D | CodeGenAction.h | 27 OwningPtr<llvm::Module> TheModule; variable
|
/external/llvm/lib/CodeGen/ |
D | MachineModuleInfo.cpp | 265 TheModule = 0; in MachineModuleInfo()
|