Lines Matching refs:nir_builder
33 typedef struct nir_builder { struct
45 } nir_builder; argument
48 nir_builder_init(nir_builder *build, nir_function_impl *impl) in nir_builder_init()
57 nir_builder_init_simple_shader(nir_builder *build, void *mem_ctx, in nir_builder_init_simple_shader()
70 typedef bool (*nir_instr_pass_cb)(struct nir_builder *, nir_instr *, void *);
94 nir_builder b; in nir_shader_instructions_pass()
114 nir_builder_instr_insert(nir_builder *build, nir_instr *instr) in nir_builder_instr_insert()
126 nir_builder_last_instr(nir_builder *build) in nir_builder_last_instr()
133 nir_builder_cf_insert(nir_builder *build, nir_cf_node *cf) in nir_builder_cf_insert()
139 nir_builder_is_inside_cf(nir_builder *build, nir_cf_node *cf_node) in nir_builder_is_inside_cf()
150 nir_push_if_src(nir_builder *build, nir_src condition) in nir_push_if_src()
160 nir_push_if(nir_builder *build, nir_ssa_def *condition) in nir_push_if()
166 nir_push_else(nir_builder *build, nir_if *nif) in nir_push_else()
179 nir_pop_if(nir_builder *build, nir_if *nif) in nir_pop_if()
191 nir_if_phi(nir_builder *build, nir_ssa_def *then_def, nir_ssa_def *else_def) in nir_if_phi()
219 nir_push_loop(nir_builder *build) in nir_push_loop()
228 nir_pop_loop(nir_builder *build, nir_loop *loop) in nir_pop_loop()
240 nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_ssa_undef()
255 nir_build_imm(nir_builder *build, unsigned num_components, in nir_build_imm()
271 nir_imm_zero(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_imm_zero()
284 nir_imm_boolN_t(nir_builder *build, bool x, unsigned bit_size) in nir_imm_boolN_t()
291 nir_imm_bool(nir_builder *build, bool x) in nir_imm_bool()
297 nir_imm_true(nir_builder *build) in nir_imm_true()
303 nir_imm_false(nir_builder *build) in nir_imm_false()
309 nir_imm_floatN_t(nir_builder *build, double x, unsigned bit_size) in nir_imm_floatN_t()
316 nir_imm_float16(nir_builder *build, float x) in nir_imm_float16()
322 nir_imm_float(nir_builder *build, float x) in nir_imm_float()
328 nir_imm_double(nir_builder *build, double x) in nir_imm_double()
334 nir_imm_vec2(nir_builder *build, float x, float y) in nir_imm_vec2()
344 nir_imm_vec4(nir_builder *build, float x, float y, float z, float w) in nir_imm_vec4()
357 nir_imm_vec4_16(nir_builder *build, float x, float y, float z, float w) in nir_imm_vec4_16()
370 nir_imm_intN_t(nir_builder *build, uint64_t x, unsigned bit_size) in nir_imm_intN_t()
377 nir_imm_int(nir_builder *build, int x) in nir_imm_int()
383 nir_imm_int64(nir_builder *build, int64_t x) in nir_imm_int64()
389 nir_imm_ivec2(nir_builder *build, int x, int y) in nir_imm_ivec2()
400 nir_imm_ivec4(nir_builder *build, int x, int y, int z, int w) in nir_imm_ivec4()
413 nir_builder_alu_instr_finish_and_insert(nir_builder *build, nir_alu_instr *instr) in nir_builder_alu_instr_finish_and_insert()
475 nir_build_alu(nir_builder *build, nir_op op, nir_ssa_def *src0, in nir_build_alu()
495 nir_build_alu_src_arr(nir_builder *build, nir_op op, nir_ssa_def **srcs) in nir_build_alu_src_arr()
511 nir_vec(nir_builder *build, nir_ssa_def **comp, unsigned num_components) in nir_vec()
517 nir_mov_alu(nir_builder *build, nir_alu_src src, unsigned num_components) in nir_mov_alu()
545 nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned *swiz, in nir_swizzle()
567 nir_fdot(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1) in nir_fdot()
585 nir_ball_iequal(nir_builder *b, nir_ssa_def *src0, nir_ssa_def *src1) in nir_ball_iequal()
600 nir_ball(nir_builder *b, nir_ssa_def *src) in nir_ball()
606 nir_bany_inequal(nir_builder *b, nir_ssa_def *src0, nir_ssa_def *src1) in nir_bany_inequal()
621 nir_bany(nir_builder *b, nir_ssa_def *src) in nir_bany()
627 nir_channel(nir_builder *b, nir_ssa_def *def, unsigned c) in nir_channel()
633 nir_channels(nir_builder *b, nir_ssa_def *def, nir_component_mask_t mask) in nir_channels()
647 _nir_select_from_array_helper(nir_builder *b, nir_ssa_def **arr, in _nir_select_from_array_helper()
662 nir_select_from_ssa_def_array(nir_builder *b, nir_ssa_def **arr, in nir_select_from_ssa_def_array()
669 nir_vector_extract(nir_builder *b, nir_ssa_def *vec, nir_ssa_def *c) in nir_vector_extract()
688 nir_vector_insert_imm(nir_builder *b, nir_ssa_def *vec, in nir_vector_insert_imm()
712 nir_vector_insert(nir_builder *b, nir_ssa_def *vec, nir_ssa_def *scalar, in nir_vector_insert()
742 nir_i2i(nir_builder *build, nir_ssa_def *x, unsigned dest_bit_size) in nir_i2i()
757 nir_u2u(nir_builder *build, nir_ssa_def *x, unsigned dest_bit_size) in nir_u2u()
772 nir_iadd_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_iadd_imm()
786 nir_ieq_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_ieq_imm()
792 _nir_mul_imm(nir_builder *build, nir_ssa_def *x, uint64_t y, bool amul) in _nir_mul_imm()
812 nir_imul_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_imul_imm()
818 nir_amul_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_amul_imm()
824 nir_fadd_imm(nir_builder *build, nir_ssa_def *x, double y) in nir_fadd_imm()
830 nir_fmul_imm(nir_builder *build, nir_ssa_def *x, double y) in nir_fmul_imm()
836 nir_iand_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_iand_imm()
851 nir_ishr_imm(nir_builder *build, nir_ssa_def *x, uint32_t y) in nir_ishr_imm()
861 nir_ushr_imm(nir_builder *build, nir_ssa_def *x, uint32_t y) in nir_ushr_imm()
871 nir_udiv_imm(nir_builder *build, nir_ssa_def *x, uint64_t y) in nir_udiv_imm()
886 nir_pack_bits(nir_builder *b, nir_ssa_def *src, unsigned dest_bit_size) in nir_pack_bits()
919 nir_unpack_bits(nir_builder *b, nir_ssa_def *src, unsigned dest_bit_size) in nir_unpack_bits()
967 nir_extract_bits(nir_builder *b, nir_ssa_def **srcs, unsigned num_srcs, in nir_extract_bits()
1033 nir_bitcast_vector(nir_builder *b, nir_ssa_def *src, unsigned dest_bit_size) in nir_bitcast_vector()
1050 nir_ssa_for_src(nir_builder *build, nir_src src, int num_components) in nir_ssa_for_src()
1068 nir_ssa_for_alu_src(nir_builder *build, nir_alu_instr *instr, unsigned srcn) in nir_ssa_for_alu_src()
1087 nir_build_deref_var(nir_builder *build, nir_variable *var) in nir_build_deref_var()
1105 nir_build_deref_array(nir_builder *build, nir_deref_instr *parent, in nir_build_deref_array()
1132 nir_build_deref_array_imm(nir_builder *build, nir_deref_instr *parent, in nir_build_deref_array_imm()
1143 nir_build_deref_ptr_as_array(nir_builder *build, nir_deref_instr *parent, in nir_build_deref_ptr_as_array()
1170 nir_build_deref_array_wildcard(nir_builder *build, nir_deref_instr *parent) in nir_build_deref_array_wildcard()
1192 nir_build_deref_struct(nir_builder *build, nir_deref_instr *parent, in nir_build_deref_struct()
1215 nir_build_deref_cast(nir_builder *build, nir_ssa_def *parent, in nir_build_deref_cast()
1236 nir_alignment_deref_cast(nir_builder *build, nir_deref_instr *parent, in nir_alignment_deref_cast()
1265 nir_build_deref_follower(nir_builder *b, nir_deref_instr *parent, in nir_build_deref_follower()
1311 nir_load_reg(nir_builder *build, nir_register *reg) in nir_load_reg()
1317 nir_store_reg(nir_builder *build, nir_register *reg, in nir_store_reg()
1331 nir_load_deref_with_access(nir_builder *build, nir_deref_instr *deref, in nir_load_deref_with_access()
1346 nir_load_deref(nir_builder *build, nir_deref_instr *deref) in nir_load_deref()
1352 nir_store_deref_with_access(nir_builder *build, nir_deref_instr *deref, in nir_store_deref_with_access()
1368 nir_store_deref(nir_builder *build, nir_deref_instr *deref, in nir_store_deref()
1376 nir_copy_deref_with_access(nir_builder *build, nir_deref_instr *dest, in nir_copy_deref_with_access()
1391 nir_copy_deref(nir_builder *build, nir_deref_instr *dest, nir_deref_instr *src) in nir_copy_deref()
1399 nir_memcpy_deref_with_access(nir_builder *build, nir_deref_instr *dest, in nir_memcpy_deref_with_access()
1415 nir_memcpy_deref(nir_builder *build, nir_deref_instr *dest, in nir_memcpy_deref()
1424 nir_build_deref_mode_is(nir_builder *build, nir_deref_instr *deref, in nir_build_deref_mode_is()
1437 nir_load_var(nir_builder *build, nir_variable *var) in nir_load_var()
1443 nir_store_var(nir_builder *build, nir_variable *var, nir_ssa_def *value, in nir_store_var()
1450 nir_copy_var(nir_builder *build, nir_variable *dest, nir_variable *src) in nir_copy_var()
1457 nir_load_global(nir_builder *build, nir_ssa_def *addr, unsigned align, in nir_load_global()
1472 nir_store_global(nir_builder *build, nir_ssa_def *addr, unsigned align, in nir_store_global()
1487 nir_load_param(nir_builder *build, uint32_t param_idx) in nir_load_param()
1503 nir_load_reloc_const_intel(nir_builder *b, uint32_t id) in nir_load_reloc_const_intel()
1515 nir_convert_alu_types(nir_builder *b, nir_ssa_def *src, in nir_convert_alu_types()
1541 nir_f2b(nir_builder *build, nir_ssa_def *f) in nir_f2b()
1547 nir_i2b(nir_builder *build, nir_ssa_def *i) in nir_i2b()
1553 nir_b2f(nir_builder *build, nir_ssa_def *b, uint32_t bit_size) in nir_b2f()
1565 nir_b2i(nir_builder *build, nir_ssa_def *b, uint32_t bit_size) in nir_b2i()
1577 nir_load_barycentric(nir_builder *build, nir_intrinsic_op op, in nir_load_barycentric()
1589 nir_jump(nir_builder *build, nir_jump_type jump_type) in nir_jump()
1597 nir_goto(nir_builder *build, struct nir_block *target) in nir_goto()
1606 nir_goto_if(nir_builder *build, struct nir_block *target, nir_src cond, in nir_goto_if()
1618 nir_compare_func(nir_builder *b, enum compare_func func, in nir_compare_func()
1643 nir_scoped_barrier(nir_builder *b, in nir_scoped_barrier()
1659 nir_scoped_memory_barrier(nir_builder *b, in nir_scoped_memory_barrier()
1668 nir_convert_to_bit_size(nir_builder *b, in nir_convert_to_bit_size()
1683 nir_i2iN(nir_builder *b, nir_ssa_def *src, unsigned bit_size) in nir_i2iN()
1689 nir_u2uN(nir_builder *b, nir_ssa_def *src, unsigned bit_size) in nir_u2uN()
1695 nir_b2bN(nir_builder *b, nir_ssa_def *src, unsigned bit_size) in nir_b2bN()
1701 nir_f2fN(nir_builder *b, nir_ssa_def *src, unsigned bit_size) in nir_f2fN()