[mlir] Fix printing of unranked memrefs in non-default memory space
authorAlex Zinenko <zinenko@google.com>
Mon, 17 Aug 2020 18:25:28 +0000 (20:25 +0200)
committerAlex Zinenko <zinenko@google.com>
Tue, 18 Aug 2020 07:32:35 +0000 (09:32 +0200)
commit674f2df4fe0b6af901fc7c7e8bd3fb37e1e8516c
tree112310cb3c23ba8575e2b95d918b86c5a89417e1
parenta4b8c2de1d393525f5333d24999031b25d0e8862
[mlir] Fix printing of unranked memrefs in non-default memory space

The type printer was ignoring the memory space on unranked memrefs.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D86096
mlir/lib/IR/AsmPrinter.cpp
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir