[Mlir-commits] [mlir] [MLIR][Presburger] Make IntegerRelation::convertVarKind consistent wi… (PR #67323)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Sep 25 06:18:25 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff eb96d6e2fb570e153186b08e4148e8d1b07681e3 823708f4ba7f006096d07c8895efc452c13a9443 -- mlir/include/mlir/Analysis/Presburger/IntegerRelation.h mlir/lib/Analysis/Presburger/IntegerRelation.cpp mlir/lib/Analysis/Presburger/PresburgerRelation.cpp mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp mlir/unittests/Analysis/Presburger/PresburgerRelationTest.cpp mlir/unittests/Analysis/Presburger/PresburgerSetTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
index 49763b8d4297..280eaa5a4729 100644
--- a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+++ b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
@@ -2274,7 +2274,7 @@ void IntegerRelation::intersectRange(const IntegerPolyhedron &poly) {
void IntegerRelation::inverse() {
unsigned numRangeVars = getNumVarKind(VarKind::Range);
convertVarKind(VarKind::Domain, 0, getNumVarKind(VarKind::Domain),
- VarKind::Range);
+ VarKind::Range);
convertVarKind(VarKind::Range, 0, numRangeVars, VarKind::Domain);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/67323
More information about the Mlir-commits
mailing list