Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/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;
80 bool ICF::isEligible(SectionChunk *c) { in isEligible()
134 bool ICF::assocEquals(const SectionChunk *a, const SectionChunk *b) { in assocEquals()
145 [&](const SectionChunk &ia, const SectionChunk &ib) { in assocEquals()
152 bool ICF::equalsConstant(const SectionChunk *a, const SectionChunk *b) { in equalsConstant()
185 bool ICF::equalsVariable(const SectionChunk *a, const SectionChunk *b) { in equalsVariable()
[all …]
H A DChunks.h203 SectionChunk *target;
219 friend SectionChunk; variable
345 static SectionChunk *findByName(ArrayRef<SectionChunk *> sections,
375 SectionChunk *repl;
397 if (isa<SectionChunk>(this)) in getSize()
403 if (isa<SectionChunk>(this)) in getOutputCharacteristics()
409 if (isa<SectionChunk>(this)) in writeTo()
416 if (isa<SectionChunk>(this)) in getSectionName()
422 if (isa<SectionChunk>(this)) in getBaserels()
429 if (isa<SectionChunk>(this)) in getDebugName()
[all …]
H A DInputFiles.h58 class SectionChunk; variable
138 ArrayRef<SectionChunk *> getDebugChunks() { return debugChunks; } in getDebugChunks()
231 SectionChunk *
278 std::vector<SectionChunk *> resourceChunks;
281 std::vector<SectionChunk *> debugChunks;
285 std::vector<SectionChunk *> sxDataChunks;
290 std::vector<SectionChunk *> guardFidChunks;
291 std::vector<SectionChunk *> guardIATChunks;
292 std::vector<SectionChunk *> guardLJmpChunks;
293 std::vector<SectionChunk *> guardEHContChunks;
[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.cpp34 SectionChunk::SectionChunk(ObjFile *f, const coff_section *h) in SectionChunk() function in lld::coff::SectionChunk
461 void SectionChunk::sortRelocations() { in sortRelocations()
500 void SectionChunk::addAssociative(SectionChunk *child) { in addAssociative()
505 SectionChunk *prev = this; in addAssociative()
506 SectionChunk *next = assocChildren; in addAssociative()
684 bool SectionChunk::isCOMDAT() const { in isCOMDAT()
736 SectionChunk *SectionChunk::findByName(ArrayRef<SectionChunk *> sections, in findByName()
738 for (SectionChunk *c : sections) in findByName()
744 void SectionChunk::replace(SectionChunk *other) { in replace()
1035 for (SectionChunk *c : sections) in finalizeContents()
[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.h15 class SectionChunk; variable
18 llvm::DenseMap<const SectionChunk *, int>
H A DPDB.cpp117 void analyzeSymbolSubsection(SectionChunk *debugChunk,
134 void writeSymbolRecord(SectionChunk *debugChunk,
177 SectionChunk *debugChunk = nullptr;
225 void addUnrelocatedSubsection(SectionChunk *debugChunk,
228 void addFrameDataSubsection(SectionChunk *debugChunk,
235 void handleDebugS(SectionChunk *debugChunk);
582 SectionChunk *debugChunk, uint32_t &moduleSymOffset, in analyzeSymbolSubsection()
829 void DebugSHandler::advanceRelocIndex(SectionChunk *sc, in advanceRelocIndex()
853 SectionChunk *debugChunk;
950 SectionChunk *debugChunk = subsec.debugChunk; in finish()
[all …]
H A DPDB.h24 class SectionChunk; variable
31 getFileLineCodeView(const SectionChunk *c, uint32_t addr);
H A DSymbolTable.h32 class SectionChunk; variable
97 SectionChunk *c = nullptr, uint32_t sectionOffset = 0,
111 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()
695 if (SectionChunk *sec = SectionChunk::findByName(debugChunks, secName)) in getDebugSection()
[all …]
H A DWriter.cpp466 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]); in createThunks()
598 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(c); in verifyRanges()
862 SectionChunk *sc1 = dyn_cast_or_null<SectionChunk>(s); in fixGnuImportChunks()
863 SectionChunk *sc2 = dyn_cast_or_null<SectionChunk>(t); in fixGnuImportChunks()
1002 auto *sc = dyn_cast<SectionChunk>(c); in createSections()
1730 SectionChunk *sc = b->getChunk(); in writeHeader()
1852 SectionChunk *sc = dyn_cast<SectionChunk>(d->getChunk()); in maybeAddAddressTakenFunction()
1869 SectionChunk *sc = dyn_cast<SectionChunk>(c); in markSymbolsWithRelocations()
1975 for (SectionChunk *c : symIdxChunks) { in getSymbolsFromSections()
2292 auto sa = dyn_cast<SectionChunk>(a); in sortCRTSectionChunks()
[all …]
H A DSymbolTable.cpp122 static Symbol *getSymbol(SectionChunk *sc, uint32_t addr) { in getSymbol()
148 getFileLineDwarf(const SectionChunk *c, uint32_t addr) { in getFileLineDwarf()
160 getFileLine(const SectionChunk *c, uint32_t addr) { in getFileLine()
186 auto *sc = dyn_cast<SectionChunk>(c); in getSymbolLocations()
382 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(refptr->getChunk()); in handleMinGWAutomaticImport()
629 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc, in getSourceLocationObj()
646 static std::string getSourceLocation(InputFile *file, SectionChunk *sc, in getSourceLocation()
665 SectionChunk *newSc, in reportDuplicate()
724 const coff_symbol_generic *sym, SectionChunk *c, in addRegular()
H A DConfig.h34 class SectionChunk; variable
267 llvm::MapVector<std::pair<const SectionChunk *, const SectionChunk *>,
H A DLLDMapFile.cpp37 DenseMap<const SectionChunk *, SmallVector<DefinedRegular *, 4>>;
116 auto *sc = dyn_cast<SectionChunk>(c); in writeLLDMapFile()
H A DMapFile.cpp255 std::vector<std::pair<SectionChunk *, SectionChunk *>> ChunkRanges; in writeMapFile()
257 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.cpp1089 if (auto *sec = dyn_cast<SectionChunk>(c)) in parseOrderFile()
1135 auto findSection = [&](StringRef name) -> SectionChunk * { in parseCallGraphFile()
1144 return dyn_cast_or_null<SectionChunk>(dr->getChunk()); in parseCallGraphFile()
1158 if (SectionChunk *from = findSection(fields[0])) in parseCallGraphFile()
1159 if (SectionChunk *to = findSection(fields[1])) in parseCallGraphFile()
1187 auto *from = dyn_cast_or_null<SectionChunk>(fromSym->getChunk()); in readCallGraphsFromObjectFiles()
1188 auto *to = dyn_cast_or_null<SectionChunk>(toSym->getChunk()); in readCallGraphsFromObjectFiles()
1198 if (SectionChunk *c = dyn_cast_or_null<SectionChunk>(d->getChunk())) in markAddrsig()
H A DDebugTypes.cpp290 SectionChunk *sec = in getDebugH()
291 SectionChunk::findByName(file->getDebugChunks(), ".debug$H"); in getDebugH()