Home
last modified time | relevance | path

Searched refs:pModule (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/compile/mclinker/include/mcld/Target/
DTargetLDBackend.h59 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) { } in initTargetSections() argument
60 virtual void initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { } in initTargetSymbols() argument
62 virtual bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule) = 0;
77 Module& pModule,
87 Module& pModule,
100 virtual void layout(Module& pModule) = 0;
103 virtual void preLayout(Module& pModule, IRBuilder& pBuilder) = 0;
106 virtual void postLayout(Module& pModule, IRBuilder& pBuilder) = 0;
120 virtual void sizeNamePools(Module& pModule, bool pIsStaticLink) = 0;
134 virtual bool allocateCommonSymbols(Module& pModule) = 0;
[all …]
DGNULDBackend.h59 GNUArchiveReader* createArchiveReader(Module& pModule);
81 bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule);
116 Module& pModule,
122 virtual void sizeNamePools(Module& pModule, bool pIsStaticLink);
129 virtual void emitRegNamePools(const Module& pModule, MemoryArea& pOutput);
132 virtual void emitDynNamePools(Module& pModule, MemoryArea& pOutput);
192 virtual bool allocateCommonSymbols(Module& pModule);
299 void createProgramHdrs(Module& pModule);
303 virtual void doCreateProgramHdrs(Module& pModule) = 0;
322 void setupGNUStackInfo(Module& pModule);
[all …]
/frameworks/compile/mclinker/lib/Target/X86/
DX86LDBackend.h91 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
125 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) = 0;
127 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
137 Module& pModule,
161 Module& pModule,
166 Module& pModule,
194 void doCreateProgramHdrs(Module& pModule);
235 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
250 Module& pModule,
255 Module& pModule,
[all …]
DX86ELFMCLinker.cpp15 mcld::Module& pModule, in X86ELFMCLinker() argument
17 : ELFMCLinker(pConfig, pModule, pOutput) { in X86ELFMCLinker()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h42 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
45 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
58 Module& pModule,
65 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
92 void sizeNamePools(Module& pModule, bool pIsStaticLink);
95 void emitDynNamePools(Module& pModule, MemoryArea& pOut);
112 bool allocateCommonSymbols(Module& pModule);
142 void doCreateProgramHdrs(Module& pModule);
DMipsLDBackend.cpp55 void MipsGNULDBackend::initTargetSections(Module& pModule, ObjectBuilder& pBuilder) in initTargetSections() argument
66 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
70 void MipsGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) in initTargetSymbols() argument
115 Module& pModule, in scanRelocation() argument
176 void MipsGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
225 MipsGNULDBackend::sizeNamePools(Module& pModule, bool pIsStaticLink) in sizeNamePools() argument
243 const Module::SymbolTable& symbols = pModule.getSymbolTable(); in sizeNamePools()
279 dynstr += pModule.name().size() + 1; in sizeNamePools()
289 Module::const_lib_iterator lib, libEnd = pModule.lib_end(); in sizeNamePools()
290 for (lib = pModule.lib_begin(); lib != libEnd; ++lib) { in sizeNamePools()
[all …]
DMipsELFMCLinker.cpp15 mcld::Module& pModule, in MipsELFMCLinker() argument
17 : ELFMCLinker(pConfig, pModule, pOutput) { in MipsELFMCLinker()
DMipsMCLinker.cpp26 mcld::Module& pModule, in createMipsMCLinker() argument
39 return new MipsELFMCLinker(pConfig, pModule, pOutput); in createMipsMCLinker()
/frameworks/compile/mclinker/include/mcld/LD/
DELFObjectWriter.h49 llvm::error_code writeObject(Module& pModule, MemoryArea& pOutput);
61 const Module& pModule,
65 const Module& pModule) const;
69 void emitSectionHeader(const Module& pModule,
79 const Module& pModule,
113 uint64_t getLastStartOffset(const Module& pModule) const in getLastStartOffset() argument
128 uint64_t ELFObjectWriter::getLastStartOffset<32>(const Module& pModule) const;
131 uint64_t ELFObjectWriter::getLastStartOffset<64>(const Module& pModule) const;
/frameworks/compile/mclinker/lib/Fragment/
DFragmentGraph.cpp135 bool FragmentGraph::setNodeSlots(Module& pModule) in setNodeSlots() argument
142 Module::SymbolTable& sym_tab = pModule.getSymbolTable(); in setNodeSlots()
167 bool FragmentGraph::createRegularEdges(Module& pModule) in createRegularEdges() argument
173 Module::obj_iterator input, inEnd = pModule.obj_end(); in createRegularEdges()
174 for (input = pModule.obj_begin(); input != inEnd; ++input) { in createRegularEdges()
221 bool FragmentGraph::createPseudoEdges(Module& pModule) in createPseudoEdges() argument
265 bool FragmentGraph::createPseudoNodes(Module& pModule) in createPseudoNodes() argument
271 Module::SymbolTable& sym_tab = pModule.getSymbolTable(); in createPseudoNodes()
295 bool FragmentGraph::createRegularNodes(Module& pModule) in createRegularNodes() argument
299 Module::iterator sect_it, sect_end = pModule.end(); in createRegularNodes()
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h92 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
95 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
111 Module& pModule,
118 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
170 bool mergeSection(Module& pModule, LDSection& pSection);
207 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
222 virtual void doCreateProgramHdrs(Module& pModule);
DARMELFMCLinker.cpp17 mcld::Module &pModule, in ARMELFMCLinker() argument
19 : ELFMCLinker(pConfig, pModule, pOutput) { in ARMELFMCLinker()
DARMMCLinker.cpp24 mcld::Module& pModule, in createARMMCLinker() argument
37 return new ARMELFMCLinker(pConfig, pModule, pOutput); in createARMMCLinker()
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp116 llvm::error_code ELFObjectWriter::writeObject(Module& pModule, in writeObject() argument
131 target().emitDynNamePools(pModule, pOutput); in writeObject()
136 target().emitRegNamePools(pModule, pOutput); in writeObject()
152 Module::iterator sect, sectEnd = pModule.end(); in writeObject()
153 for (sect = pModule.begin(); sect != sectEnd; ++sect) in writeObject()
156 emitShStrTab(target().getOutputFormat()->getShStrTab(), pModule, pOutput); in writeObject()
161 writeELFHeader<32>(m_Config, pModule, pOutput); in writeObject()
165 emitSectionHeader<32>(pModule, m_Config, pOutput); in writeObject()
170 writeELFHeader<64>(m_Config, pModule, pOutput); in writeObject()
174 emitSectionHeader<64>(pModule, m_Config, pOutput); in writeObject()
[all …]
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp138 GNULDBackend::createArchiveReader(Module& pModule) in createArchiveReader() argument
141 return new GNUArchiveReader(pModule, *m_pObjectReader); in createArchiveReader()
199 Module& pModule) in initStandardSymbols() argument
207 Module::iterator iter, iterEnd = pModule.end(); in initStandardSymbols()
208 for (iter = pModule.begin(); iter != iterEnd; ++iter) { in initStandardSymbols()
716 Module& pModule, in partialScanRelocation() argument
732 ResolveInfo* sym_info = pModule.getSectionSymbolSet().get(out_sect)->resolveInfo(); in partialScanRelocation()
741 void GNULDBackend::sizeNamePools(Module& pModule, bool pIsStaticLink) in sizeNamePools() argument
760 Module::SymbolTable& symbols = pModule.getSymbolTable(); in sizeNamePools()
778 dynstr += pModule.name().size() + 1; in sizeNamePools()
[all …]
DELFMCLinker.cpp68 mcld::Module& pModule, in ELFMCLinker() argument
70 : MCLinker(pConfig, pModule, pOutput) { in ELFMCLinker()
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.h48 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
90 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
92 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
102 Module& pModule,
131 void doCreateProgramHdrs(Module& pModule);
DHexagonLDBackend.cpp77 void HexagonLDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
99 Module& pModule, in scanRelocation() argument
176 void HexagonLDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
194 m_pRelPLT = new OutputRelocSection(pModule, relplt); in initTargetSections()
198 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
203 void HexagonLDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) in initTargetSymbols() argument
228 void HexagonLDBackend::doCreateProgramHdrs(Module& pModule) in doCreateProgramHdrs() argument
DHexagonELFMCLinker.cpp15 mcld::Module& pModule, in HexagonELFMCLinker() argument
17 : ELFMCLinker(pConfig, pModule, pOutput) { in HexagonELFMCLinker()
DHexagonMCLinker.cpp23 mcld::Module& pModule, in createHexagonMCLinker() argument
37 return new HexagonELFMCLinker(pConfig, pModule, pOutput); in createHexagonMCLinker()
/frameworks/compile/libbcc/lib/Core/
DSource.cpp56 void Source::setModule(llvm::Module *pModule) { in setModule() argument
57 if (!mNoDelete && (mModule != pModule)) delete mModule; in setModule()
58 mModule = pModule; in setModule()
143 Source *Source::CreateFromModule(BCCContext &pContext, llvm::Module &pModule, in CreateFromModule() argument
145 Source *result = new (std::nothrow) Source(pContext, pModule, pNoDelete); in CreateFromModule()
148 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
153 Source::Source(BCCContext &pContext, llvm::Module &pModule, bool pNoDelete) in Source() argument
154 : mContext(pContext), mModule(&pModule), mNoDelete(pNoDelete) { in Source()
/frameworks/compile/mclinker/include/mcld/Fragment/
DFragmentGraph.h57 bool construct(const LinkerConfig& pConfig, Module& pModule);
146 bool createRegularNodes(Module& pModule);
147 bool setNodeSlots(Module& pModule);
148 bool createPseudoNodes(Module& pModule);
150 bool createRegularEdges(Module& pModule);
151 bool createPseudoEdges(Module& pModule);
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp66 bool Linker::link(Module& pModule, IRBuilder& pBuilder) in link() argument
68 if (!resolve(pModule, pBuilder)) in link()
74 bool Linker::resolve(Module& pModule, IRBuilder& pBuilder) in resolve() argument
80 m_pObjLinker->setup(pModule, pBuilder); in resolve()
101 mcld::outs() << "** name\ttype\tpath\tsize (" << pModule.getInputTree().size() << ")\n"; in resolve()
102 InputTree::const_dfs_iterator input, inEnd = pModule.getInputTree().dfs_end(); in resolve()
103 for (input=pModule.getInputTree().dfs_begin(); input!=inEnd; ++input) { in resolve()
135 else if (pModule.getLibraryList().empty()) { in resolve()
/frameworks/compile/mclinker/lib/CodeGen/
DMCLDTargetMachine.cpp191 mcld::Module& pModule, in addPassesToEmitFile() argument
234 pModule, in addPassesToEmitFile()
244 pModule, in addPassesToEmitFile()
254 pModule, in addPassesToEmitFile()
264 pModule, in addPassesToEmitFile()
358 mcld::Module& pModule, in addLinkerPasses() argument
369 pModule.setName(pOutput.handler()->path().native()); in addLinkerPasses()
372 pModule.setName(pConfig.options().soname()); in addLinkerPasses()
377 pModule, in addLinkerPasses()
/frameworks/compile/libbcc/include/bcc/
DSource.h39 Source(BCCContext &pContext, llvm::Module &pModule, bool pNoDelete = false);
55 llvm::Module &pModule,
69 void setModule(llvm::Module *pModule);

123