Lines Matching defs:offset
36 * This allows for fast indexing into arrays. This file tries to pattern match the offset in NIR with this form to reduce pressure on the ALU pipe.
82 /* The offset field is a 18-bit signed integer */
203 mir_match_offset(nir_ssa_def *offset, bool first_free, bool extend)
206 .B = { .def = offset },
228 mir_set_offset(compiler_context *ctx, midgard_instruction *ins, nir_src *offset, unsigned seg)
236 * like `base + offset + 20`, where offset could be negative. */
237 bool force_sext = (nir_src_bit_size(*offset) < 64);
239 if (!offset->is_ssa) {
243 ins->src[2] = nir_src_index(ctx, offset);
244 ins->src_types[2] = nir_type_uint | nir_src_bit_size(*offset);
256 struct mir_address match = mir_match_offset(offset->ssa, first_free, true);