[AMDGPU] Restore the s_memtime instruction in gfx1030
authorJay Foad <jay.foad@amd.com>
Thu, 4 Mar 2021 10:56:36 +0000 (10:56 +0000)
committerJay Foad <jay.foad@amd.com>
Fri, 5 Mar 2021 20:19:11 +0000 (20:19 +0000)
commitfc28f600e558c1344618bda149a068d6162b6f0b
treec6675192e8be365e88a35d250af326bfd57c5fed
parentc3e5f504a0c592dd28f869f9a74cc9f480a3c7a5
[AMDGPU] Restore the s_memtime instruction in gfx1030

gfx1030 added a new way to implement readcyclecounter using the
SHADER_CYCLES hardware register, but the s_memtime instruction still
exists, so the MC layer should still accept it and the
llvm.amdgcn.s.memtime intrinsic should still work.

Differential Revision: https://reviews.llvm.org/D97928
clang/lib/Basic/Targets/AMDGPU.cpp
clang/test/CodeGenOpenCL/amdgpu-features.cl
clang/test/SemaOpenCL/builtins-amdgcn-error-gfx1030.cl [deleted file]
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/GCNSubtarget.h
llvm/lib/Target/AMDGPU/SMInstructions.td
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.memtime.ll
llvm/test/MC/AMDGPU/gfx1030_err.s