}
void
-bi_print_ports(bi_registers *regs)
+bi_print_ports(bi_registers *regs, FILE *fp)
{
for (unsigned i = 0; i < 2; ++i) {
if (regs->enabled[i])
- printf("port %u: %u\n", i, regs->port[i]);
+ fprintf(fp, "port %u: %u\n", i, regs->port[i]);
}
if (regs->write_fma || regs->write_add) {
- printf("port 2 (%s): %u\n",
+ fprintf(fp, "port 2 (%s): %u\n",
regs->write_add ? "ADD" : "FMA",
regs->port[2]);
}
if ((regs->write_fma && regs->write_add) || regs->read_port3) {
- printf("port 3 (%s): %u\n",
+ fprintf(fp, "port 3 (%s): %u\n",
regs->read_port3 ? "read" : "FMA",
regs->port[3]);
}
const char * bi_tex_op_name(enum bi_tex_op op);
void bi_print_instruction(bi_instruction *ins, FILE *fp);
-void bi_print_ports(bi_registers *regs);
+void bi_print_ports(bi_registers *regs, FILE *fp);
void bi_print_bundle(bi_bundle *bundle, FILE *fp);
void bi_print_clause(bi_clause *clause, FILE *fp);
void bi_print_block(bi_block *block, FILE *fp);