Home
last modified time | relevance | path

Searched refs:comparator (Results 1 – 25 of 51) sorted by relevance

123

/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/
H A Datomic-ops.mlir44 func.func @atomic_compare_exchange(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -…
46 …%0 = spv.AtomicCompareExchange "Workgroup" "Release" "Acquire" %ptr, %value, %comparator: !spv.ptr…
52 func.func @atomic_compare_exchange(%ptr: !spv.ptr<i32, Workgroup>, %value: i64, %comparator: i32) -…
60 func.func @atomic_compare_exchange(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i16) -…
61 …// expected-error @+1 {{comparator operand must have the same type as the op result, but found 'i1…
68 func.func @atomic_compare_exchange(%ptr: !spv.ptr<i64, Workgroup>, %value: i32, %comparator: i32) -…
80 func.func @atomic_compare_exchange_weak(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i…
88 func.func @atomic_compare_exchange_weak(%ptr: !spv.ptr<i32, Workgroup>, %value: i64, %comparator: i…
96 func.func @atomic_compare_exchange_weak(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i…
97 …// expected-error @+1 {{comparator operand must have the same type as the op result, but found 'i1…
[all …]
H A Dtarget-env.mlir37 …ble_version_capabilities(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -> i32 att…
41 …%0 = "test.convert_to_atomic_compare_exchange_weak_op"(%ptr, %value, %comparator): (!spv.ptr<i32, …
46 …weak_unsupported_version(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -> i32 att…
50 …%0 = "test.convert_to_atomic_compare_exchange_weak_op"(%ptr, %value, %comparator): (!spv.ptr<i32, …
81 …issing_capability_kernel(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -> i32 att…
85 …%0 = "test.convert_to_atomic_compare_exchange_weak_op"(%ptr, %value, %comparator): (!spv.ptr<i32, …
90 …apability_atomic_storage(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -> i32 att…
94 …%0 = "test.convert_to_atomic_compare_exchange_weak_op"(%ptr, %value, %comparator): (!spv.ptr<i32, …
H A Davailability.mlir14 func.func @atomic_compare_exchange_weak(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i…
19 …%0 = spv.AtomicCompareExchangeWeak "Workgroup" "Release" "Acquire" %ptr, %value, %comparator: !spv…
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
H A Dmerge.pass.cpp86 struct comparator in main() struct
88 comparator() = default; in main()
97 typedef std::multimap<Counter<int>, int, comparator> second_map_type; in main()
98 typedef std::map<Counter<int>, int, comparator> third_map_type; in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/set/
H A Dmerge.pass.cpp86 struct comparator in main() struct
88 comparator() = default; in main()
97 typedef std::set<Counter<int>, comparator> second_set_type; in main()
98 typedef std::multiset<Counter<int>, comparator> third_set_type; in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/multiset/
H A Dmerge.pass.cpp86 struct comparator in main() struct
88 comparator() = default; in main()
97 typedef std::multiset<Counter<int>, comparator> second_set_type; in main()
98 typedef std::set<Counter<int>, comparator> third_set_type; in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.modifiers/
H A Dmerge.pass.cpp86 struct comparator in main() struct
88 comparator() = default; in main()
97 typedef std::map<Counter<int>, int, comparator> second_map_type; in main()
98 typedef std::multimap<Counter<int>, int, comparator> third_map_type; in main()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.min.max/
H A Dranges.max.pass.cpp106 auto comparator = [&](int x, int y) { in test_2_arguments() local
114 auto ret = std::ranges::max(1, 2, comparator, projection); in test_2_arguments()
142 auto comparator = [&](int a, int b) { in test_initializer_list() local
150 std::same_as<int> decltype(auto) ret = std::ranges::max({1, 2, 3}, comparator, projection); in test_initializer_list()
210 auto comparator = [&](int x, int y) { in test_range() local
218 …std::same_as<int> decltype(auto) ret = std::ranges::max(std::array{1, 2, 3}, comparator, projectio… in test_range()
H A Dranges.min.pass.cpp104 auto comparator = [&](int x, int y) { in test_2_arguments() local
112 auto ret = std::ranges::min(1, 2, comparator, projection); in test_2_arguments()
142 auto comparator = [&](int a, int b) { in test_initializer_list() local
150 std::same_as<int> decltype(auto) ret = std::ranges::min({1, 2, 3}, comparator, projection); in test_initializer_list()
207 auto comparator = [&](int x, int y) { in test_range() local
215 …std::same_as<int> decltype(auto) ret = std::ranges::min(std::array{1, 2, 3}, comparator, projectio… in test_range()
H A Dranges.minmax.pass.cpp148 auto comparator = [&](int a, int b) { in test_initializer_list() local
156 …std::ranges::minmax_result<int>> auto ret = std::ranges::minmax({1, 2, 3}, comparator, projection); in test_initializer_list()
231 auto comparator = [&](int x, int y) { in test_range_types() local
241 …std::same_as<std::ranges::minmax_result<int>> auto ret = std::ranges::minmax(range, comparator, pr… in test_range_types()
H A Dranges.min_element.pass.cpp155 auto comparator = [&](int a, int b) { in test_dangling() local
164 std::ranges::min_element(std::array{1, 2, 3}, comparator, projection); in test_dangling()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dsink_to_unreachable.ll25 %comparator = select i1 %c1, i32 0, i32 %signed
29 call void @use(i32 %comparator)
58 %comparator = select i1 %c1, i32 0, i32 %signed
66 call void @use(i32 %comparator)
93 %comparator = select i1 %c1, i32 0, i32 %signed
101 ret i32 %comparator
/llvm-project-15.0.7/libc/src/stdlib/
H A Dqsort.cpp21 typedef int (*comparator)(const void *, const void *); typedef in __llvm_libc::internal::Array
26 comparator compare;
29 Array(uint8_t *a, size_t s, size_t e, comparator c) in Array()
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/
H A Drotate.pass.cpp106 auto comparator = compare<T>(); in operator ()() local
107 bool check = std::equal(actual_return, actual_e, data_b, comparator); in operator ()()
108 check = check && std::equal(actual_b, actual_return, std::next(data_b, shift), comparator); in operator ()()
H A Drotate_copy.pass.cpp57 struct comparator struct
101 auto comparer = comparator<T, Iterator1, Iterator2>(); in operator ()()
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Datomic-ops.mlir5 …spv.func @test_int_atomics(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) -> i32 "…
7 …%0 = spv.AtomicCompareExchangeWeak "Workgroup" "Release" "Acquire" %ptr, %value, %comparator: !spv…
31 …%12 = spv.AtomicCompareExchange "Workgroup" "Release" "Acquire" %ptr, %value, %comparator: !spv.pt…
/llvm-project-15.0.7/clang/test/Analysis/
H A Dmethod-arg-decay.m63 - (id) objectOfType:(Class)type matchingFunction:(BOOL (void *, void *))comparator usingData:(void …
78 …tive:(id)perspectiveIdentifer matchingFunction:(BOOL (void *, void *))comparator usingData:(void …
87 …ibleKeyModules(pModule, (BOOL)0) objectOfType:type matchingFunction:comparator usingData:data];
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/
H A Dranges.sort.pass.cpp167 constexpr bool comparator(const S& rhs) const { return i < rhs.i; } in test() function
175 auto last = std::ranges::sort(in.begin(), in.end(), &S::comparator, &S::projection); in test()
182 auto last = std::ranges::sort(in, &S::comparator, &S::projection); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/
H A Dranges_make_heap.pass.cpp174 constexpr bool comparator(const A& rhs) const { return i < rhs.i; } in test() function
184 auto last = std::ranges::make_heap(in.begin(), in.end(), &A::comparator, &A::projection); in test()
190 auto last = std::ranges::make_heap(in, &A::comparator, &A::projection); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/
H A Dranges_push_heap.pass.cpp176 constexpr bool comparator(const A& rhs) const { return i < rhs.i; } in test() function
186 auto last = std::ranges::push_heap(in.begin(), in.end(), &A::comparator, &A::projection); in test()
192 auto last = std::ranges::push_heap(in, &A::comparator, &A::projection); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/
H A Dranges_sort_heap.pass.cpp171 constexpr bool comparator(const A& rhs) const { return i < rhs.i; } in test() function
181 auto last = std::ranges::sort_heap(in.begin(), in.end(), &A::comparator, &A::projection); in test()
187 auto last = std::ranges::sort_heap(in, &A::comparator, &A::projection); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/
H A Dranges_pop_heap.pass.cpp173 constexpr bool comparator(const A& rhs) const { return i < rhs.i; } in test() function
183 auto last = std::ranges::pop_heap(in.begin(), in.end(), &A::comparator, &A::projection); in test()
189 auto last = std::ranges::pop_heap(in, &A::comparator, &A::projection); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/stable.sort/
H A Dranges.stable.sort.pass.cpp221 bool comparator(const S& rhs) const { return i < rhs.i; } in test() function
229 auto last = std::ranges::stable_sort(in.begin(), in.end(), &S::comparator, &S::projection); in test()
236 auto last = std::ranges::stable_sort(in, &S::comparator, &S::projection); in test()
/llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/
H A DAtomicCompareExchange.ll28 define dso_local spir_func void @test(i32* %ptr, i32* %value_ptr, i32 %comparator) local_unnamed_ad…
31 %1 = cmpxchg i32* %ptr, i32 %comparator, i32 %0 seq_cst acquire
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.nth.element/
H A Dranges_nth_element.pass.cpp238 constexpr bool comparator(const S& rhs) const { return i < rhs.i; } in test() function
248 …auto last = std::ranges::nth_element(in.begin(), in.begin() + 1, in.end(), &S::comparator, &S::pro… in test()
255 auto last = std::ranges::nth_element(in, in.begin() + 1, &S::comparator, &S::projection); in test()

123