UNUSED FILE *fp) {}
void
-dump_assembly(void *assembly, struct disasm_info *disasm)
+dump_assembly(void *assembly, struct disasm_info *disasm,
+ const unsigned *block_latency)
{
const struct gen_device_info *devinfo = disasm->devinfo;
const char *last_annotation_string = NULL;
struct bblock_t *predecessor_block = predecessor_link->block;
fprintf(stderr, " <-B%d", predecessor_block->num);
}
- fprintf(stderr, " (%u cycles)\n", group->block_start->cycle_count);
+ if (block_latency)
+ fprintf(stderr, " (%u cycles)",
+ block_latency[group->block_start->num]);
+ fprintf(stderr, "\n");
}
if (last_annotation_ir != group->ir) {
};
void
-dump_assembly(void *assembly, struct disasm_info *disasm);
+dump_assembly(void *assembly, struct disasm_info *disasm,
+ const unsigned *block_latency);
struct disasm_info *
disasm_initialize(const struct gen_device_info *devinfo,
/* overriding the shader makes disasm_info invalid */
if (!brw_try_override_assembly(p, start_offset, sha1buf)) {
- dump_assembly(p->store, disasm_info);
+ dump_assembly(p->store, disasm_info, perf.block_latency);
} else {
fprintf(stderr, "Successfully overrode shader with sha1 %s\n\n", sha1buf);
}
/* overriding the shader makes disasm_info invalid */
if (!brw_try_override_assembly(p, 0, sha1buf)) {
- dump_assembly(p->store, disasm_info);
+ dump_assembly(p->store, disasm_info, perf.block_latency);
} else {
fprintf(stderr, "Successfully overrode shader with sha1 %s\n\n", sha1buf);
}
p->next_insn_offset, disasm);
if (print) {
- dump_assembly(p->store, disasm);
+ dump_assembly(p->store, disasm, NULL);
}
ralloc_free(disasm);