aco: add CompilationProgress::after_lower_to_hw

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30399>
This commit is contained in:
Georg Lehmann 2024-07-29 17:28:34 +02:00 committed by Marge Bot
parent 6da7bd842c
commit 53155ba12d
3 changed files with 6 additions and 0 deletions

View file

@ -2013,6 +2013,7 @@ enum class CompilationProgress {
after_isel,
after_spilling,
after_ra,
after_lower_to_hw,
};
class Program final {

View file

@ -3010,6 +3010,8 @@ lower_to_hw_instr(Program* program)
end_with_regs_block->kind &= ~block_kind_end_with_regs;
exit_block->kind |= block_kind_end_with_regs;
}
program->progress = CompilationProgress::after_lower_to_hw;
}
} // namespace aco

View file

@ -1059,6 +1059,9 @@ aco_print_program(const Program* program, FILE* output, unsigned flags)
flags |= print_kill;
break;
case CompilationProgress::after_ra: fprintf(output, "After RA:\n"); break;
case CompilationProgress::after_lower_to_hw:
fprintf(output, "After lowering to hw instructions:\n");
break;
}
print_stage(program->stage, output);