[llvm] [AMDGPU] - Add s_bitreplicate intrinsic (PR #69209)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 27 02:45:43 PDT 2023


================
@@ -1927,6 +1927,12 @@ def int_amdgcn_inverse_ballot :
   Intrinsic<[llvm_i1_ty], [llvm_anyint_ty],
             [IntrNoMem, IntrWillReturn, IntrNoCallback, IntrNoFree]>;
 
+// Lowers to S_BITREPLICATE_B64_B32.
+// The argument must be uniform; otherwise, the result is undefined.
+def int_amdgcn_s_bitreplicate :
+  Intrinsic<[llvm_i64_ty], [llvm_i32_ty],
----------------
jayfoad wrote:

Use DefaultAttrsIntrinsic to imply all the properties defined with `IntrinsicProperty<1>` in `Intrinsics.td`.

https://github.com/llvm/llvm-project/pull/69209


More information about the llvm-commits mailing list