[Mlir-commits] [mlir] [mlir][doc] Fix reported Builtin (syntax) issues (PR #74635)
Rik Huijzer
llvmlistbot at llvm.org
Wed Dec 6 09:56:39 PST 2023
================
@@ -112,8 +112,8 @@ def FusedLoc : Builtin_LocationAttr<"FusedLoc"> {
Syntax:
```
- fused-location ::= `fused` fusion-metadata? `[` location (location `,`)* `]`
fusion-metadata ::= `<` attribute-value `>`
+ fused-location ::= `fused` fusion-metadata? `[` (location (`,` location)* )? `]`
----------------
rikhuijzer wrote:
```mlir
func.func @add(%arg0 : i64) -> i64 {
return loc(fused[])
}
```
This is valid (doesn't crash `mlir-opt`).
https://github.com/llvm/llvm-project/pull/74635
More information about the Mlir-commits
mailing list