Skip to content

Commit 29120a5

Browse files
committed
[MLIR][NFC] Fix clang-tidy errors in Analysis/Presburger/
This patch fixes clang-tidy errors related to different parameter names in header file and source file in Analysis/Presburger/ directory.
1 parent 564619b commit 29120a5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

mlir/include/mlir/Analysis/Presburger/Simplex.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SimplexBase {
181181
void rollback(unsigned snapshot);
182182

183183
/// Add all the constraints from the given IntegerPolyhedron.
184-
void intersectIntegerPolyhedron(const IntegerPolyhedron &fac);
184+
void intersectIntegerPolyhedron(const IntegerPolyhedron &poly);
185185

186186
/// Returns a rational sample point. This should not be called when Simplex is
187187
/// empty.
@@ -387,9 +387,9 @@ class Simplex : public SimplexBase {
387387
/// Check if the specified equality already holds in the polytope.
388388
bool isRedundantEquality(ArrayRef<int64_t> coeffs);
389389

390-
/// Returns true if this Simplex's polytope is a rational subset of `fac`.
390+
/// Returns true if this Simplex's polytope is a rational subset of `poly`.
391391
/// Otherwise, returns false.
392-
bool isRationalSubsetOf(const IntegerPolyhedron &fac);
392+
bool isRationalSubsetOf(const IntegerPolyhedron &poly);
393393

394394
private:
395395
friend class GBRSimplex;

mlir/lib/Analysis/Presburger/IntegerPolyhedron.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,16 @@ void IntegerPolyhedron::removeInequality(unsigned pos) {
168168
inequalities.removeRow(pos);
169169
}
170170

171-
void IntegerPolyhedron::removeEqualityRange(unsigned begin, unsigned end) {
172-
if (begin >= end)
171+
void IntegerPolyhedron::removeEqualityRange(unsigned start, unsigned end) {
172+
if (start >= end)
173173
return;
174-
equalities.removeRows(begin, end - begin);
174+
equalities.removeRows(start, end - start);
175175
}
176176

177-
void IntegerPolyhedron::removeInequalityRange(unsigned begin, unsigned end) {
178-
if (begin >= end)
177+
void IntegerPolyhedron::removeInequalityRange(unsigned start, unsigned end) {
178+
if (start >= end)
179179
return;
180-
inequalities.removeRows(begin, end - begin);
180+
inequalities.removeRows(start, end - start);
181181
}
182182

183183
void IntegerPolyhedron::swapId(unsigned posA, unsigned posB) {

0 commit comments

Comments
 (0)