[llvm-branch-commits] [llvm] 1869d99 - Update `memset.inline` third argument documentation (#199725)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 28 00:01:00 PDT 2026
Author: Ömer Sinan Ağacan
Date: 2026-05-26T17:21:09Z
New Revision: 1869d9925f5d278c607eb2859ab413ba15438c50
URL: https://github.com/llvm/llvm-project/commit/1869d9925f5d278c607eb2859ab413ba15438c50
DIFF: https://github.com/llvm/llvm-project/commit/1869d9925f5d278c607eb2859ab413ba15438c50.diff
LOG: Update `memset.inline` third argument documentation (#199725)
Similar to `memcpy.inline`, `memset.inline`'s size argument doesn't need
to be a constant. Checked by the test
Transforms/PreISelIntrinsicLowering/X86/memset-inline-non-constant-len.ll.
Added:
Modified:
llvm/docs/LangRef.rst
llvm/include/llvm/IR/Intrinsics.td
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 81694139fcea2..0f5bbba38e0fe 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -16803,7 +16803,7 @@ Arguments:
""""""""""
The first argument is a pointer to the destination to fill, the second
-is the byte value with which to fill it, the third argument is a constant
+is the byte value with which to fill it, the third argument is an
integer argument specifying the number of bytes to fill, and the fourth
is a boolean indicating a volatile access.
diff --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td
index 993ddd7e33701..b400374ed1649 100644
--- a/llvm/include/llvm/IR/Intrinsics.td
+++ b/llvm/include/llvm/IR/Intrinsics.td
@@ -1098,7 +1098,6 @@ def int_memset : DefaultAttrsIntrinsic<[],
// Memset version that is guaranteed to be inlined.
// In particular this means that the generated code is not allowed to call any
// external function.
-// The third argument (specifying the size) must be a constant.
def int_memset_inline
: DefaultAttrsIntrinsic<[],
[llvm_anyptr_ty, llvm_i8_ty, llvm_anyint_ty, llvm_i1_ty],
More information about the llvm-branch-commits
mailing list