Home
last modified time | relevance | path

Searched refs:Defined (Results 1 – 25 of 212) sorted by relevance

123456789

/openbsd-src/gnu/llvm/lld/ELF/
H A DSymbols.h33 class Defined; variable
242 void resolve(const Defined &other);
251 void checkDuplicate(const Defined &other) const;
254 bool shouldReplace(const Defined &other) const;
344 class Defined : public Symbol {
346 Defined(InputFile *file, StringRef name, uint8_t binding, uint8_t stOther, in Defined() function
355 auto &s = static_cast<Defined &>(sym); in overwrite()
497 static Defined *bss;
500 static Defined *data;
503 static Defined *etext1;
[all …]
H A DSymbols.cpp39 AssertSymbol<Defined>(); in assertSymbols()
63 Defined *ElfSym::bss;
64 Defined *ElfSym::data;
65 Defined *ElfSym::etext1;
66 Defined *ElfSym::etext2;
67 Defined *ElfSym::edata1;
68 Defined *ElfSym::edata2;
69 Defined *ElfSym::end1;
70 Defined *ElfSym::end2;
71 Defined *ElfSym::globalOffsetTable;
[all …]
H A DMapFile.cpp41 SmallVector<std::pair<Defined *, uint64_t>, 0>>;
56 static std::vector<Defined *> getSymbols() { in getSymbols()
57 std::vector<Defined *> v; in getSymbols()
60 if (auto *dr = dyn_cast<Defined>(b)) in getSymbols()
68 static SymbolMapTy getSectionSyms(ArrayRef<Defined *> syms) { in getSectionSyms()
70 for (Defined *dr : syms) in getSectionSyms()
76 SmallPtrSet<Defined *, 4> set; in getSectionSyms()
80 llvm::erase_if(it.second, [&](std::pair<Defined *, uint64_t> a) { in getSectionSyms() argument
93 getSymbolStrings(ArrayRef<Defined *> syms) { in getSymbolStrings()
151 std::vector<Defined *> syms = getSymbols(); in writeMapFile()
[all …]
H A DThunks.h16 class Defined; variable
43 Defined *addSymbol(StringRef name, uint8_t type, uint64_t value,
57 Defined *getThunkTargetSym() const { return syms[0]; } in getThunkTargetSym()
61 llvm::SmallVector<Defined *, 3> syms;
H A DARMErrataFix.h18 class Defined; variable
40 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
H A DAArch64ErrataFix.h18 class Defined; variable
40 llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
H A DInputSection.cpp245 Defined *InputSectionBase::getEnclosingFunction(uint64_t offset) { in getEnclosingFunction()
247 if (Defined *d = dyn_cast<Defined>(b)) in getEnclosingFunction()
264 if (Defined *d = getEnclosingFunction(offset)) in getLocation()
300 if (auto *d = dyn_cast_or_null<Defined>(b)) in getObjMsg()
391 auto *d = dyn_cast<Defined>(&sym); in copyRelocations()
547 const Defined *d = cast<Defined>(sym); in getRISCVPCRelHi20()
895 auto *ds = dyn_cast<Defined>(&sym); in relocateNonAlloc()
987 DenseSet<Defined *> &prologues, in switchMorestackCallsToMorestackNonSplit()
1004 std::vector<Defined *> functions(prologues.begin(), prologues.end()); in switchMorestackCallsToMorestackNonSplit()
1005 llvm::sort(functions, [](const Defined *l, const Defined *r) { in switchMorestackCallsToMorestackNonSplit()
[all …]
H A DAArch64ErrataFix.cpp444 auto *def = dyn_cast<Defined>(b); in init()
459 std::vector<const Defined *> &mapSyms = kv.second; in init()
460 llvm::stable_sort(mapSyms, [](const Defined *a, const Defined *b) { in init()
465 [=](const Defined *a, const Defined *b) { in init()
587 std::vector<const Defined *> &mapSyms = sectionMap[isec]; in patchInputSectionDescription()
H A DARMErrataFix.cpp332 auto *def = dyn_cast<Defined>(s); in init()
346 std::vector<const Defined *> &mapSyms = kv.second; in init()
347 llvm::stable_sort(mapSyms, [](const Defined *a, const Defined *b) { in init()
351 [=](const Defined *a, const Defined *b) { in init()
494 std::vector<const Defined *> &mapSyms = sectionMap[isec]; in patchInputSectionDescription()
/openbsd-src/gnu/llvm/lld/COFF/
H A DMapFile.cpp66 static void sortUniqueSymbols(std::vector<Defined *> &syms, in sortUniqueSymbols()
69 using SortEntry = std::pair<Defined *, size_t>; in sortUniqueSymbols()
99 std::vector<Defined *> &syms, in getSymbols()
100 std::vector<Defined *> &staticSyms) { in getSymbols()
115 } else if (auto *sym = dyn_cast<Defined>(b)) { in getSymbols()
130 if (auto *thunkSym = dyn_cast<Defined>(file->thunkSym)) in getSymbols()
133 if (auto *impSym = dyn_cast_or_null<Defined>(file->impSym)) in getSymbols()
142 static DenseMap<Defined *, std::string>
143 getSymbolStrings(const COFFLinkerContext &ctx, ArrayRef<Defined *> syms) { in getSymbolStrings()
147 Defined *sym = syms[i]; in getSymbolStrings()
[all …]
H A DSymbols.h157 class Defined : public Symbol {
159 Defined(Kind k, StringRef n) : Symbol(k, n) {} in Defined() function
176 class DefinedCOFF : public Defined {
181 : Defined(k, n), file(f), sym(s) {} in DefinedCOFF()
245 class DefinedAbsolute : public Defined {
248 : Defined(DefinedAbsoluteKind, n), va(s.getValue()), ctx(c) { in DefinedAbsolute()
253 : Defined(DefinedAbsoluteKind, n), va(v), ctx(c) {} in DefinedAbsolute()
270 class DefinedSynthetic : public Defined {
273 : Defined(DefinedSyntheticKind, name), c(c) {} in DefinedSynthetic()
342 Defined *getWeakAlias();
[all …]
H A DChunks.h33 class Defined; variable
182 RuntimePseudoReloc(Defined *sym, SectionChunk *target, uint32_t targetOffset, in RuntimePseudoReloc()
186 Defined *sym;
493 ImportThunkChunk(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunk()
498 Defined *impSymbol;
504 explicit ImportThunkChunkX64(COFFLinkerContext &ctx, Defined *s);
511 explicit ImportThunkChunkX86(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunkX86()
520 explicit ImportThunkChunkARM(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunkARM()
531 explicit ImportThunkChunkARM64(COFFLinkerContext &ctx, Defined *s) in ImportThunkChunkARM64()
541 explicit RangeExtensionThunkARM(COFFLinkerContext &ctx, Defined *t) in RangeExtensionThunkARM()
[all …]
H A DDLL.cpp318 ThunkChunkX64(Defined *i, Chunk *tm) : imp(i), tailMerge(tm) {} in ThunkChunkX64()
328 Defined *imp = nullptr;
334 TailMergeChunkX64(Chunk *d, Defined *h) : desc(d), helper(h) {} in TailMergeChunkX64()
345 Defined *helper = nullptr;
385 ThunkChunkX86(COFFLinkerContext &ctx, Defined *i, Chunk *tm) in ThunkChunkX86()
400 Defined *imp = nullptr;
409 TailMergeChunkX86(COFFLinkerContext &ctx, Chunk *d, Defined *h) in TailMergeChunkX86()
425 Defined *helper = nullptr;
433 ThunkChunkARM(COFFLinkerContext &ctx, Defined *i, Chunk *tm) in ThunkChunkARM()
450 Defined *imp = nullptr;
[all …]
H A DMinGW.cpp135 bool AutoExporter::shouldExport(Defined *sym) const { in shouldExport()
184 if (auto *def = dyn_cast_or_null<Defined>(e.sym)) { in writeDefFile()
255 if (Defined *d = dyn_cast<Defined>(w.wrap)) { in wrapSymbols()
/openbsd-src/gnu/llvm/lld/MachO/
H A DSymbols.cpp24 static_assert(sizeof(void *) != 8 || sizeof(Defined) == 88,
28 static_assert(sizeof(SymbolUnion) == sizeof(Defined),
55 Defined::Defined(StringRefZ name, InputFile *file, InputSection *isec, in Defined() function in Defined
84 bool Defined::isTlv() const { in isTlv()
88 uint64_t Defined::getVA() const { in getVA()
108 ObjFile *Defined::getObjectFile() const { in getObjectFile()
112 void Defined::canonicalize() { in canonicalize()
119 std::string Defined::getSourceLocation() { in getSourceLocation()
H A DSymbolTable.h28 class Defined; variable
39 Defined *addDefined(StringRef name, InputFile *, InputSection *,
45 Defined *aliasDefined(Defined *src, StringRef target, InputFile *newFile,
60 Defined *addSynthetic(StringRef name, InputSection *, uint64_t value,
H A DICF.cpp133 assert(isa<Defined>(sa)); in equalsConstant()
134 const auto *da = cast<Defined>(sa); in equalsConstant()
135 const auto *db = cast<Defined>(sb); in equalsConstant()
190 const auto *da = cast<Defined>(ra.referent.get<Symbol *>()); in equalsVariable()
191 const auto *db = cast<Defined>(rb.referent.get<Symbol *>()); in equalsVariable()
215 auto hasUnwind = [](Defined *d) { return d->unwindEntry != nullptr; }; in equalsVariable()
222 const Defined *da = *itA; in equalsVariable()
223 const Defined *db = *itB; in equalsVariable()
228 auto isZero = [](Defined *d) { return d->value == 0; }; in equalsVariable()
291 if (auto *defined = dyn_cast<Defined>(sym)) { in run()
[all …]
H A DOutputSection.h21 class Defined; variable
80 llvm::TinyPtrVector<Defined *> sectionStartSymbols;
81 llvm::TinyPtrVector<Defined *> sectionEndSymbols;
H A DMarkLive.cpp92 const TinyPtrVector<Defined *> &symbols = entry->isec->symbols; in printWhyLive()
112 if (auto *d = dyn_cast<Defined>(s)) { in addSym()
165 for (Defined *d : getInputSection(entry)->symbols) in markTransitively()
181 if (auto *d = dyn_cast<Defined>(s)) in markTransitively()
214 if (auto *defined = dyn_cast<Defined>(sym)) { in markLive()
255 if (auto *defined = dyn_cast_or_null<Defined>(sym)) in markLive()
H A DSymbolTable.cpp64 Defined *SymbolTable::addDefined(StringRef name, InputFile *file, in addDefined()
76 if (auto *defined = dyn_cast<Defined>(s)) { in addDefined()
126 Defined *defined = replaceSymbol<Defined>( in addDefined()
134 Defined *SymbolTable::aliasDefined(Defined *src, StringRef target, in aliasDefined()
171 } else if (isa<Defined>(s)) { in addCommon()
188 if (auto *defined = dyn_cast<Defined>(s)) { in addDylib()
252 Defined *SymbolTable::addSynthetic(StringRef name, InputSection *isec, in addSynthetic()
257 Defined *s = in addSynthetic()
271 static Defined *createBoundarySymbol(const Undefined &sym) { in createBoundarySymbol()
427 if (auto *defined = dyn_cast_or_null<Defined>(s)) in getAlternativeSpelling()
H A DOutputSection.cpp19 for (Defined *d : sectionStartSymbols) in assignAddressesToStartEndSymbols()
21 for (Defined *d : sectionEndSymbols) in assignAddressesToStartEndSymbols()
H A DUnwindInfoSection.h23 void addSymbol(const Defined *);
30 const Defined *>
H A DSymbols.h81 assert(isa<Defined>(this) || isa<DylibSymbol>(this)); in resolveBranchVA()
117 class Defined : public Symbol {
119 Defined(StringRefZ name, InputFile *file, InputSection *isec, uint64_t value,
353 alignas(Defined) char a[sizeof(Defined)];
382 if (const auto *defined = dyn_cast<Defined>(sym)) in needsBinding()
H A DSectionPriorities.cpp238 if (auto *d = dyn_cast_or_null<Defined>(sym)) { in run()
253 macho::PriorityBuilder::getSymbolPriority(const Defined *sym) { in getSymbolPriority()
285 auto *fromSym = dyn_cast_or_null<Defined>(obj->symbols[entry.fromIndex]); in extractCallGraphProfile()
286 auto *toSym = dyn_cast_or_null<Defined>(obj->symbols[entry.toIndex]); in extractCallGraphProfile()
369 auto addSym = [&](const Defined *sym) { in buildInputSectionPriorities()
381 if (auto *d = dyn_cast_or_null<Defined>(sym)) in buildInputSectionPriorities()
/openbsd-src/gnu/llvm/llvm/lib/Object/
H A DRecordStreamer.cpp25 case Defined: in markDefined()
27 S = Defined; in markDefined()
41 case Defined: in markGlobal()
60 case Defined: in markUsed()
176 case RecordStreamer::Defined: in flushSymverDirectives()

123456789