diff options
author | zGoldthorpe <zgoldtho@ualberta.ca> | 2025-07-16 07:23:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 07:23:09 -0600 |
commit | 85349b49364d240a2e82981a7d7e0d01b13b1284 (patch) | |
tree | d18c14ff0488d0abf5127dcd19923ef83dc1a79d /clang/lib | |
parent | 5328c732a47705363cd289cb281cbd0d3ccbb8fc (diff) | |
download | llvm-85349b49364d240a2e82981a7d7e0d01b13b1284.zip llvm-85349b49364d240a2e82981a7d7e0d01b13b1284.tar.gz llvm-85349b49364d240a2e82981a7d7e0d01b13b1284.tar.bz2 |
[clang][amdgpu] Add builtin for struct buffer lds load (#148950)
This is essentially just a revision of #137678 which only exposes a
builtin for the intrinsic `llvm.amdgcn.struct.ptr.buffer.load.lds`,
which expects an `__amdgpu_buffer_rsrc_t` rather than a `v4i32` as its
first argument.
The reason for excluding the other intrinsics exposed by the cited PR is
because the intrinsics taking a `v4i32` are legacy and should be
deprecated.
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Sema/SemaAMDGPU.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaAMDGPU.cpp b/clang/lib/Sema/SemaAMDGPU.cpp index e6414a6..c23c98a 100644 --- a/clang/lib/Sema/SemaAMDGPU.cpp +++ b/clang/lib/Sema/SemaAMDGPU.cpp @@ -36,6 +36,7 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned BuiltinID, switch (BuiltinID) { case AMDGPU::BI__builtin_amdgcn_raw_ptr_buffer_load_lds: + case AMDGPU::BI__builtin_amdgcn_struct_ptr_buffer_load_lds: case AMDGPU::BI__builtin_amdgcn_load_to_lds: case AMDGPU::BI__builtin_amdgcn_global_load_lds: { constexpr const int SizeIdx = 2; |