Lines Matching defs:mov
115 * swizzle, swizzles on phis have to be resolved by inserting a mov right
126 * backend code will be an ALU op into a temporary and then a mov into the
220 /* We need to insert a mov to grab the i'th component of src */
221 nir_alu_instr *mov = nir_alu_instr_create(state->mem_ctx,
223 nir_ssa_dest_init(&mov->instr, &mov->dest.dest, 1, bit_size, NULL);
224 mov->dest.write_mask = 1;
225 nir_src_copy(&mov->src[0].src, &src->src, state->mem_ctx);
226 mov->src[0].swizzle[0] = i;
231 nir_instr_insert_before(pred_last_instr, &mov->instr);
233 nir_instr_insert_after_block(src->pred, &mov->instr);
237 new_src->src = nir_src_for_ssa(&mov->dest.dest.ssa);