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 mlir::arith::getNeutralElement(Operation *op) { std::optional maybeKind = llvm::TypeSwitch>(op)