| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | AccelTable.h | 228 struct Atom { struct 332 static constexpr Atom Atoms[] = { 336 static const SmallVector<Atom, 4> Atoms; 357 static constexpr Atom Atoms[] = { 359 Atom(dwarf::DW_ATOM_die_tag, dwarf::DW_FORM_data2), 363 static const SmallVector<Atom, 4> Atoms; 381 static constexpr Atom Atoms[] = { 385 static const SmallVector<Atom, 4> Atoms; 412 static constexpr Atom Atoms[] = { 415 Atom(5, dwarf::DW_FORM_data1), Atom(6, dwarf::DW_FORM_data4)}; [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/include/lld/Core/ |
| H A D | SymbolTable.h | 23 class Atom; variable 50 const Atom *findByName(StringRef sym); 56 const Atom *replacement(const Atom *); 59 bool isCoalescedAway(const Atom *); 62 typedef llvm::DenseMap<const Atom *, const Atom *> AtomToAtom; 74 typedef llvm::DenseMap<StringRef, const Atom *, 86 bool addByName(const Atom &);
|
| H A D | Resolver.h | 28 class Atom; variable 72 void markLive(const Atom *atom); 77 void addAtoms(llvm::MutableArrayRef<OwningAtomPtr<Atom>> atoms); 82 std::vector<OwningAtomPtr<Atom>> _atoms; 83 std::set<const Atom *> _deadStripRoots; 84 llvm::DenseSet<const Atom *> _liveAtoms; 85 llvm::DenseSet<const Atom *> _deadAtoms; 87 std::unordered_multimap<const Atom *, const Atom *> _reverseRef;
|
| H A D | Atom.h | 30 class Atom { 63 static bool classof(const Atom *a) { return true; } in classof() 67 explicit Atom(Definition def) : _definition(def) {} in Atom() function 73 virtual ~Atom() = default; 96 void runDestructor(Atom *atom) { in runDestructor() 97 atom->~Atom(); in runDestructor()
|
| H A D | AbsoluteAtom.h | 19 class AbsoluteAtom : public Atom { 31 static bool classof(const Atom *a) { in classof() 38 AbsoluteAtom() : Atom(definitionAbsolute) {} in AbsoluteAtom()
|
| H A D | UndefinedAtom.h | 19 class UndefinedAtom : public Atom { 54 static bool classof(const Atom *a) { in classof() 61 UndefinedAtom() : Atom(definitionUndefined) {} in UndefinedAtom()
|
| H A D | SharedLibraryAtom.h | 19 class SharedLibraryAtom : public Atom { 39 static bool classof(const Atom *a) { in classof() 46 SharedLibraryAtom() : Atom(definitionSharedLibrary) {} in SharedLibraryAtom()
|
| H A D | Reference.h | 17 class Atom; variable 86 virtual const Atom *target() const = 0; 90 virtual void setTarget(const Atom *) = 0;
|
| H A D | Simple.h | 64 void addAtom(const Atom &atom) { in addAtom() 119 Reference::KindValue value, uint64_t off, const Atom *t, in SimpleReference() 129 const Atom *target() const override { in target() 136 void setTarget(const Atom *newAtom) override { _target = newAtom; } in setTarget() 139 const Atom *_target; 204 const Atom *target, Reference::Addend a) override { in addReference()
|
| H A D | DefinedAtom.h | 85 class DefinedAtom : public Atom { 330 const Atom *target, Reference::Addend a) { in addReference() 334 static bool classof(const Atom *a) { in classof() 360 DefinedAtom() : Atom(definitionRegular) { } in DefinedAtom()
|
| /freebsd-12.1/contrib/llvm/tools/lld/lib/ReaderWriter/MachO/ |
| H A D | CompactUnwindPass.cpp | 36 const Atom *rangeStart; 37 const Atom *personalityFunction; 38 const Atom *lsdaLocation; 39 const Atom *ehFrame; 288 std::map<const Atom *, const Atom *> dwarfFrames; in perform() 289 std::vector<const Atom *> personalities; in perform() 435 std::map<const Atom *, const Atom *> &dwarfFrames) { in collectDwarfFrameEntries() argument 457 const std::map<const Atom *, const Atom *> &dwarfFrames) { in createUnwindInfoEntries() 488 const std::map<const Atom *, const Atom *> &dwarfFrames) { in pruneUnusedEHFrames() 506 std::set<const Atom *> usedDwarfFrames; in pruneUnusedEHFrames() [all …]
|
| H A D | ArchHandler.h | 105 virtual const Atom *fdeTargetFunction(const DefinedAtom *fde); 125 const lld::Atom **, Reference::Addend *)> 131 const lld::Atom **)> FindAtomBySymbolIndex; 145 const lld::Atom **target, 161 const lld::Atom **target, 166 typedef std::function<uint32_t (const Atom &atom)> FindSymbolIndexForAtom; 170 typedef std::function<uint32_t (const Atom &atom)> FindSectionIndexForAtom; 174 typedef std::function<uint64_t (const Atom &atom)> FindAddressForAtom;
|
| H A D | StubsPass.cpp | 229 const Atom *target = ref->target(); in perform() 284 std::vector<const Atom *> targetsNeedingStubs; in perform() 288 [](const Atom * left, const Atom * right) { in perform() 294 for (const Atom *target : targetsNeedingStubs) { in perform() 340 const lld::Atom* target) { in addReference() 348 const lld::Atom *target, uint64_t addend) { in addReferenceAddend() 356 const lld::Atom* target) { in addOptReference() 364 typedef llvm::DenseMap<const Atom*,
|
| H A D | GOTPass.cpp | 109 const Atom *target = ref->target(); in perform() 140 bool shouldReplaceTargetWithGOTAtom(const Atom *target, bool canBypassGOT) { in shouldReplaceTargetWithGOTAtom() 157 const DefinedAtom *makeGOTEntry(const Atom *target) { in makeGOTEntry() 175 llvm::DenseMap<const Atom*, const GOTEntryAtom*> _targetToGOT;
|
| H A D | MachONormalizedFileFromAtoms.cpp | 174 uint32_t sectionIndexForAtom(const Atom *atom); 203 std::vector<const Atom *> _machHeaderAliasAtoms; 767 for (const Atom *atom : _machHeaderAliasAtoms) { in buildAtomToAddressMap() 988 case Atom::scopeTranslationUnit: in getSymbolTableRegion() 992 case Atom::scopeLinkageUnit: in getSymbolTableRegion() 1010 case Atom::scopeGlobal: in getSymbolTableRegion() 1159 if (const Atom *ta = ref->target()) { in targetOfStub() 1178 const Atom *target = ref->target(); in addIndirectSymbols() 1207 const Atom *target = targetOfStub(info.atom); in addIndirectSymbols() 1437 const Atom* targ = ref->target(); in addRebaseAndBindingInfo() [all …]
|
| H A D | TLVPass.cpp | 89 const Atom *target = ref->target(); in perform() 113 const DefinedAtom *makeTLVPEntry(const Atom *target) { in makeTLVPEntry() 132 llvm::DenseMap<const Atom*, const TLVPEntryAtom*> _targetToTLVP;
|
| H A D | File.h | 40 void addDefinedAtom(StringRef name, Atom::Scope scope, in addDefinedAtom() 62 void addDefinedAtomInCustomSection(StringRef name, Atom::Scope scope, in addDefinedAtomInCustomSection() 87 void addZeroFillDefinedAtom(StringRef name, Atom::Scope scope, in addZeroFillDefinedAtom() 127 void addTentativeDefAtom(StringRef name, Atom::Scope scope, uint64_t size, in addTentativeDefAtom() 168 const lld::Atom *findUndefAtom(StringRef name) { in findUndefAtom() 267 typedef llvm::StringMap<const lld::Atom *> NameToAtom;
|
| H A D | ArchHandler_x86.cpp | 96 const lld::Atom **target, 107 const lld::Atom **target, 162 static bool useExternalRelocationTo(const Atom &target); 259 const lld::Atom **target, in getReferenceInfo() 358 const lld::Atom **target, in getPairReferenceInfo() 365 const lld::Atom *fromTarget; in getPairReferenceInfo() 422 const Atom *target = ref->target(); in generateAtomContent() 531 bool ArchHandler_x86::useExternalRelocationTo(const Atom &target) { in useExternalRelocationTo()
|
| H A D | MachONormalizedFileToAtoms.cpp | 214 Atom::Scope atomScope(uint8_t scope) { in atomScope() 217 return Atom::scopeGlobal; in atomScope() 220 return Atom::scopeLinkageUnit; in atomScope() 222 return Atom::scopeTranslationUnit; in atomScope() 305 Atom::Scope lScope = atomScope(lhs->scope); in processSymboledSection() 306 Atom::Scope rScope = atomScope(rhs->scope); in processSymboledSection() 332 0, Atom::scopeTranslationUnit, in processSymboledSection() 587 const lld::Atom *target = file.findUndefAtom(sym->name); in convertRelocs() 617 const lld::Atom *target = nullptr; in convertRelocs() 725 const Atom *currentAtom = nullptr; in parseStabs() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/lib/Core/ |
| H A D | Resolver.cpp | 118 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doUndefinedAtom() 147 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doDefinedAtom() 162 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doSharedLibraryAtom() 174 if (atom.get()->scope() != Atom::scopeTranslationUnit) in doAbsoluteAtom() 299 for (const OwningAtomPtr<Atom> &atom : _atoms) { in updateReferences() 320 void Resolver::markLive(const Atom *atom) { in markLive() 331 const Atom *target = p.second; in markLive() 356 for (const OwningAtomPtr<Atom> &atom : _atoms) { in deadStripOptimize() 367 for (const OwningAtomPtr<Atom> &atom : _atoms) in deadStripOptimize() 380 for (const Atom *dsrAtom : _deadStripRoots) in deadStripOptimize() [all …]
|
| H A D | SymbolTable.cpp | 85 static NameCollisionResolution collide(Atom::Definition first, in collide() 86 Atom::Definition second) { in collide() 115 bool SymbolTable::addByName(const Atom &newAtom) { in addByName() 118 const Atom *existing = findByName(name); in addByName() 251 const Atom* existing = *pos; in addByContent() 257 const Atom *SymbolTable::findByName(StringRef sym) { in findByName() 264 const Atom *SymbolTable::replacement(const Atom *atom) { in replacement() 275 bool SymbolTable::isCoalescedAway(const Atom *atom) { in isCoalescedAway() 282 const Atom *atom = it.second; in undefines()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AccelTable.cpp | 118 using Atom = AppleAccelTableData::Atom; typedef in __anon1b4e4a6d0311::AppleAccelTableWriter 150 const SmallVector<Atom, 4> Atoms; 152 HeaderData(ArrayRef<Atom> AtomList, uint32_t Offset = 0) in HeaderData() 302 for (const Atom &A : Atoms) { in emit() 627 const SmallVector<AppleAccelTableData::Atom, 4> 632 Atom(dwarf::DW_ATOM_die_tag, dwarf::DW_FORM_data2), 634 const SmallVector<AppleAccelTableData::Atom, 4> 637 const SmallVector<AppleAccelTableData::Atom, 4> 641 Atom(5, dwarf::DW_FORM_data1), Atom(6, dwarf::DW_FORM_data4)}; 660 for (auto Atom : Atoms) in print() local [all …]
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFAcceleratorTable.cpp | 29 struct Atom { struct 41 static Atom formatAtom(unsigned Atom) { return {Atom}; } in formatAtom() argument 97 for (auto Atom : getAtomsDesc()) { in validateForms() local 98 DWARFFormValue FormValue(Atom.second); in validateForms() 99 switch (Atom.first) { in validateForms() 121 for (auto Atom : getAtomsDesc()) { in readAtoms() local 124 switch (Atom.first) { in readAtoms() 186 for (auto &Atom : AtomForms) { in dumpName() local 189 Atom.dump(W.getOStream()); in dumpName() 264 for (const auto &Atom : HdrData.Atoms) in Entry() local [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/docs/ |
| H A D | Readers.rst | 50 parsing an input file into an Atom graph. For instance, you may want the 102 The internal model of lld is purely Atom based. But most object files do not 113 Atom is calculated to run to the start of the next symbol or the end of the 122 big Atom), there would always be a reference (from the eh_frame Atom) to 126 The lld Atom model also requires that a reference to an undefined symbol be 135 Reader will need to convert the address to an Atom and offset and the symbol 136 table index into a target Atom. If "malloc" is not defined in the object file, 137 the target Atom of the Reference will be an UndefinedAtom. 150 then allocate space for all the Atom objects at once. 151 * Don't copy symbol names or section content to each Atom, instead use [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lld/lib/ReaderWriter/YAML/ |
| H A D | ReaderWriterYAML.cpp | 87 const lld::Atom *target = ref->target(); in RefNameBuilder() 114 void buildDuplicateNameMap(const lld::Atom &atom) { in buildDuplicateNameMap() 129 const lld::Atom *prevAtom = pos->second; in buildDuplicateNameMap() 157 StringRef refName(const lld::Atom *atom) { in refName() 162 typedef llvm::StringMap<const lld::Atom *> NameToAtom; 186 const lld::Atom *lookup(StringRef name) const { in lookup() 195 typedef llvm::StringMap<const lld::Atom *> NameToAtom; 197 void add(StringRef name, const lld::Atom *atom) { in add() 296 static void enumeration(IO &io, lld::Atom::Scope &value) { in enumeration() 297 io.enumCase(value, "global", lld::Atom::scopeGlobal); in enumeration() [all …]
|