| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFFLinkGraphBuilder.h | 52 void setGraphSymbol(COFFSectionIndex SecIndex, COFFSymbolIndex SymIndex, in setGraphSymbol() argument 56 if (!COFF::isReservedSectionNumber(SecIndex)) in setGraphSymbol() 57 SymbolSets[SecIndex].insert({Sym.getOffset(), &Sym}); in setGraphSymbol() 67 void setGraphBlock(COFFSectionIndex SecIndex, Block *B) { in setGraphBlock() argument 68 assert(!GraphBlocks[SecIndex] && "Duplicate section at index"); in setGraphBlock() 69 assert(!COFF::isReservedSectionNumber(SecIndex) && "Invalid section index"); in setGraphBlock() 70 GraphBlocks[SecIndex] = B; in setGraphBlock() 73 Block *getGraphBlock(COFFSectionIndex SecIndex) const { in getGraphBlock() argument 74 if (SecIndex <= 0 || in getGraphBlock() 75 SecIndex >= static_cast<COFFSectionIndex>(GraphSymbols.size())) in getGraphBlock() [all …]
|
| H A D | ELFLinkGraphBuilder.h | 80 void setGraphBlock(ELFSectionIndex SecIndex, Block *B) { in setGraphBlock() argument 81 assert(!GraphBlocks.count(SecIndex) && "Duplicate section at index"); in setGraphBlock() 82 GraphBlocks[SecIndex] = B; in setGraphBlock() 85 Block *getGraphBlock(ELFSectionIndex SecIndex) { in getGraphBlock() argument 86 auto I = GraphBlocks.find(SecIndex); in getGraphBlock() 277 for (ELFSectionIndex SecIndex = 0; SecIndex != Sections.size(); ++SecIndex) { in graphifySections() local 279 auto &Sec = Sections[SecIndex]; in graphifySections() 290 dbgs() << " " << SecIndex << ": \"" << *Name in graphifySections() 300 dbgs() << " " << SecIndex << ": \"" << *Name in graphifySections() 308 dbgs() << " " << SecIndex << ": Creating section for \"" << *Name in graphifySections() [all …]
|
| H A D | COFFLinkGraphBuilder.cpp | 126 for (COFFSectionIndex SecIndex = 1; in graphifySections() local 127 SecIndex <= static_cast<COFFSectionIndex>(Obj.getNumberOfSections()); in graphifySections() 128 SecIndex++) { in graphifySections() 129 Expected<const object::coff_section *> Sec = Obj.getSection(SecIndex); in graphifySections() 181 setGraphBlock(SecIndex, B); in graphifySections() 326 for (COFFSectionIndex SecIndex = 1; in calculateImplicitSizeOfSymbols() local 327 SecIndex <= static_cast<COFFSectionIndex>(Obj.getNumberOfSections()); in calculateImplicitSizeOfSymbols() 328 SecIndex++) { in calculateImplicitSizeOfSymbols() 329 auto &SymbolSet = SymbolSets[SecIndex]; in calculateImplicitSizeOfSymbols() 332 jitlink::Block *B = getGraphBlock(SecIndex); in calculateImplicitSizeOfSymbols()
|
| H A D | MachOLinkGraphBuilder.cpp | 126 auto SecIndex = Obj.getSectionIndex(SecRef.getRawDataRefImpl()); in createNormalizedSections() local 161 << ", align: " << NSec.Alignment << ", index: " << SecIndex in createNormalizedSections() 188 IndexToSection.insert(std::make_pair(SecIndex, std::move(NSec))); in createNormalizedSections() 315 unsigned SecIndex, Section &GraphSec, orc::ExecutorAddr Address, in addSectionStartSymAndBlock() argument 323 auto SecI = IndexToSection.find(SecIndex); in addSectionStartSymAndBlock() 398 auto SecIndex = KV.first; in graphifyRegularSymbols() local 419 NSec, std::move(SecIndexToSymbols[SecIndex]))) in graphifyRegularSymbols() 431 auto &SecNSymStack = SecIndexToSymbols[SecIndex]; in graphifyRegularSymbols() 443 addSectionStartSymAndBlock(SecIndex, *NSec.GraphSection, NSec.Address, in graphifyRegularSymbols() 482 addSectionStartSymAndBlock(SecIndex, *NSec.GraphSection, NSec.Address, in graphifyRegularSymbols()
|
| H A D | MachOLinkGraphBuilder.h | 195 void addSectionStartSymAndBlock(unsigned SecIndex, Section &GraphSec,
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ObjDumper.cpp | 107 unsigned SecIndex; in getSectionRefsByNameOrIndex() local 109 if (!Section.getAsInteger(0, SecIndex)) in getSectionRefsByNameOrIndex() 110 SecIndices.emplace(SecIndex, false); in getSectionRefsByNameOrIndex() 115 SecIndex = Obj.isELF() ? 0 : 1; in getSectionRefsByNameOrIndex() 121 auto IndexIt = SecIndices.find(SecIndex); in getSectionRefsByNameOrIndex() 126 SecIndex++; in getSectionRefsByNameOrIndex()
|
| H A D | ARMEHABIPrinter.h | 504 Optional<unsigned> SecIndex = in PrintExceptionTable() local 506 if (ErrorOr<StringRef> Name = FunctionAtAddress(Address, SecIndex)) in PrintExceptionTable() 577 Optional<unsigned> SecIndex = in PrintIndexTable() local 579 if (ErrorOr<StringRef> Name = FunctionAtAddress(Address, SecIndex)) in PrintIndexTable()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | macho2yaml.cpp | 47 size_t SecIndex); 50 size_t SecIndex); 79 MachODumper::constructSectionCommon(SectionType Sec, size_t SecIndex) { in constructSectionCommon() argument 97 if (Expected<object::SectionRef> SecRef = Obj.getSection(SecIndex)) { in constructSectionCommon() 122 size_t SecIndex) { in constructSection() argument 123 Expected<MachOYAML::Section> TempSec = constructSectionCommon(Sec, SecIndex); in constructSection() 131 MachODumper::constructSection(MachO::section_64 Sec, size_t SecIndex) { in constructSection() argument 132 Expected<MachOYAML::Section> TempSec = constructSectionCommon(Sec, SecIndex); in constructSection()
|
| H A D | elf2yaml.cpp | 121 unsigned SecIndex = &Sec - &Sections[0]; in getUniquedSectionName() local 122 if (!SectionNames[SecIndex].empty()) in getUniquedSectionName() 123 return SectionNames[SecIndex]; in getUniquedSectionName() 135 std::string &Ret = SectionNames[SecIndex]; in getUniquedSectionName() 1164 unsigned SecIndex = Shdr - &Sections[0]; in dumpContentSection() local 1165 if (SecIndex != 0 || Shdr->sh_type != ELF::SHT_NULL) { in dumpContentSection()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | ELFObjectWriter.cpp | 1125 uint32_t SecIndex = SectionIndexMap.lookup(Member); in writeObject() local 1126 write(SecIndex); in writeObject()
|