Lines Matching defs:instr
271 nir_foreach_instr_safe(instr, block) {
272 if (instr->type != nir_instr_type_intrinsic)
275 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
296 b.cursor = nir_before_instr(&intrin->instr);
319 nir_foreach_instr(instr, block) {
320 if (instr->type != nir_instr_type_intrinsic)
323 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
508 nir_foreach_instr_safe(instr, block) {
509 if (instr->type != nir_instr_type_intrinsic)
512 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
524 b.cursor = nir_instr_remove(&intrin->instr);
562 b.cursor = nir_before_instr(instr);
574 b.cursor = nir_before_instr(instr);
614 b.cursor = nir_before_instr(instr);
633 b.cursor = nir_before_instr(instr);
643 b.cursor = nir_before_instr(instr);
651 b.cursor = nir_before_instr(instr);
670 nir_instr_remove(instr);
693 nir_foreach_instr_safe(instr, block) {
694 if (instr->type != nir_instr_type_intrinsic)
697 nir_intrinsic_instr *load = nir_instr_as_intrinsic(instr);
702 b.cursor = nir_before_instr(instr);
708 nir_instr_rewrite_src(instr, &load->src[0],
835 nir_instr *instr, nir_src *src,
840 b->cursor = nir_before_instr(instr);
853 nir_instr_rewrite_src(instr, src, nir_src_for_ssa(bti));
941 nir_foreach_instr (instr, block) {
942 if (instr->type != nir_instr_type_intrinsic)
945 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
1039 nir_foreach_instr (instr, block) {
1040 if (instr->type == nir_instr_type_tex) {
1041 nir_tex_instr *tex = nir_instr_as_tex(instr);
1048 if (instr->type != nir_instr_type_intrinsic)
1051 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
1068 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0],
1073 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0],
1078 rewrite_src_with_bti(&b, bt, instr, &intrin->src[1],
1084 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0],
1104 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0],