Lines Matching defs:nir_instr
84 struct nir_instr;
590 typedef struct nir_instr {
602 } nir_instr;
604 static inline nir_instr *
605 nir_instr_next(nir_instr *instr)
611 return exec_node_data(nir_instr, next, node);
614 static inline nir_instr *
615 nir_instr_prev(nir_instr *instr)
621 return exec_node_data(nir_instr, prev, node);
625 nir_instr_is_first(const nir_instr *instr)
631 nir_instr_is_last(const nir_instr *instr)
647 nir_instr *parent_instr;
672 nir_instr *parent_instr;
687 nir_instr *parent_instr;
821 void nir_dest_copy(nir_dest *dest, const nir_dest *src, nir_instr *instr);
1034 nir_instr instr;
1118 nir_instr instr;
1187 nir_instr instr;
1226 nir_instr instr;
1589 nir_instr instr;
1840 nir_instr instr;
1859 nir_instr instr;
1866 nir_instr instr;
1885 nir_instr instr;
1902 nir_instr instr;
1912 NIR_DEFINE_CAST(nir_instr_as_alu, nir_instr, nir_alu_instr, instr,
1914 NIR_DEFINE_CAST(nir_instr_as_deref, nir_instr, nir_deref_instr, instr,
1916 NIR_DEFINE_CAST(nir_instr_as_call, nir_instr, nir_call_instr, instr,
1918 NIR_DEFINE_CAST(nir_instr_as_jump, nir_instr, nir_jump_instr, instr,
1920 NIR_DEFINE_CAST(nir_instr_as_tex, nir_instr, nir_tex_instr, instr,
1922 NIR_DEFINE_CAST(nir_instr_as_intrinsic, nir_instr, nir_intrinsic_instr, instr,
1924 NIR_DEFINE_CAST(nir_instr_as_load_const, nir_instr, nir_load_const_instr, instr,
1926 NIR_DEFINE_CAST(nir_instr_as_ssa_undef, nir_instr, nir_ssa_undef_instr, instr,
1928 NIR_DEFINE_CAST(nir_instr_as_phi, nir_instr, nir_phi_instr, instr,
1930 NIR_DEFINE_CAST(nir_instr_as_parallel_copy, nir_instr,
2045 struct exec_list instr_list; /** < list of nir_instr */
2085 static inline nir_instr *
2089 return exec_node_data(nir_instr, head, node);
2092 static inline nir_instr *
2096 return exec_node_data(nir_instr, tail, node);
2107 foreach_list_typed(nir_instr, instr, node, &(block)->instr_list)
2109 foreach_list_typed_reverse(nir_instr, instr, node, &(block)->instr_list)
2111 foreach_list_typed_safe(nir_instr, instr, node, &(block)->instr_list)
2113 foreach_list_typed_reverse_safe(nir_instr, instr, node, &(block)->instr_list)
2134 nir_instr *conditional_instr;
2737 nir_instr *instr;
2773 nir_before_instr(nir_instr *instr)
2782 nir_after_instr(nir_instr *instr)
2793 nir_instr *last_instr = nir_block_last_instr(block);
2891 void nir_instr_insert(nir_cursor cursor, nir_instr *instr);
2894 nir_instr_insert_before(nir_instr *instr, nir_instr *before)
2900 nir_instr_insert_after(nir_instr *instr, nir_instr *after)
2906 nir_instr_insert_before_block(nir_block *block, nir_instr *before)
2912 nir_instr_insert_after_block(nir_block *block, nir_instr *after)
2918 nir_instr_insert_before_cf(nir_cf_node *node, nir_instr *before)
2924 nir_instr_insert_after_cf(nir_cf_node *node, nir_instr *after)
2930 nir_instr_insert_before_cf_list(struct exec_list *list, nir_instr *before)
2936 nir_instr_insert_after_cf_list(struct exec_list *list, nir_instr *after)
2941 void nir_instr_remove_v(nir_instr *instr);
2944 nir_instr_remove(nir_instr *instr)
2947 nir_instr *prev = nir_instr_prev(instr);
2962 bool nir_foreach_ssa_def(nir_instr *instr, nir_foreach_ssa_def_cb cb,
2964 bool nir_foreach_dest(nir_instr *instr, nir_foreach_dest_cb cb, void *state);
2965 bool nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state);
2984 bool nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2);
2985 void nir_instr_rewrite_src(nir_instr *instr, nir_src *src, nir_src new_src);
2986 void nir_instr_move_src(nir_instr *dest_instr, nir_src *dest, nir_src *src);
2988 void nir_instr_rewrite_dest(nir_instr *instr, nir_dest *dest,
2991 void nir_ssa_dest_init(nir_instr *instr, nir_dest *dest,
2994 void nir_ssa_def_init(nir_instr *instr, nir_ssa_def *def,
2998 nir_ssa_dest_init_for_type(nir_instr *instr, nir_dest *dest,
3008 nir_instr *after_me);
3077 void nir_print_instr(const nir_instr *instr, FILE *fp);