"Disassemble" is an accurate description of what this function does.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
if (unlikely(INTEL_DEBUG & DEBUG_BLORP)) {
fprintf(stderr, "Native code for BLORP clear:\n");
- brw_dump_compile(brw, &func.store, 0, func.next_insn_offset, stderr);
+ brw_disassemble(brw, &func.store, 0, func.next_insn_offset, stderr);
fprintf(stderr, "\n");
}
if (unlikely(INTEL_DEBUG & DEBUG_CLIP)) {
fprintf(stderr, "clip:\n");
- brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+ brw_disassemble(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}
}
void
-brw_dump_compile(struct brw_context *brw, void *assembly, int start, int end, FILE *out)
+brw_disassemble(struct brw_context *brw,
+ void *assembly, int start, int end, FILE *out)
{
bool dump_hex = false;
void brw_init_compile(struct brw_context *, struct brw_compile *p,
void *mem_ctx);
-void brw_dump_compile(struct brw_context *brw, void *assembly,
- int start,int end, FILE *out);
+void brw_disassemble(struct brw_context *brw, void *assembly,
+ int start, int end, FILE *out);
const unsigned *brw_get_program( struct brw_compile *p, unsigned *sz );
struct brw_instruction *brw_next_insn(struct brw_compile *p, unsigned opcode);
if (0) {
fprintf(stderr, "dumping compacted program\n");
- brw_dump_compile(brw, p->store, 0, p->next_insn_offset, stderr);
+ brw_disassemble(brw, p->store, 0, p->next_insn_offset, stderr);
int cmp = 0;
for (offset = 0; offset < p->next_insn_offset;) {
}
if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
- brw_dump_compile(brw, p->store, last_native_insn_offset, p->next_insn_offset, stderr);
+ brw_disassemble(brw, p->store, last_native_insn_offset, p->next_insn_offset, stderr);
foreach_list(node, &cfg->block_list) {
bblock_link *link = (bblock_link *)node;
* case you're doing that.
*/
if (dump_file) {
- brw_dump_compile(brw, p->store, 0, p->next_insn_offset, dump_file);
+ brw_disassemble(brw, p->store, 0, p->next_insn_offset, dump_file);
}
}
if (unlikely(INTEL_DEBUG & DEBUG_GS)) {
fprintf(stderr, "gs:\n");
- brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+ brw_disassemble(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}
if (unlikely(INTEL_DEBUG & DEBUG_SF)) {
fprintf(stderr, "sf:\n");
- brw_dump_compile(brw, c.func.store, 0, program_size, stderr);
+ brw_disassemble(brw, c.func.store, 0, program_size, stderr);
fprintf(stderr, "\n");
}
}
fprintf(stderr, "%s:\n", name);
- brw_dump_compile(brw, brw->cache.bo->virtual, item->offset, item->size,
- stderr);
+ brw_disassemble(brw, brw->cache.bo->virtual, item->offset, item->size,
+ stderr);
}
}
}
if (unlikely(debug_flag)) {
- brw_dump_compile(brw, p->store,
- last_native_insn_offset, p->next_insn_offset, stderr);
+ brw_disassemble(brw, p->store,
+ last_native_insn_offset, p->next_insn_offset, stderr);
}
last_native_insn_offset = p->next_insn_offset;
* case you're doing that.
*/
if (0 && unlikely(debug_flag)) {
- brw_dump_compile(brw, p->store, 0, p->next_insn_offset, stderr);
+ brw_disassemble(brw, p->store, 0, p->next_insn_offset, stderr);
}
}
}
if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
- gen8_dump_compile(brw, store, last_native_inst_offset, next_inst_offset, stderr);
+ gen8_disassemble(brw, store, last_native_inst_offset, next_inst_offset, stderr);
foreach_list(node, &cfg->block_list) {
bblock_link *link = (bblock_link *)node;
* case you're doing that.
*/
if (0 && unlikely(INTEL_DEBUG & DEBUG_WM)) {
- gen8_dump_compile(brw, store, 0, next_inst_offset, stderr);
+ gen8_disassemble(brw, store, 0, next_inst_offset, stderr);
}
}
}
extern "C" void
-gen8_dump_compile(struct brw_context *brw, void *assembly,
- int start,int end, FILE *out)
+gen8_disassemble(struct brw_context *brw, void *assembly,
+ int start, int end, FILE *out)
{
bool dump_hex = false;
};
extern "C" void
-gen8_dump_compile(struct brw_context *brw, void *assembly,
- int start,int end, FILE *out);
+gen8_disassemble(struct brw_context *brw, void *assembly,
+ int start, int end, FILE *out);
}
if (unlikely(debug_flag)) {
- gen8_dump_compile(brw, store, last_native_inst_offset, next_inst_offset, stderr);
+ gen8_disassemble(brw, store, last_native_inst_offset, next_inst_offset, stderr);
}
last_native_inst_offset = next_inst_offset;
* case you're doing that.
*/
if (0 && unlikely(debug_flag)) {
- gen8_dump_compile(brw, store, 0, next_inst_offset, stderr);
+ gen8_disassemble(brw, store, 0, next_inst_offset, stderr);
}
}