Home
last modified time | relevance | path

Searched refs:SectionChunk (Results 1 – 19 of 19) sorted by relevance

/openbsd-src/gnu/llvm/lld/COFF/
H A DICF.cpp47 bool assocEquals(const SectionChunk *a, const SectionChunk *b);
49 bool equalsConstant(const SectionChunk *a, const SectionChunk *b);
50 bool equalsVariable(const SectionChunk *a, const SectionChunk *b);
52 bool isEligible(SectionChunk *c);
61 std::vector<SectionChunk *> chunks;
79 bool ICF::isEligible(SectionChunk *c) { in isEligible()
109 chunks.begin() + begin + 1, chunks.begin() + end, [&](SectionChunk *s) { in segregate()
130 bool ICF::assocEquals(const SectionChunk *a, const SectionChunk *b) { in assocEquals()
133 auto considerForICF = [](const SectionChunk &assoc) { in assocEquals()
141 [&](const SectionChunk &ia, const SectionChunk &ib) { in assocEquals()
[all …]
H A DChunks.h182 RuntimePseudoReloc(Defined *sym, SectionChunk *target, uint32_t targetOffset, in RuntimePseudoReloc()
187 SectionChunk *target;
195 class SectionChunk final : public Chunk {
203 friend SectionChunk; variable
216 SectionChunk(ObjFile *file, const coff_section *header);
257 void addAssociative(SectionChunk *child);
292 AssociatedIterator, std::forward_iterator_tag, SectionChunk> {
295 AssociatedIterator(SectionChunk *head) : cur(head) {} in AssociatedIterator()
298 SectionChunk &operator*() const { return *cur; }
299 SectionChunk &operator*() { return *cur; }
[all …]
H A DInputFiles.h58 class SectionChunk; variable
138 ArrayRef<SectionChunk *> getDebugChunks() { return debugChunks; } in getDebugChunks()
139 ArrayRef<SectionChunk *> getSXDataChunks() { return sxDataChunks; } in getSXDataChunks()
140 ArrayRef<SectionChunk *> getGuardFidChunks() { return guardFidChunks; } in getGuardFidChunks()
141 ArrayRef<SectionChunk *> getGuardIATChunks() { return guardIATChunks; } in getGuardIATChunks()
142 ArrayRef<SectionChunk *> getGuardLJmpChunks() { return guardLJmpChunks; } in getGuardLJmpChunks()
143 ArrayRef<SectionChunk *> getGuardEHContChunks() { return guardEHContChunks; } in getGuardEHContChunks()
228 SectionChunk *
275 std::vector<SectionChunk *> resourceChunks;
278 std::vector<SectionChunk *> debugChunks;
[all …]
H A DCallGraphSort.cpp54 DenseMap<const SectionChunk *, int> run();
58 std::vector<const SectionChunk *> sections;
71 using SectionPair = std::pair<const SectionChunk *, const SectionChunk *>;
78 DenseMap<const SectionChunk *, int> secToCluster; in CallGraphSort()
80 auto getOrCreateNode = [&](const SectionChunk *isec) -> int { in CallGraphSort()
91 const auto *fromSec = cast<SectionChunk>(c.first.first->repl); in CallGraphSort()
92 const auto *toSec = cast<SectionChunk>(c.first.second->repl); in CallGraphSort()
155 DenseMap<const SectionChunk *, int> CallGraphSort::run() { in run()
198 DenseMap<const SectionChunk *, int> orderMap; in run()
221 const SectionChunk *sc = sections[i]; in run()
[all …]
H A DChunks.cpp33 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h) in SectionChunk() function in lld::coff::SectionChunk
65 static_assert(sizeof(SectionChunk) <= 88, "SectionChunk grew unexpectedly");
76 static bool checkSecRel(const SectionChunk *sec, OutputSection *os) { in checkSecRel()
85 static void applySecRel(const SectionChunk *sec, uint8_t *off, in applySecRel()
112 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64()
139 void SectionChunk::applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX86()
207 void SectionChunk::applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM()
281 static void applySecRelLow12A(const SectionChunk *sec, uint8_t *off, in applySecRelLow12A()
287 static void applySecRelHigh12A(const SectionChunk *sec, uint8_t *off, in applySecRelHigh12A()
300 static void applySecRelLdr(const SectionChunk *sec, uint8_t *off, in applySecRelLdr()
[all …]
H A DMarkLive.cpp27 SmallVector<SectionChunk *, 256> worklist; in markLive()
33 if (auto *sc = dyn_cast<SectionChunk>(c)) in markLive()
37 auto enqueue = [&](SectionChunk *c) { in markLive()
58 SectionChunk *sc = worklist.pop_back_val(); in markLive()
67 for (SectionChunk &c : sc->children()) in markLive()
H A DCallGraphSort.h15 class SectionChunk; variable
18 llvm::DenseMap<const SectionChunk *, int>
H A DPDB.cpp115 void analyzeSymbolSubsection(SectionChunk *debugChunk,
132 void writeSymbolRecord(SectionChunk *debugChunk,
175 SectionChunk *debugChunk = nullptr;
224 void advanceRelocIndex(SectionChunk *debugChunk, ArrayRef<uint8_t> subsec);
226 void addUnrelocatedSubsection(SectionChunk *debugChunk,
229 void addFrameDataSubsection(SectionChunk *debugChunk,
238 void handleDebugS(SectionChunk *debugChunk);
558 void PDBLinker::writeSymbolRecord(SectionChunk *debugChunk, in writeSymbolRecord()
585 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection()
653 for (SectionChunk *debugChunk : file->getDebugChunks()) { in writeAllModuleSymbolRecords()
[all …]
H A DPDB.h24 class SectionChunk; variable
31 getFileLineCodeView(const SectionChunk *c, uint32_t addr);
H A DWriter.cpp234 ArrayRef<SectionChunk *> symIdxChunks,
237 ArrayRef<SectionChunk *> symIdxChunks,
439 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]); in createThunks()
529 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(c); in verifyRanges()
722 if (auto *sec = dyn_cast<SectionChunk>(c)) in sortBySectionOrder()
779 SectionChunk *sc1 = dyn_cast_or_null<SectionChunk>(s); in fixGnuImportChunks()
780 SectionChunk *sc2 = dyn_cast_or_null<SectionChunk>(t); in fixGnuImportChunks()
846 static bool shouldStripSectionSuffix(SectionChunk *sc, StringRef name, in shouldStripSectionSuffix()
868 DenseMap<const SectionChunk *, int> order = in sortSections()
918 auto *sc = dyn_cast<SectionChunk>(c); in createSections()
[all …]
H A DSymbolTable.h33 class SectionChunk; variable
98 SectionChunk *c = nullptr, uint32_t sectionOffset = 0,
112 SectionChunk *newSc = nullptr,
H A DInputFiles.cpp186 static SectionChunk *const pendingComdat = reinterpret_cast<SectionChunk *>(1);
200 SectionChunk *ObjFile::readSection(uint32_t sectionNumber, in readSection()
245 auto *c = make<SectionChunk>(this, sec); in readSection()
289 SectionChunk *parent = sparseChunks[parentIndex]; in readAssociativeDefinition()
315 SectionChunk *c = readSection(sectionNumber, def, ""); in readAssociativeDefinition()
336 SectionChunk *sc = sparseChunks[sectionNumber]; in recordPrevailingSymbolForMingw()
358 SectionChunk *sc = sparseChunks[sym.getSectionNumber()]; in createRegular()
475 SectionChunk *leaderChunk = leader->getChunk(); in handleComdatSelection()
547 SectionChunk newChunk(this, getSection(sym)); in handleComdatSelection()
662 SectionChunk *c = readSection(sectionNumber, def, getName()); in createDefined()
[all …]
H A DSymbolTable.cpp103 static Symbol *getSymbol(SectionChunk *sc, uint32_t addr) { in getSymbol()
129 getFileLineDwarf(const SectionChunk *c, uint32_t addr) { in getFileLineDwarf()
141 getFileLine(const SectionChunk *c, uint32_t addr) { in getFileLine()
167 auto *sc = dyn_cast<SectionChunk>(c); in getSymbolLocations()
363 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(refptr->getChunk()); in handleMinGWAutomaticImport()
607 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
624 static std::string getSourceLocation(InputFile *file, SectionChunk *sc, in getSourceLocation()
643 SectionChunk *newSc, in reportDuplicate()
702 const coff_symbol_generic *sym, SectionChunk *c, in addRegular()
H A DConfig.h35 class SectionChunk; variable
238 llvm::MapVector<std::pair<const SectionChunk *, const SectionChunk *>,
H A DLLDMapFile.cpp36 DenseMap<const SectionChunk *, SmallVector<DefinedRegular *, 4>>;
114 auto *sc = dyn_cast<SectionChunk>(c); in writeLLDMapFile()
H A DMapFile.cpp253 std::vector<std::pair<SectionChunk *, SectionChunk *>> ChunkRanges; in writeMapFile()
255 auto *sc = dyn_cast<SectionChunk>(c); in writeMapFile()
H A DSymbols.h203 SectionChunk *c = nullptr, bool isWeak = false)
215 SectionChunk *getChunk() const { return *data; } in getChunk()
218 SectionChunk **data;
H A DDriver.cpp1072 if (auto *sec = dyn_cast<SectionChunk>(c)) in parseOrderFile()
1119 auto findSection = [&](StringRef name) -> SectionChunk * { in parseCallGraphFile()
1128 return dyn_cast_or_null<SectionChunk>(dr->getChunk()); in parseCallGraphFile()
1142 if (SectionChunk *from = findSection(fields[0])) in parseCallGraphFile()
1143 if (SectionChunk *to = findSection(fields[1])) in parseCallGraphFile()
1171 auto *from = dyn_cast_or_null<SectionChunk>(fromSym->getChunk()); in readCallGraphsFromObjectFiles()
1172 auto *to = dyn_cast_or_null<SectionChunk>(toSym->getChunk()); in readCallGraphsFromObjectFiles()
1182 if (SectionChunk *c = dyn_cast_or_null<SectionChunk>(d->getChunk())) in markAddrsig()
H A DDebugTypes.cpp288 SectionChunk *sec = in getDebugH()
289 SectionChunk::findByName(file->getDebugChunks(), ".debug$H"); in getDebugH()