Update TrapCode based on Trap Handler ABI:
HSA debugtrap (arg) | s_trap 0x01 | SGPR0-1: queue_ptr VGPR0: arg | Reserved for HSA debugtrap intrinsic (not implemented). |
llvm.trap | s_trap 0x02 | SGPR0-1: queue_ptr | Causes dispatch to be terminated and its associated queue put into the error state. |
llvm.debugtrap | s_trap 0x03 | SGPR0-1: queue_ptr | If debugger not installed handled same as llvm.trap. |