diff --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h index ea9257bd0d95b..1217a628dcb29 100644 --- a/llvm/include/llvm/IR/IntrinsicInst.h +++ b/llvm/include/llvm/IR/IntrinsicInst.h @@ -1167,8 +1167,10 @@ class MemSetInst : public MemSetBase { } }; -/// This is the base class for llvm.experimental.memset.pattern -class MemSetPatternIntrinsic : public MemIntrinsicBase { +/// This class wraps the llvm.experimental.memset.pattern intrinsic. +/// Note that despite the inheritance, this is not part of the +/// MemIntrinsic hierachy in terms of isa/cast. +class MemSetPatternInst : public MemSetBase { private: enum { ARG_VOLATILE = 3 }; @@ -1181,18 +1183,6 @@ class MemSetPatternIntrinsic : public MemIntrinsicBase { void setVolatile(Constant *V) { setArgOperand(ARG_VOLATILE, V); } - // Methods for support of type inquiry through isa, cast, and dyn_cast: - static bool classof(const IntrinsicInst *I) { - return I->getIntrinsicID() == Intrinsic::experimental_memset_pattern; - } - static bool classof(const Value *V) { - return isa(V) && classof(cast(V)); - } -}; - -/// This class wraps the llvm.experimental.memset.pattern intrinsic. -class MemSetPatternInst : public MemSetBase { -public: // Methods for support type inquiry through isa, cast, and dyn_cast: static bool classof(const IntrinsicInst *I) { return I->getIntrinsicID() == Intrinsic::experimental_memset_pattern;