[Mlir-commits] [mlir] [mlir] Remove duplicate comment(NFC) (PR #128304)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Feb 22 00:26:03 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Longsheng Mou (CoTinker)
<details>
<summary>Changes</summary>
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
---
Full diff: https://github.com/llvm/llvm-project/pull/128304.diff
1 Files Affected:
- (modified) mlir/lib/IR/Types.cpp (-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/128304
More information about the Mlir-commits
mailing list