Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lld/COFF/
H A DICF.cpp48 bool assocEquals(const SectionChunk *a, const SectionChunk *b);
50 bool equalsConstant(const SectionChunk *a, const SectionChunk *b);
51 bool equalsVariable(const SectionChunk *a, const SectionChunk *b);
53 bool isEligible(SectionChunk *c);
62 std::vector<SectionChunk *> chunks;
81 bool ICF::isEligible(SectionChunk *c) { in isEligible()
132 bool ICF::assocEquals(const SectionChunk *a, const SectionChunk *b) { in assocEquals()
143 [&](const SectionChunk &ia, const SectionChunk &ib) { in assocEquals()
150 bool ICF::equalsConstant(const SectionChunk *a, const SectionChunk *b) { in equalsConstant()
183 bool ICF::equalsVariable(const SectionChunk *a, const SectionChunk *b) { in equalsVariable()
[all …]
H A DChunks.h187 friend SectionChunk; variable
290 SectionChunk *cur = nullptr;
311 static SectionChunk *findByName(ArrayRef<SectionChunk *> sections,
341 SectionChunk *repl;
363 if (isa<SectionChunk>(this)) in getSize()
370 if (isa<SectionChunk>(this)) in getOutputCharacteristics()
378 if (isa<SectionChunk>(this)) in writeTo()
385 if (isa<SectionChunk>(this)) in getSectionName()
392 if (isa<SectionChunk>(this)) in getBaserels()
399 if (isa<SectionChunk>(this)) in getDebugName()
[all …]
H A DInputFiles.h58 class SectionChunk; variable
138 ArrayRef<SectionChunk *> getDebugChunks() { return debugChunks; } in getDebugChunks()
228 SectionChunk *
275 std::vector<SectionChunk *> resourceChunks;
278 std::vector<SectionChunk *> debugChunks;
282 std::vector<SectionChunk *> sxDataChunks;
287 std::vector<SectionChunk *> guardFidChunks;
288 std::vector<SectionChunk *> guardIATChunks;
289 std::vector<SectionChunk *> guardLJmpChunks;
290 std::vector<SectionChunk *> guardEHContChunks;
[all …]
H A DChunks.cpp33 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h) in SectionChunk() function in lld::coff::SectionChunk
425 void SectionChunk::sortRelocations() { in sortRelocations()
464 void SectionChunk::addAssociative(SectionChunk *child) { in addAssociative()
469 SectionChunk *prev = this; in addAssociative()
470 SectionChunk *next = assocChildren; in addAssociative()
630 bool SectionChunk::isCOMDAT() const { in isCOMDAT()
682 SectionChunk *SectionChunk::findByName(ArrayRef<SectionChunk *> sections, in findByName()
684 for (SectionChunk *c : sections) in findByName()
690 void SectionChunk::replace(SectionChunk *other) { in replace()
960 for (SectionChunk *c : sections) in finalizeContents()
[all …]
H A DCallGraphSort.cpp54 DenseMap<const SectionChunk *, int> run();
58 std::vector<const SectionChunk *> sections;
69 using SectionPair = std::pair<const SectionChunk *, const SectionChunk *>;
76 DenseMap<const SectionChunk *, int> secToCluster; in CallGraphSort()
78 auto getOrCreateNode = [&](const SectionChunk *isec) -> int { in CallGraphSort()
89 const auto *fromSec = cast<SectionChunk>(c.first.first->repl); in CallGraphSort()
90 const auto *toSec = cast<SectionChunk>(c.first.second->repl); in CallGraphSort()
153 DenseMap<const SectionChunk *, int> CallGraphSort::run() { in run()
196 DenseMap<const SectionChunk *, int> orderMap; in run()
219 const SectionChunk *sc = sections[i]; in run()
[all …]
H A DMarkLive.cpp28 SmallVector<SectionChunk *, 256> worklist; in markLive()
34 if (auto *sc = dyn_cast<SectionChunk>(c)) in markLive()
38 auto enqueue = [&](SectionChunk *c) { in markLive()
59 SectionChunk *sc = worklist.pop_back_val(); in markLive()
68 for (SectionChunk &c : sc->children()) in markLive()
H A DCallGraphSort.h16 class SectionChunk; variable
19 llvm::DenseMap<const SectionChunk *, int>
H A DPDB.cpp116 void analyzeSymbolSubsection(SectionChunk *debugChunk,
133 void writeSymbolRecord(SectionChunk *debugChunk,
171 SectionChunk *debugChunk = nullptr;
222 void addUnrelocatedSubsection(SectionChunk *debugChunk,
225 void addFrameDataSubsection(SectionChunk *debugChunk,
234 void handleDebugS(SectionChunk *debugChunk);
581 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection()
826 void DebugSHandler::advanceRelocIndex(SectionChunk *sc, in advanceRelocIndex()
850 SectionChunk *debugChunk;
944 SectionChunk *debugChunk = subsec.debugChunk; in finish()
[all …]
H A DPDB.h26 class SectionChunk; variable
33 getFileLineCodeView(const SectionChunk *c, uint32_t addr);
H A DWriter.cpp422 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]); in createThunks()
515 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(c); in verifyRanges()
724 SectionChunk *sc1 = dyn_cast_or_null<SectionChunk>(s); in fixGnuImportChunks()
725 SectionChunk *sc2 = dyn_cast_or_null<SectionChunk>(t); in fixGnuImportChunks()
862 auto *sc = dyn_cast<SectionChunk>(c); in createSections()
1486 SectionChunk *sc = b->getChunk(); in writeHeader()
1606 SectionChunk *sc = dyn_cast<SectionChunk>(d->getChunk()); in maybeAddAddressTakenFunction()
1623 SectionChunk *sc = dyn_cast<SectionChunk>(c); in markSymbolsWithRelocations()
1724 for (SectionChunk *c : symIdxChunks) { in getSymbolsFromSections()
1988 auto sa = dyn_cast<SectionChunk>(a); in sortCRTSectionChunks()
[all …]
H A DInputFiles.cpp185 static SectionChunk *const pendingComdat = reinterpret_cast<SectionChunk *>(1);
199 SectionChunk *ObjFile::readSection(uint32_t sectionNumber, in readSection()
244 auto *c = make<SectionChunk>(this, sec); in readSection()
288 SectionChunk *parent = sparseChunks[parentIndex]; in readAssociativeDefinition()
314 SectionChunk *c = readSection(sectionNumber, def, ""); in readAssociativeDefinition()
335 SectionChunk *sc = sparseChunks[sectionNumber]; in recordPrevailingSymbolForMingw()
474 SectionChunk *leaderChunk = leader->getChunk(); in handleComdatSelection()
546 SectionChunk newChunk(this, getSection(sym)); in handleComdatSelection()
692 if (SectionChunk *sec = SectionChunk::findByName(debugChunks, secName)) in getDebugSection()
1027 SectionChunk chunk;
[all …]
H A DSymbolTable.h34 class SectionChunk; variable
99 SectionChunk *c = nullptr, uint32_t sectionOffset = 0);
112 SectionChunk *newSc = nullptr,
H A DConfig.h35 class SectionChunk; variable
234 llvm::MapVector<std::pair<const SectionChunk *, const SectionChunk *>,
H A DSymbolTable.cpp104 static Symbol *getSymbol(SectionChunk *sc, uint32_t addr) { in getSymbol()
130 getFileLineDwarf(const SectionChunk *c, uint32_t addr) { in getFileLineDwarf()
142 getFileLine(const SectionChunk *c, uint32_t addr) { in getFileLine()
168 auto *sc = dyn_cast<SectionChunk>(c); in getSymbolLocations()
365 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(refptr->getChunk()); in handleMinGWAutomaticImport()
616 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
633 static std::string getSourceLocation(InputFile *file, SectionChunk *sc, in getSourceLocation()
652 SectionChunk *newSc, in reportDuplicate()
717 const coff_symbol_generic *sym, SectionChunk *c, in addRegular()
H A DLLDMapFile.cpp36 DenseMap<const SectionChunk *, SmallVector<DefinedRegular *, 4>>;
113 auto *sc = dyn_cast<SectionChunk>(c); in writeLLDMapFile()
H A DMapFile.cpp251 std::vector<std::pair<SectionChunk *, SectionChunk *>> ChunkRanges; in writeMapFile()
253 auto *sc = dyn_cast<SectionChunk>(c); in writeMapFile()
H A DSymbols.h203 SectionChunk *c = nullptr)
214 SectionChunk *getChunk() const { return *data; } in getChunk()
217 SectionChunk **data;
H A DDriver.cpp1066 if (auto *sec = dyn_cast<SectionChunk>(c)) in parseOrderFile()
1113 auto findSection = [&](StringRef name) -> SectionChunk * { in parseCallGraphFile()
1122 return dyn_cast_or_null<SectionChunk>(dr->getChunk()); in parseCallGraphFile()
1136 if (SectionChunk *from = findSection(fields[0])) in parseCallGraphFile()
1137 if (SectionChunk *to = findSection(fields[1])) in parseCallGraphFile()
1165 auto *from = dyn_cast_or_null<SectionChunk>(fromSym->getChunk()); in readCallGraphsFromObjectFiles()
1166 auto *to = dyn_cast_or_null<SectionChunk>(toSym->getChunk()); in readCallGraphsFromObjectFiles()
1176 if (SectionChunk *c = dyn_cast_or_null<SectionChunk>(d->getChunk())) in markAddrsig()
H A DDebugTypes.cpp283 SectionChunk *sec = in getDebugH()
284 SectionChunk::findByName(file->getDebugChunks(), ".debug$H"); in getDebugH()