[Mlir-commits] [mlir] [mlir] Add `areLoopIterArgTypesCompatible` to `LoopLikeOpInterface` (PR #184116)

Hocky Yudhiono llvmlistbot at llvm.org
Mon Mar 2 06:10:03 PST 2026


================
@@ -77,37 +77,35 @@ LogicalResult detail::verifyLoopLikeOpInterface(Operation *op) {
            << " != " << loopLikeOp.getRegionIterArgs().size();
 
   // Verify types of inits/iter_args/yielded values/loop results.
-  int64_t i = 0;
   auto yieldedValues = loopLikeOp.getYieldedValues();
   for (const auto [index, init, regionIterArg] :
        llvm::enumerate(loopLikeOp.getInits(), loopLikeOp.getRegionIterArgs())) {
----------------
hockyy wrote:

maybe put the yieldedValues to the enumeration as well

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


More information about the Mlir-commits mailing list