[Mlir-commits] [mlir] 35b7391 - [MLIR][Presburger] fix typo: maybeGetNonIntegeralVarRow -> maybeGetNonIntegralVarRow (NFC)
Arjun P
llvmlistbot at llvm.org
Mon Mar 21 08:52:16 PDT 2022
Author: Arjun P
Date: 2022-03-21T15:52:18Z
New Revision: 35b73917c2f1f3fa402dad5bf8d08b7ba265e2d0
URL: https://github.com/llvm/llvm-project/commit/35b73917c2f1f3fa402dad5bf8d08b7ba265e2d0
DIFF: https://github.com/llvm/llvm-project/commit/35b73917c2f1f3fa402dad5bf8d08b7ba265e2d0.diff
LOG: [MLIR][Presburger] fix typo: maybeGetNonIntegeralVarRow -> maybeGetNonIntegralVarRow (NFC)
Added:
Modified:
mlir/include/mlir/Analysis/Presburger/Simplex.h
mlir/lib/Analysis/Presburger/Simplex.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Analysis/Presburger/Simplex.h b/mlir/include/mlir/Analysis/Presburger/Simplex.h
index 130837623b0db..07d7318d2f064 100644
--- a/mlir/include/mlir/Analysis/Presburger/Simplex.h
+++ b/mlir/include/mlir/Analysis/Presburger/Simplex.h
@@ -481,7 +481,7 @@ class LexSimplex : public SimplexBase {
/// Get a row corresponding to a var that has a non-integral sample value, if
/// one exists. Otherwise, return an empty optional.
- Optional<unsigned> maybeGetNonIntegeralVarRow() const;
+ Optional<unsigned> maybeGetNonIntegralVarRow() const;
/// Given two potential pivot columns for a row, return the one that results
/// in the lexicographically smallest sample vector.
diff --git a/mlir/lib/Analysis/Presburger/Simplex.cpp b/mlir/lib/Analysis/Presburger/Simplex.cpp
index 3a572585dd5da..dff773690e573 100644
--- a/mlir/lib/Analysis/Presburger/Simplex.cpp
+++ b/mlir/lib/Analysis/Presburger/Simplex.cpp
@@ -180,7 +180,7 @@ LogicalResult LexSimplex::addCut(unsigned row) {
return moveRowUnknownToColumn(nRow - 1);
}
-Optional<unsigned> LexSimplex::maybeGetNonIntegeralVarRow() const {
+Optional<unsigned> LexSimplex::maybeGetNonIntegralVarRow() const {
for (const Unknown &u : var) {
if (u.orientation == Orientation::Column)
continue;
@@ -200,7 +200,7 @@ MaybeOptimum<SmallVector<int64_t, 8>> LexSimplex::findIntegerLexMin() {
if (empty)
return OptimumKind::Empty;
- if (Optional<unsigned> maybeRow = maybeGetNonIntegeralVarRow()) {
+ if (Optional<unsigned> maybeRow = maybeGetNonIntegralVarRow()) {
// Failure occurs when the polytope is integer empty.
if (failed(addCut(*maybeRow)))
return OptimumKind::Empty;
More information about the Mlir-commits
mailing list