[Mlir-commits] [mlir] f854009 - [mlir][arith][NFC] Minor Revisions	to Comments (#158757)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Tue Sep 16 11:10:23 PDT 2025
    
    
  
Author: Akhil Goel
Date: 2025-09-16T18:10:18Z
New Revision: f854009307d3f3750d3358510ef632571683acb5
URL: https://github.com/llvm/llvm-project/commit/f854009307d3f3750d3358510ef632571683acb5
DIFF: https://github.com/llvm/llvm-project/commit/f854009307d3f3750d3358510ef632571683acb5.diff
LOG: [mlir][arith][NFC] Minor Revisions to Comments (#158757)
This is a minor nitpick PR to fix a few comments.
Added: 
    
Modified: 
    mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
    mlir/lib/Dialect/Arith/IR/ArithOps.cpp
Removed: 
    
################################################################################
diff  --git a/mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td b/mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
index 4558d827e8563..de3efc9fe3506 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
+++ b/mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
@@ -394,7 +394,7 @@ def TruncIShrSIToTrunciShrUI :
         [(TruncationMatchesShiftAmount $x, $tr, $c0)]>;
 
 //===----------------------------------------------------------------------===//
-// TruncIOp
+// TruncFOp
 //===----------------------------------------------------------------------===//
 
 // truncf(sitofp(x)) -> sitofp(x) if default rounding mode.
diff  --git a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
index 7d4d818ee448b..1fbb7a4784cd5 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
@@ -2723,7 +2723,7 @@ TypedAttr mlir::arith::getIdentityValueAttr(AtomicRMWKind kind, Type resultType,
   return nullptr;
 }
 
-/// Return the identity numeric value associated to the give op.
+/// Returns the identity numeric value of the given op.
 std::optional<TypedAttr> mlir::arith::getNeutralElement(Operation *op) {
   std::optional<AtomicRMWKind> maybeKind =
       llvm::TypeSwitch<Operation *, std::optional<AtomicRMWKind>>(op)
        
    
    
More information about the Mlir-commits
mailing list