[all-commits] [llvm/llvm-project] f21896: [DenseElementAttr] Simplify the public API for cre...
Chris Lattner via All-commits
all-commits at lists.llvm.org
Thu May 12 08:25:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f21896f2c6dc6f4c2c3d0f192f7fefd178f5d5f7
https://github.com/llvm/llvm-project/commit/f21896f2c6dc6f4c2c3d0f192f7fefd178f5d5f7
Author: Chris Lattner <clattner at nondot.org>
Date: 2022-05-12 (Thu, 12 May 2022)
Changed paths:
M mlir/include/mlir/IR/BuiltinAttributes.h
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/CAPI/IR/BuiltinAttributes.cpp
M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
M mlir/lib/IR/BuiltinAttributes.cpp
M mlir/lib/Parser/AttributeParser.cpp
Log Message:
-----------
[DenseElementAttr] Simplify the public API for creating these.
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
Differential Revision: https://reviews.llvm.org/D125447
Commit: 3cce374ee66373488e7b4c3e113cf4e65b20319b
https://github.com/llvm/llvm-project/commit/3cce374ee66373488e7b4c3e113cf4e65b20319b
Author: Chris Lattner <clattner at nondot.org>
Date: 2022-05-12 (Thu, 12 May 2022)
Changed paths:
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/IR/BuiltinAttributes.cpp
Log Message:
-----------
Various improvements suggested by river NFC.
Differential Revision: https://reviews.llvm.org/D125471
Compare: https://github.com/llvm/llvm-project/compare/6822ed035f18...3cce374ee663
More information about the All-commits
mailing list