[MLIR][Presburger][NFC] Fix clang-tidy warnings
authorGroverkss <groverkss@gmail.com>
Sat, 5 Feb 2022 06:25:09 +0000 (11:55 +0530)
committerGroverkss <groverkss@gmail.com>
Sat, 5 Feb 2022 06:29:21 +0000 (11:59 +0530)
This patch changes variable naming to lowerCamelCase to remove
clang-tidy warning in Presburger/Utils.cpp.

mlir/lib/Analysis/Presburger/Utils.cpp

index 7dc7a26e0b5c5aee81c1d8a3b59b6015c441e3ae..39383f7af27d003ca533c6042db51a42346496c2 100644 (file)
@@ -160,14 +160,14 @@ static LogicalResult getDivRepr(const IntegerPolyhedron &cst, unsigned pos,
 
   // Extract divisor, the divisor can be negative and hence its sign information
   // is stored in `signDiv` to reverse the sign of dividend's coefficients.
-  // Equality must involve the pos-th variable and hence `temp_div` != 0.
-  int64_t temp_div = cst.atEq(eqInd, pos);
-  if (temp_div == 0)
+  // Equality must involve the pos-th variable and hence `tempDiv` != 0.
+  int64_t tempDiv = cst.atEq(eqInd, pos);
+  if (tempDiv == 0)
     return failure();
-  int64_t signDiv = temp_div < 0 ? -1 : 1;
+  int64_t signDiv = tempDiv < 0 ? -1 : 1;
 
   // The divisor is always a positive integer.
-  divisor = temp_div * signDiv;
+  divisor = tempDiv * signDiv;
 
   expr.resize(cst.getNumCols(), 0);
   for (unsigned i = 0, e = cst.getNumIds(); i < e; ++i)