Lines Matching refs:const_state
201 struct ir3_const_state *const_state = ir3_const_state(ctx->so); in lower_immed() local
202 if (const_state->immediates_count == const_state->immediates_size) { in lower_immed()
203 const_state->immediates = rerzalloc(const_state, in lower_immed()
204 const_state->immediates, in lower_immed()
205 __typeof__(const_state->immediates[0]), in lower_immed()
206 const_state->immediates_size, in lower_immed()
207 const_state->immediates_size + 4); in lower_immed()
208 const_state->immediates_size += 4; in lower_immed()
210 for (int i = const_state->immediates_count; i < const_state->immediates_size; i++) in lower_immed()
211 const_state->immediates[i] = 0xd0d0d0d0; in lower_immed()
215 for (i = 0; i < const_state->immediates_count; i++) { in lower_immed()
216 if (const_state->immediates[i] == reg->uim_val) in lower_immed()
220 if (i == const_state->immediates_count) { in lower_immed()
224 if (const_state->offsets.immediate + const_state->immediates_count / 4 >= in lower_immed()
228 const_state->immediates[i] = reg->uim_val; in lower_immed()
229 const_state->immediates_count++; in lower_immed()
233 reg->num = i + (4 * const_state->offsets.immediate); in lower_immed()