[llvm] [NVPTX] Add intrinsic support for specialized prmt variants (PR #140951)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 14:57:04 PDT 2025
================
@@ -661,6 +661,126 @@ all bits set to 0 except for %b bits starting at bit position %a. For the
'``clamp``' variants, the values of %a and %b are clamped to the range [0, 32],
which in practice is equivalent to using them as is.
+'``llvm.nvvm.prmt``' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Syntax:
+"""""""
+
+.. code-block:: llvm
+
+ declare i32 @llvm.nvvm.prmt(i32 %a, i32 %b, i32 %c)
----------------
Artem-B wrote:
I'd suggest more descriptive names for the arguments: %a->%lo, %b->%hi, %c -> %selector
https://github.com/llvm/llvm-project/pull/140951
More information about the llvm-commits
mailing list