[AMDGPU] New intrinsic void llvm.amdgcn.s.sethalt(i32)
authorJay Foad <jay.foad@amd.com>
Mon, 1 Mar 2021 09:45:55 +0000 (09:45 +0000)
committerJay Foad <jay.foad@amd.com>
Mon, 1 Mar 2021 14:30:23 +0000 (14:30 +0000)
commit796a60d2ea32320f298f91beb04f015934598821
treeca0ded25490d907bd235cddbb401831dcf822be4
parent75ef78ffee7f7d6efa45af19f24fba7616290300
[AMDGPU] New intrinsic void llvm.amdgcn.s.sethalt(i32)

The expected use case is for frontends to insert this into
shaders that are to be run under a debugger. The shader can
then be resumed or single stepped from the point of the call
under debugger control.

Differential Revision: https://reviews.llvm.org/D97670
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/SOPInstructions.td
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.sethalt.ll [new file with mode: 0644]