Home
last modified time | relevance | path

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

12345

/frameworks/compile/mclinker/lib/Script/
DUnaryOp.cpp22 IntOperand* UnaryOp<Operator::UNARY_PLUS>::eval(const Module& pModule, in eval() argument
32 UnaryOp<Operator::UNARY_MINUS>::eval(const Module& pModule, in eval() argument
42 UnaryOp<Operator::LOGICAL_NOT>::eval(const Module& pModule, in eval() argument
52 UnaryOp<Operator::BITWISE_NOT>::eval(const Module& pModule, in eval() argument
61 IntOperand* UnaryOp<Operator::ABSOLUTE>::eval(const Module& pModule, in eval() argument
70 IntOperand* UnaryOp<Operator::ADDR>::eval(const Module& pModule, in eval() argument
77 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
92 IntOperand* UnaryOp<Operator::ALIGNOF>::eval(const Module& pModule, in eval() argument
99 sect = pModule.getSection(llvm::cast<SectOperand>(m_pOperand)->name()); in eval()
115 UnaryOp<Operator::DATA_SEGMENT_END>::eval(const Module& pModule, in eval() argument
[all …]
DBinaryOp.cpp23 IntOperand* BinaryOp<Operator::MUL>::eval(const Module& pModule, in eval() argument
32 IntOperand* BinaryOp<Operator::DIV>::eval(const Module& pModule, in eval() argument
41 IntOperand* BinaryOp<Operator::MOD>::eval(const Module& pModule, in eval() argument
50 IntOperand* BinaryOp<Operator::ADD>::eval(const Module& pModule, in eval() argument
59 IntOperand* BinaryOp<Operator::SUB>::eval(const Module& pModule, in eval() argument
68 IntOperand* BinaryOp<Operator::LSHIFT>::eval(const Module& pModule, in eval() argument
77 IntOperand* BinaryOp<Operator::RSHIFT>::eval(const Module& pModule, in eval() argument
86 IntOperand* BinaryOp<Operator::LT>::eval(const Module& pModule, in eval() argument
95 IntOperand* BinaryOp<Operator::LE>::eval(const Module& pModule, in eval() argument
104 IntOperand* BinaryOp<Operator::GT>::eval(const Module& pModule, in eval() argument
[all …]
DSectionsCmd.cpp66 void SectionsCmd::activate(Module& pModule) in activate() argument
74 (*it)->activate(pModule); in activate()
80 (*it)->activate(pModule); in activate()
84 (*assign)->activate(pModule); in activate()
DNullaryOp.cpp19 NullaryOp<Operator::SIZEOF_HEADERS>::eval(const Module& pModule, in eval() argument
29 NullaryOp<Operator::MAXPAGESIZE>::eval(const Module& pModule, in eval() argument
39 NullaryOp<Operator::COMMONPAGESIZE>::eval(const Module& pModule, in eval() argument
DOutputSectDesc.cpp156 void OutputSectDesc::activate(Module& pModule) in activate() argument
167 (*it)->activate(pModule); in activate()
171 (*assign)->activate(pModule); in activate()
188 pModule.getScript().sectionMap().insert(inputDesc, *this); in activate()
192 (*assign)->activate(pModule); in activate()
/frameworks/compile/mclinker/include/mcld/Target/
DTargetLDBackend.h58 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) { } in initTargetSections() argument
59 virtual void initTargetSymbols(IRBuilder& pBuilder, Module& pModule) { } in initTargetSymbols() argument
61 virtual bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule) = 0;
78 virtual void layout(Module& pModule) = 0;
81 virtual void preLayout(Module& pModule, IRBuilder& pBuilder) = 0;
84 virtual void postLayout(Module& pModule, IRBuilder& pBuilder) = 0;
98 virtual void sizeNamePools(Module& pModule) = 0;
112 virtual bool allocateCommonSymbols(Module& pModule) = 0;
115 virtual bool mergeSection(Module& pModule, in mergeSection() argument
123 virtual void setUpReachedSectionsForGC(const Module& pModule, in setUpReachedSectionsForGC() argument
[all …]
DGNULDBackend.h57 GNUArchiveReader* createArchiveReader(Module& pModule);
79 bool initStandardSymbols(IRBuilder& pBuilder, Module& pModule);
112 void sizeShstrtab(Module& pModule);
117 virtual void sizeNamePools(Module& pModule);
124 virtual void emitRegNamePools(const Module& pModule, FileOutputBuffer& pOutput);
127 virtual void emitDynNamePools(Module& pModule, FileOutputBuffer& pOutput);
148 virtual void orderSymbolTable(Module& pModule);
191 virtual bool allocateCommonSymbols(Module& pModule);
299 llvm::StringRef getEntry(const Module& pModule) const;
331 void createAndSizeEhFrameHdr(Module& pModule);
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFObjectWriter.h41 std::error_code writeObject(Module& pModule, FileOutputBuffer& pOutput);
43 size_t getOutputSize(const Module& pModule) const;
46 void writeSection(Module& pModule,
56 const Module& pModule,
60 const Module& pModule) const;
64 void emitSectionHeader(const Module& pModule,
74 const Module& pModule,
79 void emitEhFrame(Module& pModule,
110 uint64_t getLastStartOffset(const Module& pModule) const in getLastStartOffset() argument
125 uint64_t ELFObjectWriter::getLastStartOffset<32>(const Module& pModule) const;
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp54 void ELFObjectWriter::writeSection(Module& pModule, in writeSection() argument
105 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
121 std::error_code ELFObjectWriter::writeObject(Module& pModule, in writeObject() argument
133 target().orderSymbolTable(pModule); in writeObject()
139 target().emitDynNamePools(pModule, pOutput); in writeObject()
144 target().emitRegNamePools(pModule, pOutput); in writeObject()
155 writeSection(pModule, pOutput, *sect); in writeObject()
160 Module::iterator sect, sectEnd = pModule.end(); in writeObject()
161 for (sect = pModule.begin(); sect != sectEnd; ++sect) in writeObject()
162 writeSection(pModule, pOutput, *sect); in writeObject()
[all …]
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp66 bool Linker::link(Module& pModule, IRBuilder& pBuilder) in link() argument
68 if (!normalize(pModule, pBuilder)) in link()
71 if (!resolve(pModule)) in link()
78 bool Linker::normalize(Module& pModule, IRBuilder& pBuilder) in normalize() argument
87 if (!m_pObjLinker->initialize(pModule, pBuilder)) in normalize()
110 mcld::outs() << "** name\ttype\tpath\tsize (" << pModule.getInputTree().size() << ")\n"; in normalize()
111 InputTree::const_dfs_iterator input, inEnd = pModule.getInputTree().dfs_end(); in normalize()
112 for (input=pModule.getInputTree().dfs_begin(); input!=inEnd; ++input) { in normalize()
144 else if (pModule.getLibraryList().empty()) { in normalize()
166 bool Linker::resolve(Module& pModule) in resolve() argument
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMLDBackend.h49 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
52 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
65 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
119 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
123 void setUpReachedSectionsForGC(const Module& pModule,
148 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
163 virtual void doCreateProgramHdrs(Module& pModule);
DARMLDBackend.cpp82 void ARMGNULDBackend::initTargetSections(Module& pModule, ObjectBuilder& pBuilder) 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
173 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXStart); in initTargetSymbols()
175 pModule.getSymbolTable().changeToDynamic(*m_pEXIDXEnd); in initTargetSymbols()
263 void ARMGNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
413 bool ARMGNULDBackend::mergeSection(Module& pModule, in mergeSection() argument
432 ObjectBuilder builder(pModule); in mergeSection()
440 void ARMGNULDBackend::setUpReachedSectionsForGC(const Module& pModule, in setUpReachedSectionsForGC() argument
[all …]
/frameworks/compile/mclinker/include/mcld/
DLinker.h43 bool normalize(Module& pModule, IRBuilder& pBuilder);
46 bool resolve(Module& pModule);
52 bool link(Module& pModule, IRBuilder& pBuilder);
59 bool emit(const Module& pModule, const std::string& pPath);
62 bool emit(const Module& pModule, int pFileDescriptor);
/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()
115 Source *Source::CreateFromModule(BCCContext &pContext, llvm::Module &pModule, in CreateFromModule() argument
119 if (llvm::verifyModule(pModule, &ErrorStream)) { in CreateFromModule()
125 Source *result = new (std::nothrow) Source(pContext, pModule, pNoDelete); in CreateFromModule()
128 pModule.getModuleIdentifier().c_str()); in CreateFromModule()
133 Source::Source(BCCContext &pContext, llvm::Module &pModule, bool pNoDelete) in Source() argument
134 : mContext(pContext), mModule(&pModule), mNoDelete(pNoDelete) { in Source()
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64LDBackend.h39 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
42 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
55 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
109 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
127 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
142 virtual void doCreateProgramHdrs(Module& pModule);
DAArch64LDBackend.cpp87 void AArch64GNULDBackend::initTargetSections(Module& pModule, in initTargetSections() argument
120 m_pRelaPLT = new OutputRelocSection(pModule, relaplt); in initTargetSections()
124 m_pRelaDyn = new OutputRelocSection(pModule, reladyn); in initTargetSections()
129 Module& pModule) in initTargetSymbols() argument
246 void AArch64GNULDBackend::doPostLayout(Module& pModule, IRBuilder& pBuilder) in doPostLayout() argument
328 bool AArch64GNULDBackend::doRelax(Module& pModule, in doRelax() argument
342 void AArch64GNULDBackend::doCreateProgramHdrs(Module& pModule) in doCreateProgramHdrs() argument
353 bool AArch64GNULDBackend::mergeSection(Module& pModule, in mergeSection() argument
/frameworks/compile/mclinker/lib/Target/Hexagon/
DHexagonLDBackend.h51 bool allocateCommonSymbols(Module& pModule);
54 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
97 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
99 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
107 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
130 bool mergeSection(Module& pModule, const Input& pInput, LDSection& pSection);
164 void doCreateProgramHdrs(Module& pModule);
DHexagonRelocator.h84 Module& pModule,
90 Module& pModule,
130 Module& pModule,
135 Module& pModule,
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.h44 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
47 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
57 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
88 void orderSymbolTable(Module& pModule);
125 bool allocateCommonSymbols(Module& pModule);
146 void doCreateProgramHdrs(Module& pModule);
155 bool doRelax(Module& pModule, IRBuilder& pBuilder, bool& pFinished);
250 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
267 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
/frameworks/compile/mclinker/lib/Target/X86/
DX86Relocator.h86 Module& pModule,
105 Module& pModule,
110 Module& pModule,
161 Module& pModule,
166 Module& pModule,
221 Module& pModule,
226 Module& pModule,
DX86LDBackend.h47 void doPostLayout(Module& pModule, IRBuilder& pBuilder);
82 virtual void initTargetSections(Module& pModule, ObjectBuilder& pBuilder) = 0;
84 void initTargetSymbols(IRBuilder& pBuilder, Module& pModule);
122 void doCreateProgramHdrs(Module& pModule);
135 void addEhFrameForPLT(Module& pModule);
168 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
211 void initTargetSections(Module& pModule, ObjectBuilder& pBuilder);
DX86ELFMCLinker.cpp14 mcld::Module& pModule, in X86ELFMCLinker() argument
16 : ELFMCLinker(pConfig, pModule, pFileHandle) { in X86ELFMCLinker()
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp164 GNULDBackend::createArchiveReader(Module& pModule) in createArchiveReader() argument
167 return new GNUArchiveReader(pModule, *m_pObjectReader); in createArchiveReader()
225 Module& pModule) in initStandardSymbols() argument
233 Module::iterator iter, iterEnd = pModule.end(); in initStandardSymbols()
234 for (iter = pModule.begin(); iter != iterEnd; ++iter) { in initStandardSymbols()
744 void GNULDBackend::sizeShstrtab(Module& pModule) in sizeShstrtab() argument
748 Module::const_iterator sect, sectEnd = pModule.end(); in sizeShstrtab()
749 for (sect = pModule.begin(); sect != sectEnd; ++sect) { in sizeShstrtab()
758 void GNULDBackend::sizeNamePools(Module& pModule) in sizeNamePools() argument
778 Module::SymbolTable& symbols = pModule.getSymbolTable(); in sizeNamePools()
[all …]
/frameworks/compile/libbcc/include/bcc/
DSource.h39 Source(BCCContext &pContext, llvm::Module &pModule, bool pNoDelete = false);
53 llvm::Module &pModule,
67 void setModule(llvm::Module *pModule);
/frameworks/compile/mclinker/lib/CodeGen/
DMCLDTargetMachine.cpp195 mcld::Module& pModule, in addPassesToEmitFile() argument
238 pModule, in addPassesToEmitFile()
248 pModule, in addPassesToEmitFile()
258 pModule, in addPassesToEmitFile()
268 pModule, in addPassesToEmitFile()
358 mcld::Module& pModule, in addLinkerPasses() argument
370 pModule.setName(pFileHandle.path().filename().native()); in addLinkerPasses()
374 pModule, in addLinkerPasses()

12345