[MLIR] Fix standard -> LLVM conversion to fail for unsupported memref element type.
authorRahul Joshi <jurahul@google.com>
Thu, 12 Nov 2020 20:05:35 +0000 (12:05 -0800)
committerRahul Joshi <jurahul@google.com>
Fri, 13 Nov 2020 01:06:05 +0000 (17:06 -0800)
commit5883c4b4705e7f93e71d58c893f4bcfa4b52e0ad
tree79607f5d5d7146b4f517b63638a4e10da937677b
parentc2bccd66f63d267c0108ec896d94ab4597761664
[MLIR] Fix standard -> LLVM conversion to fail for unsupported memref element type.

- Move isSupportedMemRefType() to ConvertToLLVMPatterns and check if the
  memref element type is supported there.

Differential Revision: https://reviews.llvm.org/D91374
mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp