Home
last modified time | relevance | path

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

1234

/frameworks/compile/mclinker/lib/Script/
DUnaryOp.cpp27 const Module& pModule, in eval() argument
36 const Module& pModule, in eval() argument
45 const Module& pModule, in eval() argument
54 const Module& pModule, in eval() argument
62 IntOperand* UnaryOp<Operator::ABSOLUTE>::eval(const Module& pModule, in eval() argument
70 IntOperand* UnaryOp<Operator::ADDR>::eval(const Module& pModule, in eval() argument
76 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
92 IntOperand* UnaryOp<Operator::ALIGNOF>::eval(const Module& pModule, in eval() argument
98 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
115 const Module& pModule, in eval() argument
[all …]
DBinaryOp.cpp27 IntOperand* BinaryOp<Operator::MUL>::eval(const Module& pModule, in eval() argument
35 IntOperand* BinaryOp<Operator::DIV>::eval(const Module& pModule, in eval() argument
43 IntOperand* BinaryOp<Operator::MOD>::eval(const Module& pModule, in eval() argument
51 IntOperand* BinaryOp<Operator::ADD>::eval(const Module& pModule, in eval() argument
59 IntOperand* BinaryOp<Operator::SUB>::eval(const Module& pModule, in eval() argument
67 IntOperand* BinaryOp<Operator::LSHIFT>::eval(const Module& pModule, in eval() argument
75 IntOperand* BinaryOp<Operator::RSHIFT>::eval(const Module& pModule, in eval() argument
83 IntOperand* BinaryOp<Operator::LT>::eval(const Module& pModule, in eval() argument
91 IntOperand* BinaryOp<Operator::LE>::eval(const Module& pModule, in eval() argument
99 IntOperand* BinaryOp<Operator::GT>::eval(const Module& pModule, in eval() argument
[all …]
DSectionsCmd.cpp63 void SectionsCmd::activate(Module& pModule) { in activate() argument
70 (*it)->activate(pModule); in activate()
76 (*it)->activate(pModule); in activate()
80 (*assign)->activate(pModule); in activate()
DNullaryOp.cpp20 const Module& pModule, in eval() argument
29 const Module& pModule, in eval() argument
38 const Module& pModule, in eval() argument
DOutputSectDesc.cpp155 void OutputSectDesc::activate(Module& pModule) { in activate() argument
165 (*it)->activate(pModule); in activate()
171 (*assign)->activate(pModule); in activate()
188 pModule.getScript().sectionMap().insert(inputDesc, *this); in activate()
193 (*assign)->activate(pModule); in activate()
DOutputCmd.cpp30 void OutputCmd::activate(Module& pModule) { in activate() argument
31 pModule.getScript().setOutputFile(m_OutputFile); in activate()
/frameworks/compile/mclinker/include/mcld/Target/
DTargetLDBackend.h62 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) {} in initTargetSections() argument
63 virtual void initTargetSymbols(IRBuilder& pBuilder, Module& pModule) {} in initTargetSymbols() argument
65 virtual bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule) = 0;
82 virtual void layout(Module& pModule) = 0;
85 virtual void preLayout(Module& pModule, IRBuilder& pBuilder) = 0;
88 virtual void postLayout(Module& pModule, IRBuilder& pBuilder) = 0;
102 virtual void sizeNamePools(Module& pModule) = 0;
116 virtual bool allocateCommonSymbols(Module& pModule) = 0;
119 virtual void preMergeSections(Module& pModule) { } in preMergeSections() argument
122 virtual void postMergeSections(Module& pModule) { } in postMergeSections() argument
[all …]
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);
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFObjectWriter.h37 std::error_code writeObject(Module& pModule, FileOutputBuffer& pOutput);
39 size_t getOutputSize(const Module& pModule) const;
42 void writeSection(Module& pModule,
52 const Module& pModule,
56 const Module& pModule) const;
60 void emitSectionHeader(const Module& pModule,
70 const Module& pModule,
75 void emitEhFrame(Module& pModule,
107 uint64_t getLastStartOffset(const Module& pModule) const { in getLastStartOffset() argument
121 uint64_t ELFObjectWriter::getLastStartOffset<32>(const Module& pModule) const;
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h50 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
53 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
66 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
119 virtual void preMergeSections(Module& pModule);
122 virtual void postMergeSections(Module& pModule);
125 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
130 const Module& pModule,
152 virtual bool relax(Module& pModule, IRBuilder& pBuilder);
158 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
174 virtual void doCreateProgramHdrs(Module& pModule);
[all …]
DARMLDBackend.cpp64 CreateLocalSymbolToFragmentEnd(mcld::Module& pModule, mcld::Fragment& pFrag) { in CreateLocalSymbolToFragmentEnd() argument
67 pModule.getNamePool().createSymbol(/* pName */"", in CreateLocalSymbolToFragmentEnd()
149 void ARMGNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
189 m_pRelPLT = new OutputRelocSection(pModule, relplt); in initTargetSections()
193 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
197 void ARMGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
239 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXStart); in initTargetSymbols()
241 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXEnd); in initTargetSymbols()
325 void ARMGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
468 void ARMGNULDBackend::preMergeSections(Module& pModule) { in preMergeSections() argument
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp51 void ELFObjectWriter::writeSection(Module& pModule, in writeSection() argument
100 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
119 std::error_code ELFObjectWriter::writeObject(Module& pModule, in writeObject() argument
130 target().orderSymbolTable(pModule); in writeObject()
136 target().emitDynNamePools(pModule, pOutput); in writeObject()
141 target().emitRegNamePools(pModule, pOutput); in writeObject()
152 writeSection(pModule, pOutput, *sect); in writeObject()
157 Module::iterator sect, sectEnd = pModule.end(); in writeObject()
158 for (sect = pModule.begin(); sect != sectEnd; ++sect) in writeObject()
159 writeSection(pModule, pOutput, *sect); in writeObject()
[all …]
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp66 bool Linker::link(Module& pModule, IRBuilder& pBuilder) { in link() argument
67 if (!normalize(pModule, pBuilder)) in link()
70 if (!resolve(pModule)) in link()
77 bool Linker::normalize(Module& pModule, IRBuilder& pBuilder) { in normalize() argument
85 if (!m_pObjLinker->initialize(pModule, pBuilder)) in normalize()
109 << pModule.getInputTree().size() << ")\n"; in normalize()
112 inEnd = pModule.getInputTree().dfs_end(); in normalize()
113 for (input = pModule.getInputTree().dfs_begin(); input != inEnd; ++input) { in normalize()
143 } else if (pModule.getLibraryList().empty()) { in normalize()
165 bool Linker::resolve(Module& pModule) { in resolve() argument
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LDBackend.h41 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
44 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
57 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
111 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
122 void scanErrata(Module& pModule,
134 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
147 virtual void doCreateProgramHdrs(Module& pModule);
DAArch64LDBackend.cpp88 void AArch64GNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
117 m_pRelaPLT = new OutputRelocSection(pModule, relaplt); in initTargetSections()
121 m_pRelaDyn = new OutputRelocSection(pModule, reladyn); in initTargetSections()
126 Module& pModule) { in initTargetSymbols() argument
235 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
311 void AArch64GNULDBackend::scanErrata(Module& pModule, in scanErrata() argument
317 for (Module::iterator sect = pModule.begin(), sectEnd = pModule.end(); in scanErrata()
360 bool AArch64GNULDBackend::doRelax(Module& pModule, in doRelax() argument
372 scanErrata(pModule, pBuilder, num_new_stubs, stubs_strlen); in doRelax()
377 Module::obj_iterator input, inEnd = pModule.obj_end(); in doRelax()
[all …]
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h45 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
48 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
58 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
89 void orderSymbolTable(Module& pModule);
126 bool allocateCommonSymbols(Module& pModule);
155 void doCreateProgramHdrs(Module& pModule);
164 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
222 void preMergeSections(Module& pModule);
225 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
277 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
[all …]
/frameworks/compile/mclinker/include/mcld/
DLinker.h39 bool normalize(Module& pModule, IRBuilder& pBuilder);
42 bool resolve(Module& pModule);
48 bool link(Module& pModule, IRBuilder& pBuilder);
55 bool emit(const Module& pModule, const std::string& pPath);
58 bool emit(const Module& pModule, int pFileDescriptor);
/frameworks/compile/libbcc/lib/
DSource.cpp98 void Source::setModule(llvm::Module *pModule) { in setModule() argument
99 if (!mNoDelete && (mModule != pModule)) delete mModule; in setModule()
100 mModule = pModule; in setModule()
176 Source *Source::CreateFromModule(BCCContext &pContext, const char* name, llvm::Module &pModule, in CreateFromModule() argument
182 pModule.materializeAll(); in CreateFromModule()
183 if (llvm::verifyModule(pModule, &ErrorStream)) { in CreateFromModule()
189 Source *result = new (std::nothrow) Source(name, pContext, pModule, pNoDelete); in CreateFromModule()
192 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
194 helper_set_module_metadata_from_bitcode_wrapper(pModule, compilerVersion, optimizationLevel); in CreateFromModule()
198 Source::Source(const char* name, BCCContext &pContext, llvm::Module &pModule, in Source() argument
[all …]
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.h50 bool allocateCommonSymbols(Module& pModule);
53 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
95 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
97 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
105 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
128 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
157 void doCreateProgramHdrs(Module& pModule);
DHexagonRelocator.h80 Module& pModule,
86 Module& pModule);
131 Module& pModule,
136 Module& pModule,
/frameworks/compile/mclinker/lib/Target/X86/
DX86LDBackend.h47 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
82 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) = 0;
84 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
119 void doCreateProgramHdrs(Module& pModule);
132 void addEhFrameForPLT(Module& pModule);
164 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
206 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
DX86Relocator.h82 Module& pModule,
101 Module& pModule,
106 Module& pModule,
162 Module& pModule,
167 Module& pModule,
227 Module& pModule,
232 Module& pModule,
DX86LDBackend.cpp116 void X86GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
254 void X86GNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
271 void X86GNULDBackend::addEhFrameForPLT(Module& pModule) { in addEhFrameForPLT() argument
272 LDSection* plt_sect = pModule.getSection(".plt"); in addEhFrameForPLT()
276 LDSection* eh_sect = pModule.getSection(".eh_frame"); in addEhFrameForPLT()
322 void X86GNULDBackend::doCreateProgramHdrs(Module& pModule) { in doCreateProgramHdrs() argument
345 void X86_32GNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
365 m_pRelPLT = new OutputRelocSection(pModule, relplt); in initTargetSections()
369 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
612 void X86_64GNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
[all …]
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp159 GNUArchiveReader* GNULDBackend::createArchiveReader(Module& pModule) { in createArchiveReader() argument
161 return new GNUArchiveReader(pModule, *m_pObjectReader); in createArchiveReader()
213 bool GNULDBackend::initStandardSymbols(IRBuilder& pBuilder, Module& pModule) { in initStandardSymbols() argument
219 Module::iterator iter, iterEnd = pModule.end(); in initStandardSymbols()
220 for (iter = pModule.begin(); iter != iterEnd; ++iter) { in initStandardSymbols()
699 void GNULDBackend::sizeShstrtab(Module& pModule) { in sizeShstrtab() argument
702 Module::const_iterator sect, sectEnd = pModule.end(); in sizeShstrtab()
703 for (sect = pModule.begin(); sect != sectEnd; ++sect) { in sizeShstrtab()
712 void GNULDBackend::sizeNamePools(Module& pModule) { in sizeNamePools() argument
731 Module::SymbolTable& symbols = pModule.getSymbolTable(); in sizeNamePools()
[all …]
/frameworks/compile/libbcc/include/bcc/
DSource.h50 Source(const char* name, BCCContext &pContext, llvm::Module &pModule,
66 llvm::Module &pModule,
87 void setModule(llvm::Module *pModule);

1234