AMDGPU/GlobalISel: Handle legacy grid ID intrinsics
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 15 Jan 2022 15:53:05 +0000 (10:53 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 Apr 2022 02:01:31 +0000 (22:01 -0400)
commit54c525fc53bf3f329e558457f67a175477916799
tree5f4ba3eccdcd3f30f3cb4676853f10925723bc48
parent6071c92768a43b838a2eda3c5ee8d0e6b1b0d748
AMDGPU/GlobalISel: Handle legacy grid ID intrinsics

Handle the llvm.r600.* intrinsics which are still in use in libclc. I
thought it would be possible to switch it to using
llvm.amdgcn.implicitarg.ptr already, but it turns out the implicit
arguments are currently split into a piece before and after the
explicit kernel arguments.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
llvm/test/CodeGen/AMDGPU/amdgpu.work-item-intrinsics.deprecated.ll