| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ |
| H A D | ranges.count_if.pass.cpp | 77 std::ranges::count_if(range, [](int x) { return x == 4; }); in test_iterators() 92 auto ret = std::ranges::count_if(range, [](int) { return true; }); in test_iterators() 107 auto ret = std::ranges::count_if(range, [](int i) { return i == 2; }); in test_iterators() 122 auto ret = std::ranges::count_if(range, [](int){ return false; }); in test_iterators() 137 auto ret = std::ranges::count_if(range, [](int i) { return i == 3; }); in test_iterators() 152 auto ret = std::ranges::count_if(range, [](int) { return true; }); in test_iterators() 209 auto ret = std::ranges::count_if(a, a + 4, in test() 220 auto ret = std::ranges::count_if(a, in test() 292 auto ret = std::ranges::count_if(a, [](int& i) { return i == 8; }); in test() 305 auto ret = std::ranges::count_if(a, a + 4, MutablePredicate{}); in test() [all …]
|
| H A D | count_if.pass.cpp | 33 return (std::count_if(std::begin(ia), std::end(ia), eq(2)) == 3) in test_constexpr() 34 && (std::count_if(std::begin(ib), std::end(ib), eq(9)) == 0) in test_constexpr() 43 assert(std::count_if(cpp17_input_iterator<const int*>(ia), in main() 46 assert(std::count_if(cpp17_input_iterator<const int*>(ia), in main() 49 assert(std::count_if(cpp17_input_iterator<const int*>(ia), in main()
|
| /llvm-project-15.0.7/pstl/test/std/utilities/memory/specialized.algorithms/ |
| H A D | uninitialized_fill_destroy.pass.cpp | 31 size_t count = count_if(first, last, [&in](T& x) -> bool { return x == in; }); in operator ()() 40 size_t count = count_if(first, last, [&in](T& x) -> bool { return x == in; }); in operator ()() 54 size_t count = count_if(first, last, [&in](T& x) -> bool { return x == in; }); in operator ()() 60 size_t count = count_if(first, last, [&in](T& x) -> bool { return x == in; }); in operator ()()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.nonmodifying/ |
| H A D | count.pass.cpp | 40 auto expected = std::count_if(first, last, pred); in operator ()() 41 auto result = std::count_if(exec, first, last, pred); in operator ()() 89 count_if(exec, iter, iter, non_const(is_even)); in operator ()()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
| H A D | partition_copy.pass.cpp | 36 … EXPECT_TRUE(std::distance(true_first, actual_ret.first) == std::count_if(first, last, unary_op), in operator ()() 38 …EXPECT_TRUE(std::distance(false_first, actual_ret.second) == std::count_if(first, last, std::not_f… in operator ()()
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | FunctionLayout.cpp | 70 unsigned ErasedBlocks = count_if(F, IsErased); in eraseBasicBlocks() 150 unsigned NonEmptyFragCount = llvm::count_if( in isSplit()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | DDGTest.cpp | 271 unsigned NumMemoryEdges = llvm::count_if( in TEST() 281 llvm::count_if(EL, [](DDGEdge *Edge) { return Edge->isDefUse(); }); in TEST()
|
| /llvm-project-15.0.7/libcxx/include/__algorithm/ |
| H A D | count_if.h | 25 count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { in count_if() function
|
| H A D | ranges_count_if.h | 64 inline constexpr auto count_if = __count_if::__fn{};
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | AllocationActions.h | 51 return llvm::count_if( in numDeallocActions()
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Operator.cpp | 175 return llvm::count_if(results, [](const NamedTypeConstraint &c) { in getNumVariableLengthResults() 181 return llvm::count_if(operands, [](const NamedTypeConstraint &c) { in getNumVariableLengthOperands() 246 return llvm::count_if(regions, in getNumVariadicRegions() 268 return llvm::count_if(successors, in getNumVariadicSuccessors()
|
| /llvm-project-15.0.7/lld/wasm/ |
| H A D | OutputSections.cpp | 101 unsigned segmentCount = std::count_if( in finalizeContents() 105 unsigned activeCount = std::count_if( in finalizeContents()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaDecomposeConv2D.cpp | 35 llvm::count_if(inputType.getShape(), ShapedType::isDynamic); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/ |
| H A D | StructuredOpsUtils.h | 113 return llvm::count_if(iteratorTypes, [name](Attribute a) { in getNumIterators()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinTypeInterfaces.td | 170 return llvm::count_if($_type.getShape(), ::mlir::ShapedType::isDynamic); 185 return llvm::count_if($_type.getShape().take_front(index),
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | CodeCompletionStrings.cpp | 110 llvm::count_if(CCS, [](const CodeCompletionString::Chunk &C) { in getSignature()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 90 return std::count_if( in countNonPowOfTwoLiteralNum()
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | LTO.cpp | 152 count_if(buf, [](const SmallString<0> &b) { return !b.empty(); }); in compile()
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | statistics.cc | 93 std::count_if(reports.begin(), reports.end(), in ComputeStats()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerCorpus.h | 196 return std::count_if(Inputs.begin(), Inputs.end(), [](const InputInfo *II) { in NumInputsThatTouchFocusFunction() 202 return std::count_if(Inputs.begin(), Inputs.end(), [](const InputInfo *II) { in NumInputsWithDataFlowTrace()
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | Event.cpp | 128 std::count_if(m_bytes.begin(), m_bytes.end(), llvm::isPrint); in Dump()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 152 unsigned TotalArrowPieces = llvm::count_if( in getPathSizeWithoutArrows() 777 llvm::count_if(path, [](const PathDiagnosticPieceRef &p) { in RewriteFile() 781 llvm::count_if(path, [](const PathDiagnosticPieceRef &p) { in RewriteFile()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | ranges_robust_against_copying_comparators.pass.cpp | 102 (void)std::ranges::count_if(first, last, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms() 103 (void)std::ranges::count_if(a, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/ |
| H A D | ranges_robust_against_nonbool_predicates.pass.cpp | 102 test(std::ranges::count_if, in, unary_pred); in test_all()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | ViewLikeInterface.cpp | 28 llvm::count_if(attr.getValue(), [&](Attribute attr) { in verifyListOfOperandsOrIntegers()
|