[llvm] 986edf0 - Fix attributes of llvm.amdgcn.make.buffer.rsrc (#68609)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 07:29:52 PDT 2023
Author: Krzysztof Drewniak
Date: 2023-10-10T09:29:46-05:00
New Revision: 986edf021725e5ad11acfea18799a4ca85e73c8f
URL: https://github.com/llvm/llvm-project/commit/986edf021725e5ad11acfea18799a4ca85e73c8f
DIFF: https://github.com/llvm/llvm-project/commit/986edf021725e5ad11acfea18799a4ca85e73c8f.diff
LOG: Fix attributes of llvm.amdgcn.make.buffer.rsrc (#68609)
Per discussion on https://github.com/llvm/llvm-project/pull/68453 , the
make_buffer_rsrc intrinsic was incorrectly marked noclobber. This commit
fixes the issue.
Added:
Modified:
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
index 4f42462f655e260..0df66e1ffc519f2 100644
--- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -999,7 +999,7 @@ def int_amdgcn_make_buffer_rsrc : DefaultAttrsIntrinsic <
llvm_i32_ty, // NumRecords / extent
llvm_i32_ty], // flags
// Attributes lifted from ptrmask + some extra argument attributes.
- [IntrNoMem, NoCapture<ArgIndex<0>>, ReadNone<ArgIndex<0>>,
+ [IntrNoMem, ReadNone<ArgIndex<0>>,
IntrSpeculatable, IntrWillReturn]>;
defset list<AMDGPURsrcIntrinsic> AMDGPUBufferIntrinsics = {
@@ -1928,7 +1928,7 @@ def int_amdgcn_inverse_ballot :
[IntrNoMem, IntrWillReturn, IntrNoCallback, IntrNoFree]>;
class AMDGPUWaveReduce<LLVMType data_ty = llvm_anyint_ty> : Intrinsic<
- [data_ty],
+ [data_ty],
[
LLVMMatchType<0>, // llvm value to reduce (SGPR/VGPR)
llvm_i32_ty // Reduction Strategy Switch for lowering ( 0: Default,
More information about the llvm-commits
mailing list