Home | History | Annotate | Download | only in nir

Lines Matching refs:node

50 /** puts a control flow node where the cursor is */
51 void nir_cf_node_insert(nir_cursor cursor, nir_cf_node *node);
53 /** puts a control flow node immediately after another control flow node */
55 nir_cf_node_insert_after(nir_cf_node *node, nir_cf_node *after)
57 nir_cf_node_insert(nir_after_cf_node(node), after);
60 /** puts a control flow node immediately before another control flow node */
62 nir_cf_node_insert_before(nir_cf_node *node, nir_cf_node *before)
64 nir_cf_node_insert(nir_before_cf_node(node), before);
67 /** puts a control flow node at the beginning of a list from an if, loop, or function */
69 nir_cf_node_insert_begin(struct exec_list *list, nir_cf_node *node)
71 nir_cf_node_insert(nir_before_cf_list(list), node);
74 /** puts a control flow node at the end of a list from an if, loop, or function */
76 nir_cf_node_insert_end(struct exec_list *list, nir_cf_node *node)
78 nir_cf_node_insert(nir_after_cf_list(list), node);
98 * For #1, the phi node is considered to be part of the if, and for #2 and
99 * #3 the phi node is considered to be part of the loop. This allows us to
109 * 2. Phi node sources are guaranteed to remain valid, meaning that they still
120 * successors/predecessors and phi node sources.
154 /** removes a control flow node, doing any cleanup necessary */
156 nir_cf_node_remove(nir_cf_node *node)
159 nir_cf_extract(&list, nir_before_cf_node(node), nir_after_cf_node(node));