[MLIR] Add booleans to dense element list in LangRef

Add boolean values as a dense element, as tested in the MLIR parser:

```
  // CHECK: "splatBoolTensor"() {bar = dense<false> : tensor<i1>} : () -> ()
  "splatBoolTensor"(){bar = dense<false> : tensor<i1>} : () -> ()
```

43d758b142/mlir/test/IR/parser.mlir (L630-L631)

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D122978
This commit is contained in:
Siddharth Bhat 2022-04-04 21:54:17 +05:30 committed by Groverkss
parent b4865dd67f
commit 94b372e725
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def Builtin_DenseIntOrFPElementsAttr : Builtin_Attr<
Syntax:
```
tensor-literal ::= integer-literal | float-literal | [] | [tensor-literal (, tensor-literal)* ]
tensor-literal ::= integer-literal | float-literal | bool-literal | [] | [tensor-literal (, tensor-literal)* ]
dense-intorfloat-elements-attribute ::= `dense` `<` tensor-literal `>` `:`
( tensor-type | vector-type )
```