Lines Matching defs:block

37 replace_pred(struct ir3_block *block, struct ir3_block *old_pred,
40 for (unsigned i = 0; i < block->predecessors_count; i++) {
41 if (block->predecessors[i] == old_pred) {
42 block->predecessors[i] = new_pred;
49 replace_physical_pred(struct ir3_block *block, struct ir3_block *old_pred,
52 for (unsigned i = 0; i < block->physical_predecessors_count; i++) {
53 if (block->physical_predecessors[i] == old_pred) {
54 block->physical_predecessors[i] = new_pred;
61 mov_immed(struct ir3_register *dst, struct ir3_block *block, unsigned immed)
63 struct ir3_instruction *mov = ir3_instr_create(block, OPC_MOV, 1, 1);
75 mov_reg(struct ir3_block *block, struct ir3_register *dst,
78 struct ir3_instruction *mov = ir3_instr_create(block, OPC_MOV, 1, 1);
93 binop(struct ir3_block *block, opc_t opc, struct ir3_register *dst,
96 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 2);
110 triop(struct ir3_block *block, opc_t opc, struct ir3_register *dst,
114 struct ir3_instruction *instr = ir3_instr_create(block, opc, 1, 3);
130 do_reduce(struct ir3_block *block, reduce_op_t opc,
137 binop(block, OPC_##name, dst, src0, src1); \
157 binop(block, OPC_MUL_S24, dst, src0, src1);
160 binop(block, OPC_MULL_U, dst, src0, src1);
161 triop(block, OPC_MADSH_M16, dst, src0, src1, dst);
162 triop(block, OPC_MADSH_M16, dst, src1, src0, dst);
198 rem_instr->block = after_block;
238 lower_instr(struct ir3 *ir, struct ir3_block **block, struct ir3_instruction *instr)
254 struct ir3_block *before_block = *block;
309 * initialization in a getone block.
400 *block = after_block;
406 lower_block(struct ir3 *ir, struct ir3_block **block)
413 foreach_instr (instr, &(*block)->instr_list) {
414 if (lower_instr(ir, block, instr)) {
415 /* restart the loop with the new block we created because the
432 foreach_block (block, &ir->block_list)
433 progress |= lower_block(ir, &block);