| /openbsd-src/gnu/llvm/lld/wasm/ |
| H A D | InputChunks.h | 39 class InputChunk { 111 InputChunk(ObjFile *f, Kind k, StringRef name, uint32_t alignment = 0, 130 class InputSegment : public InputChunk { 133 : InputChunk(f, InputChunk::DataSegment, seg.Data.Name, in InputSegment() 141 static bool classof(const InputChunk *c) { return c->kind() == DataSegment; } in classof() 169 class MergeInputChunk : public InputChunk { 172 : InputChunk(f, Merge, seg.Data.Name, seg.Data.Alignment, in MergeInputChunk() 180 : InputChunk(f, Merge, s.Name, 0, llvm::wasm::WASM_SEG_FLAG_STRINGS) { in MergeInputChunk() 186 static bool classof(const InputChunk *s) { return s->kind() == Merge; } in classof() 223 class SyntheticMergedChunk : 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() 157 for (InputChunk *inputSeg : segment->inputSegments) { in finalizeContents() 187 for (const InputChunk *chunk : segment->inputSegments) in writeTo() 195 for (const InputChunk *inputSeg : seg->inputSegments) in getNumRelocations() 202 for (const InputChunk *c : seg->inputSegments) in writeRelocations() 216 std::vector<InputChunk *> newSections; in finalizeInputSections() 218 for (InputChunk *s : inputSections) { in finalizeInputSections() 250 for (InputChunk *section : inputSections) { in finalizeContents() [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 | 31 class InputChunk; variable 123 const InputChunk *chunk) const; 139 std::vector<InputChunk *> segments; 144 std::vector<InputChunk *> customSections; 145 llvm::DenseMap<uint32_t, InputChunk *> customSectionsByIndex; 159 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 | 141 const InputChunk *chunk) const { in calcNewValue() 233 assert(llvm::is_sorted(chunks, [](InputChunk *c1, InputChunk *c2) { in setRelocs() 242 for (InputChunk *c : chunks) { in setRelocs() 457 InputChunk *customSec; in parse() 480 InputChunk *seg; in parse() 542 bool ObjFile::isExcludedByComdat(const InputChunk *chunk) const { in isExcludedByComdat() 588 InputChunk *seg = segments[sym.Info.DataRef.Segment]; in createDefined() 610 InputChunk *section = customSectionsByIndex[sym.Info.ElementIndex]; in createDefined()
|
| H A D | Symbols.h | 35 class InputChunk; variable 99 InputChunk *getChunk() const; 275 SectionSymbol(uint32_t flags, const InputChunk *s, InputFile *f = nullptr) 282 const InputChunk *section; 299 DefinedData(StringRef name, uint32_t flags, InputFile *f, InputChunk *segment, in DefinedData() 319 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 | 129 InputChunk *Symbol::getChunk() const { in getChunk() 141 if (InputChunk *c = getChunk()) in isDiscarded() 153 if (InputChunk *c = getChunk()) in isLive() 169 if (InputChunk *c = getChunk()) { in markLive()
|
| H A D | Writer.cpp | 109 llvm::StringMap<std::vector<InputChunk *>> customSectionMapping; 130 for (InputChunk *section : file->customSections) { in calculateCustomSections() 514 auto isTLS = [](InputChunk *segment) { in populateTargetFeatures() 840 for (InputChunk *chunk : file->functions) in scanRelocations() 842 for (InputChunk *chunk : file->segments) in scanRelocations() 891 static StringRef getOutputDataSegmentName(const InputChunk &seg) { in getOutputDataSegmentName() 922 for (InputChunk *segment : file->segments) { in createOutputSegments() 978 for (InputChunk *inSeg : s->inputSegments) { in combineOutputSegments() 1335 for (const InputChunk *inSeg : seg->inputSegments) in createApplyDataRelocationsFunction()
|
| H A D | Relocations.cpp | 83 void scanRelocations(InputChunk *chunk) { in scanRelocations()
|
| H A D | SymbolTable.h | 57 InputChunk *segment, uint64_t address, uint64_t size);
|
| H A D | MapFile.cpp | 39 using SymbolMapTy = DenseMap<const InputChunk *, SmallVector<Symbol *, 4>>;
|
| H A D | Driver.cpp | 1003 for (InputChunk *seg : file->segments) { in splitSections() 1007 for (InputChunk *sec : file->customSections) { in splitSections()
|
| H A D | SymbolTable.cpp | 369 InputFile *file, InputChunk *segment, in addDefinedData()
|
| H A D | SyntheticSections.cpp | 707 for (const InputChunk *isec : inputSegments) in writeBody()
|