| /llvm-project-15.0.7/lld/wasm/ |
| H A D | InputChunks.h | 38 class InputChunk { 129 class InputSegment : public InputChunk { 132 : InputChunk(f, InputChunk::DataSegment, seg.Data.Name, in InputSegment() 168 class MergeInputChunk : public InputChunk { 225 : InputChunk(nullptr, InputChunk::MergedChunk, name, alignment, flags), in SyntheticMergedChunk() 228 static bool classof(const InputChunk *c) { in classof() 248 class InputFunction : public InputChunk { 251 : InputChunk(f, InputChunk::Function, func->SymbolName), signature(s), in InputFunction() 263 : InputChunk(nullptr, InputChunk::Function, name), signature(s) {} in InputFunction() 325 class InputSection : public InputChunk { [all …]
|
| H A D | OutputSections.cpp | 83 for (const InputChunk *chunk : functions) in writeTo() 89 for (const InputChunk *func : functions) in getNumRelocations() 95 for (const InputChunk *c : functions) in writeRelocations() 158 for (InputChunk *inputSeg : segment->inputSegments) { in finalizeContents() 203 for (const InputChunk *c : seg->inputSegments) in writeRelocations() 217 std::vector<InputChunk *> newSections; in finalizeInputSections() 219 for (InputChunk *s : inputSections) { in finalizeInputSections() 251 for (InputChunk *section : inputSections) { in finalizeContents() 274 for (const InputChunk *section : inputSections) in writeTo() 280 for (const InputChunk *inputSect : inputSections) in getNumRelocations() [all …]
|
| H A D | MarkLive.cpp | 49 SmallVector<InputChunk *, 256> queue; 71 if (InputChunk *chunk = sym->getChunk()) in enqueue() 116 InputChunk *c = queue.pop_back_val(); in mark() 156 for (InputChunk *c : obj->functions) in markLive() 159 for (InputChunk *c : obj->segments) in markLive() 172 for (InputChunk *c : symtab->syntheticFunctions) in markLive()
|
| H A D | InputChunks.cpp | 53 std::string toString(const wasm::InputChunk *c) { in toString() 58 StringRef InputChunk::getComdatName() const { in getComdatName() 65 uint32_t InputChunk::getSize() const { in getSize() 78 uint32_t InputChunk::getInputSize() const { in getInputSize() 85 void InputChunk::writeTo(uint8_t *buf) const { in writeTo() 103 void InputChunk::relocate(uint8_t *buf) const { in relocate() 172 void InputChunk::writeRelocations(raw_ostream &os) const { in writeRelocations() 190 uint64_t InputChunk::getTombstone() const { in getTombstone() 340 uint64_t InputChunk::getChunkOffset(uint64_t offset) const { in getChunkOffset() 352 uint64_t InputChunk::getOffset(uint64_t offset) const { in getOffset() [all …]
|
| H A D | OutputSegment.cpp | 22 void OutputSegment::addInputSegment(InputChunk *inSeg) { in addInputSegment() 43 std::vector<InputChunk *> newSegments; in finalizeInputSegments() 44 for (InputChunk *s : inputSegments) { in finalizeInputSegments() 76 for (InputChunk *seg : inputSegments) { in finalizeInputSegments()
|
| H A D | InputFiles.h | 30 class InputChunk; variable 121 const InputChunk *chunk) const; 137 std::vector<InputChunk *> segments; 142 std::vector<InputChunk *> customSections; 143 llvm::DenseMap<uint32_t, InputChunk *> customSectionsByIndex; 157 bool isExcludedByComdat(const InputChunk *chunk) const;
|
| H A D | Relocations.h | 15 class InputChunk; variable 17 void scanRelocations(InputChunk *chunk);
|
| H A D | OutputSegment.h | 25 void addInputSegment(InputChunk *inSeg); 43 std::vector<InputChunk *> inputSegments;
|
| H A D | InputFiles.cpp | 139 const InputChunk *chunk) const { in calcNewValue() 231 assert(llvm::is_sorted(chunks, [](InputChunk *c1, InputChunk *c2) { in setRelocs() 240 for (InputChunk *c : chunks) { in setRelocs() 455 InputChunk *customSec; in parse() 478 InputChunk *seg; in parse() 540 bool ObjFile::isExcludedByComdat(const InputChunk *chunk) const { in isExcludedByComdat() 586 InputChunk *seg = segments[sym.Info.DataRef.Segment]; in createDefined() 608 InputChunk *section = customSectionsByIndex[sym.Info.ElementIndex]; in createDefined()
|
| H A D | Symbols.h | 32 class InputChunk; variable 96 InputChunk *getChunk() const; 268 SectionSymbol(uint32_t flags, const InputChunk *s, InputFile *f = nullptr) 275 const InputChunk *section; 292 DefinedData(StringRef name, uint32_t flags, InputFile *f, InputChunk *segment, in DefinedData() 312 InputChunk *segment = nullptr;
|
| H A D | OutputSections.h | 111 CustomSection(std::string name, ArrayRef<InputChunk *> inputSections) in CustomSection() 130 std::vector<InputChunk *> inputSections;
|
| H A D | Symbols.cpp | 126 InputChunk *Symbol::getChunk() const { in getChunk() 138 if (InputChunk *c = getChunk()) in isDiscarded() 150 if (InputChunk *c = getChunk()) in isLive() 166 if (InputChunk *c = getChunk()) { in markLive()
|
| H A D | Writer.cpp | 108 llvm::StringMap<std::vector<InputChunk *>> customSectionMapping; 129 for (InputChunk *section : file->customSections) { in calculateCustomSections() 490 auto isTLS = [](InputChunk *segment) { in populateTargetFeatures() 815 for (InputChunk *chunk : file->functions) in scanRelocations() 817 for (InputChunk *chunk : file->segments) in scanRelocations() 866 static StringRef getOutputDataSegmentName(const InputChunk &seg) { in getOutputDataSegmentName() 897 for (InputChunk *segment : file->segments) { in createOutputSegments() 953 for (InputChunk *inSeg : s->inputSegments) { in combineOutputSegments() 1310 for (const InputChunk *inSeg : seg->inputSegments) in createApplyDataRelocationsFunction()
|
| H A D | Relocations.cpp | 83 void scanRelocations(InputChunk *chunk) { in scanRelocations()
|
| H A D | MapFile.cpp | 40 using SymbolMapTy = DenseMap<const InputChunk *, SmallVector<Symbol *, 4>>;
|
| H A D | SymbolTable.h | 57 InputChunk *segment, uint64_t address, uint64_t size);
|
| H A D | Driver.cpp | 817 for (InputChunk *seg : file->segments) { in splitSections() 821 for (InputChunk *sec : file->customSections) { in splitSections()
|
| H A D | SymbolTable.cpp | 361 InputFile *file, InputChunk *segment, in addDefinedData()
|
| H A D | SyntheticSections.cpp | 706 for (const InputChunk *isec : inputSegments) in writeBody()
|