Home
last modified time | relevance | path

Searched refs:count_if (Results 1 – 25 of 111) sorted by relevance

12345

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/
H A Dranges.count_if.pass.cpp77 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 Dcount_if.pass.cpp33 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 Duninitialized_fill_destroy.pass.cpp31 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 Dcount.pass.cpp40 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 Dpartition_copy.pass.cpp36 … 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 DFunctionLayout.cpp70 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 DDDGTest.cpp271 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 Dcount_if.h25 count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { in count_if() function
H A Dranges_count_if.h64 inline constexpr auto count_if = __count_if::__fn{};
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DAllocationActions.h51 return llvm::count_if( in numDeallocActions()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DOperator.cpp175 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 DOutputSections.cpp101 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 DTosaDecomposeConv2D.cpp35 llvm::count_if(inputType.getShape(), ShapedType::isDynamic); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h113 return llvm::count_if(iteratorTypes, [name](Attribute a) { in getNumIterators()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinTypeInterfaces.td170 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 DCodeCompletionStrings.cpp110 llvm::count_if(CCS, [](const CodeCompletionString::Chunk &C) { in getSignature()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousEnumUsageCheck.cpp90 return std::count_if( in countNonPowOfTwoLiteralNum()
/llvm-project-15.0.7/lld/MachO/
H A DLTO.cpp152 count_if(buf, [](const SmallString<0> &b) { return !b.empty(); }); in compile()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dstatistics.cc93 std::count_if(reports.begin(), reports.end(), in ComputeStats()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerCorpus.h196 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 DEvent.cpp128 std::count_if(m_bytes.begin(), m_bytes.end(), llvm::isPrint); in Dump()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp152 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 Dranges_robust_against_copying_comparators.pass.cpp102 (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 Dranges_robust_against_nonbool_predicates.pass.cpp102 test(std::ranges::count_if, in, unary_pred); in test_all()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DViewLikeInterface.cpp28 llvm::count_if(attr.getValue(), [&](Attribute attr) { in verifyListOfOperandsOrIntegers()

12345