| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | unnecessary-copy-initialization.cpp | 22 const ExpensiveToCopyType &reference() const; 49 const TrivialToCopyType &reference() const; 97 const auto AutoAssigned = Obj.reference(); in PositiveMethodCallConstReferenceParam() 311 auto Assigned = Obj.reference(); in positiveNonConstVarInCodeBlock() 314 Assigned.reference(); in positiveNonConstVarInCodeBlock() 336 auto Reassigned = Obj.reference(); in negativeNonConstVarWithNonConstUse() 636 auto Copy = Orig.reference(); in positiveInvokedOnStdFunction() 645 auto Copy = Orig.reference(); in negativeInvokedOnStdFunction() 668 const auto &Ref = Orig.reference(); in negativeCopiedFromGetterOfReferenceToModifiedVar() 687 ReferenceType Ref = Orig.reference(); in negativeAliasTypedefedType() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/ |
| H A D | contiguous_iterator.compile.pass.cpp | 43 reference operator*() const; 61 reference operator[](difference_type n) const; 77 reference operator*() const; 95 reference operator[](difference_type n) const; 112 reference operator*() const; 130 reference operator[](difference_type n) const; 147 reference operator*() const; 165 reference operator[](difference_type n) const; 188 reference operator*() const; 206 reference operator[](difference_type n) const; [all …]
|
| H A D | random_access_iterator.compile.pass.cpp | 36 typedef int& reference; typedef 39 reference operator*() const; 57 reference operator[](difference_type n) const; 71 reference operator*() const; 87 reference operator[](difference_type n) const; 100 reference operator[](difference_type n) const; 113 reference operator[](difference_type n) const; 126 reference operator[](difference_type n) const; 139 reference operator[](difference_type n) const; 152 reference operator[](difference_type n) const; [all …]
|
| /llvm-project-15.0.7/third-party/benchmark/bindings/python/google_benchmark/ |
| H A D | benchmark.cc | 84 py::return_value_policy::reference, py::arg("start"), in PYBIND11_MODULE() 88 py::return_value_policy::reference) in PYBIND11_MODULE() 91 py::return_value_policy::reference) in PYBIND11_MODULE() 96 py::return_value_policy::reference) in PYBIND11_MODULE() 99 py::return_value_policy::reference) in PYBIND11_MODULE() 101 py::return_value_policy::reference) in PYBIND11_MODULE() 107 py::return_value_policy::reference) in PYBIND11_MODULE() 109 py::return_value_policy::reference) in PYBIND11_MODULE() 111 py::return_value_policy::reference) in PYBIND11_MODULE() 115 py::return_value_policy::reference, in PYBIND11_MODULE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/iterator.primitives/iterator.traits/ |
| H A D | empty.fail.cpp | 26 typedef A& reference; typedef 35 typedef A& reference; typedef 44 typedef A& reference; typedef 62 typedef A& reference; typedef 73 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main() 82 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main() 91 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main() 100 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main() 109 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main() 118 …typedef T::reference RT; // expected-error-re {{no type named 'reference' in 'std:{{.*}}:i… in main()
|
| H A D | cxx20_iterator_traits.compile.pass.cpp | 173 struct reference {}; struct 180 static_assert(std::same_as<AllMembersTraits::reference, AllMembers::reference>); 188 struct reference {}; struct 196 static_assert(std::same_as<NoPointerMemberTraits::reference, NoPointerMember::reference>); 204 struct reference {}; struct 213 static_assert(std::same_as<IterConceptTraits::reference, IterConcept::reference>); 223 reference operator*() const; 235 static_assert(std::same_as<LegacyInputTraits::reference, LegacyInput::reference>); 245 reference operator*() const; 463 reference operator*() const; [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/ |
| H A D | indexing.pass.cpp | 26 ASSERT_SAME_TYPE(C::reference, decltype(c[0])); in tests() 27 C::reference r1 = c[0]; in tests() 32 C::reference r2 = c[2]; in tests() 45 ASSERT_SAME_TYPE(C::reference, decltype(c[0])); in tests() 47 C::reference r = c[0]; in tests() 56 ASSERT_SAME_TYPE(C::reference, decltype(c[0])); in tests() 58 C::reference r = c[0]; in tests()
|
| H A D | front_back.pass.cpp | 26 C::reference r1 = c.front(); in tests() 31 C::reference r2 = c.back(); in tests() 40 ASSERT_SAME_TYPE(decltype(c.back()), C::reference); in tests() 42 ASSERT_SAME_TYPE(decltype(c.front()), C::reference); in tests() 53 ASSERT_SAME_TYPE(decltype( c.back()), C::reference); in tests() 55 ASSERT_SAME_TYPE(decltype( c.front()), C::reference); in tests()
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/ |
| H A D | types.pass.cpp | 39 using reference = char&; typedef 59 static_assert(std::is_same_v<typename std::reverse_iterator<FooIter>::reference, bool&>); 62 static_assert(std::is_same<typename std::reverse_iterator<FooIter>::reference, char&>::value, ""); 71 typedef Reference reference; typedef 86 static_assert((std::is_same_v<typename R::reference, std::iter_rvalue_reference_t<It>>), ""); in test() 88 static_assert((std::is_same<typename R::reference, typename R::value_type&&>::value), ""); in test() 117 static_assert(std::is_same<It::reference, int>::value, ""); in main() 122 static_assert(std::is_same<It::reference, std::reference_wrapper<int> >::value, ""); in main() 129 static_assert(std::is_same<It::reference, long>::value, ""); in main() 134 static_assert(std::is_same<It::reference, int&&>::value, ""); in main() [all …]
|
| /llvm-project-15.0.7/openmp/docs/openacc/ |
| H A D | OpenMPExtensions.rst | 68 construct. As usual, the standard OpenMP reference count for the 93 reference count for host/device data mappings. 95 count, called the *hold reference count*. 98 decrements of the hold reference count are guaranteed to be 102 dynamic reference count has no effect if it is already zero. 105 hold reference count is greater than zero. 111 mappings. Which reference count is used to implement an OpenACC 129 The hold reference count is otherwise modeled after OpenACC's 132 the structured reference count is not zero. 138 OpenMP's dynamic reference count, and OpenACC's structured reference [all …]
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | lto-lazy-reference.ll | 2 …i686-pc-windows-msvc -filetype=obj -o %T/lto-lazy-reference-quadruple.obj %S/Inputs/lto-lazy-refer… 3 ; RUN: llvm-as -o %T/lto-lazy-reference-dummy.bc %S/Inputs/lto-lazy-reference-dummy.ll 5 ; RUN: llvm-ar cru %t.lib %T/lto-lazy-reference-quadruple.obj %T/lto-lazy-reference-dummy.bc 19 ; lazy definition in the lib file from lto-lazy-reference-quadruple.obj. This 21 ; reference, because that can bring in new references to bitcode files after 22 ; LTO, such as lto-lazy-reference-dummy.bc in this case.
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Native/ |
| H A D | pdb-native-pointers.test | 48 ; CHECK-NEXT: reference: 0 60 ; CHECK-NEXT: reference: 0 72 ; CHECK-NEXT: reference: 1 84 ; CHECK-NEXT: reference: 0 96 ; CHECK-NEXT: reference: 0 108 ; CHECK-NEXT: reference: 0 120 ; CHECK-NEXT: reference: 0 132 ; CHECK-NEXT: reference: 0 144 ; CHECK-NEXT: reference: 0 156 ; CHECK-NEXT: reference: 0 [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/iterators.common/ |
| H A D | types.h | 28 typedef typename std::iterator_traits<It>::reference reference; typedef 35 constexpr reference operator*() const {return *it_;} 52 typedef typename std::iterator_traits<It>::reference reference; typedef 76 typedef typename std::iterator_traits<It>::reference reference; typedef 109 typedef typename std::iterator_traits<It>::reference reference; typedef 132 typedef typename std::iterator_traits<It>::reference reference; typedef 139 constexpr reference operator*() const {return *it_;} 194 typedef typename std::iterator_traits<It>::reference reference; typedef 204 constexpr reference operator*() const {return *it_;} 244 typedef typename std::iterator_traits<It>::reference reference; typedef [all …]
|
| /llvm-project-15.0.7/llvm/test/MC/MachO/ |
| H A D | symbol-flags.s | 3 .reference sym_ref_A 4 .reference sym_ref_def_A 7 .reference sym_ref_def_C 8 .reference sym_ref_def_D 11 .reference sym_ref_def_E 55 .reference sym_ref_A
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | move-forwarding-reference.rst | 1 .. title:: clang-tidy - bugprone-move-forwarding-reference 3 bugprone-move-forwarding-reference 6 Warns if ``std::move`` is called on a forwarding reference, for example: 20 (A forwarding reference is an rvalue reference of a type that is a deduced 33 ``T&&`` will always end up being an rvalue reference, no matter what type is 49 that take an rvalue reference argument of a type that is a deduced function 53 deduced to be an lvalue reference. In the example, ``T`` is deduced to be 55 ``std::string& &&``; by the reference collapsing rules, this collapses to 58 This means that the ``foo(s)`` call passes ``s`` as an lvalue reference, and
|
| /llvm-project-15.0.7/llvm/test/Integer/ |
| H A D | constpointer_bt.ll | 13 @t3 = global i40 * @t1 ;; Forward reference 15 @t4 = global i40 ** @t3 ;; reference to reference 19 @0 = global float * @2 ;; Forward numeric reference 20 @1 = global float * @2 ;; Duplicate forward numeric reference 22 @3 = global float * @2 ;; Numeric reference
|
| /llvm-project-15.0.7/llvm/test/Feature/ |
| H A D | constpointer.ll | 13 @t3 = global i32* @t1 ;; Forward reference 15 @t4 = global i32** @t3 ;; reference to reference 19 @0 = global float * @2 ;; Forward numeric reference 20 @1 = global float * @2 ;; Duplicate forward numeric reference 22 @3 = global float * @2 ;; Numeric reference
|
| /llvm-project-15.0.7/libcxx/test/libcxx/iterators/predef.iterators/__unconstrained_reverse_iterator/ |
| H A D | types.compile.pass.cpp | 40 static_assert((std::is_same<typename R::reference, typename T::reference>::value), ""); in test() 65 using reference = int&; typedef 92 using reference = char&; typedef 97 …static_assert(std::is_same_v<typename std::__unconstrained_reverse_iterator<BarIter>::reference, b… 99 …static_assert(std::is_same<typename std::__unconstrained_reverse_iterator<BarIter>::reference, cha…
|
| /llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.utility.helpers/ |
| H A D | has_arrow.compile.pass.cpp | 22 typedef int& reference; typedef 24 reference operator*() const; 41 typedef int& reference; typedef 60 typedef int& reference; typedef 62 reference operator*() const;
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | ignored-reference-qualifiers-disabled.cpp | 13 … qual-warning{{'volatile' qualifier on reference type 'IntRef' (aka 'int &') has no effect}} 18 using reference = value_type&; typedef in container 19 reference get(); 20 …const reference get() const; // qual-warning{{'const' qualifier on reference type 'container::refe…
|
| /llvm-project-15.0.7/llvm/test/CodeGen/WebAssembly/ |
| H A D | reference-types.ll | 1 ; RUN: llc < %s -mattr=+reference-types | FileCheck %s 5 ; CHECK-LABEL: reference-types 6 define void @reference-types() { 13 ; CHECK-NEXT: .ascii "reference-types"
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | protocols-lazy.m | 11 // Definition triggered by protocol reference. 17 // Forward definition triggered by protocol reference. 26 // Definition triggered by class reference. 33 // Definition following forward reference. 38 // reference, which has to be 48 // Protocol reference following definition.
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/ |
| H A D | unnecessary-copy-initialization.rst | 8 const reference. 11 reference. This is the case when the variable is const qualified or when it is 13 it is used as const reference or value argument in constructors or function 22 // The warning will suggest making this a const reference. 30 // The warning will suggest making this a const reference. 34 // The warning will suggest making this a const reference. 46 every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default 54 return the const reference the variable is copied from. When an expensive to
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | simple_ilist.h | 92 using reference = typename OptionsT::reference; variable 138 reference front() { return *begin(); } in front() 140 reference back() { return *rbegin(); } in back() 144 void push_front(reference Node) { insert(begin(), Node); } in push_front() 147 void push_back(reference Node) { insert(end(), Node); } in push_back() 159 iterator insert(iterator I, reference Node) { in insert() 183 void remove(reference N) { list_base_type::remove(*this->getNodePtr(&N)); } in remove() 187 void removeAndDispose(reference N, Disposer dispose) { in removeAndDispose() 279 RI = std::find_if(RI, RE, [&](reference RV) { return !comp(RV, *LI); }); in merge()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Async/ |
| H A D | Passes.td | 58 let summary = "Automatic reference counting for Async runtime operations"; 65 the correct placing of the reference counting operations. 75 let summary = "Optimize automatic reference counting operations for the" 83 let summary = "Policy based reference counting for Async runtime operations"; 89 This pass doesn't rely on reference counted values liveness analysis, and 90 instead uses simple policy to create reference counting operations. If the 94 The default reference counting policy assumptions: 98 Under these assumptions reference counting only needs to drop reference: 106 automatic reference counting.
|