================ @@ -575,6 +575,68 @@ ValueBoundsConstraintSet::computeConstantDelta(Value value1, Value value2, {{value1, dim1}, {value2, dim2}}); } +void ValueBoundsConstraintSet::populateConstraints(Value value, + std::optional<int64_t> dim) { + // `getExpr` pushes the value/dim onto the worklist (unless it was already + // analyzed). + (void)getExpr(value, dim); + // Process all values/dims on the worklist. This may traverse and analyze + // additional IR, depending the current stop function. + processWorklist(); +} + +bool ValueBoundsConstraintSet::compare(Value value1, + std::optional<int64_t> dim1, ---------------- dcaballe wrote:
nit: replace 1 and 2 with Lhs and Rhs? https://github.com/llvm/llvm-project/pull/85895 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits