This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add booleans to dense element list in LangRef
ClosedPublic

Authored by bollu on Apr 2 2022, 7:41 AM.

Details

Summary

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>} : () -> ()

https://github.com/llvm/llvm-project/blob/43d758b142bbdf94a1c55dc0950637ae74f825b9/mlir/test/IR/parser.mlir#L630-L631

Diff Detail

Event Timeline

bollu created this revision.Apr 2 2022, 7:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2022, 7:41 AM
bollu requested review of this revision.Apr 2 2022, 7:41 AM
rriddle accepted this revision.Apr 4 2022, 12:57 AM
This revision is now accepted and ready to land.Apr 4 2022, 12:57 AM
This revision was automatically updated to reflect the committed changes.