[Mlir-commits] [mlir] [mlir][cf] fix 'cf.switch' operation description (PR #101319)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jul 31 03:50:41 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Andrey Timonin (EtoAndruwa)
<details>
<summary>Changes</summary>
There is a need to fix the error in the description.
---
Full diff: https://github.com/llvm/llvm-project/pull/101319.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td (+2-2)
``````````diff
diff --git a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
index 181bc5a2d07fa..a26bf75d9d12c 100644
--- a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
+++ b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
@@ -233,7 +233,7 @@ def SwitchOp : CF_Op<"switch",
Pure, Terminator]> {
let summary = "switch operation";
let description = [{
- The `switch` terminator operation represents a switch on a signless integer
+ The `cf.switch` terminator operation represents a switch on a signless integer
value. If the flag matches one of the specified cases, then the
corresponding destination is jumped to. If the flag does not match any of
the cases, the default destination is jumped to. The count and types of
@@ -242,7 +242,7 @@ def SwitchOp : CF_Op<"switch",
Example:
```mlir
- switch %flag : i32, [
+ cf.switch %flag : i32, [
default: ^bb1(%a : i32),
42: ^bb1(%b : i32),
43: ^bb3(%c : i32)
``````````
</details>
https://github.com/llvm/llvm-project/pull/101319
More information about the Mlir-commits
mailing list