Lines Matching defs:temp
42 temp_to_node(uint32_t temp)
44 return temp + ACC_COUNT;
56 uint32_t temp)
58 return nodes->info[temp_to_node(temp)].class_bits;
63 uint32_t temp, uint8_t class_bits)
65 nodes->info[temp_to_node(temp)].class_bits = class_bits;
84 choose_reg_class_for_temp(struct v3d_compile *c, uint32_t temp)
86 assert(temp < c->num_temps && temp < c->nodes.alloc_count);
87 return choose_reg_class(c, get_temp_class_bits(&c->nodes, temp));
128 vir_is_mov_uniform(struct v3d_compile *c, int temp)
130 struct qinst *def = c->defs[temp];
166 can_reconstruct_temp(struct v3d_compile *c, int temp)
168 struct qinst *def = c->defs[temp];
215 get_spill_type_for_temp(struct v3d_compile *c, int temp)
217 if (vir_is_mov_uniform(c, temp))
220 if (can_reconstruct_temp(c, temp))
253 int temp = inst->src[i].index;
255 get_spill_type_for_temp(c, temp);
258 spill_costs[temp] += block_scale;
262 spill_costs[temp] += (block_scale *
266 BITSET_CLEAR(c->spillable, temp);
271 int temp = inst->dst.index;
273 get_spill_type_for_temp(c, temp);
278 spill_costs[temp] += (block_scale *
281 BITSET_CLEAR(c->spillable, temp);
336 /* Creates the interference node for a new temp. We use this to keep the node
340 add_node(struct v3d_compile *c, uint32_t temp, uint8_t class_bits)
345 assert(node == temp + ACC_COUNT);
452 * result of the fill. The TMUWT temp is not really read, the ldtmu
453 * temp will be used immediately so just like the uniform above we
474 * than ip is not affected (the temp starting at ip is usually the
475 * spilled temp except for postponed spills). Something that ends at ip
505 * in which case we have already allocated the temp for the spill
506 * and we should use that, otherwise create a new temp with the
638 struct qreg temp =
640 inst->src[i] = temp;
641 /* We are using the temp in the
645 add_node(c, temp.index, CLASS_BITS_PHYS |
649 * don't need a fill as the temp would
651 * we need to update the temp index.
683 * still need to replace the spill temp
684 * with a new temp though.
952 * result to a temp), nothing else can be stored in r3/r4 across
1172 uint32_t temp = node_to_temp(node);
1174 v3d_spill_reg(c, acc_nodes, temp);
1187 uint32_t temp = node_to_temp(node);
1189 get_spill_type_for_temp(c, temp);
1191 v3d_spill_reg(c, acc_nodes, temp);
1199 /* Allocation was successful, build the 'temp -> reg' map */