[Mlir-commits] [mlir] [mlir] [fpl] make IntegerRelation::iterVarKind const (PR #172958)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Dec 18 22:55:41 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-presburger

Author: Jeremy Kun (j2kun)

<details>
<summary>Changes</summary>

`iterVarKind` is effectively const but not marked as such.

---
Full diff: https://github.com/llvm/llvm-project/pull/172958.diff


1 Files Affected:

- (modified) mlir/include/mlir/Analysis/Presburger/IntegerRelation.h (+1-1) 


``````````diff
diff --git a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
index f86535740fec9..21b9408220df7 100644
--- a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
+++ b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
@@ -272,7 +272,7 @@ class IntegerRelation {
   /// Return an interator over the variables of the specified kind
   /// starting at the relevant offset. The return type is auto in
   /// keeping with the convention for iterators.
-  auto iterVarKind(VarKind kind) {
+  auto iterVarKind(VarKind kind) const {
     return llvm::seq(getVarKindOffset(kind), getVarKindEnd(kind));
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list