AMDGPU/clang: Remove target features from address space test builtins
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Nov 2022 22:26:14 +0000 (17:26 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 29 Dec 2022 23:46:41 +0000 (18:46 -0500)
commite630d9b299822810bba8f3d0457004d1b4c39bef
tree535235f970f2e18b47cd36641d178304041d95dc
parent56c069887b955bfa9f87f5fe8e87d219afbf4063
AMDGPU/clang: Remove target features from address space test builtins

It turns out we can codegen these on targets without flat addressing,
although the runtime probably didn't put anything useful there. The
proper diagnostic would be to disallow flat pointer uses or languages
with them, not this one edge case. Allows removing one of the special
cases requiring subtarget support in the device libraries.
clang/include/clang/Basic/BuiltinsAMDGPU.def
clang/test/CodeGenOpenCL/builtins-amdgcn-flat-address-space.cl [new file with mode: 0644]
clang/test/CodeGenOpenCL/builtins-amdgcn.cl
clang/test/SemaOpenCL/builtins-amdgcn-error-flat-address-space.cl
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.is.private.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.is.shared.ll