Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lld/wasm/
H A DInputChunks.h38 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 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()
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 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.h30 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 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.cpp139 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 DSymbols.h32 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 DOutputSections.h111 CustomSection(std::string name, ArrayRef<InputChunk *> inputSections) in CustomSection()
130 std::vector<InputChunk *> inputSections;
H A DSymbols.cpp126 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 DWriter.cpp108 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 DRelocations.cpp83 void scanRelocations(InputChunk *chunk) { in scanRelocations()
H A DMapFile.cpp40 using SymbolMapTy = DenseMap<const InputChunk *, SmallVector<Symbol *, 4>>;
H A DSymbolTable.h57 InputChunk *segment, uint64_t address, uint64_t size);
H A DDriver.cpp817 for (InputChunk *seg : file->segments) { in splitSections()
821 for (InputChunk *sec : file->customSections) { in splitSections()
H A DSymbolTable.cpp361 InputFile *file, InputChunk *segment, in addDefinedData()
H A DSyntheticSections.cpp706 for (const InputChunk *isec : inputSegments) in writeBody()