Simplify DenseElementsAttr by rounding up the storage of odd bit widths to 8-bits...
authorRiver Riddle <riverriddle@google.com>
Thu, 6 Jun 2019 22:55:17 +0000 (15:55 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 9 Jun 2019 23:21:43 +0000 (16:21 -0700)
commite6872ce7b7ada90af37677f9a31691e00b03da7d
tree105a2c0f2b9be9e8e0881c88d9d020321fa9f9ef
parente7ccfb2ae847249abf230b08638cec7d1a2ee5d9
Simplify DenseElementsAttr by rounding up the storage of odd bit widths to 8-bits. This removes the requirement that the underlying buffer be aligned to 64 bits which opens the door for several optimizations in the future, e.g. detecting splat.

PiperOrigin-RevId: 251944922
mlir/include/mlir/IR/Attributes.h
mlir/lib/IR/AttributeDetail.h
mlir/lib/IR/Attributes.cpp