Skip to content

Commit 4ebc985

Browse files
committed
Address review comments
1 parent 9580ab0 commit 4ebc985

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

llvm/include/llvm/IR/IntrinsicInst.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ class MemSetInlineInst : public MemSetInst {
12631263
}
12641264
};
12651265

1266-
/// This is the base class for memset.pattern
1266+
/// This is the base class for llm.experimental.memset.pattern
12671267
class MemSetPatternIntrinsic : public MemIntrinsicBase<MemIntrinsic> {
12681268
private:
12691269
enum { ARG_VOLATILE = 3 };
@@ -1279,12 +1279,7 @@ class MemSetPatternIntrinsic : public MemIntrinsicBase<MemIntrinsic> {
12791279

12801280
// Methods for support of type inquiry through isa, cast, and dyn_cast:
12811281
static bool classof(const IntrinsicInst *I) {
1282-
switch (I->getIntrinsicID()) {
1283-
case Intrinsic::experimental_memset_pattern:
1284-
return true;
1285-
default:
1286-
return false;
1287-
}
1282+
return I->getIntrinsicID() == Intrinsic::experimental_memset_pattern;
12881283
}
12891284
static bool classof(const Value *V) {
12901285
return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));

0 commit comments

Comments
 (0)