reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/Optional.h
  144     T value;
  160   explicit OptionalStorage(in_place_t, Args &&... args)
  161       : value(std::forward<Args>(args)...), hasVal(true) {}
  172   T &getValue() LLVM_LVALUE_FUNCTION noexcept {
  176   T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
  181   T &&getValue() && noexcept {
  216   optional_detail::OptionalStorage<T> Storage;
  219   using value_type = T;
  224   Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
  227   Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
  230   Optional &operator=(T &&y) {
  241   static inline Optional create(const T *y) {
  245   Optional &operator=(const T &y) {
  253   const T *getPointer() const { return &Storage.getValue(); }
  254   T *getPointer() { return &Storage.getValue(); }
  255   const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  256   T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  260   const T *operator->() const { return getPointer(); }
  261   T *operator->() { return getPointer(); }
  262   const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
  263   T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
  266   constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
  271   T &&getValue() && { return std::move(Storage.getValue()); }
  272   T &&operator*() && { return std::move(Storage.getValue()); }
  275   T getValueOr(U &&value) && {
  316 bool operator==(const Optional<T> &X, NoneType) {
include/llvm/Object/Archive.h
  104     bool operator ==(const Child &other) const {
  110     Expected<Child> getNext() const;
  147     Child C;
  151     ChildFallibleIterator(const Child &C) : C(C) {}
  153     const Child *operator->() const { return &C; }
  154     const Child &operator*() const { return C; }
  194     Expected<Child> getMember() const;
  258   Expected<Optional<Child>> findSym(StringRef name) const;
  276   void setFirstRegular(const Child &C);
include/llvm/Object/ArchiveWriter.h
   33   getOldMember(const object::Archive::Child &OldMember, bool Deterministic);
include/llvm/Support/AlignOf.h
   30   T t;
   39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
   50       llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/Error.h
  437   static const bool isRef = std::is_reference<T>::value;
  439   using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
  444   using storage_type = typename std::conditional<isRef, wrap, T>::type;
  445   using value_type = T;
  448   using reference = typename std::remove_reference<T>::type &;
  449   using const_reference = const typename std::remove_reference<T>::type &;
  450   using pointer = typename std::remove_reference<T>::type *;
  451   using const_pointer = const typename std::remove_reference<T>::type *;
  474   Expected(OtherT &&Val,
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  475            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  483     new (getStorage()) storage_type(std::forward<OtherT>(Val));
  492   Expected(Expected<OtherT> &&Other,
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  493            typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  594   template <class OtherT> void moveConstruct(Expected<OtherT> &&Other) {
include/llvm/Support/ErrorOr.h
   59   static const bool isRef = std::is_reference<T>::value;
   61   using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
   64   using storage_type = typename std::conditional<isRef, wrap, T>::type;
   67   using reference = typename std::remove_reference<T>::type &;
   68   using const_reference = const typename std::remove_reference<T>::type &;
   69   using pointer = typename std::remove_reference<T>::type *;
   70   using const_pointer = const typename std::remove_reference<T>::type *;
   87   ErrorOr(OtherT &&Val,
   88           typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
  100       const ErrorOr<OtherT> &Other,
  101       typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
  101       typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
  120       ErrorOr<OtherT> &&Other,
  121       typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
  121       typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
  177   void copyConstruct(const ErrorOr<OtherT> &Other) {
include/llvm/Support/type_traits.h
   91     T t;
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  122     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  130     static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
  145       std::is_copy_constructible<detail::trivial_helper<T>>::value;
  147       !std::is_copy_constructible<T>::value;
  151       std::is_move_constructible<detail::trivial_helper<T>>::value;
  153       !std::is_move_constructible<T>::value;
  157       is_copy_assignable<detail::trivial_helper<T>>::value;
  159       !is_copy_assignable<T>::value;
  163       is_move_assignable<detail::trivial_helper<T>>::value;
  165       !is_move_assignable<T>::value;
  169       std::is_destructible<detail::trivial_helper<T>>::value;
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  298   for (auto _ : Archive.children(Err2)) {
lib/Object/Archive.cpp
  456 Expected<Archive::Child> Archive::Child::getNext() const {
  482   Child Ret(Parent, NextLoc, &Err);
  538 void Archive::setFirstRegular(const Child &C) {
  576   const Child *C = &*I;
  785   Child C(this, Loc, &Err);
  799 Expected<Archive::Child> Archive::Symbol::getMember() const {
  853   Child C(Parent, Loc, &Err);
  976 Expected<Optional<Archive::Child>> Archive::findSym(StringRef name) const {
lib/Object/ArchiveWriter.cpp
   46 NewArchiveMember::getOldMember(const object::Archive::Child &OldMember,
tools/dsymutil/BinaryHolder.cpp
  169     for (auto Child : Archive->children(Err)) {
tools/lld/COFF/Driver.cpp
  278 void LinkerDriver::enqueueArchiveMember(const Archive::Child &c,
tools/lld/COFF/Driver.h
   75   void enqueueArchiveMember(const Archive::Child &c, const Archive::Symbol &sym,
tools/lld/COFF/InputFiles.cpp
  111   const Archive::Child &c =
  125   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  126     Archive::Child c =
tools/lld/COFF/Symbols.cpp
  138   Archive::Child c =
tools/lld/ELF/Driver.cpp
  165   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  166     Archive::Child c =
tools/lld/ELF/InputFiles.cpp
 1082   Archive::Child c =
tools/lld/ELF/Symbols.cpp
  264   Archive::Child c =
tools/lld/include/lld/Common/ErrorHandler.h
  143 T check2(ErrorOr<T> e, llvm::function_ref<std::string()> prefix) {
  143 T check2(ErrorOr<T> e, llvm::function_ref<std::string()> prefix) {
  150 T check2(Expected<T> e, llvm::function_ref<std::string()> prefix) {
  150 T check2(Expected<T> e, llvm::function_ref<std::string()> prefix) {
tools/lld/lib/ReaderWriter/FileArchive.cpp
   54     Archive::Child c = member->second;
  138   std::error_code instantiateMember(Archive::Child member,
  174       Expected<Archive::Child> memberOrErr = sym.getMember();
  177       Archive::Child member = memberOrErr.get();
  188   typedef std::unordered_map<StringRef, Archive::Child> MemberMap;
tools/lld/wasm/Driver.cpp
  197   for (const ErrorOr<Archive::Child> &cOrErr : file->children(err)) {
  198     Archive::Child c =
tools/lld/wasm/InputFiles.cpp
  484   const Archive::Child &c =
tools/llvm-ar/llvm-ar.cpp
  439 static void doPrint(StringRef Name, const object::Archive::Child &C) {
  461 static void doDisplayTable(StringRef Name, const object::Archive::Child &C) {
  527 static void doExtract(StringRef Name, const object::Archive::Child &C) {
  632                            const object::Archive::Child &M,
  721                                         const object::Archive::Child &Member,
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  472   for (auto Child : Arch.children(Err)) {
tools/llvm-lipo/llvm-lipo.cpp
  178     for (const Archive::Child &Child : A->children(Err)) {
tools/llvm-nm/llvm-nm.cpp
  240 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C,
 1799           Expected<Archive::Child> C = I->getMember();
tools/llvm-objcopy/llvm-objcopy.cpp
  183   for (const Archive::Child &Child : Ar.children(Err)) {
tools/llvm-objdump/MachODump.cpp
 2216 static void printArchiveChild(StringRef Filename, const Archive::Child &C,
 2292   for (const auto &C : A->children(Err, false))
tools/llvm-objdump/llvm-objdump.cpp
  396 std::string getFileNameForError(const object::Archive::Child &C,
 2043 static void printArchiveChild(StringRef Filename, const Archive::Child &C) {
 2129                        const Archive::Child *C = nullptr) {
 2193                        const Archive::Child *C = nullptr) {
tools/llvm-objdump/llvm-objdump.h
  155 std::string getFileNameForError(const object::Archive::Child &C,
tools/llvm-size/llvm-size.cpp
  118 static void error(llvm::Error E, StringRef FileName, const Archive::Child &C,
usr/include/c++/7.4.0/bits/move.h
   72     constexpr _Tp&&
   73     forward(typename std::remove_reference<_Tp>::type& __t) noexcept
   83     constexpr _Tp&&
   84     forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
   98     move(_Tp&& __t) noexcept
usr/include/c++/7.4.0/bits/stl_pair.h
  101 		      is_constructible<_T2, const _U2&>>::value;
  101 		      is_constructible<_T2, const _U2&>>::value;
  108 		      is_convertible<const _U2&, _T2>>::value;
  108 		      is_convertible<const _U2&, _T2>>::value;
  115 		      is_constructible<_T2, _U2&&>>::value;
  115 		      is_constructible<_T2, _U2&&>>::value;
  122 		      is_convertible<_U2&&, _T2>>::value;
  122 		      is_convertible<_U2&&, _T2>>::value;
  129 				  is_convertible<_U2&&, _T2>>;
  129 				  is_convertible<_U2&&, _T2>>;
  134 		      is_constructible<_T2, _U2&&>,
  134 		      is_constructible<_T2, _U2&&>,
  143 				  is_convertible<const _U2&, _T2>>;
  143 				  is_convertible<const _U2&, _T2>>;
  148 		      is_constructible<_T2, const _U2&&>,
  148 		      is_constructible<_T2, const _U2&&>,
  209     : private __pair_base<_T1, _T2>
  212       typedef _T2 second_type;   /// @c second_type is the second bound type
  215       _T2 second;                /// @c second is a copy of the second object
  252       using _PCCP = _PCC<true, _T1, _T2>;
  260       constexpr pair(const _T1& __a, const _T2& __b)
  269       explicit constexpr pair(const _T1& __a, const _T2& __b)
  283 			    _T1, _T2>;
  291         constexpr pair(const pair<_U1, _U2>& __p)
  311        constexpr pair(_U1&& __x, const _T2& __y)
  318        explicit constexpr pair(_U1&& __x, const _T2& __y)
  325        constexpr pair(const _T1& __x, _U2&& __y)
  341 	constexpr pair(_U1&& __x, _U2&& __y)
  360 	constexpr pair(pair<_U1, _U2>&& __p)
  362 	  second(std::forward<_U2>(__p.second)) { }
  380 		       is_copy_assignable<_T2>>::value,
  391 		       is_move_assignable<_T2>>::value,
  524     make_pair(_T1&& __x, _T2&& __y)
usr/include/c++/7.4.0/bits/unordered_map.h
  103       typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  762     typename add_rvalue_reference<_Tp>::type declval() noexcept;
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
  984       typedef decltype(__test<_Tp, _Arg>(0)) type;
  989     : public __and_<is_destructible<_Tp>,
  990                     __is_direct_constructible_impl<_Tp, _Arg>>
 1072 			 __is_direct_constructible_ref_cast<_Tp, _Arg>,
 1073 			 __is_direct_constructible_new_safe<_Tp, _Arg>
 1079     : public __is_direct_constructible_new<_Tp, _Arg>::type
 1119     : public __is_direct_constructible<_Tp, _Arg>
 1130     : public __is_constructible_impl<_Tp, _Args...>::type
 1142     : public is_constructible<_Tp, const _Tp&>
 1142     : public is_constructible<_Tp, const _Tp&>
 1148     : public __is_copy_constructible_impl<_Tp>
 1160     : public is_constructible<_Tp, _Tp&&>
 1160     : public is_constructible<_Tp, _Tp&&>
 1166     : public __is_move_constructible_impl<_Tp>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1286     : public is_assignable<_Tp&, const _Tp&>
 1292     : public __is_copy_assignable_impl<_Tp>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1304     : public is_assignable<_Tp&, _Tp&&>
 1310     : public __is_move_assignable_impl<_Tp>
 1526 	static void __test_aux(_To1);
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1538       typedef decltype(__test<_From, _To>(0)) type;
 1545     : public __is_convertible_helper<_From, _To>::type
 1545     : public __is_convertible_helper<_From, _To>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1629     { typedef _Tp   type; };
 1633     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1664     : public __add_rvalue_reference_helper<_Tp>
 1955     { typedef _Tp     type; };
 2104     { typedef typename remove_cv<_Up>::type __type; };
 2131       typedef _Tp __type;
 2171     { typedef _Iffalse type; };
usr/include/c++/7.4.0/utility
  180     { typedef _Tp2 type; };
  190         __get(std::pair<_Tp1, _Tp2>& __pair) noexcept
  224     constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
  225     get(std::pair<_Tp1, _Tp2>& __in) noexcept
  229     constexpr typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&&
  230     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
  234     constexpr const typename tuple_element<_Int, std::pair<_Tp1, _Tp2>>::type&
  235     get(const std::pair<_Tp1, _Tp2>& __in) noexcept