/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()
|
D | OutputCmd.cpp | 30 void OutputCmd::activate(Module& pModule) { in activate() argument 31 pModule.getScript().setOutputFile(m_OutputFile); in activate()
|
/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); 296 llvm::StringRef getEntry(const Module& pModule) const; 331 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/Target/ARM/ |
D | ARMLDBackend.h | 50 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 …]
|
D | ARMLDBackend.cpp | 64 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/ |
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/lib/Target/AArch64/ |
D | AArch64LDBackend.h | 41 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);
|
D | AArch64LDBackend.cpp | 88 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/ |
D | MipsLDBackend.h | 45 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/ |
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/libbcc/lib/ |
D | Source.cpp | 98 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/ |
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/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,
|
D | X86LDBackend.cpp | 116 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/ |
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 | 50 Source(const char* name, BCCContext &pContext, llvm::Module &pModule, 66 llvm::Module &pModule, 87 void setModule(llvm::Module *pModule);
|