[llvm] [IR] Initial introduction of memset_pattern (PR #97583)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 05:44:03 PDT 2024
================
@@ -1249,6 +1252,21 @@ class MemSetInlineInst : public MemSetInst {
}
};
+/// This class wraps the llvm.memset.pattern intrinsic.
+class MemSetPatternInst : public MemSetInst {
+public:
+ ConstantInt *getLength() const {
+ return cast<ConstantInt>(MemSetInst::getLength());
----------------
dtcxzyw wrote:
IIRC the constant length restriction has been removed.
See also https://discourse.llvm.org/t/rfc-introducing-an-llvm-memset-pattern-inline-intrinsic/79496/5.
https://github.com/llvm/llvm-project/pull/97583
More information about the llvm-commits
mailing list