Home
last modified time | relevance | path

Searched refs:repeat (Results 1 – 25 of 102) sorted by relevance

12345

/llvm-project/libcxx/test/std/ranges/range.factories/range.repeat.view/
H A Dviews_repeat.pass.cpp48 static_assert(std::is_invocable_v<decltype(std::views::repeat), int>);
49 static_assert(!std::is_invocable_v<decltype(std::views::repeat), void>);
52 static_assert(!std::is_invocable_v<decltype(std::views::repeat), int, Empty>);
53 static_assert(!std::is_invocable_v<decltype(std::views::repeat), int, NonCopyable>);
54 static_assert(!std::is_invocable_v<decltype(std::views::repeat), int, NonDefaultCtor>);
55 static_assert(std::is_invocable_v<decltype(std::views::repeat), int, std::unreachable_sentinel_t>);
58 static_assert(!std::is_invocable_v<decltype(std::views::repeat), NonCopyable>);
61 static_assert(std::is_invocable_v<decltype(std::views::repeat), MoveOnly>);
64 static_assert(std::is_same_v<decltype(std::views::repeat(std::views::repeat(42))),
70 static_assert(std::same_as<decltype(std::views::repeat("foo", std::unreachable_sentinel)), RPV>); …
[all …]
/llvm-project/flang/runtime/
H A Dformat-implementation.h298 int repeat{stack_[height_ - 1].remaining}; in CueUpNextDataEdit()
300 if (repeat > 0) { in CueUpNextDataEdit()
301 return repeat; in CueUpNextDataEdit()
305 Fortran::common::optional<int> repeat; in CueUpNextDataEdit()
319 repeat = GetIntField(context, ch); in CueUpNextDataEdit()
356 } else if (repeat) { in CueUpNextDataEdit()
357 if (*repeat <= 0) { in CueUpNextDataEdit()
358 *repeat = 1; // error recovery in CueUpNextDataEdit()
360 stack_[height_].remaining = *repeat - 1; in CueUpNextDataEdit()
367 // end of the format, including its repeat coun in CueUpNextDataEdit()
238 Fortran::common::optional<int> repeat; CueUpNextDataEdit() local
[all...]
/llvm-project/mlir/utils/tree-sitter-mlir/
H A Dgrammar.js20 toplevel : $ => seq($._toplevel, repeat($._toplevel)),
40 token(seq(optional(/[-+]/), repeat1(/[0-9]/), '.', repeat(/[0-9]/),
42 string_literal : $ => token(seq('"', repeat(/[^\\"\n\f\v\r]+/), '"')),
51 seq($.nested_idx_list, repeat(seq(',', $.nested_idx_list))),
61 repeat(seq(',', $.nested_idx_list)), ']'),
63 repeat(seq(',', $._primitive_idx_literal)))),
81 bare_id : $ => token(seq(/[a-zA-Z_]/, repeat(/[a-zA-Z0-9_$.]/))),
82 _alias_or_dialect_id : $ => token(seq(/[a-zA-Z_]/, repeat(/[a-zA-Z0-9_$]/))),
83 bare_id_list : $ => seq($.bare_id, repeat(seq(',', $.bare_id))),
86 choice(repeat1(/[0-9]/), seq(/[a-zA-Z_$.-]/, repeat(/[
[all...]
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dppc-vaarg-agg.ll9 br i1 undef, label %repeat, label %maxlen_reached
11 repeat: ; preds = %entry
20 sw.bb72: ; preds = %repeat
23 sw.bb309: ; preds = %repeat
26 sw.bb313: ; preds = %repeat
29 sw.bb321: ; preds = %repeat
32 sw.bb323: ; preds = %repeat
36 sw.bb326: ; preds = %repeat
/llvm-project/flang/unittests/Runtime/
H A DFormat.cpp71 if (edit->repeat != 1) { in Report()
72 str = std::to_string(edit->repeat) + '*' + str; in Report()
117 for (const auto &[n, format, expect, repeat] : params) { in TEST()
123 context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)); in TEST()
150 static constexpr int repeat{1}; in TEST() local
157 context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)), in TEST()
163 static constexpr int repeat{1}; in TEST() local
170 context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)), in TEST()
176 static constexpr int repeat{1}; in TEST() local
183 context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)), in TEST()
/llvm-project/llvm/test/Transforms/CodeExtractor/
H A DLoopExtractor.ll26 %repeat.0 = icmp sgt i32 %index.0, 1
27 br i1 %repeat.0, label %loop.0, label %loop.1
33 %repeat.1 = icmp sgt i32 %index.1, 1
34 br i1 %repeat.1, label %loop.1, label %exit
49 ; CHECK-NEXT: %repeat.1 = icmp sgt i32 %index.1, 1
50 ; CHECK-NEXT: br i1 %repeat.1, label %loop.1.loop.1_crit_edge, label %exit.exitStub
63 ; CHECK-NEXT: %repeat.0 = icmp sgt i32 %index.0, 1
64 ; CHECK-NEXT: br i1 %repeat.0, label %loop.0.loop.0_crit_edge, label %loop.0.loop.1_crit_edge.ex…
H A DLoopExtractor_min_wrapper.ll12 ; CHECK-NEXT: %repeat = icmp sgt i32 %index, 1
13 ; CHECK-NEXT: br i1 %repeat, label %loop.loop_crit_edge, label %exit
26 %repeat = icmp sgt i32 %index, 1
27 br i1 %repeat, label %loop, label %exit
/llvm-project/libcxx/test/libcxx/diagnostics/
H A Dranges.nodiscard.verify.cpp34 std::views::drop(std::views::repeat(1)); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}} in test()
36 std::views::repeat(1); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}} in test()
37 std::views::repeat(1, std::unreachable_sentinel); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}} in test()
46 std::views::take(std::views::repeat(3), 3); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}} in test()
47 std::views::take(std::views::repeat(3, std::unreachable_sentinel), 3); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}} in test()
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.take/
H A Dadaptor.pass.cpp181 auto repeat = std::ranges::repeat_view<int, int>(1, 8); in test() local
183 std::same_as<Result> decltype(auto) result = repeat | std::views::take(3); in test()
191 auto repeat = std::ranges::repeat_view<int>(1); in test() local
192 using Result = std::ranges::repeat_view<int, std::ranges::range_difference_t<decltype(repeat)>>; in test()
193 std::same_as<Result> decltype(auto) result = repeat | std::views::take(3); in test()
/llvm-project/clang/test/C/drs/
H A Ddr2xx.c261 #define repeat(x) x && x in dr258() macro
262 #if repeat(defined fred) /* expected-warning 2 {{macro expansion producing 'defined' has undefined behavior}} */ in dr258()
270 #undef repeat in dr258()
/llvm-project/libcxx/include/__ranges/
H A Dtake_view.h311 noexcept(noexcept(views::repeat(*__range.__value_, std::min<_Dist>(ranges::distance(__range), std::forward<_Np>(__n)))))
312 -> decltype( views::repeat(*__range.__value_, std::min<_Dist>(ranges::distance(__range), std::forward<_Np>(__n))))
313 { return views::repeat(*__range.__value_, std::min<_Dist>(ranges::distance(__range), std::forward<_Np>(__n))); }
322 noexcept(noexcept(views::repeat(*__range.__value_, static_cast<_Dist>(__n))))
323 -> decltype( views::repeat(*__range.__value_, static_cast<_Dist>(__n)))
324 { return views::repeat(*__range.__value_, static_cast<_Dist>(__n)); }
/llvm-project/lldb/source/Interpreter/
H A DInterpreterProperties.td43 def RepeatPreviousCommand: Property<"repeat-previous-command", "Boolean">,
46 Desc<"If true, LLDB will repeat the previous command if no command was passed to the interpreter. If false, LLDB won't repeat the previous command but only return a new prompt.">;
/llvm-project/llvm/utils/
H A Dshuffle_fuzz.py137 for _ in itertools.repeat(None, width)
139 for _ in itertools.repeat(None, args.max_shuffle_height - i)
250 s += "".join(["\\00" for _ in itertools.repeat(None, 128 - len(s) + 2)])
/llvm-project/clang/test/SemaCXX/
H A Dblocks.cpp25 int repeat(int value, int (^block)(int), unsigned n) {
36 return repeat(1, ^(int v) { return v * base; }, n); in calculate()
/llvm-project/lld/COFF/
H A DICF.cpp64 std::atomic<bool> repeat = {false}; member in lld::coff::ICF
127 repeat = true; in segregate()
312 repeat = false; in run()
315 } while (repeat); in run()
/llvm-project/llvm/test/MC/AsmParser/
H A Ddirective_fill.s50 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
70 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.drop/
H A Dadaptor.pass.cpp223 auto repeat = std::ranges::repeat_view<int, int>(1, 8); in test() local
225 std::same_as<Result> decltype(auto) result = repeat | std::views::drop(3); in test()
233 auto repeat = std::ranges::repeat_view<int>(1); in test() local
235 std::same_as<Result> decltype(auto) result = repeat | std::views::drop(3); in test()
/llvm-project/mlir/utils/tree-sitter-mlir/dialect/
H A Daffine.js28 repeat(seq(',', $.value_use,
89 repeat(seq(',', $.string_literal)),
H A Dcf.js37 repeat(seq(',', $.cf_case_label, $.successor)), ']',
/llvm-project/lld/ELF/
H A DICF.cpp49 // different equivalence classes. Therefore, we repeat step 2 until a
127 // We repeat the main loop while `Repeat` is true.
128 std::atomic<bool> repeat;
231 repeat = true; in segregate()
527 repeat = false; in run()
531 } while (repeat); in run()
126 std::atomic<bool> repeat; global() member in __anonc635b4960111::ICF
/llvm-project/flang/lib/Parser/
H A Dio-parsers.cpp536 constexpr DigitStringIgnoreSpaces repeat;
542 maybe(repeat), Parser<format::IntrinsicTypeDataEditDesc>{}) ||
544 maybe(repeat), Parser<format::DerivedTypeDataEditDesc>{}) ||
547 construct<format::FormatItem>(maybe(repeat), parenthesized(formatItems)))
561 constexpr auto width{repeat};
563 constexpr auto digits{repeat};
535 constexpr DigitStringIgnoreSpaces repeat; global() variable
/llvm-project/polly/www/
H A Dcontent.css59 background-repeat:no-repeat;
/llvm-project/llvm/lib/Support/
H A Dregcomp.c222 static void repeat(struct parse *, sopno, int, int);
588 repeat(p, pos, count, count2); in p_ere_exp()
759 repeat(p, pos, count, count2); in p_simp_re()
1106 - repeat - generate code for a bounded repetition, recursively if needed
1109 repeat(struct parse *p, in repeat() function
1135 repeat(p, start+1, 1, to); in repeat()
1155 repeat(p, copy, 1, to-1); in repeat()
1163 repeat(p, copy, from-1, to-1); in repeat()
1167 repeat(p, copy, from-1, to); in repeat()
/llvm-project/llvm/unittests/FuzzMutate/
H A DStrategiesTest.cpp94 int repeat = 100) { in mutateAndVerifyModule() argument
99 for (int i = 0; i < repeat; i++) { in mutateAndVerifyModule()
105 static void mutateAndVerifyModule(StringRef Source, int repeat = 100) { in mutateAndVerifyModule() argument
108 mutateAndVerifyModule(Source, Mutator, repeat); in mutateAndVerifyModule()
/llvm-project/libcxx/test/std/ranges/range.factories/range.repeat.view/iterator/
H A Dstar.pass.cpp56 for (const auto& val : std::views::repeat(31, 100)) in test()

12345