-
Notifications
You must be signed in to change notification settings - Fork 15.4k
AMDGPU: Remove nocapture attribute from is.shared and is.private intrinsics #129238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMDGPU: Remove nocapture attribute from is.shared and is.private intrinsics #129238
Conversation
…insics This should be replaced with captures(address), but tablegen currently has no way to indicate that on an intrinsic. I opened issue #129184 to fix this.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
@llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) ChangesThis should be replaced with captures(address), but tablegen currently has Full diff: https://github.com/llvm/llvm-project/pull/129238.diff 1 Files Affected:
diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
index 876a6f816ad3f..abd0afd413316 100644
--- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td
@@ -2529,13 +2529,13 @@ def int_amdgcn_set_inactive_chain_arg :
// Return if the given flat pointer points to a local memory address.
def int_amdgcn_is_shared : ClangBuiltin<"__builtin_amdgcn_is_shared">,
DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>]
+ [IntrNoMem, IntrSpeculatable] // FIXME: This should be capture(caddress)
>;
// Return if the given flat pointer points to a prvate memory address.
def int_amdgcn_is_private : ClangBuiltin<"__builtin_amdgcn_is_private">,
DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>]
+ [IntrNoMem, IntrSpeculatable] // FIXME: This should be capture(caddress)
>;
// A uniform tail call to a function with the `amdgpu_cs_chain` or
|
Co-authored-by: Jay Foad <[email protected]>
jayfoad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable
…insics (llvm#129238) This should be replaced with captures(address), but tablegen currently has no way to indicate that on an intrinsic. I opened issue llvm#129184 to fix this.
…insics (llvm#129238) This should be replaced with captures(address), but tablegen currently has no way to indicate that on an intrinsic. I opened issue llvm#129184 to fix this.

This should be replaced with captures(address), but tablegen currently has
no way to indicate that on an intrinsic. I opened issue #129184 to fix this.