Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/lld/wasm/
H A DInputChunks.h39 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 DOutputSections.cpp83 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 DMarkLive.cpp49 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 DInputChunks.cpp53 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 DOutputSegment.cpp22 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 DInputFiles.h31 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 DRelocations.h15 class InputChunk; variable
17 void scanRelocations(InputChunk *chunk);
H A DOutputSegment.h25 void addInputSegment(InputChunk *inSeg);
43 std::vector<InputChunk *> inputSegments;
H A DInputFiles.cpp141 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 DSymbols.h35 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 DOutputSections.h111 CustomSection(std::string name, ArrayRef<InputChunk *> inputSections) in CustomSection()
130 std::vector<InputChunk *> inputSections;
H A DSymbols.cpp129 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 DWriter.cpp109 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 DRelocations.cpp83 void scanRelocations(InputChunk *chunk) { in scanRelocations()
H A DSymbolTable.h57 InputChunk *segment, uint64_t address, uint64_t size);
H A DMapFile.cpp39 using SymbolMapTy = DenseMap<const InputChunk *, SmallVector<Symbol *, 4>>;
H A DDriver.cpp1003 for (InputChunk *seg : file->segments) { in splitSections()
1007 for (InputChunk *sec : file->customSections) { in splitSections()
H A DSymbolTable.cpp369 InputFile *file, InputChunk *segment, in addDefinedData()
H A DSyntheticSections.cpp707 for (const InputChunk *isec : inputSegments) in writeBody()