[Mlir-commits] [mlir] [NFC][scf] Fix error in example for 'IndexSwitchOp' (PR #102628)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Aug 9 08:11:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-scf
Author: Andrey Timonin (EtoAndruwa)
<details>
<summary>Changes</summary>
Fixed error in the example: `error: custom op 'scf.index_switch' expected 'default'
%0 = scf.index_switch %arg0 : index -> i32
`
---
Full diff: https://github.com/llvm/llvm-project/pull/102628.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/SCF/IR/SCFOps.td (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/102628
More information about the Mlir-commits
mailing list