Home
last modified time | relevance | path

Searched refs:pModule (Results 1 – 25 of 91) 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()
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h48 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
51 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
64 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
117 virtual void preMergeSections(Module& pModule);
120 virtual void postMergeSections(Module& pModule);
123 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
128 const Module& pModule,
150 virtual bool relax(Module& pModule, IRBuilder& pBuilder);
156 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
172 virtual void doCreateProgramHdrs(Module& pModule);
[all …]
DARMLDBackend.cpp81 void ARMGNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
121 m_pRelPLT = new OutputRelocSection(pModule, relplt); in initTargetSections()
125 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
129 void ARMGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
171 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXStart); in initTargetSymbols()
173 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXEnd); in initTargetSymbols()
257 void ARMGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
400 void ARMGNULDBackend::preMergeSections(Module& pModule) { in preMergeSections() argument
401 scanInputExceptionSections(pModule); in preMergeSections()
405 void ARMGNULDBackend::postMergeSections(Module& pModule) { in postMergeSections() argument
[all …]
DARMException.cpp49 void ARMGNULDBackend::scanInputExceptionSections(Module& pModule) { in scanInputExceptionSections() argument
50 for (Module::obj_iterator it = pModule.obj_begin(), in scanInputExceptionSections()
51 end = pModule.obj_end(); it != end; ++it) { in scanInputExceptionSections()
53 scanInputExceptionSections(pModule, *input); in scanInputExceptionSections()
68 void ARMGNULDBackend::scanInputExceptionSections(Module& pModule, in scanInputExceptionSections() argument
198 CreateLocalSymbolToFragmentEnd(mcld::Module& pModule, mcld::Fragment& pFrag) { in CreateLocalSymbolToFragmentEnd() argument
201 pModule.getNamePool().createSymbol(/* pName */"", in CreateLocalSymbolToFragmentEnd()
227 void ARMGNULDBackend::rewriteARMExIdxSection(Module& pModule) { in rewriteARMExIdxSection() argument
282 CreateLocalSymbolToFragmentEnd(pModule, *prevTextFrag)); in rewriteARMExIdxSection()
301 reloc->setSymInfo(CreateLocalSymbolToFragmentEnd(pModule, *prevTextFrag)); in rewriteARMExIdxSection()
[all …]
/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);
293 llvm::StringRef getEntry(const Module& pModule) const;
325 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/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/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/mclinker/lib/Target/AArch64/
DAArch64LDBackend.h38 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
41 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
54 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
108 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
126 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
139 virtual void doCreateProgramHdrs(Module& pModule);
DAArch64LDBackend.cpp83 void AArch64GNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
112 m_pRelaPLT = new OutputRelocSection(pModule, relaplt); in initTargetSections()
116 m_pRelaDyn = new OutputRelocSection(pModule, reladyn); in initTargetSections()
121 Module& pModule) { in initTargetSymbols() argument
230 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
307 bool AArch64GNULDBackend::doRelax(Module& pModule, in doRelax() argument
319 void AArch64GNULDBackend::doCreateProgramHdrs(Module& pModule) { in doCreateProgramHdrs() argument
328 bool AArch64GNULDBackend::mergeSection(Module& pModule, in mergeSection() argument
/frameworks/compile/libbcc/lib/Core/
DSource.cpp55 void Source::setModule(llvm::Module *pModule) { in setModule() argument
56 if (!mNoDelete && (mModule != pModule)) delete mModule; in setModule()
57 mModule = pModule; in setModule()
113 Source *Source::CreateFromModule(BCCContext &pContext, const char* name, llvm::Module &pModule, in CreateFromModule() argument
117 if (llvm::verifyModule(pModule, &ErrorStream)) { in CreateFromModule()
123 Source *result = new (std::nothrow) Source(name, pContext, pModule, pNoDelete); in CreateFromModule()
126 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
131 Source::Source(const char* name, BCCContext &pContext, llvm::Module &pModule, in Source() argument
133 : mName(name), mContext(pContext), mModule(&pModule), mNoDelete(pNoDelete) { in Source()
/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/Mips/
DMipsLDBackend.h43 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
46 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
56 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
87 void orderSymbolTable(Module& pModule);
124 bool allocateCommonSymbols(Module& pModule);
145 void doCreateProgramHdrs(Module& pModule);
154 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
248 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
264 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
DMipsLDBackend.cpp88 void MipsGNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
97 m_pRelPlt = new OutputRelocSection(pModule, relplt); in initTargetSections()
101 m_pRelDyn = new OutputRelocSection(pModule, reldyn); in initTargetSections()
104 void MipsGNULDBackend::initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { in initTargetSymbols() argument
208 void MipsGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) { in doPostLayout() argument
289 void MipsGNULDBackend::orderSymbolTable(Module& pModule) { in orderSymbolTable() argument
298 Module::SymbolTable& symbols = pModule.getSymbolTable(); in orderSymbolTable()
466 bool MipsGNULDBackend::allocateCommonSymbols(Module& pModule) { in allocateCommonSymbols() argument
467 SymbolCategory& symbol_list = pModule.getSymbolTable(); in allocateCommonSymbols()
622 void MipsGNULDBackend::doCreateProgramHdrs(Module& pModule) { in doCreateProgramHdrs() argument
[all …]
/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,
/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.h40 Source(const char* name, BCCContext &pContext, llvm::Module &pModule,
56 llvm::Module &pModule,
72 void setModule(llvm::Module *pModule);

1234