[mlir][NFC] Use `BaseMemRefType::isValidElementType` in Parser
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Sat, 27 Feb 2021 11:08:43 +0000 (14:08 +0300)
committerVladislav Vinogradov <vlad.vinogradov@intel.com>
Wed, 3 Mar 2021 13:00:54 +0000 (16:00 +0300)
commite3b350ce83a049c1608147754319c27d5fff684b
tree3efae628900e093f893b92ba86925ef1e8272353
parentb6ac26fce5972f24f280d0780d5b713d900829ff
[mlir][NFC] Use `BaseMemRefType::isValidElementType` in Parser

Instead of hard-coded check.

Reviewed By: ftynse, rriddle

Differential Revision: https://reviews.llvm.org/D97612
mlir/lib/Parser/TypeParser.cpp