[Mlir-commits] [mlir] [NFC][scf] Fix error in example for 'IndexSwitchOp' (PR #102628)
Andrey Timonin
llvmlistbot at llvm.org
Fri Aug 9 08:11:00 PDT 2024
https://github.com/EtoAndruwa created https://github.com/llvm/llvm-project/pull/102628
Fixed error in the example: `error: custom op 'scf.index_switch' expected 'default'
%0 = scf.index_switch %arg0 : index -> i32
`
>From 2a1ee8b9b084d6f3b87b254ace4875f136ea6e87 Mon Sep 17 00:00:00 2001
From: EtoAndruwa <timonina1909 at gmail.com>
Date: Fri, 9 Aug 2024 18:09:47 +0300
Subject: [PATCH] [NFC][scf] Fix error in example for 'IndexSwitchOp'
---
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
index 847040466a85fd..55e01a597e6750 100644
--- a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
+++ b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
@@ -1121,7 +1121,7 @@ def IndexSwitchOp : SCF_Op<"index_switch", [RecursiveMemoryEffects,
Example:
```mlir
- %0 = scf.index_switch %arg0 : index -> i32
+ %0 = scf.index_switch %arg0 -> i32
case 2 {
%1 = arith.constant 10 : i32
scf.yield %1 : i32
More information about the Mlir-commits
mailing list