[mlir] Fix call op conversion in bare-ptr calling convention
authorDiego Caballero <diego.caballero@intel.com>
Fri, 2 Oct 2020 15:42:13 +0000 (08:42 -0700)
committerDiego Caballero <diego.caballero@intel.com>
Fri, 2 Oct 2020 15:48:21 +0000 (08:48 -0700)
commita611f9a5c689995f21204139eb2667b8ce4c9dd2
treeca23d7c65a96b59b4cfb2fde10c93519b808bb85
parent86b14d0969ebdf51674df6d41c5e88a8d34879e8
[mlir] Fix call op conversion in bare-ptr calling convention

We hit an llvm_unreachable related to unranked memrefs for call ops
with scalar types. Removing the llvm_unreachable since the conversion
should gracefully bail out in the presence of unranked memrefs. Adding
tests to verify that.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D88709
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/test/Conversion/StandardToLLVM/convert-static-memref-ops.mlir