Home
last modified time | relevance | path

Searched full:loop (Results 1 – 25 of 15727) sorted by relevance

12345678910>>...630

/external/llvm/test/Analysis/ScalarEvolution/
Dtrip-count9.ll11 ; CHECK: Determining loop execution counts for: @foo
12 ; CHECK: Loop %loop: backedge-taken count is (-1 + %n)
13 ; CHECK: Loop %loop: max backedge-taken count is 6
17 br i1 %s, label %loop, label %exit
18 loop:
19 %i = phi i4 [ 0, %entry ], [ %i.next, %loop ]
22 br i1 %t, label %loop, label %exit
27 ; CHECK: Determining loop execution counts for: @step2
28 ; CHECK: Loop %loop: Unpredictable backedge-taken count.
29 ; CHECK: Loop %loop: Unpredictable max backedge-taken count.
[all …]
Dshift-op.ll5 ; CHECK: Loop %loop: max backedge-taken count is 32
7 br label %loop
9 loop:
10 %iv = phi i32 [ %init, %entry ], [ %iv.shift, %loop ]
13 br i1 %exit.cond, label %leave, label %loop
21 ; CHECK: Loop %loop: max backedge-taken count is 32
23 br label %loop
25 loop:
26 %iv = phi i32 [ %init, %entry ], [ %iv.shift, %loop ]
29 br i1 %exit.cond, label %leave, label %loop
[all …]
Dincreasing-or-decreasing-iv.ll8 br label %loop
10 loop:
11 %loop.iv = phi i32 [ 0, %entry ], [ %loop.iv.inc, %loop ]
12 %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
13 ; CHECK: %iv = phi i32 [ %start, %entry ], [ %iv.next, %loop ]
14 ; CHECK-NEXT: --> {%start,+,%step}<%loop> U: [0,128) S: [0,128)
16 %loop.iv.inc = add i32 %loop.iv, 1
17 %be.cond = icmp ne i32 %loop.iv.inc, 128
18 br i1 %be.cond, label %loop, label %leave
29 br label %loop
[all …]
Dtrip-count10.ll5 ; CHECK: Determining loop execution counts for: @a
6 ; CHECK: Loop %loop: Unpredictable backedge-taken count.
7 ; CHECK: Loop %loop: Unpredictable max backedge-taken count.
9 ; CHECK: Determining loop execution counts for: @b
10 ; CHECK: Loop %loop: backedge-taken count is false
11 ; CHECK: Loop %loop: max backedge-taken count is false
13 ; CHECK: Determining loop execution counts for: @c
14 ; CHECK: Loop %loop: backedge-taken count is false
15 ; CHECK: Loop %loop: max backedge-taken count is false
17 ; CHECK: Determining loop execution counts for: @d
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_base_events.py154 self.loop = base_events.BaseEventLoop()
155 self.loop._selector = mock.Mock()
156 self.loop._selector.select.return_value = ()
157 self.set_event_loop(self.loop)
163 self.loop._make_socket_transport, m, m)
166 self.loop._make_ssl_transport, m, m, m, m)
169 self.loop._make_datagram_transport, m, m)
171 NotImplementedError, self.loop._process_events, [])
173 NotImplementedError, self.loop._write_to_self)
176 self.loop._make_read_pipe_transport, m, m)
[all …]
Dtest_streams.py33 self.loop = asyncio.new_event_loop()
34 self.set_event_loop(self.loop)
38 test_utils.run_briefly(self.loop)
40 # set_event_loop() takes care of closing self.loop in a safe way
45 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))
46 reader, writer = self.loop.run_until_complete(open_connection_fut)
49 data = self.loop.run_until_complete(f)
52 data = self.loop.run_until_complete(f)
70 self.loop.set_exception_handler(lambda loop, ctx: messages.append(ctx))
72 reader, writer = self.loop.run_until_complete(open_connection_fut)
[all …]
Dtest_events.py60 loop = asyncio.new_event_loop()
61 asyncio.set_event_loop(loop)
62 return loop.run_until_complete(doit())
83 def __init__(self, loop=None): argument
87 if loop is not None:
88 self.connected = loop.create_future()
89 self.done = loop.create_future()
126 def __init__(self, loop=None): argument
129 if loop is not None:
130 self.done = loop.create_future()
[all …]
Dtest_tasks.py90 def new_task(self, loop, coro, name='TestTask', context=None): argument
91 return self.__class__.Task(coro, loop=loop, name=name, context=context)
93 def new_future(self, loop): argument
94 return self.__class__.Future(loop=loop)
98 self.loop = self.new_test_loop()
99 self.loop.set_task_factory(self.new_task)
100 self.loop.create_future = lambda: self.new_future(self.loop)
110 t = self.new_task(self.loop, coro())
118 self.loop.run_until_complete(t)
125 t = self.new_task(self.loop, coro())
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dloop_descriptor.h39 // A class to represent and manipulate a loop in structured control flow.
40 class Loop {
42 using ChildrenList = std::vector<Loop*>;
49 explicit Loop(IRContext* context) in Loop() function
59 Loop(IRContext* context, DominatorAnalysis* analysis, BasicBlock* header,
70 // Returns the header (first basic block of the loop). This block contains the
77 // loop.
80 "The loop is not structured"); in UpdateLoopMergeInst()
91 // These functions return nullptr if the loop is not structured (i.e. if it
96 // Sets |latch| as the loop unique block branching back to the header.
[all …]
Dloop_unroller.cpp26 // Implements loop util unrolling functionality for fully and partially
27 // unrolling loops. Given a factor it will duplicate the loop that many times,
28 // appending each one to the end of the old loop and removing backedges, to
29 // create a new unrolled loop.
32 // loop they wish to unroll. LoopUtils::CanPerformUnroll is used to
33 // validate that a given loop can be unrolled. That method (along with the
34 // constructor of loop) checks that the IR is in the expected canonicalised
38 // perform the unrolling. This implements helper methods to copy the loop basic
42 // actually performs the loop duplication. It does this by creating a
43 // LoopUnrollState object and then copying the loop as given by the factor
[all …]
Dloop_peeling.h36 // Utility class to perform the peeling of a given loop.
37 // The loop peeling transformation make a certain amount of a loop iterations to
39 // loop.
42 // - It clones the loop and inserts the cloned loop before the original loop;
43 // - It connects all iterating values of the cloned loop with the
44 // corresponding original loop values so that the second loop starts with
51 // The exit condition of the cloned loop is changed so that the loop
52 // exits when "i < N" becomes false. The original loop is then protected to
55 // then the exit condition of the cloned loop is changed so that the loop
57 // is the upper bound of the loop. The cloned loop is then protected to
[all …]
/external/deqp-deps/SPIRV-Tools/source/opt/
Dloop_descriptor.h39 // A class to represent and manipulate a loop in structured control flow.
40 class Loop {
42 using ChildrenList = std::vector<Loop*>;
49 explicit Loop(IRContext* context) in Loop() function
59 Loop(IRContext* context, DominatorAnalysis* analysis, BasicBlock* header,
70 // Returns the header (first basic block of the loop). This block contains the
77 // loop.
80 "The loop is not structured"); in UpdateLoopMergeInst()
91 // These functions return nullptr if the loop is not structured (i.e. if it
96 // Sets |latch| as the loop unique block branching back to the header.
[all …]
Dloop_unroller.cpp26 // Implements loop util unrolling functionality for fully and partially
27 // unrolling loops. Given a factor it will duplicate the loop that many times,
28 // appending each one to the end of the old loop and removing backedges, to
29 // create a new unrolled loop.
32 // loop they wish to unroll. LoopUtils::CanPerformUnroll is used to
33 // validate that a given loop can be unrolled. That method (along with the
34 // constructor of loop) checks that the IR is in the expected canonicalised
38 // perform the unrolling. This implements helper methods to copy the loop basic
42 // actually performs the loop duplication. It does this by creating a
43 // LoopUnrollState object and then copying the loop as given by the factor
[all …]
Dloop_peeling.h36 // Utility class to perform the peeling of a given loop.
37 // The loop peeling transformation make a certain amount of a loop iterations to
39 // loop.
42 // - It clones the loop and inserts the cloned loop before the original loop;
43 // - It connects all iterating values of the cloned loop with the
44 // corresponding original loop values so that the second loop starts with
51 // The exit condition of the cloned loop is changed so that the loop
52 // exits when "i < N" becomes false. The original loop is then protected to
55 // then the exit condition of the cloned loop is changed so that the loop
57 // is the upper bound of the loop. The cloned loop is then protected to
[all …]
/external/angle/third_party/spirv-tools/src/source/opt/
Dloop_descriptor.h39 // A class to represent and manipulate a loop in structured control flow.
40 class Loop {
42 using ChildrenList = std::vector<Loop*>;
49 explicit Loop(IRContext* context) in Loop() function
59 Loop(IRContext* context, DominatorAnalysis* analysis, BasicBlock* header,
70 // Returns the header (first basic block of the loop). This block contains the
77 // loop.
80 "The loop is not structured"); in UpdateLoopMergeInst()
91 // These functions return nullptr if the loop is not structured (i.e. if it
96 // Sets |latch| as the loop unique block branching back to the header.
[all …]
Dloop_unroller.cpp26 // Implements loop util unrolling functionality for fully and partially
27 // unrolling loops. Given a factor it will duplicate the loop that many times,
28 // appending each one to the end of the old loop and removing backedges, to
29 // create a new unrolled loop.
32 // loop they wish to unroll. LoopUtils::CanPerformUnroll is used to
33 // validate that a given loop can be unrolled. That method (along with the
34 // constructor of loop) checks that the IR is in the expected canonicalised
38 // perform the unrolling. This implements helper methods to copy the loop basic
42 // actually performs the loop duplication. It does this by creating a
43 // LoopUnrollState object and then copying the loop as given by the factor
[all …]
Dloop_peeling.h36 // Utility class to perform the peeling of a given loop.
37 // The loop peeling transformation make a certain amount of a loop iterations to
39 // loop.
42 // - It clones the loop and inserts the cloned loop before the original loop;
43 // - It connects all iterating values of the cloned loop with the
44 // corresponding original loop values so that the second loop starts with
51 // The exit condition of the cloned loop is changed so that the loop
52 // exits when "i < N" becomes false. The original loop is then protected to
55 // then the exit condition of the cloned loop is changed so that the loop
57 // is the upper bound of the loop. The cloned loop is then protected to
[all …]
/external/clang/test/Parser/
Dpragma-loop.cpp8 #pragma clang loop vectorize_width(V) interleave_count(I) in test_nontype_template_param()
13 #pragma clang loop vectorize_width(V + 4) interleave_count(I + 4) in test_nontype_template_param()
21 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_vectorize()
26 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop vectorize_width(V … in test_nontype_template_vectorize()
34 …/* expected-error {{invalid value '-1'; must be positive}} */ #pragma clang loop interleave_count(… in test_nontype_template_interleave()
39 …/* expected-error {{invalid value '0'; must be positive}} */ #pragma clang loop interleave_count(2… in test_nontype_template_interleave()
47 …nvalid argument of type 'char'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_char()
55 …nvalid argument of type 'bool'; expected an integer type}} */ #pragma clang loop vectorize_width(V) in test_nontype_template_bool()
63 …/* expected-error {{use of undeclared identifier 'Vec'}} */ #pragma clang loop vectorize_width(Vec… in test_nontype_template_badarg()
64 …/* expected-error {{use of undeclared identifier 'Int'}} */ #pragma clang loop vectorize_width(V) … in test_nontype_template_badarg()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_opt_loop_unroll.c38 /* Prepare this loop for unrolling by first converting to lcssa and then
39 * converting the phis from the top level of the loop body to regs.
40 * Partially converting out of SSA allows us to unroll the loop without having
44 * The loop may have a jump instruction at the end of the loop which does
49 loop_prepare_for_unroll(nir_loop *loop) in loop_prepare_for_unroll() argument
52 nir_cf_node_get_function(&loop->cf_node)); in loop_prepare_for_unroll()
54 nir_convert_loop_to_lcssa(loop); in loop_prepare_for_unroll()
56 /* Lower phis at the top level of the loop body */ in loop_prepare_for_unroll()
57 foreach_list_typed_safe(nir_cf_node, node, node, &loop->body) { in loop_prepare_for_unroll()
63 /* Lower phis after the loop */ in loop_prepare_for_unroll()
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Analysis/
DLoopInfo.h1 //===- llvm/Analysis/LoopInfo.h - Natural Loop Calculator -------*- C++ -*-===//
10 // and determine the loop depth of various nodes of the CFG. A natural loop
15 // each natural loop identified, this analysis identifies natural loops
16 // contained entirely within the loop and the basic blocks the make up the loop.
20 // * whether there is a preheader for the loop
22 // * whether or not a particular block branches out of the loop
23 // * the successor blocks of the loop
24 // * the loop depth
29 // this analysis will not recognize and that will not be represented by a Loop
30 // instance. In particular, a Loop might be inside such a non-loop SCC, or a
[all …]
/external/llvm/test/Other/
Dloop-pass-ordering.ll2 ; RUN: -passes='no-op-loop' %s 2>&1 \
7 ; loop.0 loop.1
9 ; loop.0.0 loop.0.1 loop.1.0
11 ; CHECK: Running pass: NoOpLoopPass on loop.1.0
12 ; CHECK: Running pass: NoOpLoopPass on loop.1
13 ; CHECK: Running pass: NoOpLoopPass on loop.0.0
14 ; CHECK: Running pass: NoOpLoopPass on loop.0.1
15 ; CHECK: Running pass: NoOpLoopPass on loop.0
18 br label %loop.0
19 loop.0:
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DLoopInfo.h1 //===- llvm/Analysis/LoopInfo.h - Natural Loop Calculator -------*- C++ -*-===//
10 // and determine the loop depth of various nodes of the CFG. A natural loop
15 // each natural loop identified, this analysis identifies natural loops
16 // contained entirely within the loop and the basic blocks the make up the loop.
20 // * whether there is a preheader for the loop
22 // * whether or not a particular block branches out of the loop
23 // * the successor blocks of the loop
24 // * the loop depth
29 // this analysis will not recognize and that will not be represented by a Loop
30 // instance. In particular, a Loop might be inside such a non-loop SCC, or a
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Transforms/Scalar/
DLoopPassManager.h1 //===- LoopPassManager.h - Loop pass management -----------------*- C++ -*-===//
13 /// The primary loop pass pipeline is managed in a very particular way to
17 /// 3) A collection of Loop-specific analysis results are available:
22 /// 4) All loop passes preserve #1 (where possible), #2, and #3.
23 /// 5) Loop passes run over each loop in the loop nest from the innermost to
26 /// loop creates new inner loops, those are added and processed in this
31 /// optimizing loops, especially optimizing loop *nests* instead of single
59 std::declval<Loop &>(), std::declval<LoopAnalysisManager &>(),
69 class PassManager<Loop, LoopAnalysisManager, LoopStandardAnalysisResults &,
72 PassManager<Loop, LoopAnalysisManager, LoopStandardAnalysisResults &,
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Transforms/Utils/
DLoopUtils.h1 //===- llvm/Transforms/Utils/LoopUtils.h - Loop utilities -------*- C++ -*-===//
9 // This file defines some loop transformation utilities.
32 class Loop; variable
53 BasicBlock *InsertPreheaderForLoop(Loop *L, DominatorTree *DT, LoopInfo *LI,
56 /// Ensure that all exit blocks of the loop are dedicated exits.
58 /// For any loop exit block with non-loop predecessors, we split the loop
59 /// predecessors to use a dedicated loop exit block. We update the dominator
60 /// tree and loop info if provided, and will preserve LCSSA if requested.
61 bool formDedicatedExitBlocks(Loop *L, DominatorTree *DT, LoopInfo *LI,
65 /// innermost containing loop.
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DLoopUtils.h1 //===- llvm/Transforms/Utils/LoopUtils.h - Loop utilities -------*- C++ -*-===//
9 // This file defines some loop transformation utilities.
41 class Loop; variable
53 BasicBlock *InsertPreheaderForLoop(Loop *L, DominatorTree *DT, LoopInfo *LI,
56 /// Ensure that all exit blocks of the loop are dedicated exits.
58 /// For any loop exit block with non-loop predecessors, we split the loop
59 /// predecessors to use a dedicated loop exit block. We update the dominator
60 /// tree and loop info if provided, and will preserve LCSSA if requested.
61 bool formDedicatedExitBlocks(Loop *L, DominatorTree *DT, LoopInfo *LI,
65 /// innermost containing loop.
[all …]

12345678910>>...630