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

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 05:47:55 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());
----------------
asb wrote:

Yes this was a holdover from before I'd removed that restriction. Now removed.

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


More information about the llvm-commits mailing list