[mlir][Linalg] Allow specifiying zero-rank shaped type operands to linalg.indexed_gen...
authorHanhan Wang <hanchung@google.com>
Wed, 19 Feb 2020 23:03:01 +0000 (18:03 -0500)
committerHanhan Wang <hanchung@google.com>
Thu, 20 Feb 2020 00:24:27 +0000 (19:24 -0500)
commit28e0449ec690cc828fb0d94ecee30c8680e0a3d7
tree37559a2e616139cfc4388d68c4f31d6a74e13c86
parent95e3956189a6722d1ec4b6d98fb855ee257e64fe
[mlir][Linalg] Allow specifiying zero-rank shaped type operands to linalg.indexed_generic ops.

Patch D74638 allows linalg.generic ops to use zero-rank shaped type operands,
this also can be applied to linalg.indexed_generic ops.
mlir/lib/Dialect/Linalg/Transforms/LinalgToLoops.cpp
mlir/test/Dialect/Linalg/loops.mlir
mlir/test/Dialect/Linalg/roundtrip.mlir