[Mlir-commits] [mlir] 197704a - [mlir][Presburger] make IntegerRelation::iterVarKind const (#172958)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Dec 19 07:08:18 PST 2025


Author: Jeremy Kun
Date: 2025-12-19T07:08:14-08:00
New Revision: 197704a6369be301d47c4c6b31936885b11f5170

URL: https://github.com/llvm/llvm-project/commit/197704a6369be301d47c4c6b31936885b11f5170
DIFF: https://github.com/llvm/llvm-project/commit/197704a6369be301d47c4c6b31936885b11f5170.diff

LOG: [mlir][Presburger] make IntegerRelation::iterVarKind const (#172958)

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

Co-authored-by: Jeremy Kun <j2kun at users.noreply.github.com>

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/Presburger/IntegerRelation.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
index 2ae4bef75cc90..4b13085eceddf 100644
--- a/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
+++ b/mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
@@ -286,7 +286,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