Lines Matching refs:inst_buf

512 struct jit_instr inst_buf[TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE];  variable
528 memmove(&inst_buf[1], &inst_buf[0], inst_buf_index * sizeof inst_buf[0]); in insert_nop()
531 inst_buf[0].opcode = opcode; in insert_nop()
532 inst_buf[0].pipe = get_any_valid_pipe(opcode); in insert_nop()
533 inst_buf[0].input_registers = 0; in insert_nop()
534 inst_buf[0].output_registers = 0; in insert_nop()
535 inst_buf[0].line = line; in insert_nop()
542 inst_buf[0].opcode->pipes, in compute_format()
543 inst_buf[1].opcode->pipes, in compute_format()
544 (inst_buf_index == 3 ? inst_buf[2].opcode->pipes : (1 << NO_PIPELINE))); in compute_format()
566 tilegx_mnemonic opc = inst_buf[0].opcode->can_bundle in assign_pipes()
578 if ((i > 0) && ((inst_buf[i].input_registers & output_registers) != 0)) in assign_pipes()
581 if ((i > 0) && ((inst_buf[i].output_registers & output_registers) != 0)) in assign_pipes()
587 output_registers |= inst_buf[i].output_registers & 0xFFFFFFFFFFFFFFL; in assign_pipes()
589 inst_buf[i].pipe = match->pipe[i]; in assign_pipes()
599 - (inst_buf[1].pipe + inst_buf[2].pipe))); in assign_pipes()
601 inst_buf[0].pipe = pipe; in assign_pipes()
628 struct jit_instr inst0 = inst_buf[0]; in update_buffer()
629 struct jit_instr inst1 = inst_buf[1]; in update_buffer()
630 struct jit_instr inst2 = inst_buf[2]; in update_buffer()
636 bits |= get_bundle_bit(inst_buf + i); in update_buffer()
638 printf("|%04d", inst_buf[i].line); in update_buffer()
664 inst_buf[0] = inst0; in update_buffer()
665 inst_buf[1] = inst1; in update_buffer()
666 inst_buf[2] = inst2; in update_buffer()
669 bits |= get_bundle_bit(inst_buf + i); in update_buffer()
671 printf("|%04d", inst_buf[i].line); in update_buffer()
684 inst_buf[0] = inst2; in update_buffer()
687 inst_buf[0] = inst1; in update_buffer()
702 inst_buf[0] = inst0; in update_buffer()
703 inst_buf[1] = inst1; in update_buffer()
704 inst_buf[2] = inst2; in update_buffer()
707 bits |= get_bundle_bit(inst_buf + i); in update_buffer()
709 printf("|%04d", inst_buf[i].line); in update_buffer()
721 inst_buf[0] = inst1; in update_buffer()
722 inst_buf[1] = inst2; in update_buffer()
750 inst_buf[inst_buf_index].opcode = opcode; in push_4_buffer()
751 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_4_buffer()
752 inst_buf[inst_buf_index].operand_value[0] = op0; in push_4_buffer()
753 inst_buf[inst_buf_index].operand_value[1] = op1; in push_4_buffer()
754 inst_buf[inst_buf_index].operand_value[2] = op2; in push_4_buffer()
755 inst_buf[inst_buf_index].operand_value[3] = op3; in push_4_buffer()
756 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_4_buffer()
757 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_4_buffer()
758 inst_buf[inst_buf_index].line = line; in push_4_buffer()
770 inst_buf[inst_buf_index].opcode = opcode; in push_3_buffer()
771 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_3_buffer()
772 inst_buf[inst_buf_index].operand_value[0] = op0; in push_3_buffer()
773 inst_buf[inst_buf_index].operand_value[1] = op1; in push_3_buffer()
774 inst_buf[inst_buf_index].operand_value[2] = op2; in push_3_buffer()
775 inst_buf[inst_buf_index].line = line; in push_3_buffer()
779 inst_buf[inst_buf_index].input_registers = (1L << op0) | (1L << op1); in push_3_buffer()
780 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
783 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_3_buffer()
784 inst_buf[inst_buf_index].output_registers = (1L << op0) | (1L << op1); in push_3_buffer()
800 inst_buf[inst_buf_index].input_registers = (1L << op1) | (1L << op2); in push_3_buffer()
801 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
812 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_3_buffer()
813 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_3_buffer()
831 inst_buf[inst_buf_index].opcode = opcode; in push_2_buffer()
832 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_2_buffer()
833 inst_buf[inst_buf_index].operand_value[0] = op0; in push_2_buffer()
834 inst_buf[inst_buf_index].operand_value[1] = op1; in push_2_buffer()
835 inst_buf[inst_buf_index].line = line; in push_2_buffer()
840 inst_buf[inst_buf_index].input_registers = 1L << op0; in push_2_buffer()
846 inst_buf[inst_buf_index].input_registers = (1L << op0) | (1L << op1); in push_2_buffer()
847 inst_buf[inst_buf_index].output_registers = 0; in push_2_buffer()
857 inst_buf[inst_buf_index].input_registers = 1L << op1; in push_2_buffer()
858 inst_buf[inst_buf_index].output_registers = 1L << op0; in push_2_buffer()
876 inst_buf[inst_buf_index].opcode = opcode; in push_0_buffer()
877 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_0_buffer()
878 inst_buf[inst_buf_index].input_registers = 0; in push_0_buffer()
879 inst_buf[inst_buf_index].output_registers = 0; in push_0_buffer()
880 inst_buf[inst_buf_index].line = line; in push_0_buffer()
892 inst_buf[inst_buf_index].opcode = opcode; in push_jr_buffer()
893 inst_buf[inst_buf_index].pipe = get_any_valid_pipe(opcode); in push_jr_buffer()
894 inst_buf[inst_buf_index].operand_value[0] = op0; in push_jr_buffer()
895 inst_buf[inst_buf_index].input_registers = 1L << op0; in push_jr_buffer()
896 inst_buf[inst_buf_index].output_registers = 0; in push_jr_buffer()
897 inst_buf[inst_buf_index].line = line; in push_jr_buffer()