[Mlir-commits] [mlir] [mlir] Remove duplicate comment(NFC) (PR #128304)
Longsheng Mou
llvmlistbot at llvm.org
Sat Feb 22 00:25:28 PST 2025
https://github.com/CoTinker created https://github.com/llvm/llvm-project/pull/128304
The comments in the source file duplicate the documentation already present in the header file `mlir/IR/Types.h`.
https://github.com/llvm/llvm-project/blob/876174ffd7533dc220f94721173bb767b659fa7f/mlir/include/mlir/IR/Types.h#L136-L141
>From a62256b46d7796719424ea4356da3b6f573ecc82 Mon Sep 17 00:00:00 2001
From: Longsheng Mou <longshengmou at gmail.com>
Date: Sat, 22 Feb 2025 16:20:58 +0800
Subject: [PATCH] [mlir] Remove redundant comment(NFC)
The comments in the source file duplicate the documentation already present in the header file `mlir/IR/Types.h`.
---
mlir/lib/IR/Types.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/mlir/lib/IR/Types.cpp b/mlir/lib/IR/Types.cpp
index bca90de6f4a8a..6af0c8af51ba0 100644
--- a/mlir/lib/IR/Types.cpp
+++ b/mlir/lib/IR/Types.cpp
@@ -46,7 +46,6 @@ bool Type::isIndex() const { return llvm::isa<IndexType>(*this); }
bool Type::isInteger() const { return llvm::isa<IntegerType>(*this); }
-/// Return true if this is an integer type with the specified width.
bool Type::isInteger(unsigned width) const {
if (auto intTy = llvm::dyn_cast<IntegerType>(*this))
return intTy.getWidth() == width;
More information about the Mlir-commits
mailing list