[llvm] [IR] Initial introduction of memset_pattern (PR #97583)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 09:43:05 PST 2024


================
@@ -15434,6 +15434,66 @@ The behavior of '``llvm.memset.inline.*``' is equivalent to the behavior of
 '``llvm.memset.*``', but the generated code is guaranteed not to call any
 external functions.
 
+.. _int_experimental_memset_pattern:
+
+'``llvm.experimental.memset.pattern``' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Syntax:
+"""""""
+
+This is an overloaded intrinsic. You can use
+``llvm.experimental.memset.pattern`` on any integer bit width that is an
+integral number of bytes and for different address spaces. Not all targets
----------------
topperc wrote:

Do we need a Verifier check to check that the size is integral number of bytes?

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


More information about the llvm-commits mailing list