[Mlir-commits] [mlir] add iterVarKind for convenient iterating over variables (PR #152091)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Aug 4 23:06:48 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- mlir/include/mlir/Analysis/Presburger/IntegerRelation.h mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp b/mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
index 818dcfd57..a6ed5c5b2 100644
--- a/mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
+++ b/mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
@@ -706,7 +706,8 @@ TEST(IntegerRelationTest, rangeProductSymbols) {
 
 TEST(IntegerRelationTest, getVarKindRange) {
   IntegerRelation r1 = parseRelationFromSet(
-      "(i1, i2, i3, i4, i5) : (i1 >= 0, i2 >= 0, i3 >= 0, i4 >= 0, i5 >= 0)", 2);
+      "(i1, i2, i3, i4, i5) : (i1 >= 0, i2 >= 0, i3 >= 0, i4 >= 0, i5 >= 0)",
+      2);
   SmallVector<unsigned> actual;
   for (unsigned var : r1.iterVarKind(VarKind::Range)) {
     actual.push_back(var);

``````````

</details>


https://github.com/llvm/llvm-project/pull/152091


More information about the Mlir-commits mailing list