[mlir] provide a version of data layout size hooks in bits
authorAlex Zinenko <zinenko@google.com>
Mon, 22 Mar 2021 13:58:03 +0000 (14:58 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 24 Mar 2021 14:13:40 +0000 (15:13 +0100)
commitf9cdc61d1131140a3e9b30a5e9eb72e0b14261b5
treea70cfc42f48274b245158a4b432af27f0dde7c87
parent1916b0e098ad6ddeb746c4720099fb96bff02d31
[mlir] provide a version of data layout size hooks in bits

This is useful for bit-packing types such as vectors and tuples as well as for
exotic architectures that have non-8-bit bytes.

Depends On D98500

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D98524
mlir/docs/DataLayout.md
mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
mlir/test/Interfaces/DataLayoutInterfaces/module.mlir
mlir/test/Interfaces/DataLayoutInterfaces/query.mlir
mlir/test/lib/Dialect/Test/TestTypes.h
mlir/test/lib/Transforms/TestDataLayoutQuery.cpp
mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp