Lines Matching defs:deref
308 clone_deref_instr(clone_state *state, const nir_deref_instr *deref)
311 nir_deref_instr_create(state->ns, deref->deref_type);
313 __clone_dst(state, &nderef->instr, &nderef->dest, &deref->dest);
315 nderef->modes = deref->modes;
316 nderef->type = deref->type;
318 if (deref->deref_type == nir_deref_type_var) {
319 nderef->var = remap_var(state, deref->var);
323 __clone_src(state, &nderef->instr, &nderef->parent, &deref->parent);
325 switch (deref->deref_type) {
327 nderef->strct.index = deref->strct.index;
333 &nderef->arr.index, &deref->arr.index);
334 nderef->arr.in_bounds = deref->arr.in_bounds;
342 nderef->cast.ptr_stride = deref->cast.ptr_stride;
343 nderef->cast.align_mul = deref->cast.align_mul;
344 nderef->cast.align_offset = deref->cast.align_offset;
348 unreachable("Invalid instruction deref type");