Skip to content

Commit 78e5734

Browse files
authored
[IR] Remove MemSetPatternIntrinsic class [nfc] (#138888)
This class appears to serve no purpose. It looks to be modeled after the MemIntrinsic/MemTransferInst family of classes, but right now, we only have a single intrinsic in this "family".
1 parent eb52809 commit 78e5734

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

llvm/include/llvm/IR/IntrinsicInst.h

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,10 @@ class MemSetInst : public MemSetBase<MemIntrinsic> {
11671167
}
11681168
};
11691169

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> {
11721174
private:
11731175
enum { ARG_VOLATILE = 3 };
11741176

@@ -1181,18 +1183,6 @@ class MemSetPatternIntrinsic : public MemIntrinsicBase<MemIntrinsic> {
11811183

11821184
void setVolatile(Constant *V) { setArgOperand(ARG_VOLATILE, V); }
11831185

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:
11961186
// Methods for support type inquiry through isa, cast, and dyn_cast:
11971187
static bool classof(const IntrinsicInst *I) {
11981188
return I->getIntrinsicID() == Intrinsic::experimental_memset_pattern;

0 commit comments

Comments
 (0)