| /llvm-project-15.0.7/bolt/include/bolt/Passes/ |
| H A D | ReorderData.h | 23 DataOrder baseOrder(BinaryContext &BC, const BinarySection &Section) const; 32 sortedByCount(BinaryContext &BC, const BinarySection &Section) const; 35 sortedByFunc(BinaryContext &BC, const BinarySection &Section, 38 void printOrder(const BinarySection &Section, DataOrder::const_iterator Begin, 44 void setSectionOrder(BinaryContext &BC, BinarySection &OutputSection, 47 bool markUnmoveableSymbols(BinaryContext &BC, BinarySection &Section) const;
|
| H A D | PatchEntries.h | 30 BinarySection *Section;
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | BinaryData.h | 28 class BinarySection; variable 50 BinarySection *Section{nullptr}; 66 BinarySection *OutputSection{nullptr}; 82 uint16_t Alignment, BinarySection &Section, unsigned Flags = 0); 127 BinarySection &getSection() { return *Section; } in getSection() 128 const BinarySection &getSection() const { return *Section; } in getSection() 131 BinarySection &getOutputSection() { return *OutputSection; } in getOutputSection() 132 const BinarySection &getOutputSection() const { return *OutputSection; } in getOutputSection() 175 void setSection(BinarySection &NewSection); 176 void setOutputSection(BinarySection &NewSection) { in setOutputSection() [all …]
|
| H A D | BinarySection.h | 43 class BinarySection { 100 BinarySection(const BinarySection &) = delete; 101 BinarySection(BinarySection &&) = delete; 102 BinarySection &operator=(const BinarySection &) = delete; 103 BinarySection &operator=(BinarySection &&) = delete; 144 const BinarySection &Section) in BinarySection() 152 BinarySection(BinaryContext &BC, SectionRef Section) in BinarySection() function 180 ~BinarySection(); 197 bool operator==(const BinarySection &Other) const { 204 bool operator!=(const BinarySection &Other) const { [all …]
|
| H A D | BinaryContext.h | 156 bool operator()(const BinarySection *A, const BinarySection *B) const { in operator() 160 using SectionSetType = std::set<BinarySection *, CompareSections>; 180 BinarySection ®isterSection(BinarySection *Section); 437 BinarySection &absoluteSection(); 717 getBinaryDataForSection(const BinarySection &Section) const { in getBinaryDataForSection() 731 getBinaryDataForSection(BinarySection &Section) { in getBinaryDataForSection() 891 ErrorOr<BinarySection &> getGdbIndexSection() const { in getGdbIndexSection() 941 BinarySection ®isterSection(SectionRef Section); 944 BinarySection ®isterSection(StringRef SectionName, 959 BinarySection & [all …]
|
| H A D | JumpTable.h | 95 JumpTableType Type, LabelMapType &&Labels, BinarySection &Section);
|
| H A D | BinaryFunction.h | 220 BinarySection *OriginSection = nullptr; 680 BinaryFunction(const std::string &Name, BinarySection &Section, in BinaryFunction() 1039 BinarySection *getOriginSection() const { return OriginSection; } in getOriginSection() 1041 void setOriginSection(BinarySection *Section) { OriginSection = Section; } in setOriginSection() 1321 ErrorOr<BinarySection &> getCodeSection() const { in getCodeSection() 1336 ErrorOr<BinarySection &> getColdCodeSection() const { in getColdCodeSection()
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinarySection.cpp | 29 bool BinarySection::isELF() const { return BC.isELF(); } in isELF() 31 bool BinarySection::isMachO() const { return BC.isMachO(); } in isMachO() 34 BinarySection::hash(const BinaryData &BD, in hash() 68 void BinarySection::emitAsData(MCStreamer &Streamer, StringRef NewName) const { in emitAsData() 116 void BinarySection::flushPendingRelocations(raw_pwrite_stream &OS, in flushPendingRelocations() 164 BinarySection::~BinarySection() { in ~BinarySection() 177 void BinarySection::clearRelocations() { clearList(Relocations); } in clearRelocations() 179 void BinarySection::print(raw_ostream &OS) const { in print() 199 BinarySection::RelocationSetType 200 BinarySection::reorderRelocations(bool Inplace) const { in reorderRelocations() [all …]
|
| H A D | BinaryContext.cpp | 104 for (BinarySection *Section : Sections) in ~BinaryContext() 304 for (BinarySection &Section : sections()) { in validateHoles() 999 BinarySection &Section = in registerNameAtAddress() 1435 const BinarySection *CurrentSection = nullptr; in printGlobalSymbols() 1440 const BinarySection &Section = BD->getSection(); in printGlobalSymbols() 1929 BinarySection &BinaryContext::registerSection(BinarySection *Section) { in registerSection() 1947 BinarySection & 1954 BinarySection & 1981 BinarySection *SectionPtr = &Section; in deregisterSection() 2011 for (BinarySection *const &Section : Sections) in printSections() [all …]
|
| H A D | BinaryData.cpp | 88 void BinaryData::setSection(BinarySection &NewSection) { in setSection() 132 uint16_t Alignment, BinarySection &Section, in BinaryData()
|
| H A D | CMakeLists.txt | 17 BinarySection.cpp
|
| H A D | JumpTable.cpp | 32 BinarySection &Section) in JumpTable()
|
| H A D | BinaryEmitter.cpp | 733 BinarySection &Section = in emitJumpTables() 1117 for (BinarySection &Section : BC.sections()) { in emitDataSections()
|
| H A D | DebugData.cpp | 1559 static void parseAndPopulateDebugLineStr(BinarySection &LineStrSection, in parseAndPopulateDebugLineStr() 1591 ErrorOr<BinarySection &> LineStrSection = in emit()
|
| /llvm-project-15.0.7/bolt/include/bolt/Rewrite/ |
| H A D | RewriteInstance.h | 190 std::vector<BinarySection *> getCodeSections(); 256 void disassemblePLTSectionAArch64(BinarySection &Section); 526 ErrorOr<BinarySection &> LSDASection{std::errc::bad_address}; 527 ErrorOr<BinarySection &> EHFrameSection{std::errc::bad_address}; 533 ErrorOr<BinarySection &> GOTPLTSection{std::errc::bad_address}; 538 ErrorOr<BinarySection &> RelaPLTSection{std::errc::bad_address}; 539 ErrorOr<BinarySection &> RelaDynSection{std::errc::bad_address}; 542 ErrorOr<BinarySection &> BuildIDSection{std::errc::bad_address}; 546 ErrorOr<BinarySection &> SDTSection{std::errc::bad_address}; 551 ErrorOr<BinarySection &> PseudoProbeDescSection{std::errc::bad_address}; [all …]
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | ReorderData.cpp | 102 bool isSupported(const BinarySection &BS) { return BS.isData() && !BS.isTLS(); } in isSupported() 139 void ReorderData::printOrder(const BinarySection &Section, in printOrder() 164 const BinarySection &Section) const { in baseOrder() 233 ReorderData::sortedByFunc(BinaryContext &BC, const BinarySection &Section, in sortedByFunc() 306 const BinarySection &Section) const { in sortedByCount() 336 BinarySection &OutputSection, in setSectionOrder() 407 BinarySection &Section) const { in markUnmoveableSymbols() 456 std::vector<BinarySection *> Sections; in runOnFunctions() 461 if (ErrorOr<BinarySection &> Section = in runOnFunctions() 482 for (BinarySection *Section : Sections) { in runOnFunctions() [all …]
|
| H A D | AsmDump.cpp | 88 const BinarySection *&LastCS) { in dumpTargetFunctionStub() 102 const BinarySection *&LastBS) { in dumpJumpTableSymbols() 114 const BinarySection *&LastBS) { in dumpBinaryDataSymbols() 258 const BinarySection *LastSection = BF.getOriginSection(); in dumpFunction()
|
| H A D | Instrumentation.cpp | 515 const unsigned Flags = BinarySection::getFlags(/*IsReadOnly=*/false, in runOnFunctions() 553 ErrorOr<BinarySection &> SetupSection = in runOnFunctions() 572 ErrorOr<BinarySection &> FiniSection = in runOnFunctions()
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | ExecutableFileMemoryManager.cpp | 32 BinarySection &Section = in allocateSection() 67 BinarySection &Section = BC.registerOrUpdateSection( in allocateSection() 69 BinarySection::getFlags(IsReadOnly, IsCode, true), Ret, Size, Alignment); in allocateSection()
|
| H A D | RewriteInstance.cpp | 1606 if (ErrorOr<BinarySection &> BATSec = in readSpecialSections() 2047 ErrorOr<BinarySection &> SectionOrError = in processLKExTable() 2102 ErrorOr<BinarySection &> SectionOrError = in processLKPCIFixup() 2134 ErrorOr<BinarySection &> SectionOrError = in processLKKSymtab() 3563 auto compareSections = [&](const BinarySection *A, const BinarySection *B) { in getCodeSections() 3585 ErrorOr<BinarySection &> TextSection = in mapCodeSections() 3765 BinarySection &Section = in mapCodeSections() 3816 ErrorOr<BinarySection &> OrgSection = in mapDataSections() 4069 BinarySection &NewSection = in rewriteNoteSections() 4170 BinarySection::encodeELFNote("BOLT", DescStr, BinarySection::NT_BOLT_BAT); in encodeBATSection() [all …]
|
| H A D | MachORewriteInstance.cpp | 252 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); in discoverFileObjects() 391 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in mapInstrumentationSection() 408 ErrorOr<BinarySection &> FuncSection = Function->getCodeSection(); in mapCodeSections() 426 ErrorOr<BinarySection &> BOLT = BC->getUniqueSectionByName("__bolt"); in mapCodeSections() 437 ErrorOr<BinarySection &> FuncSection = Function->getCodeSection(); in mapCodeSections() 547 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); in writeInstrumentationSection()
|
| H A D | DWARFRewriter.cpp | 162 ErrorOr<BinarySection &> DebugInfo = BC.getUniqueSectionByName(".debug_info"); in updateDebugInfo() 874 ErrorOr<BinarySection &> DbgInfoSection = in updateLineTableOffsets() 876 ErrorOr<BinarySection &> TypeInfoSection = in updateLineTableOffsets() 1088 ErrorOr<BinarySection &> DebugTypes = in finalizeDebugSections()
|
| /llvm-project-15.0.7/bolt/lib/RuntimeLibs/ |
| H A D | InstrumentationRuntimeLibrary.cpp | 73 BinarySection::getFlags(/*IsReadOnly=*/false, in emitBinary() 326 const std::string BoltInfo = BinarySection::encodeELFNote( in emitTablesAsELFNote() 327 "BOLT", TablesStr, BinarySection::NT_BOLT_INSTRUMENTATION_TABLES); in emitTablesAsELFNote()
|
| H A D | HugifyRuntimeLibrary.cpp | 72 const auto Flags = BinarySection::getFlags(/*IsReadOnly=*/false, in emitBinary()
|
| /llvm-project-15.0.7/bolt/lib/Profile/ |
| H A D | BoltAddressTranslation.cpp | 138 if (Type != BinarySection::NT_BOLT_BAT || in parse()
|