Home
last modified time | relevance | path

Searched refs:for_each (Results 1 – 25 of 73) sorted by relevance

123

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/
H A Dranges.for_each.pass.cpp33 concept HasForEachIt = requires (Iter iter, Sent sent) { std::ranges::for_each(iter, sent, Callable…
43 concept HasForEachItFunc = requires(int* a, int* b, Func func) { std::ranges::for_each(a, b, func);…
50 concept HasForEachR = requires (Range range) { std::ranges::for_each(range, Callable{}); };
60 concept HasForEachRFunc = requires(UncheckedRange<int*> a, Func func) { std::ranges::for_each(a, fu…
73 std::ranges::for_each(Iter(a), Sent(Iter(a + 4)), func); in test_iterator()
88 std::ranges::for_each(range, func); in test_iterator()
103 std::ranges::for_each(Iter(a), Sent(Iter(a)), [](auto&) { assert(false); }); in test_iterator()
108 std::ranges::for_each(range, [](auto&) { assert(false); }); in test_iterator()
129 std::ranges::for_each(a, a + 3, [](int& i) { i = 0; }, &S::check); in test()
139 std::ranges::for_each(a, [](int& i) { i = 0; }, &S::check); in test()
H A Dtest.pass.cpp27 std::for_each(std::begin(ia), std::end(ia), [](int &a) { a += 2; }); in test_constexpr()
44 for_each_test f = std::for_each(cpp17_input_iterator<int*>(ia), in main()
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.nonmodifying/
H A Dfor_each.pass.cpp52 std::for_each(expected_first, expected_last, Flip<T>(1)); in operator ()()
53 for_each(exec, first, last, Flip<T>(1)); in operator ()()
85 for_each(exec, iter, iter, non_const(f)); in operator ()()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSplitModule.cpp150 llvm::for_each(M.functions(), recordGVSet); in findPartitions()
151 llvm::for_each(M.globals(), recordGVSet); in findPartitions()
152 llvm::for_each(M.aliases(), recordGVSet); in findPartitions()
H A DCanonicalizeFreezeInLoops.cpp160 for_each(PHI.users(), Visit); in run()
161 for_each(Info.StepInst->users(), Visit); in run()
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dfor_each.h22 inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 _Function for_each(_InputIterator __… in for_each() function
H A Dranges_for_each.h70 inline constexpr auto for_each = __for_each::__fn{};
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/
H A DForest.cpp75 llvm::for_each(P->alternatives(), CountVisits); in dumpRecursive()
77 llvm::for_each(P->elements(), CountVisits); in dumpRecursive()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DClustering.cpp66 for_each(Pts, [this, &G](size_t P) { in areAllNeighbours()
229 for_each(PointsOfSchedClass, [this, &CurrentCluster](size_t P) { in clusterizeNaive()
311 std::for_each(it, OldCluster.PointIndices.end(), in stabilize()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp469 llvm::for_each(MergedModule->functions(), externalize); in restoreLinkageForExternals()
470 llvm::for_each(MergedModule->globals(), externalize); in restoreLinkageForExternals()
471 llvm::for_each(MergedModule->aliases(), externalize); in restoreLinkageForExternals()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DCombinationGenerator.h121 llvm::for_each(VariablesChoices, [](ArrayRef<choice_type> VariableChoices) { in CombinationGenerator()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DHIPSPV.cpp157 llvm::for_each(getHIPDeviceLibs(DriverArgs), in addClangTargetOptions()
234 llvm::for_each(BCLibArgs, [&](StringRef BCName) { in getHIPDeviceLibs()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dbenchmark_register.h54 std::for_each(it, dst->end(), [](T& t) { t *= -1; }); in AddNegatedPowers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DConcatNestedNamespacesCheck.cpp55 std::for_each(std::next(Namespaces.begin()), Namespaces.end(), in concatNamespaces()
/llvm-project-15.0.7/bolt/lib/Core/
H A DFunctionLayout.cpp57 std::for_each( in insertBasicBlocks()
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/grammar/
H A DGrammarBNF.cpp67 llvm::for_each(UniqueNonterminals, [&T](llvm::StringRef Name) { in build()
80 llvm::for_each(UniqueAttributeValues, [&T](llvm::StringRef Name) { in build()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DRISCVVEmitter.cpp243 llvm::for_each(SemaRecords, [&](const SemaRecord &SR) { in init()
249 llvm::for_each(Signatures, [this](auto &Sig) { insert(Sig); }); in init()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopLoadElimination.cpp368 std::for_each(MemInstrs.begin() + getInstrIndex(FirstStore) + 1, in findPointersWrittenOnForwardingPath()
370 std::for_each(MemInstrs.begin(), &MemInstrs[getInstrIndex(LastLoad)], in findPointersWrittenOnForwardingPath()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSTLExtrasTest.cpp295 TEST(STLExtrasTest, for_each) { in TEST() argument
299 llvm::for_each(v, [&count](int) { ++count; }); in TEST()
416 llvm::for_each(s, [&count](int) { ++count; }); in TEST()
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/
H A Dranges_robust_against_copying_comparators.pass.cpp121 (void)std::ranges::for_each(first, last, UnaryVoid(&copies)); assert(copies == 1); copies = 0; in all_the_algorithms()
122 (void)std::ranges::for_each(a, UnaryVoid(&copies)); assert(copies == 1); copies = 0; in all_the_algorithms()
H A Dranges_robust_against_copying_projections.pass.cpp107 (void)std::ranges::for_each(first, last, UnaryVoid(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
108 (void)std::ranges::for_each(a, UnaryVoid(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCFGPrinter.cpp314 llvm::for_each(post_order(&F->getEntryBlock()), evaluateBB); in computeDeoptOrUnreachablePaths()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSarif.cpp88 std::for_each(++Iter, End, [&Ret](StringRef Component) { in fileNameToURI()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LoadValueInjectionLoadHardening.cpp476 llvm::for_each(Defs, AnalyzeDef); in getGadgetGraph()
488 llvm::for_each(Defs, AnalyzeDef); in getGadgetGraph()
/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Dranges_robust_against_proxy_iterators.pass.cpp107 test(std::ranges::for_each, in, std::identity{}); in run_tests()

123