[Mlir-commits] [mlir] 24921a9 - [mlir] Remove duplicate comment(NFC) (#128304)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Mar 1 01:15:43 PST 2025


Author: Longsheng Mou
Date: 2025-03-01T17:15:39+08:00
New Revision: 24921a9cb5f127f138ad7a36b10aee81b53bf4bf

URL: https://github.com/llvm/llvm-project/commit/24921a9cb5f127f138ad7a36b10aee81b53bf4bf
DIFF: https://github.com/llvm/llvm-project/commit/24921a9cb5f127f138ad7a36b10aee81b53bf4bf.diff

LOG: [mlir] Remove duplicate comment(NFC) (#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

Added: 
    

Modified: 
    mlir/lib/IR/Types.cpp

Removed: 
    


################################################################################
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