[Mlir-commits] [mlir] [NFC][scf] Fix error in example for	'IndexSwitchOp' (PR #102628)
    Andrey Timonin 
    llvmlistbot at llvm.org
       
    Thu Aug 15 02:46:09 PDT 2024
    
    
  
================
@@ -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
----------------
EtoAndruwa wrote:
Hello, @joker-eph! What do you think about it? Should we change the assembly format in `.td`?
From:
```
  let assemblyFormat = [{
    $arg attr-dict (`->` type($results)^)?
    custom<SwitchCases>($cases, $caseRegions) `\n`
    `` `default` $defaultRegion
  }];
```
To: 
```
  let assemblyFormat = [{
    $arg attr-dict (`:` type($results)^)?
    custom<SwitchCases>($cases, $caseRegions) `\n`
    `` `default` $defaultRegion
  }];
```
https://github.com/llvm/llvm-project/pull/102628
    
    
More information about the Mlir-commits
mailing list