[mlir] forward data layout query to scoping op in absence of specification
authorAlex Zinenko <zinenko@google.com>
Mon, 22 Mar 2021 13:58:13 +0000 (14:58 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 24 Mar 2021 14:13:41 +0000 (15:13 +0100)
commit842d2435087279ece543b66351027eac3e55fdf5
treeea04062253e9233d85de24b0208493db3a9b42e2
parentf9cdc61d1131140a3e9b30a5e9eb72e0b14261b5
[mlir] forward data layout query to scoping op in absence of specification

Even if the layout specification is missing from an op that supports it, the op
is still expected to provide meaningful responses to data layout queries.
Forward them to the op instead of directly calling the default implementation.

Depends On D98524

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D98525
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp