Home
last modified time | relevance | path

Searched refs:loop (Results 1 – 25 of 2762) sorted by relevance

12345678910>>...111

/netbsd-src/external/mit/libuv/dist/src/unix/
H A Dloop.c30 int uv_loop_init(uv_loop_t* loop) { in uv_loop_init() argument
36 saved_data = loop->data; in uv_loop_init()
37 memset(loop, 0, sizeof(*loop)); in uv_loop_init()
38 loop->data = saved_data; in uv_loop_init()
43 loop->internal_fields = lfields; in uv_loop_init()
49 heap_init((struct heap*) &loop->timer_heap); in uv_loop_init()
50 QUEUE_INIT(&loop->wq); in uv_loop_init()
51 QUEUE_INIT(&loop->idle_handles); in uv_loop_init()
52 QUEUE_INIT(&loop->async_handles); in uv_loop_init()
53 QUEUE_INIT(&loop->check_handles); in uv_loop_init()
[all …]
H A Dposix-poll.c36 int uv__platform_loop_init(uv_loop_t* loop) { in uv__platform_loop_init() argument
37 loop->poll_fds = NULL; in uv__platform_loop_init()
38 loop->poll_fds_used = 0; in uv__platform_loop_init()
39 loop->poll_fds_size = 0; in uv__platform_loop_init()
40 loop->poll_fds_iterating = 0; in uv__platform_loop_init()
44 void uv__platform_loop_delete(uv_loop_t* loop) { in uv__platform_loop_delete() argument
45 uv__free(loop->poll_fds); in uv__platform_loop_delete()
46 loop->poll_fds = NULL; in uv__platform_loop_delete()
49 int uv__io_fork(uv_loop_t* loop) { in uv__io_fork() argument
50 uv__platform_loop_delete(loop); in uv__io_fork()
[all …]
H A Dasync.c41 static void uv__async_send(uv_loop_t* loop);
42 static int uv__async_start(uv_loop_t* loop);
45 int uv_async_init(uv_loop_t* loop, uv_async_t* handle, uv_async_cb async_cb) { in uv_async_init() argument
48 err = uv__async_start(loop); in uv_async_init()
52 uv__handle_init(loop, (uv_handle_t*)handle, UV_ASYNC); in uv_async_init()
56 QUEUE_INSERT_TAIL(&loop->async_handles, &handle->queue); in uv_async_init()
73 uv__async_send(handle->loop); in uv_async_send()
122 static void uv__async_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) { in uv__async_io() argument
129 assert(w == &loop->async_io_watcher); in uv__async_io()
149 QUEUE_MOVE(&loop->async_handles, &queue); in uv__async_io()
[all …]
H A Depoll.c27 int uv__epoll_init(uv_loop_t* loop) { in uv__epoll_init() argument
41 loop->backend_fd = fd; in uv__epoll_init()
49 void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) { in uv__platform_invalidate_fd() argument
55 assert(loop->watchers != NULL); in uv__platform_invalidate_fd()
58 events = (struct epoll_event*) loop->watchers[loop->nwatchers]; in uv__platform_invalidate_fd()
59 nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1]; in uv__platform_invalidate_fd()
72 if (loop->backend_fd >= 0) { in uv__platform_invalidate_fd()
77 epoll_ctl(loop->backend_fd, EPOLL_CTL_DEL, fd, &dummy); in uv__platform_invalidate_fd()
82 int uv__io_check_fd(uv_loop_t* loop, int fd) { in uv__io_check_fd() argument
91 if (epoll_ctl(loop->backend_fd, EPOLL_CTL_ADD, fd, &e)) in uv__io_check_fd()
[all …]
H A Dkqueue.c48 static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags);
51 int uv__kqueue_init(uv_loop_t* loop) { in uv__kqueue_init() argument
52 loop->backend_fd = kqueue(); in uv__kqueue_init()
53 if (loop->backend_fd == -1) in uv__kqueue_init()
56 uv__cloexec(loop->backend_fd, 1); in uv__kqueue_init()
66 int uv__io_fork(uv_loop_t* loop) { in uv__io_fork() argument
68 loop->backend_fd = -1; in uv__io_fork()
69 err = uv__kqueue_init(loop); in uv__io_fork()
74 if (loop->cf_state != NULL) { in uv__io_fork()
86 uv__free(loop->cf_state); in uv__io_fork()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dcfgloop.cc64 flow_loop_nested_p (const class loop *outer, const class loop *loop) in flow_loop_nested_p() argument
68 return (loop_depth (loop) > odepth in flow_loop_nested_p()
69 && (*loop->superloops)[odepth] == outer); in flow_loop_nested_p()
75 class loop *
76 superloop_at_depth (class loop *loop, unsigned depth) in superloop_at_depth() argument
78 unsigned ldepth = loop_depth (loop); in superloop_at_depth()
83 return loop; in superloop_at_depth()
85 return (*loop->superloops)[depth]; in superloop_at_depth()
91 get_loop_latch_edges (const class loop *loop) in get_loop_latch_edges() argument
97 FOR_EACH_EDGE (e, ei, loop->header->preds) in get_loop_latch_edges()
[all …]
H A Dhw-doloop.cc40 hwloop_info loop; in dump_hwloops() local
42 for (loop = loops; loop; loop = loop->next) in dump_hwloops()
48 fprintf (dump_file, ";; loop %d: ", loop->loop_no); in dump_hwloops()
49 if (loop->bad) in dump_hwloops()
52 loop->head == NULL ? -1 : loop->head->index, in dump_hwloops()
53 loop->depth, REGNO (loop->iter_reg)); in dump_hwloops()
56 for (ix = 0; loop->blocks.iterate (ix, &b); ix++) in dump_hwloops()
61 for (ix = 0; loop->loops.iterate (ix, &i); ix++) in dump_hwloops()
70 bb_in_loop_p (hwloop_info loop, basic_block bb) in bb_in_loop_p() argument
72 return bitmap_bit_p (loop->block_bitmap, bb->index); in bb_in_loop_p()
[all …]
H A Dcfgloop.h95 typedef class loop *loop_p;
117 class GTY ((chain_next ("%h.next"))) loop {
145 class loop *inner;
148 class loop *next;
284 loop_constraint_set (class loop *loop, unsigned c) in loop_constraint_set() argument
286 loop->constraints |= c; in loop_constraint_set()
291 loop_constraint_clear (class loop *loop, unsigned c) in loop_constraint_clear() argument
293 loop->constraints &= ~c; in loop_constraint_clear()
298 loop_constraint_set_p (class loop *loop, unsigned c) in loop_constraint_set_p() argument
300 return (loop->constraints & c) == c; in loop_constraint_set_p()
[all …]
H A Dcfgloopmanip.cc35 static void copy_loops_to (class loop **, int,
36 class loop *);
41 static void fix_loop_placements (class loop *, bool *);
92 class loop *loop = current_loops->tree_root, *act; in fix_bb_placement() local
103 if (flow_loop_nested_p (loop, act)) in fix_bb_placement()
104 loop = act; in fix_bb_placement()
107 if (loop == bb->loop_father) in fix_bb_placement()
111 add_bb_to_loop (bb, loop); in fix_bb_placement()
125 fix_loop_placement (class loop *loop, bool *irred_invalidated) in fix_loop_placement() argument
129 auto_vec<edge> exits = get_loop_exit_edges (loop); in fix_loop_placement()
[all …]
H A Dtree-ssa-loop-unswitch.cc78 static class loop *tree_unswitch_loop (class loop *, basic_block, tree);
79 static bool tree_unswitch_single_loop (class loop *, int);
80 static tree tree_may_unswitch_on (basic_block, class loop *);
81 static bool tree_unswitch_outer_loop (class loop *);
82 static edge find_loop_guard (class loop *, vec<gimple *>&);
83 static bool empty_bb_without_guard_p (class loop *, basic_block,
85 static bool used_outside_loop_p (class loop *, tree, vec<gimple *>&);
86 static void hoist_guard (class loop *, edge);
87 static bool check_exit_phi (class loop *);
88 static tree get_vop_from_header (class loop *);
[all …]
H A Dloop-unroll.cc165 static void decide_unroll_stupid (class loop *, int);
166 static void decide_unroll_constant_iterations (class loop *, int);
167 static void decide_unroll_runtime_iterations (class loop *, int);
168 static void unroll_loop_stupid (class loop *);
170 static void unroll_loop_constant_iterations (class loop *);
171 static void unroll_loop_runtime_iterations (class loop *);
172 static struct opt_info *analyze_insns_in_loop (class loop *);
176 static struct var_to_expand *analyze_insn_to_expand_var (class loop*, rtx_insn *);
177 static bool referenced_in_one_insn_in_loop_p (class loop *, rtx, int *);
191 report_unroll (class loop *loop, dump_location_t locus) in report_unroll() argument
[all …]
H A Dtree-ssa-loop-ivcanon.cc85 create_canonical_iv (class loop *loop, edge exit, tree niter, in create_canonical_iv() argument
96 fprintf (dump_file, "Added canonical iv to loop %d, ", loop->num); in create_canonical_iv()
118 NULL_TREE, loop, in create_canonical_iv()
164 constant_after_peeling (tree op, gimple *stmt, class loop *loop) in constant_after_peeling() argument
186 && !constant_after_peeling (TREE_OPERAND (base, 1), stmt, loop)) in constant_after_peeling()
196 if (loop_containing_stmt (stmt) != loop) in constant_after_peeling()
198 tree ev = analyze_scalar_evolution (loop, op); in constant_after_peeling()
214 tree_estimate_loop_size (class loop *loop, edge exit, edge edge_to_cancel, in tree_estimate_loop_size() argument
217 basic_block *body = get_loop_body (loop); in tree_estimate_loop_size()
221 auto_vec<basic_block> path = get_loop_hot_path (loop); in tree_estimate_loop_size()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dcfgloop.c62 flow_loop_nested_p (const class loop *outer, const class loop *loop) in flow_loop_nested_p() argument
66 return (loop_depth (loop) > odepth in flow_loop_nested_p()
67 && (*loop->superloops)[odepth] == outer); in flow_loop_nested_p()
73 class loop *
74 superloop_at_depth (class loop *loop, unsigned depth) in superloop_at_depth() argument
76 unsigned ldepth = loop_depth (loop); in superloop_at_depth()
81 return loop; in superloop_at_depth()
83 return (*loop->superloops)[depth]; in superloop_at_depth()
89 get_loop_latch_edges (const class loop *loop) in get_loop_latch_edges() argument
95 FOR_EACH_EDGE (e, ei, loop->header->preds) in get_loop_latch_edges()
[all …]
H A Dhw-doloop.c40 hwloop_info loop; in dump_hwloops() local
42 for (loop = loops; loop; loop = loop->next) in dump_hwloops()
48 fprintf (dump_file, ";; loop %d: ", loop->loop_no); in dump_hwloops()
49 if (loop->bad) in dump_hwloops()
52 loop->head == NULL ? -1 : loop->head->index, in dump_hwloops()
53 loop->depth, REGNO (loop->iter_reg)); in dump_hwloops()
56 for (ix = 0; loop->blocks.iterate (ix, &b); ix++) in dump_hwloops()
61 for (ix = 0; loop->loops.iterate (ix, &i); ix++) in dump_hwloops()
70 bb_in_loop_p (hwloop_info loop, basic_block bb) in bb_in_loop_p() argument
72 return bitmap_bit_p (loop->block_bitmap, bb->index); in bb_in_loop_p()
[all …]
H A Dcfgloop.h95 typedef class loop *loop_p;
117 class GTY ((chain_next ("%h.next"))) loop {
145 class loop *inner;
148 class loop *next;
284 loop_constraint_set (class loop *loop, unsigned c) in loop_constraint_set() argument
286 loop->constraints |= c; in loop_constraint_set()
291 loop_constraint_clear (class loop *loop, unsigned c) in loop_constraint_clear() argument
293 loop->constraints &= ~c; in loop_constraint_clear()
298 loop_constraint_set_p (class loop *loop, unsigned c) in loop_constraint_set_p() argument
300 return (loop->constraints & c) == c; in loop_constraint_set_p()
[all …]
H A Dcfgloopmanip.c35 static void copy_loops_to (class loop **, int,
36 class loop *);
41 static void fix_loop_placements (class loop *, bool *);
92 class loop *loop = current_loops->tree_root, *act; in fix_bb_placement() local
103 if (flow_loop_nested_p (loop, act)) in fix_bb_placement()
104 loop = act; in fix_bb_placement()
107 if (loop == bb->loop_father) in fix_bb_placement()
111 add_bb_to_loop (bb, loop); in fix_bb_placement()
125 fix_loop_placement (class loop *loop, bool *irred_invalidated) in fix_loop_placement() argument
129 vec<edge> exits = get_loop_exit_edges (loop); in fix_loop_placement()
[all …]
H A Dloop-unroll.c165 static void decide_unroll_stupid (class loop *, int);
166 static void decide_unroll_constant_iterations (class loop *, int);
167 static void decide_unroll_runtime_iterations (class loop *, int);
168 static void unroll_loop_stupid (class loop *);
170 static void unroll_loop_constant_iterations (class loop *);
171 static void unroll_loop_runtime_iterations (class loop *);
172 static struct opt_info *analyze_insns_in_loop (class loop *);
176 static struct var_to_expand *analyze_insn_to_expand_var (class loop*, rtx_insn *);
177 static bool referenced_in_one_insn_in_loop_p (class loop *, rtx, int *);
191 report_unroll (class loop *loop, dump_location_t locus) in report_unroll() argument
[all …]
H A Dtree-ssa-loop-unswitch.c77 static class loop *tree_unswitch_loop (class loop *, basic_block, tree);
78 static bool tree_unswitch_single_loop (class loop *, int);
79 static tree tree_may_unswitch_on (basic_block, class loop *);
80 static bool tree_unswitch_outer_loop (class loop *);
81 static edge find_loop_guard (class loop *);
82 static bool empty_bb_without_guard_p (class loop *, basic_block);
83 static bool used_outside_loop_p (class loop *, tree);
84 static void hoist_guard (class loop *, edge);
85 static bool check_exit_phi (class loop *);
86 static tree get_vop_from_header (class loop *);
[all …]
/netbsd-src/external/mit/libuv/dist/src/win/
H A Dcore.c93 static int uv__loops_add(uv_loop_t* loop) { in uv__loops_add() argument
109 uv__loops[uv__loops_size] = loop; in uv__loops_add()
121 static void uv__loops_remove(uv_loop_t* loop) { in uv__loops_remove() argument
129 if (uv__loops[loop_index] == loop) in uv__loops_remove()
167 uv_loop_t* loop; in uv__wake_all_loops() local
171 loop = uv__loops[i]; in uv__wake_all_loops()
172 assert(loop); in uv__wake_all_loops()
173 if (loop->iocp != INVALID_HANDLE_VALUE) in uv__wake_all_loops()
174 PostQueuedCompletionStatus(loop->iocp, 0, 0, NULL); in uv__wake_all_loops()
227 int uv_loop_init(uv_loop_t* loop) { in uv_loop_init() argument
[all …]
H A Dreq-inl.h56 #define REGISTER_HANDLE_REQ(loop, handle, req) \ argument
58 INCREASE_ACTIVE_COUNT((loop), (handle)); \
59 uv__req_register((loop), (req)); \
62 #define UNREGISTER_HANDLE_REQ(loop, handle, req) \ argument
64 DECREASE_ACTIVE_COUNT((loop), (handle)); \
65 uv__req_unregister((loop), (req)); \
76 #define POST_COMPLETION_FOR_REQ(loop, req) \ argument
77 if (!PostQueuedCompletionStatus((loop)->iocp, \
90 INLINE static void uv__insert_pending_req(uv_loop_t* loop, uv_req_t* req) { in uv__insert_pending_req() argument
92 if (loop->pending_reqs_tail) { in uv__insert_pending_req()
[all …]
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/sh/
H A Dloop.s1 # sh testcase for loop control
15 add #1, r1 ! Before loop
18 add #1, r1 ! Within loop
20 add #2, r1 ! After loop
22 # r1 = 0xa5a5a5a5 + 8 (five in loop, two after, one before)
36 add #1, r1 ! Before loop
39 add #1, r1 ! Within loop
40 add #1, r1 ! Within loop
42 add #3, r1 ! After loop
44 # r1 = 0xa5a5a5a5 + 14 (ten in loop, three after, one before)
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-signal.c53 uv_loop_t* loop; in TEST_IMPL() local
55 loop = uv_default_loop(); in TEST_IMPL()
56 uv_signal_init(loop, &signal); in TEST_IMPL()
133 static void start_watcher(uv_loop_t* loop, in start_watcher() argument
141 ASSERT(0 == uv_signal_init(loop, &ctx->handle)); in start_watcher()
148 static void start_timer(uv_loop_t* loop, int signum, struct timer_ctx* ctx) { in start_timer() argument
151 ASSERT(0 == uv_timer_init(loop, &ctx->handle)); in start_timer()
159 uv_loop_t* loop; in TEST_IMPL() local
161 loop = uv_default_loop(); in TEST_IMPL()
162 start_timer(loop, SIGCHLD, &tc); in TEST_IMPL()
[all …]
H A Dtest-threadpool-cancel.c64 uv_loop_t* loop; in saturate_threadpool() local
74 loop = uv_default_loop(); in saturate_threadpool()
77 ASSERT(0 == uv_queue_work(loop, pause_reqs + i, work_cb, done_cb)); in saturate_threadpool()
168 uv_loop_t* loop; in TEST_IMPL() local
172 loop = uv_default_loop(); in TEST_IMPL()
175 r = uv_getaddrinfo(loop, reqs + 0, getaddrinfo_cb, "fail", NULL, NULL); in TEST_IMPL()
178 r = uv_getaddrinfo(loop, reqs + 1, getaddrinfo_cb, NULL, "fail", NULL); in TEST_IMPL()
181 r = uv_getaddrinfo(loop, reqs + 2, getaddrinfo_cb, "fail", "fail", NULL); in TEST_IMPL()
184 r = uv_getaddrinfo(loop, reqs + 3, getaddrinfo_cb, "fail", NULL, &hints); in TEST_IMPL()
187 ASSERT(0 == uv_timer_init(loop, &ci.timer_handle)); in TEST_IMPL()
[all …]
/netbsd-src/external/bsd/flex/dist/examples/manual/
H A Dj2t.lex78 int loop; in write_underline() local
82 for(loop=3; loop<space; loop++){ in write_underline()
100 int len,loop; in check_and_convert() local
103 for(loop=0; loop<len; loop++){ in check_and_convert()
104 if(string[loop] == '@' || string[loop] == '{' || string[loop] == '}'){ in check_and_convert()
106 buffer[buffpos++] = string[loop]; in check_and_convert()
108 buffer[buffpos++] = string[loop]; in check_and_convert()
122 int loop; in write_block_header() local
127 for(loop=0; buffer[loop] != '\n';loop++) in write_block_header()
129 buffer[loop] = '\0'; in write_block_header()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DTransformMetadata.rst34 Attributes can be attached to loops as described in :ref:`llvm.loop`.
35 Attributes can describe properties of the loop, disable transformations,
40 metadata), in order to add or remove a loop attributes, a new ``MDNode``
41 must be created and assigned as the new ``llvm.loop`` metadata. Any
42 connection between the old ``MDNode`` and the loop is lost. The
43 ``llvm.loop`` node is also used as LoopID (``Loop::getLoopID()``), i.e.
44 the loop effectively gets a new identifier. For instance,
47 loop attributes, any ``llvm.mem.parallel_loop_access`` reference must be
54 loop distribution, etc.). They can either be a hint to the optimizer
57 ``#pragma clang loop`` or ``#pragma omp simd``).
[all …]

12345678910>>...111