Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/lld/COFF/
H A DICF.cpp49 bool assocEquals(const SectionChunk *a, const SectionChunk *b);
51 bool equalsConstant(const SectionChunk *a, const SectionChunk *b);
52 bool equalsVariable(const SectionChunk *a, const SectionChunk *b);
54 bool isEligible(SectionChunk *c);
63 std::vector<SectionChunk *> chunks;
80 bool ICF::isEligible(SectionChunk *c) { in isEligible()
131 bool ICF::assocEquals(const SectionChunk *a, const SectionChunk *b) { in assocEquals()
142 [&](const SectionChunk &ia, const SectionChunk &ib) { in assocEquals()
149 bool ICF::equalsConstant(const SectionChunk *a, const SectionChunk *b) { in equalsConstant()
182 bool ICF::equalsVariable(const SectionChunk *a, const SectionChunk *b) { in equalsVariable()
[all …]
H A DChunks.h188 friend SectionChunk; variable
291 SectionChunk *cur = nullptr;
312 static SectionChunk *findByName(ArrayRef<SectionChunk *> sections,
342 SectionChunk *repl;
364 if (isa<SectionChunk>(this)) in getSize()
371 if (isa<SectionChunk>(this)) in getOutputCharacteristics()
379 if (isa<SectionChunk>(this)) in writeTo()
386 if (isa<SectionChunk>(this)) in getSectionName()
393 if (isa<SectionChunk>(this)) in getBaserels()
400 if (isa<SectionChunk>(this)) in getDebugName()
[all …]
H A DChunks.cpp32 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h) in SectionChunk() function in lld::coff::SectionChunk
423 void SectionChunk::sortRelocations() { in sortRelocations()
462 void SectionChunk::addAssociative(SectionChunk *child) { in addAssociative()
467 SectionChunk *prev = this; in addAssociative()
468 SectionChunk *next = assocChildren; in addAssociative()
628 bool SectionChunk::isCOMDAT() const { in isCOMDAT()
680 SectionChunk *SectionChunk::findByName(ArrayRef<SectionChunk *> sections, in findByName()
682 for (SectionChunk *c : sections) in findByName()
688 void SectionChunk::replace(SectionChunk *other) { in replace()
960 for (SectionChunk *c : sections) in finalizeContents()
[all …]
H A DCallGraphSort.cpp53 DenseMap<const SectionChunk *, int> run();
57 std::vector<const SectionChunk *> sections;
68 using SectionPair = std::pair<const SectionChunk *, const SectionChunk *>;
75 DenseMap<const SectionChunk *, int> secToCluster; in CallGraphSort()
77 auto getOrCreateNode = [&](const SectionChunk *isec) -> int { in CallGraphSort()
88 const auto *fromSec = cast<SectionChunk>(c.first.first->repl); in CallGraphSort()
89 const auto *toSec = cast<SectionChunk>(c.first.second->repl); in CallGraphSort()
152 DenseMap<const SectionChunk *, int> CallGraphSort::run() { in run()
195 DenseMap<const SectionChunk *, int> orderMap; in run()
218 const SectionChunk *sc = sections[i]; in run()
[all …]
H A DInputFiles.h57 class SectionChunk; variable
146 ArrayRef<SectionChunk *> getDebugChunks() { return debugChunks; } in getDebugChunks()
236 SectionChunk *
283 std::vector<SectionChunk *> resourceChunks;
286 std::vector<SectionChunk *> debugChunks;
290 std::vector<SectionChunk *> sxDataChunks;
295 std::vector<SectionChunk *> guardFidChunks;
296 std::vector<SectionChunk *> guardIATChunks;
297 std::vector<SectionChunk *> guardLJmpChunks;
298 std::vector<SectionChunk *> guardEHContChunks;
[all …]
H A DMarkLive.cpp29 SmallVector<SectionChunk *, 256> worklist; in markLive()
35 if (auto *sc = dyn_cast<SectionChunk>(c)) in markLive()
39 auto enqueue = [&](SectionChunk *c) { in markLive()
60 SectionChunk *sc = worklist.pop_back_val(); in markLive()
69 for (SectionChunk &c : sc->children()) in markLive()
H A DCallGraphSort.h16 class SectionChunk; variable
18 llvm::DenseMap<const SectionChunk *, int> computeCallGraphProfileOrder();
H A DPDB.cpp124 void analyzeSymbolSubsection(SectionChunk *debugChunk,
141 void writeSymbolRecord(SectionChunk *debugChunk,
179 SectionChunk *debugChunk = nullptr;
230 void addUnrelocatedSubsection(SectionChunk *debugChunk,
233 void addFrameDataSubsection(SectionChunk *debugChunk,
242 void handleDebugS(SectionChunk *debugChunk);
587 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection()
827 void DebugSHandler::advanceRelocIndex(SectionChunk *sc, in advanceRelocIndex()
851 SectionChunk *debugChunk;
945 SectionChunk *debugChunk = subsec.debugChunk; in finish()
[all …]
H A DPDB.h27 class SectionChunk; variable
36 getFileLineCodeView(const SectionChunk *c, uint32_t addr);
H A DWriter.cpp429 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]); in createThunks()
522 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(c); in verifyRanges()
731 SectionChunk *sc1 = dyn_cast_or_null<SectionChunk>(s); in fixGnuImportChunks()
732 SectionChunk *sc2 = dyn_cast_or_null<SectionChunk>(t); in fixGnuImportChunks()
868 auto *sc = dyn_cast<SectionChunk>(c); in createSections()
1483 SectionChunk *sc = b->getChunk(); in writeHeader()
1603 SectionChunk *sc = dyn_cast<SectionChunk>(d->getChunk()); in maybeAddAddressTakenFunction()
1620 SectionChunk *sc = dyn_cast<SectionChunk>(c); in markSymbolsWithRelocations()
1721 for (SectionChunk *c : symIdxChunks) { in getSymbolsFromSections()
1984 auto sa = dyn_cast<SectionChunk>(a); in sortCRTSectionChunks()
[all …]
H A DInputFiles.cpp214 static SectionChunk *const pendingComdat = reinterpret_cast<SectionChunk *>(1);
228 SectionChunk *ObjFile::readSection(uint32_t sectionNumber, in readSection()
273 auto *c = make<SectionChunk>(this, sec); in readSection()
317 SectionChunk *parent = sparseChunks[parentIndex]; in readAssociativeDefinition()
343 SectionChunk *c = readSection(sectionNumber, def, ""); in readAssociativeDefinition()
364 SectionChunk *sc = sparseChunks[sectionNumber]; in recordPrevailingSymbolForMingw()
503 SectionChunk *leaderChunk = leader->getChunk(); in handleComdatSelection()
575 SectionChunk newChunk(this, getSection(sym)); in handleComdatSelection()
721 if (SectionChunk *sec = SectionChunk::findByName(debugChunks, secName)) in getDebugSection()
1058 SectionChunk chunk;
[all …]
H A DSymbolTable.h33 class SectionChunk; variable
96 SectionChunk *c = nullptr, uint32_t sectionOffset = 0);
109 SectionChunk *newSc = nullptr,
H A DConfig.h33 class SectionChunk; variable
227 llvm::MapVector<std::pair<const SectionChunk *, const SectionChunk *>,
H A DSymbolTable.cpp98 static Symbol *getSymbol(SectionChunk *sc, uint32_t addr) { in getSymbol()
124 getFileLineDwarf(const SectionChunk *c, uint32_t addr) { in getFileLineDwarf()
136 getFileLine(const SectionChunk *c, uint32_t addr) { in getFileLine()
162 auto *sc = dyn_cast<SectionChunk>(c); in getSymbolLocations()
359 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(refptr->getChunk()); in handleMinGWAutomaticImport()
612 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
629 static std::string getSourceLocation(InputFile *file, SectionChunk *sc, in getSourceLocation()
648 SectionChunk *newSc, in reportDuplicate()
713 const coff_symbol_generic *sym, SectionChunk *c, in addRegular()
H A DLLDMapFile.cpp35 DenseMap<const SectionChunk *, SmallVector<DefinedRegular *, 4>>;
112 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.h200 SectionChunk *c = nullptr)
211 SectionChunk *getChunk() const { return *data; } in getChunk()
214 SectionChunk **data;
H A DDriver.cpp966 if (auto *sec = dyn_cast<SectionChunk>(c)) in parseOrderFile()
1013 auto findSection = [&](StringRef name) -> SectionChunk * { in parseCallGraphFile()
1022 return dyn_cast_or_null<SectionChunk>(dr->getChunk()); in parseCallGraphFile()
1036 if (SectionChunk *from = findSection(fields[0])) in parseCallGraphFile()
1037 if (SectionChunk *to = findSection(fields[1])) in parseCallGraphFile()
1065 auto *from = dyn_cast_or_null<SectionChunk>(fromSym->getChunk()); in readCallGraphsFromObjectFiles()
1066 auto *to = dyn_cast_or_null<SectionChunk>(toSym->getChunk()); in readCallGraphsFromObjectFiles()
1076 if (SectionChunk *c = dyn_cast_or_null<SectionChunk>(d->getChunk())) in markAddrsig()
H A DDebugTypes.cpp299 SectionChunk *sec = in getDebugH()
300 SectionChunk::findByName(file->getDebugChunks(), ".debug$H"); in getDebugH()