/frameworks/compile/mclinker/lib/Script/ |
D | UnaryOp.cpp | 27 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 …]
|
D | BinaryOp.cpp | 27 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 …]
|
D | SectionsCmd.cpp | 63 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()
|
D | NullaryOp.cpp | 20 const Module& pModule, in eval() argument 29 const Module& pModule, in eval() argument 38 const Module& pModule, in eval() argument
|
D | OutputSectDesc.cpp | 155 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/ |
D | ARMLDBackend.h | 48 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 …]
|
D | ARMLDBackend.cpp | 81 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 …]
|
D | ARMException.cpp | 49 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/ |
D | TargetLDBackend.h | 62 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 …]
|
D | GNULDBackend.h | 56 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/ |
D | ELFObjectWriter.h | 37 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/ |
D | ELFObjectWriter.cpp | 51 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/ |
D | Linker.cpp | 66 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/ |
D | Linker.h | 39 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/ |
D | AArch64LDBackend.h | 38 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);
|
D | AArch64LDBackend.cpp | 83 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/ |
D | Source.cpp | 55 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/ |
D | HexagonLDBackend.h | 50 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);
|
D | HexagonRelocator.h | 80 Module& pModule, 86 Module& pModule); 131 Module& pModule, 136 Module& pModule,
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsLDBackend.h | 43 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);
|
D | MipsLDBackend.cpp | 88 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/ |
D | X86LDBackend.h | 47 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);
|
D | X86Relocator.h | 82 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/ |
D | GNULDBackend.cpp | 159 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/ |
D | Source.h | 40 Source(const char* name, BCCContext &pContext, llvm::Module &pModule, 56 llvm::Module &pModule, 72 void setModule(llvm::Module *pModule);
|