[mlir][python] Fix MemRefType IsAFunction in Python bindings
authorAlex Zinenko <zinenko@google.com>
Thu, 14 Oct 2021 09:33:28 +0000 (11:33 +0200)
committerAlex Zinenko <zinenko@google.com>
Thu, 14 Oct 2021 11:12:37 +0000 (13:12 +0200)
commita04c0b7ed2f92456558af2833f64cd494d161905
treeb1bb10317e75ccfbf41134e680a79c5be8824310
parente3e1da20d4a97085c805f7d115bd8168f49b1348
[mlir][python] Fix MemRefType IsAFunction in Python bindings

MemRefType was using a wrong `isa` function in the bindings code, which
could lead to invalid IR being constructed. Also run the verifier in
memref dialect tests.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D111784
mlir/lib/Bindings/Python/IRTypes.cpp
mlir/python/mlir/dialects/_memref_ops_ext.py
mlir/test/python/dialects/memref.py