@@ -1167,8 +1167,10 @@ class MemSetInst : public MemSetBase<MemIntrinsic> {
1167
1167
}
1168
1168
};
1169
1169
1170
- // / This is the base class for llvm.experimental.memset.pattern
1171
- class MemSetPatternIntrinsic : public MemIntrinsicBase <MemIntrinsic> {
1170
+ // / This class wraps the llvm.experimental.memset.pattern intrinsic.
1171
+ // / Note that despite the inheritance, this is not part of the
1172
+ // / MemIntrinsic hierachy in terms of isa/cast.
1173
+ class MemSetPatternInst : public MemSetBase <MemIntrinsic> {
1172
1174
private:
1173
1175
enum { ARG_VOLATILE = 3 };
1174
1176
@@ -1181,18 +1183,6 @@ class MemSetPatternIntrinsic : public MemIntrinsicBase<MemIntrinsic> {
1181
1183
1182
1184
void setVolatile (Constant *V) { setArgOperand (ARG_VOLATILE, V); }
1183
1185
1184
- // Methods for support of type inquiry through isa, cast, and dyn_cast:
1185
- static bool classof (const IntrinsicInst *I) {
1186
- return I->getIntrinsicID () == Intrinsic::experimental_memset_pattern;
1187
- }
1188
- static bool classof (const Value *V) {
1189
- return isa<IntrinsicInst>(V) && classof (cast<IntrinsicInst>(V));
1190
- }
1191
- };
1192
-
1193
- // / This class wraps the llvm.experimental.memset.pattern intrinsic.
1194
- class MemSetPatternInst : public MemSetBase <MemSetPatternIntrinsic> {
1195
- public:
1196
1186
// Methods for support type inquiry through isa, cast, and dyn_cast:
1197
1187
static bool classof (const IntrinsicInst *I) {
1198
1188
return I->getIntrinsicID () == Intrinsic::experimental_memset_pattern;
0 commit comments