[Mlir-commits] [mlir] ae425ab - [mlir][nfc] Fix function definition names post #175880 (#176586)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jan 17 11:06:48 PST 2026


Author: Andrzej WarzyƄski
Date: 2026-01-17T19:06:44Z
New Revision: ae425ab913afc3f7a8326dfa0b06bc46746b2cc7

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

LOG: [mlir][nfc] Fix function definition names post #175880 (#176586)

Ensure that the input argument names for `verifyRanksMatch` in the
function definition match those in the declaration.

Added: 
    

Modified: 
    mlir/lib/Dialect/Utils/VerificationUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Utils/VerificationUtils.cpp b/mlir/lib/Dialect/Utils/VerificationUtils.cpp
index 9b3bfda42b91a..81f1e590a76ee 100644
--- a/mlir/lib/Dialect/Utils/VerificationUtils.cpp
+++ b/mlir/lib/Dialect/Utils/VerificationUtils.cpp
@@ -21,17 +21,17 @@ LogicalResult mlir::verifyDynamicDimensionCount(Operation *op, ShapedType type,
   return success();
 }
 
-LogicalResult mlir::verifyRanksMatch(Operation *op, ShapedType type1,
-                                     ShapedType type2, StringRef name1,
-                                     StringRef name2) {
-  if (!type1.hasRank() || !type2.hasRank())
+LogicalResult mlir::verifyRanksMatch(Operation *op, ShapedType lhs,
+                                     ShapedType rhs, StringRef lhsName,
+                                     StringRef rhsName) {
+  if (!lhs.hasRank() || !rhs.hasRank())
     return success(); // Unranked types are considered compatible
 
-  int64_t rank1 = type1.getRank();
-  int64_t rank2 = type2.getRank();
+  int64_t rank1 = lhs.getRank();
+  int64_t rank2 = rhs.getRank();
   if (rank1 != rank2) {
     return op->emitOpError()
-           << name1 << " rank (" << rank1 << ") does not match " << name2
+           << lhsName << " rank (" << rank1 << ") does not match " << rhsName
            << " rank (" << rank2 << ")";
   }
   return success();


        


More information about the Mlir-commits mailing list