[mlir] Unranked memref type has no rank
authorJacques Pienaar <jpienaar@google.com>
Tue, 9 Jun 2020 01:00:35 +0000 (18:00 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 9 Jun 2020 01:08:14 +0000 (18:08 -0700)
commit48c28d58c6f2f80c4ebe84d89bb61f740a958463
treed8ae086560d804b174d81f66269f7c24e452b6c0
parent0e1accd0f726eef2c47be9f37dd0a06cb50d207e
[mlir] Unranked memref type has no rank

Summary:
UnrankedMemRefType doesn't have a rank but previously this was just
checking for unranked tensor. Avoids failure later if one queries the shape
post checking if ranked.

Differential Revision: https://reviews.llvm.org/D81441
mlir/lib/IR/StandardTypes.cpp