-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add cond_sub and sub_clamp operations to atomicrmw #96661
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,8 @@ Changes to the LLVM IR | |
removed. The next argument has been changed from byte index to bit | ||
index. | ||
|
||
* Added ``cond_sub`` and ``sub_clamp`` operations to ``atomicrmw``. | ||
|
||
Changes to LLVM infrastructure | ||
------------------------------ | ||
|
||
|
@@ -132,6 +134,10 @@ Changes to the AMDGPU Backend | |
|
||
* Implemented :ref:`llvm.get.rounding <int_get_rounding>` and :ref:`llvm.set.rounding <int_set_rounding>` | ||
|
||
* Removed ``llvm.amdgcn.atomic.cond.sub.u32`` and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Best to do this in a separate change. Best to just introduce the new operation here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping, would be best to split all of the AMDGPU implementation pieces into a separate pR |
||
``llvm.amdgcn.atomic.csub.u32`` intrinsics. :ref:`atomicrmw <i_atomicrmw>` | ||
should be used instead with ``cond_sub`` and ``sub_clamp``. | ||
|
||
Changes to the ARM Backend | ||
-------------------------- | ||
|
||
|
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.
I find "positive" and "negative" confusing here. Suggestion:
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.
It looks like sub_clamp does the operation of the usub.sat intrinsic, so maybe call it usub_sat?
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.
And maybe cond_sub should be usub_cond.