[Mlir-commits] [mlir] [mlir][spirv] Add support for SPV_ARM_graph extension - part 1 (PR #151934)

Jakub Kuderski llvmlistbot at llvm.org
Tue Sep 2 07:51:05 PDT 2025


================
@@ -144,13 +144,11 @@ LogicalResult spirv::GraphARMOp::verifyBody() {
 
     ValueTypeRange<OperandRange> graphOutputOperandTypes =
         op.getValue().getType();
-    for (unsigned i = 0, size = graphOutputOperandTypes.size(); i < size; ++i) {
-      Type graphOutputOperandType = graphOutputOperandTypes[i];
-      Type grResultType = grType.getResult(i);
-      if (graphOutputOperandType != grResultType)
+    for (const auto [index, type] : llvm::enumerate(graphOutputOperandTypes)) {
----------------
kuhar wrote:

```suggestion
    for (auto [index, type] : llvm::enumerate(graphOutputOperandTypes)) {
```

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


More information about the Mlir-commits mailing list