Searched defs:pModule (Results 26 - 46 of 46) sorted by relevance

12

/frameworks/compile/libbcc/lib/
H A DSource.cpp97 void Source::setModule(llvm::Module *pModule) { argument
98 if (!mNoDelete && (mModule != pModule)) delete mModule;
99 mModule = pModule;
175 Source *Source::CreateFromModule(BCCContext &pContext, const char* name, llvm::Module &pModule, argument
181 pModule.materializeAll();
182 if (llvm::verifyModule(pModule, &ErrorStream)) {
188 Source *result = new (std::nothrow) Source(name, pContext, pModule, pNoDelete);
191 pModule.getModuleIdentifier().c_str());
193 helper_set_module_metadata_from_bitcode_wrapper(pModule, compilerVersion, optimizationLevel);
197 Source::Source(const char* name, BCCContext &pContext, llvm::Module &pModule, argument
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DGNUArchiveReader.cpp33 GNUArchiveReader::GNUArchiveReader(Module& pModule, argument
35 : m_Module(pModule), m_ELFObjectReader(pELFObjectReader) {
H A DGarbageCollection.cpp100 Module& pModule)
101 : m_Config(pConfig), m_Backend(pBackend), m_Module(pModule) {
98 GarbageCollection(const LinkerConfig& pConfig, const TargetLDBackend& pBackend, Module& pModule) argument
H A DIdenticalCodeFolding.cpp50 Module& pModule)
51 : m_Config(pConfig), m_Backend(pBackend), m_Module(pModule) {
48 IdenticalCodeFolding(const LinkerConfig& pConfig, const TargetLDBackend& pBackend, Module& pModule) argument
H A DELFObjectWriter.cpp51 void ELFObjectWriter::writeSection(Module& pModule, argument
100 emitEhFrame(pModule, *section->getEhFrame(), region);
119 std::error_code ELFObjectWriter::writeObject(Module& pModule, argument
130 target().orderSymbolTable(pModule);
136 target().emitDynNamePools(pModule, pOutput);
141 target().emitRegNamePools(pModule, pOutput);
152 writeSection(pModule, pOutput, *sect);
157 Module::iterator sect, sectEnd = pModule.end();
158 for (sect = pModule.begin(); sect != sectEnd; ++sect)
159 writeSection(pModule, pOutpu
203 writeELFHeader(const LinkerConfig& pConfig, const Module& pModule, FileOutputBuffer& pOutput) const argument
298 emitSectionHeader(const Module& pModule, const LinkerConfig& pConfig, FileOutputBuffer& pOutput) const argument
364 emitShStrTab(const LDSection& pShStrTab, const Module& pModule, FileOutputBuffer& pOutput) argument
401 emitEhFrame(Module& pModule, EhFrame& pFrame, MemoryRegion& pRegion) const argument
[all...]
H A DELFReader.cpp181 Module& pModule = pBuilder.getModule(); local
188 pModule.CreateAliasList(*sym_it->pt_alias->resolveInfo());
189 pModule.addAlias(*alias_it->pt_alias->resolveInfo());
677 Module& pModule = pBuilder.getModule(); local
684 pModule.CreateAliasList(*sym_it->pt_alias->resolveInfo());
685 pModule.addAlias(*alias_it->pt_alias->resolveInfo());
/frameworks/compile/mclinker/lib/Script/
H A DScriptFile.cpp80 void ScriptFile::activate(Module& pModule) { argument
82 (*it)->activate(pModule);
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64LDBackend.cpp88 void AArch64GNULDBackend::initTargetSections(Module& pModule, argument
117 m_pRelaPLT = new OutputRelocSection(pModule, relaplt);
121 m_pRelaDyn = new OutputRelocSection(pModule, reladyn);
126 Module& pModule) {
235 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { argument
311 void AArch64GNULDBackend::scanErrata(Module& pModule, argument
317 for (Module::iterator sect = pModule.begin(), sectEnd = pModule.end();
360 bool AArch64GNULDBackend::doRelax(Module& pModule, argument
372 scanErrata(pModule, pBuilde
125 initTargetSymbols(IRBuilder& pBuilder, Module& pModule) argument
523 doCreateProgramHdrs(Module& pModule) argument
530 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument
[all...]
H A DAArch64Relocator.cpp376 Module& pModule,
374 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument
/frameworks/compile/mclinker/lib/Target/X86/
H A DX86LDBackend.cpp116 void X86GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { argument
254 void X86GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { argument
271 void X86GNULDBackend::addEhFrameForPLT(Module& pModule) { argument
272 LDSection* plt_sect = pModule.getSection(".plt");
276 LDSection* eh_sect = pModule.getSection(".eh_frame");
322 void X86GNULDBackend::doCreateProgramHdrs(Module& pModule) { argument
345 void X86_32GNULDBackend::initTargetSections(Module& pModule, argument
365 m_pRelPLT = new OutputRelocSection(pModule, relplt);
369 m_pRelDyn = new OutputRelocSection(pModule, reldyn);
612 void X86_64GNULDBackend::initTargetSections(Module& pModule, argument
[all...]
H A DX86Relocator.cpp162 Module& pModule,
179 scanLocalReloc(pReloc, pLinker, pModule, pSection);
181 scanGlobalReloc(pReloc, pLinker, pModule, pSection);
247 Module& pModule = pBuilder.getModule(); local
248 Module::AliasList* alias_list = pModule.getAliasList(pSym);
313 Module& pModule,
401 sect_sym = pModule.getSectionSymbolSet().get(*sym_sect);
406 sect_sym = pModule.getSectionSymbolSet().get(*sym_sect);
516 Module& pModule,
1291 Module& pModule,
160 scanRelocation(Relocation& pReloc, IRBuilder& pLinker, Module& pModule, LDSection& pSection, Input& pInput) argument
311 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
514 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1289 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
1361 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
[all...]
/frameworks/compile/mclinker/include/mcld/Target/
H A DGNULDBackend.h56 GNUArchiveReader* createArchiveReader(Module& pModule);
78 bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule);
110 void sizeShstrtab(Module& pModule);
115 virtual void sizeNamePools(Module& pModule);
122 virtual void emitRegNamePools(const Module& pModule,
126 virtual void emitDynNamePools(Module& pModule, FileOutputBuffer& pOutput);
147 virtual void orderSymbolTable(Module& pModule);
190 virtual bool allocateCommonSymbols(Module& pModule);
296 llvm::StringRef getEntry(const Module& pModule) const;
331 void createAndSizeEhFrameHdr(Module& pModule);
443 doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished) argument
[all...]
/frameworks/compile/mclinker/lib/Core/
H A DIRBuilder.cpp111 IRBuilder::IRBuilder(Module& pModule, const LinkerConfig& pConfig) argument
112 : m_Module(pModule), m_Config(pConfig), m_InputBuilder(pConfig) {
/frameworks/compile/mclinker/lib/Object/
H A DObjectLinker.cpp80 bool ObjectLinker::initialize(Module& pModule, IRBuilder& pBuilder) { argument
81 m_pModule = &pModule;
443 void ObjectLinker::addSymbolToOutput(ResolveInfo& pInfo, Module& pModule) { argument
474 pModule.getSymbolTable().forceLocal(*pInfo.outSymbol());
476 pModule.getSymbolTable().add(*pInfo.outSymbol());
479 void ObjectLinker::addSymbolsToOutput(Module& pModule) { argument
482 free_end = pModule.getNamePool().freeinfo_end();
483 for (free_it = pModule.getNamePool().freeinfo_begin(); free_it != free_end;
485 addSymbolToOutput(**free_it, pModule);
489 info_end = pModule
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonRelocator.cpp197 Module& pModule,
216 scanLocalReloc(pReloc, pLinker, pModule, pSection);
218 scanGlobalReloc(pReloc, pLinker, pModule, pSection);
237 Module& pModule,
288 Module& pModule,
452 Module& pModule = pBuilder.getModule(); local
453 Module::AliasList* alias_list = pModule.getAliasList(pSym);
476 Module& pModule) {
488 pModule.getSectionSymbolSet().get(out_sect)->resolveInfo();
195 scanRelocation(Relocation& pReloc, IRBuilder& pLinker, Module& pModule, LDSection& pSection, Input& pInput) argument
235 scanLocalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
286 scanGlobalReloc(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection) argument
475 partialScanRelocation(Relocation& pReloc, Module& pModule) argument
H A DHexagonLDBackend.cpp119 void HexagonLDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { argument
403 void HexagonLDBackend::initTargetSections(Module& pModule, argument
423 m_pRelaPLT = new OutputRelocSection(pModule, relaplt);
427 m_pRelaDyn = new OutputRelocSection(pModule, reladyn);
474 void HexagonLDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { argument
545 bool HexagonLDBackend::doRelax(Module& pModule, argument
552 Module::obj_iterator input, inEnd = pModule.obj_end();
553 for (input = pModule.obj_begin(); input != inEnd; ++input) {
692 bool HexagonLDBackend::mergeSection(Module& pModule, argument
706 ObjectBuilder builder(pModule);
746 allocateCommonSymbols(Module& pModule) argument
1029 doCreateProgramHdrs(Module& pModule) argument
[all...]
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMLDBackend.cpp64 CreateLocalSymbolToFragmentEnd(mcld::Module& pModule, mcld::Fragment& pFrag) { argument
67 pModule.getNamePool().createSymbol(/* pName */"",
149 void ARMGNULDBackend::initTargetSections(Module& pModule, argument
189 m_pRelPLT = new OutputRelocSection(pModule, relplt);
193 m_pRelDyn = new OutputRelocSection(pModule, reldyn);
197 void ARMGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { argument
239 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXStart);
241 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXEnd);
325 void ARMGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { argument
468 void ARMGNULDBackend::preMergeSections(Module& pModule) { argument
476 postMergeSections(Module& pModule) argument
484 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument
555 setUpReachedSectionsForGC( const Module& pModule, GarbageCollection::SectionReachedListMap& pSectReachedListMap) const argument
708 rewriteARMExIdxSection(Module& pModule) argument
807 relax(Module& pModule, IRBuilder& pBuilder) argument
816 doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished) argument
994 doCreateProgramHdrs(Module& pModule) argument
[all...]
H A DARMRelocator.cpp730 Module& pModule,
728 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsRelocator.cpp185 Module& pModule,
183 scanRelocation(Relocation& pReloc, IRBuilder& pBuilder, Module& pModule, LDSection& pSection, Input& pInput) argument
H A DMipsLDBackend.cpp96 void MipsGNULDBackend::initTargetSections(Module& pModule, argument
105 m_pRelPlt = new OutputRelocSection(pModule, relplt);
109 m_pRelDyn = new OutputRelocSection(pModule, reldyn);
123 void MipsGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { argument
230 void MipsGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { argument
353 void MipsGNULDBackend::orderSymbolTable(Module& pModule) { argument
362 Module::SymbolTable& symbols = pModule.getSymbolTable();
581 bool MipsGNULDBackend::allocateCommonSymbols(Module& pModule) { argument
582 SymbolCategory& symbol_list = pModule.getSymbolTable();
745 void MipsGNULDBackend::doCreateProgramHdrs(Module& pModule) { argument
795 doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished) argument
1163 preMergeSections(Module& pModule) argument
1191 mergeSection(Module& pModule, const Input& pInput, LDSection& pSection) argument
1259 initTargetSections(Module& pModule, ObjectBuilder& pBuilder) argument
1304 initTargetSections(Module& pModule, ObjectBuilder& pBuilder) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp159 GNUArchiveReader* GNULDBackend::createArchiveReader(Module& pModule) { argument
161 return new GNUArchiveReader(pModule, *m_pObjectReader);
213 bool GNULDBackend::initStandardSymbols(IRBuilder& pBuilder, Module& pModule) { argument
219 Module::iterator iter, iterEnd = pModule.end();
220 for (iter = pModule.begin(); iter != iterEnd; ++iter) {
699 void GNULDBackend::sizeShstrtab(Module& pModule) { argument
702 Module::const_iterator sect, sectEnd = pModule.end();
703 for (sect = pModule.begin(); sect != sectEnd; ++sect) {
712 void GNULDBackend::sizeNamePools(Module& pModule) { argument
731 Module::SymbolTable& symbols = pModule
914 emitRegNamePools(const Module& pModule, FileOutputBuffer& pOutput) argument
982 emitDynNamePools(Module& pModule, FileOutputBuffer& pOutput) argument
1292 orderSymbolTable(Module& pModule) argument
1503 allocateCommonSymbols(Module& pModule) argument
1739 createProgramHdrs(Module& pModule) argument
2031 setupGNUStackInfo(Module& pModule) argument
2074 setOutputSectionOffset(Module& pModule) argument
2106 setOutputSectionAddress(Module& pModule) argument
2294 placeOutputSections(Module& pModule) argument
2444 layout(Module& pModule) argument
2478 createAndSizeEhFrameHdr(Module& pModule) argument
2501 preLayout(Module& pModule, IRBuilder& pBuilder) argument
2572 postLayout(Module& pModule, IRBuilder& pBuilder) argument
2912 relax(Module& pModule, IRBuilder& pBuilder) argument
[all...]

Completed in 1781 milliseconds

12