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

Jeremy Kun llvmlistbot at llvm.org
Thu Dec 18 22:55:11 PST 2025


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

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

>From 47ddd46ae23a2ec6acf7693e3d08742addd31dc6 Mon Sep 17 00:00:00 2001
From: Jeremy Kun <j2kun at users.noreply.github.com>
Date: Thu, 18 Dec 2025 22:54:19 -0800
Subject: [PATCH] make iterVarKind const

---
 mlir/include/mlir/Analysis/Presburger/IntegerRelation.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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));
   }
 



More information about the Mlir-commits mailing list