Lines Matching refs:ins

252         bi_foreach_instr_in_block_rev(block, ins) {
256 bi_foreach_dest(ins, d) {
257 unsigned node = bi_get_node(ins->dest[d]);
268 unsigned count = bi_count_write_registers(ins, d);
269 unsigned offset = ins->dest[d].offset;
287 if (ins->op == BI_OPCODE_MOV_I32 &&
288 i == bi_get_node(ins->src[0])) {
290 r &= ~BITFIELD_BIT(ins->src[0].offset);
295 bi_writemask(ins, d), i, r);
299 unsigned node_first = bi_get_node(ins->dest[0]);
301 lcra_add_node_interference(l, node, bi_writemask(ins, 1),
302 node_first, bi_writemask(ins, 0));
308 bi_foreach_src(ins, s) {
309 if (bi_count_read_registers(ins, s) >= 2) {
310 unsigned node = bi_get_node(ins->src[s]);
318 if (!is_blend && ins->op == BI_OPCODE_BLEND) {
329 preload_live = bi_postra_liveness_ins(preload_live, ins);
330 bi_liveness_ins_update(live, ins, node_count);
374 bi_foreach_instr_global(ctx, ins) {
375 bi_foreach_dest(ins, d) {
376 unsigned dest = bi_get_node(ins->dest[d]);
383 if (ins->op == BI_OPCODE_BLEND &&
385 unsigned node = bi_get_node(ins->src[0]);
390 node = bi_get_node(ins->src[4]);
395 node = bi_get_node(ins->dest[0]);
396 if (!bi_is_null(ins->dest[0])) {
403 if ((ins->op == BI_OPCODE_ATEST ||
404 ins->op == BI_OPCODE_ZS_EMIT) &&
405 !bi_is_null(ins->dest[0])) {
406 unsigned node = bi_get_node(ins->dest[0]);
416 if (ins->op == BI_OPCODE_ATEST) {
417 unsigned node = bi_get_node(ins->src[0]);
513 bi_foreach_instr_global(ctx, ins) {
514 bi_foreach_dest(ins, d)
515 ins->dest[d] = bi_reg_from_index(ctx, l, ins->dest[d]);
517 bi_foreach_src(ins, s)
518 ins->src[s] = bi_reg_from_index(ctx, l, ins->src[s]);
520 if (ins->op == BI_OPCODE_TEXC && !bi_is_null(ins->dest[1]))
521 bi_fixup_dual_tex_register(ins);
526 bi_rewrite_index_src_single(bi_instr *ins, bi_index old, bi_index new)
528 bi_foreach_src(ins, i) {
529 if (bi_is_equiv(ins->src[i], old)) {
530 ins->src[i].type = new.type;
531 ins->src[i].reg = new.reg;
532 ins->src[i].value = new.value;
545 bi_foreach_instr_global(ctx, ins) {
546 bi_foreach_dest(ins, d) {
547 unsigned node = bi_get_node(ins->dest[d]);
556 if (ins->no_spill ||
557 ins->op == BI_OPCODE_ATEST ||
558 ins->op == BI_OPCODE_ZS_EMIT ||
559 (ins->op == BI_OPCODE_MOV_I32 &&
560 ins->src[0].type == BI_INDEX_REGISTER &&
561 ins->src[0].value == 60)) {