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

References

include/llvm/ADT/ArrayRef.h
   43     using iterator = const T *;
   44     using const_iterator = const T *;
   50     const T *Data = nullptr;
   66     /*implicit*/ ArrayRef(const T &OneElt)
   70     /*implicit*/ ArrayRef(const T *data, size_t length)
   74     ArrayRef(const T *begin, const T *end)
   74     ArrayRef(const T *begin, const T *end)
   81     /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec)
   87     /*implicit*/ ArrayRef(const std::vector<T, A> &Vec)
   92     /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
   97     /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
  100     /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
  145     const T *data() const { return Data; }
  151     const T &front() const {
  157     const T &back() const {
  163     template <typename Allocator> ArrayRef<T> copy(Allocator &A) {
  178     ArrayRef<T> slice(size_t N, size_t M) const {
  184     ArrayRef<T> slice(size_t N) const { return slice(N, size() - N); }
  187     ArrayRef<T> drop_front(size_t N = 1) const {
  193     ArrayRef<T> drop_back(size_t N = 1) const {
  200     template <class PredicateT> ArrayRef<T> drop_while(PredicateT Pred) const {
  206     template <class PredicateT> ArrayRef<T> drop_until(PredicateT Pred) const {
  211     ArrayRef<T> take_front(size_t N = 1) const {
  218     ArrayRef<T> take_back(size_t N = 1) const {
  226     template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const {
  232     template <class PredicateT> ArrayRef<T> take_until(PredicateT Pred) const {
  239     const T &operator[](size_t Index) const {
  249     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
  257     typename std::enable_if<std::is_same<U, T>::value, ArrayRef<T>>::type &
  263     std::vector<T> vec() const {
  270     operator std::vector<T>() const {
  456   ArrayRef<T> makeArrayRef(const T *data, size_t length) {
  456   ArrayRef<T> makeArrayRef(const T *data, size_t length) {
  462   ArrayRef<T> makeArrayRef(const T *begin, const T *end) {
  462   ArrayRef<T> makeArrayRef(const T *begin, const T *end) {
  462   ArrayRef<T> makeArrayRef(const T *begin, const T *end) {
include/llvm/ADT/SmallVector.h
   75   AlignedCharArrayUnion<T> FirstEl;
  114   using value_type = T;
  115   using iterator = T *;
  116   using const_iterator = const T *;
  121   using reference = T &;
  122   using const_reference = const T &;
  123   using pointer = T *;
  124   using const_pointer = const T *;
  179 class SmallVectorTemplateBase : public SmallVectorTemplateCommon<T> {
  183   static void destroy_range(T *S, T *E) {
  183   static void destroy_range(T *S, T *E) {
  211   void push_back(const T &Elt) {
  218   void push_back(T &&Elt) {
  240   T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T)));
  240   T *NewElts = static_cast<T*>(llvm::safe_malloc(NewCapacity*sizeof(T)));
  315 class SmallVectorImpl : public SmallVectorTemplateBase<T> {
  316   using SuperClass = SmallVectorTemplateBase<T>;
  357   void resize(size_type N, const T &NV) {
  374   LLVM_NODISCARD T pop_back_val() {
  397   void append(size_type NumInputs, const T &Elt) {
  405   void append(std::initializer_list<T> IL) {
  412   void assign(size_type NumElts, const T &Elt) {
  429   void assign(std::initializer_list<T> IL) {
  467   iterator insert(iterator I, T &&Elt) {
  497   iterator insert(iterator I, const T &Elt) {
  526   iterator insert(iterator I, size_type NumToInsert, const T &Elt) {
  637   void insert(iterator I, std::initializer_list<T> IL) {
  641   template <typename... ArgTypes> reference emplace_back(ArgTypes &&... Args) {
  644     ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
  644     ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
  820   AlignedCharArrayUnion<T> InlineElts[N];
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  837 class SmallVector : public SmallVectorImpl<T>, SmallVectorStorage<T, N> {
  846   explicit SmallVector(size_t Size, const T &Value = T())
  865   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  884   SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
include/llvm/IR/RemarkStreamer.h
   38   remarks::Remark toRemark(const DiagnosticInfoOptimizationBase &Diag);
include/llvm/Remarks/BitstreamRemarkSerializer.h
  112   void emitRemarkBlock(const Remark &Remark, StringTable &StrTab);
  144   void emit(const Remark &Remark) override;
include/llvm/Remarks/Remark.h
   93   Remark(Remark &&) = default;
   94   Remark &operator=(Remark &&) = default;
   94   Remark &operator=(Remark &&) = default;
  100   Remark clone() const { return *this; }
  105   Remark(const Remark &) = default;
  106   Remark& operator=(const Remark &) = default;
  106   Remark& operator=(const Remark &) = default;
  131 inline bool operator==(const Remark &LHS, const Remark &RHS) {
  131 inline bool operator==(const Remark &LHS, const Remark &RHS) {
  138 inline bool operator!=(const Remark &LHS, const Remark &RHS) {
  138 inline bool operator!=(const Remark &LHS, const Remark &RHS) {
include/llvm/Remarks/RemarkParser.h
   52   virtual Expected<std::unique_ptr<Remark>> next() = 0;
include/llvm/Remarks/RemarkSerializer.h
   56   virtual void emit(const Remark &Remark) = 0;
include/llvm/Remarks/RemarkStringTable.h
   58   void internalize(Remark &R);
include/llvm/Remarks/YAMLRemarkSerializer.h
   40   void emit(const Remark &Remark) override;
   82   void emit(const Remark &Remark) override;
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/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/IR/RemarkStreamer.cpp
   82 remarks::Remark
   84   remarks::Remark R; // The result.
  109   remarks::Remark R = toRemark(Diag);
lib/Remarks/BitstreamRemarkParser.cpp
  329 Expected<std::unique_ptr<Remark>> BitstreamRemarkParser::next() {
  484 Expected<std::unique_ptr<Remark>> BitstreamRemarkParser::parseRemark() {
  492 Expected<std::unique_ptr<Remark>>
  494   std::unique_ptr<Remark> Result = std::make_unique<Remark>();
  494   std::unique_ptr<Remark> Result = std::make_unique<Remark>();
  495   Remark &R = *Result;
lib/Remarks/BitstreamRemarkParser.h
   53   Expected<std::unique_ptr<Remark>> next() override;
   63   Expected<std::unique_ptr<Remark>> parseRemark();
   71   Expected<std::unique_ptr<Remark>>
lib/Remarks/BitstreamRemarkSerializer.cpp
  268 void BitstreamRemarkSerializerHelper::emitRemarkBlock(const Remark &Remark,
  348 void BitstreamRemarkSerializer::emit(const Remark &Remark) {
lib/Remarks/RemarkParser.cpp
  147   Expected<std::unique_ptr<Remark>> MaybeRemark = TheParser.next();
lib/Remarks/RemarkStringTable.cpp
   41 void StringTable::internalize(Remark &R) {
lib/Remarks/YAMLRemarkParser.cpp
  190 Expected<std::unique_ptr<Remark>>
  205   std::unique_ptr<Remark> Result = std::make_unique<Remark>();
  205   std::unique_ptr<Remark> Result = std::make_unique<Remark>();
  206   Remark &TheRemark = *Result;
  414 Expected<std::unique_ptr<Remark>> YAMLRemarkParser::next() {
  418   Expected<std::unique_ptr<Remark>> MaybeResult = parseRemark(*YAMLIt);
lib/Remarks/YAMLRemarkParser.h
   68   Expected<std::unique_ptr<Remark>> next() override;
   83   Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
lib/Remarks/YAMLRemarkSerializer.cpp
   39   static void mapping(IO &io, remarks::Remark *&Remark) {
  173 void YAMLRemarkSerializer::emit(const Remark &Remark) {
  186 void YAMLStrTabRemarkSerializer::emit(const Remark &Remark) {
tools/llvm-opt-report/OptReport.cpp
  178     Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
  193     const remarks::Remark &Remark = **MaybeRemark;
unittests/Remarks/BitstreamRemarksParsingTest.cpp
   33   std::unique_ptr<remarks::Remark> FromYAMLRemark = nullptr;
   35   Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
   63   std::unique_ptr<remarks::Remark> FromBSRemark = nullptr;
   65   Expected<std::unique_ptr<remarks::Remark>> BSRemark = BSParser.next();
  165   Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
  170   const remarks::Remark &Remark = **MaybeRemark;
  235   remarks::Remark ToSerializeRemark;
  332   Expected<std::unique_ptr<remarks::Remark>> BSRemark = BSParser.next();
unittests/Remarks/BitstreamRemarksSerializerTest.cpp
   35 static void check(remarks::SerializerMode Mode, const remarks::Remark &R,
   67 static void check(const remarks::Remark &R, StringRef ExpectedR,
   74 static void checkStandalone(const remarks::Remark &R, StringRef ExpectedR,
   81   remarks::Remark R;
  110   remarks::Remark R;
  136   remarks::Remark R;
  166   remarks::Remark R;
  193   remarks::Remark R;
  222   remarks::Remark R;
  256   remarks::Remark R;
  306   remarks::Remark R;
unittests/Remarks/RemarksAPITest.cpp
   16   remarks::Remark R;
   35   remarks::Remark R2 = R.clone();
   40   remarks::Remark R3 = R.clone();
   46   remarks::Remark R;
   62   remarks::Remark R2 = R.clone();
   67   remarks::Remark R;
   86   remarks::Remark R;
   98   remarks::Remark R2 = R.clone();
unittests/Remarks/YAMLRemarksParsingTest.cpp
   23   Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
   39   Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
   56   Expected<std::unique_ptr<remarks::Remark>> Remark = Parser.next();
  407   Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
  412   const remarks::Remark &Remark = **MaybeRemark;
  579   Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
  584   const remarks::Remark &Remark = **MaybeRemark;
  655   Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
unittests/Remarks/YAMLRemarksSerializerTest.cpp
   26                   remarks::SerializerMode Mode, ArrayRef<remarks::Remark> Rs,
   41   for (const remarks::Remark &R : Rs)
   54 static void check(remarks::Format SerializerFormat, const remarks::Remark &R,
   63                             const remarks::Remark &R, StringRef ExpectedR,
   71   remarks::Remark R;
  104   remarks::Remark R;
  134   remarks::Remark R;
  170   remarks::Remark R;
  210   remarks::Remark R;
  244   remarks::Remark R;
  283   SmallVector<remarks::Remark, 2> Rs;
  284   remarks::Remark R;
usr/include/c++/7.4.0/bits/alloc_traits.h
  387       using allocator_type = allocator<_Tp>;
  389       using value_type = _Tp;
  392       using pointer = _Tp*;
  395       using const_pointer = const _Tp*;
usr/include/c++/7.4.0/bits/allocator.h
  108     class allocator: public __allocator_base<_Tp>
  113       typedef _Tp*       pointer;
  114       typedef const _Tp* const_pointer;
  115       typedef _Tp&       reference;
  116       typedef const _Tp& const_reference;
  117       typedef _Tp        value_type;
  137 	allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h
   46     inline _GLIBCXX_CONSTEXPR _Tp*
   47     __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
   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_construct.h
   74     _Construct(_T1* __p, _Args&&... __args)
   74     _Construct(_T1* __p, _Args&&... __args)
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
   75     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
   97     _Destroy(_Tp* __pointer)
usr/include/c++/7.4.0/bits/stl_iterator_base_types.h
  181       typedef _Tp                         value_type;
  183       typedef _Tp*                        pointer;
  184       typedef _Tp&                        reference;
usr/include/c++/7.4.0/bits/stl_vector.h
   77 	rebind<_Tp>::other _Tp_alloc_type;
  216     class vector : protected _Vector_base<_Tp, _Alloc>
  227       typedef _Vector_base<_Tp, _Alloc>			_Base;
  232       typedef _Tp					value_type;
  919       _Tp*
  923       const _Tp*
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  297           __safe_conversion_up<_Up, _Ep>,
  301 	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
  706     operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
  811     { typedef unique_ptr<_Tp> __single_object; };
  823     inline typename _MakeUniq<_Tp>::__single_object
  825     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/ext/alloc_traits.h
  117       { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
usr/include/c++/7.4.0/ext/new_allocator.h
   63       typedef _Tp*       pointer;
   64       typedef const _Tp* const_pointer;
   65       typedef _Tp&       reference;
   66       typedef const _Tp& const_reference;
   67       typedef _Tp        value_type;
usr/include/c++/7.4.0/initializer_list
   50       typedef _E 		value_type;
   51       typedef const _E& 	reference;
   52       typedef const _E& 	const_reference;
   54       typedef const _E* 	iterator;
   55       typedef const _E* 	const_iterator;
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
  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>
 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; };
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };
utils/unittest/googletest/include/gtest/gtest-printers.h
  140   static void PrintValue(const T& value, ::std::ostream* os) {
  205     ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
  206   TypeWithoutFormatter<T,
  207       (internal::IsAProtocolMessage<T>::value ? kProtobuf :
  208        internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
  223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
  276   static ::std::string Format(const ToPrint& value) {
  351     const T1& value, const T2& /* other_operand */) {
  351     const T1& value, const T2& /* other_operand */) {
  352   return FormatForComparison<T1, T2>::Format(value);
  352   return FormatForComparison<T1, T2>::Format(value);
  366 void UniversalPrint(const T& value, ::std::ostream* os);
  373                     const C& container, ::std::ostream* os) {
  439                     const T& value, ::std::ostream* os) {
  455 void PrintTo(const T& value, ::std::ostream* os) {
  478   DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
  699   static void Print(const T& value, ::std::ostream* os) {
  784   static void Print(const T& value, ::std::ostream* os) {
  856   typedef T T1;
  983   internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h
 1377                                    const T1& lhs, const T2& rhs) {
 1377                                    const T1& lhs, const T2& rhs) {
 1389                             const T1& lhs,
 1390                             const T2& rhs) {
 1419                                  const T1& lhs,
 1420                                  const T2& rhs) {
 1487                                    const T1& val1, const T2& val2,
 1487                                    const T1& val1, const T2& val2,
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h
   29   static const T& printable(const T& V) { return V; }
   29   static const T& printable(const T& V) { return V; }
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
   37   return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h
   94 ::std::string PrintToString(const T& value);