Lines Matching refs:instr

154             b->cursor = nir_before_instr(&intrinsic->instr);
215 b->cursor = nir_after_instr(&context->deref->instr);
221 nir_instr_remove(&intrinsic->instr);
253 nir_instr_remove(&context->deref->instr);
269 nir_foreach_instr_safe(instr, block) {
270 if (instr->type == nir_instr_type_deref) {
271 context->deref = nir_instr_as_deref(instr);
291 nir_foreach_instr_safe(instr, block) {
292 if (instr->type == nir_instr_type_intrinsic) {
293 nir_intrinsic_instr *intrinsic = nir_instr_as_intrinsic(instr);
308 if (nir_instr_ssa_def(instr)->bit_size != 64)
312 b.cursor = nir_after_instr(instr);
338 nir_foreach_instr_safe(instr, block) {
339 if (instr->type != nir_instr_type_tex)
341 nir_tex_instr *tex = nir_instr_as_tex(instr);
360 b.cursor = nir_before_instr(&tex->instr);
389 nir_instr_rewrite_src(&tex->instr,
465 nir_foreach_instr(instr, block) {
466 if (instr->type != nir_instr_type_deref)
469 nir_deref_instr *deref = nir_instr_as_deref(instr);
490 nir_foreach_instr(instr, block) {
491 if (instr->type != nir_instr_type_deref)
494 nir_deref_instr *deref = nir_instr_as_deref(instr);
573 b->cursor = nir_before_instr(&intrin->instr);
588 nir_instr_remove(&intrin->instr);
601 b->cursor = nir_before_instr(&intrin->instr);
615 nir_instr_remove(&intrin->instr);
631 nir_foreach_instr_safe(instr, block) {
632 if (instr->type != nir_instr_type_intrinsic)
634 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
704 nir_foreach_instr_safe(instr, block) {
705 if (instr->type != nir_instr_type_alu)
708 nir_alu_instr *alu = nir_instr_as_alu(instr);