|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Derived Classes
tools/lld/lib/ReaderWriter/MachO/Atoms.h 141 class MachOSharedLibraryAtom : public SharedLibraryAtom {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 1061 class NormalizedAtom : public lld::SharedLibraryAtom {
Declarations
tools/lld/include/lld/Core/SymbolTable.h 26 class SharedLibraryAtom;
References
include/llvm/Support/Casting.h 58 return To::classof(&Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/lld/include/lld/Core/Atom.h 88 OwningAtomPtr(T *atom) : atom(atom) { }
110 T *const &get() const {
114 T *&get() {
118 T *release() {
119 auto *v = atom;
125 T *atom = nullptr;
tools/lld/include/lld/Core/File.h 114 AtomRange(AtomVector<T> &v) : _v(v) {}
115 AtomRange(const AtomVector<T> &v) : _v(const_cast<AtomVector<T> &>(v)) {}
117 using ConstDerefFn = const T* (*)(const OwningAtomPtr<T>&);
117 using ConstDerefFn = const T* (*)(const OwningAtomPtr<T>&);
118 using DerefFn = T* (*)(OwningAtomPtr<T>&);
118 using DerefFn = T* (*)(OwningAtomPtr<T>&);
120 typedef llvm::mapped_iterator<typename AtomVector<T>::const_iterator,
122 typedef llvm::mapped_iterator<typename AtomVector<T>::iterator,
125 static const T* DerefConst(const OwningAtomPtr<T> &p) {
125 static const T* DerefConst(const OwningAtomPtr<T> &p) {
129 static T* Deref(OwningAtomPtr<T> &p) {
129 static T* Deref(OwningAtomPtr<T> &p) {
147 llvm::iterator_range<typename AtomVector<T>::iterator> owning_ptrs() {
151 llvm::iterator_range<typename AtomVector<T>::iterator> owning_ptrs() const {
163 const OwningAtomPtr<T> &operator[](size_t idx) const {
167 OwningAtomPtr<T> &operator[](size_t idx) {
172 AtomVector<T> &_v;
185 virtual const AtomRange<SharedLibraryAtom> sharedLibrary() const = 0;
226 static AtomVector<SharedLibraryAtom> _noSharedLibraryAtoms;
260 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
tools/lld/include/lld/Core/Resolver.h 39 void doSharedLibraryAtom(OwningAtomPtr<SharedLibraryAtom> atom);
tools/lld/include/lld/Core/SharedLibraryAtom.h 42 static inline bool classof(const SharedLibraryAtom *) { return true; }
tools/lld/include/lld/Core/SharedLibraryFile.h 29 virtual OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const = 0;
42 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
63 AtomVector<SharedLibraryAtom> _sharedLibraryAtoms;
tools/lld/include/lld/Core/Simple.h 56 void addAtom(SharedLibraryAtom &a) {
68 } else if (auto *p = dyn_cast<SharedLibraryAtom>(&atom)) {
92 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
110 AtomVector<SharedLibraryAtom> _shared;
tools/lld/include/lld/Core/SymbolTable.h 43 bool add(const SharedLibraryAtom &);
tools/lld/lib/Core/File.cpp 18 File::AtomVector<SharedLibraryAtom> File::_noSharedLibraryAtoms;
tools/lld/lib/Core/Resolver.cpp 149 void Resolver::doSharedLibraryAtom(OwningAtomPtr<SharedLibraryAtom> atom) {
tools/lld/lib/Core/SymbolTable.cpp 32 bool SymbolTable::add(const SharedLibraryAtom &atom) { return addByName(atom); }
tools/lld/lib/ReaderWriter/FileArchive.cpp 109 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
tools/lld/lib/ReaderWriter/MachO/Atoms.h 141 class MachOSharedLibraryAtom : public SharedLibraryAtom {
tools/lld/lib/ReaderWriter/MachO/ExecutableAtoms.h 131 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
tools/lld/lib/ReaderWriter/MachO/File.h 291 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override {
343 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name,
383 const SharedLibraryAtom *atom;
tools/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h 29 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override {
43 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
tools/lld/lib/ReaderWriter/MachO/GOTPass.cpp 141 if (isa<SharedLibraryAtom>(target))
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 164 int dylibOrdinal(const SharedLibraryAtom *sa);
1120 for (const SharedLibraryAtom *atom : atomFile.sharedLibrary()) {
1132 ordinal = dylibOrdinal(dyn_cast<SharedLibraryAtom>(ai.atom));
1180 if (isa<const SharedLibraryAtom>(target)) {
1265 int Util::dylibOrdinal(const SharedLibraryAtom *sa) {
1448 if (const SharedLibraryAtom *sa = dyn_cast<SharedLibraryAtom>(targ)) {
1448 if (const SharedLibraryAtom *sa = dyn_cast<SharedLibraryAtom>(targ)) {
1462 if (const SharedLibraryAtom *sa = dyn_cast<SharedLibraryAtom>(targ)) {
1462 if (const SharedLibraryAtom *sa = dyn_cast<SharedLibraryAtom>(targ)) {
tools/lld/lib/ReaderWriter/MachO/SectCreateFile.h 79 const AtomRange<SharedLibraryAtom> sharedLibrary() const override {
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp 230 if (isa<SharedLibraryAtom>(target)) {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 104 for (const lld::SharedLibraryAtom *shlibAtom : file.sharedLibrary()) {
210 using Ty = std::vector<OwningAtomPtr<T>>;
450 static void enumeration(IO &io, lld::SharedLibraryAtom::Type &value) {
451 io.enumCase(value, "code", lld::SharedLibraryAtom::Type::Code);
452 io.enumCase(value, "data", lld::SharedLibraryAtom::Type::Data);
453 io.enumCase(value, "unknown", lld::SharedLibraryAtom::Type::Unknown);
518 static size_t size(IO &io, AtomList<T> &seq) { return seq._atoms.size(); }
519 static T *&element(IO &io, AtomList<T> &seq, size_t index) {
519 static T *&element(IO &io, AtomList<T> &seq, size_t index) {
528 static size_t size(IO &io, File::AtomRange<T> &seq) { return seq.size(); }
529 static T *&element(IO &io, File::AtomRange<T> &seq, size_t index) {
529 static T *&element(IO &io, File::AtomRange<T> &seq, size_t index) {
592 const AtomRange<lld::SharedLibraryAtom> sharedLibrary() const override {
655 const AtomRange<lld::SharedLibraryAtom> sharedLibrary() const override {
683 AtomList<lld::SharedLibraryAtom> _sharedLibraryAtoms;
687 AtomRange<lld::SharedLibraryAtom> _sharedLibraryAtomsRef;
1061 class NormalizedAtom : public lld::SharedLibraryAtom {
1067 NormalizedAtom(IO &io, const lld::SharedLibraryAtom *atom)
1074 const lld::SharedLibraryAtom *denormalize(IO &io) {
1115 static void mapping(IO &io, const lld::SharedLibraryAtom *&atom) {
1118 MappingNormalizationHeap<NormalizedAtom, const lld::SharedLibraryAtom *>
1124 io.mapOptional("type", keys->_type, SharedLibraryAtom::Type::Code);
1130 static void mapping(IO &io, lld::SharedLibraryAtom *&atom) {
1131 const lld::SharedLibraryAtom *atomPtr = atom;
1132 MappingTraits<const lld::SharedLibraryAtom *>::mapping(io, atomPtr);
1234 for (const lld::SharedLibraryAtom *a : file->sharedLibrary())