Skip to content

Commit 202356d

Browse files
committed
[MLIR] Apply clang-tidy fixes for readability-identifier-naming in Simplex.cpp (NFC)
1 parent 6d7b4b2 commit 202356d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Analysis/Presburger/Simplex.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ class presburger::GBRSimplex {
16631663
/// First pushes a snapshot for the current simplex state to the stack so
16641664
/// that this can be rolled back later.
16651665
void addEqualityForDirection(ArrayRef<DynamicAPInt> dir) {
1666-
assert(llvm::any_of(dir, [](const DynamicAPInt &x) { return x != 0; }) &&
1666+
assert(llvm::any_of(dir, [](const DynamicAPInt &X) { return X != 0; }) &&
16671667
"Direction passed is the zero vector!");
16681668
snapshotStack.emplace_back(simplex.getSnapshot());
16691669
simplex.addEquality(getCoeffsForDirection(dir));
@@ -2156,10 +2156,10 @@ void SimplexBase::print(raw_ostream &os) const {
21562156
for (unsigned row = 0, numRows = getNumRows(); row < numRows; ++row)
21572157
for (unsigned col = 0, numCols = getNumColumns(); col < numCols; ++col)
21582158
updatePrintMetrics<DynamicAPInt>(tableau(row, col), ptm);
2159-
unsigned MIN_SPACING = 1;
2159+
unsigned minSpacing = 1;
21602160
for (unsigned row = 0, numRows = getNumRows(); row < numRows; ++row) {
21612161
for (unsigned col = 0, numCols = getNumColumns(); col < numCols; ++col) {
2162-
printWithPrintMetrics<DynamicAPInt>(os, tableau(row, col), MIN_SPACING,
2162+
printWithPrintMetrics<DynamicAPInt>(os, tableau(row, col), minSpacing,
21632163
ptm);
21642164
}
21652165
os << '\n';

0 commit comments

Comments
 (0)