[PATCH] D137361: IR: Add atomicrmw uinc_wrap and udec_wrap
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 02:38:59 PST 2023
foad added inline comments.
================
Comment at: llvm/docs/LangRef.rst:10584
+- uinc_wrap: ``*ptr = (*ptr u>= val) ? 0 : (*ptr + 1)`` (increment value with wraparound to zero when incremented above input value)
+- udec_wrap: ``*ptr = ((*ptr == 0) || (*ptr u> val)) ? val : (*ptr - 1)`` (decrement with wraparound to input value when decremented below zero).
+
----------------
Weird extra spaces in `- 1`. This is visible in the rendered HTML at https://llvm.org/docs/LangRef.html.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137361/new/
https://reviews.llvm.org/D137361
More information about the llvm-commits
mailing list