Instead of requiring the client to compute the "isSplat" bit,
compute it internally. This makes the logic more consistent
and defines away a lot of "elements.size()==1" in the clients.
This addresses Issue #55185
Paths
| Differential D125447
[DenseElementAttr] Simplify the public API for creating these. ClosedPublic Authored by lattner on May 11 2022, 9:33 PM.
Details Summary Instead of requiring the client to compute the "isSplat" bit, This addresses Issue #55185
Diff Detail
Event Timelinerriddle added inline comments. This revision is now accepted and ready to land.May 11 2022, 9:40 PM lattner mentioned this in D125471: Various improvements suggested by river NFC..May 12 2022, 8:19 AM Closed by commit rGf21896f2c6dc: [DenseElementAttr] Simplify the public API for creating these. (authored by lattner). · Explain WhyMay 12 2022, 8:25 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 428953 mlir/include/mlir/IR/BuiltinAttributes.h
mlir/include/mlir/IR/BuiltinAttributes.td
mlir/lib/CAPI/IR/BuiltinAttributes.cpp
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/lib/IR/BuiltinAttributes.cpp
mlir/lib/Parser/AttributeParser.cpp
|