Lines Matching refs:bi_instruction
359 } bi_instruction; typedef
388 bi_instruction *fma;
389 bi_instruction *add;
498 static inline bi_instruction *
499 bi_emit(bi_context *ctx, bi_instruction ins) in bi_emit()
501 bi_instruction *u = rzalloc(ctx, bi_instruction); in bi_emit()
507 static inline bi_instruction *
508 bi_emit_before(bi_context *ctx, bi_instruction *tag, bi_instruction ins) in bi_emit_before()
510 bi_instruction *u = rzalloc(ctx, bi_instruction); in bi_emit_before()
517 bi_remove_instruction(bi_instruction *ins) in bi_remove_instruction()
576 list_for_each_entry(bi_instruction, v, &(block)->base.instructions, link)
579 list_for_each_entry_rev(bi_instruction, v, &(block)->base.instructions, link)
582 list_for_each_entry_safe(bi_instruction, v, &(block)->base.instructions, link)
585 list_for_each_entry_safe_rev(bi_instruction, v, &(block)->base.instructions, link)
588 list_for_each_entry_from(bi_instruction, v, from, &(block)->base.instructions, link)
591 list_for_each_entry_from_rev(bi_instruction, v, from, &(block)->base.instructions, link)
627 static inline bi_instruction *
628 bi_prev_op(bi_instruction *ins) in bi_prev_op()
630 return list_last_entry(&(ins->link), bi_instruction, link); in bi_prev_op()
633 static inline bi_instruction *
634 bi_next_op(bi_instruction *ins) in bi_next_op()
636 return list_first_entry(&(ins->link), bi_instruction, link); in bi_next_op()
652 bool bi_has_outmod(bi_instruction *ins);
653 bool bi_has_source_mods(bi_instruction *ins);
654 bool bi_is_src_swizzled(bi_instruction *ins, unsigned s);
655 bool bi_has_arg(bi_instruction *ins, unsigned arg);
657 unsigned bi_get_component_count(bi_instruction *ins, signed s);
658 uint16_t bi_bytemask_of_read_components(bi_instruction *ins, unsigned node);
659 uint64_t bi_get_immediate(bi_instruction *ins, unsigned index);
660 bool bi_writes_component(bi_instruction *ins, unsigned comp);
661 unsigned bi_writemask(bi_instruction *ins);
671 bi_clause *bi_make_singleton(void *memctx, bi_instruction *ins,
680 void bi_liveness_ins_update(uint16_t *live, bi_instruction *ins, unsigned max);
682 bool bi_is_live_after(bi_context *ctx, bi_block *block, bi_instruction *start, int src);