[mlir] Support return and call ops in bare-ptr calling convention
authorDiego Caballero <diego.caballero@intel.com>
Tue, 29 Sep 2020 18:11:27 +0000 (11:11 -0700)
committerDiego Caballero <diego.caballero@intel.com>
Tue, 29 Sep 2020 19:00:47 +0000 (12:00 -0700)
commita89fc12653c520a5a70249e07c0a394584f4abbe
tree2ef9892d1ce52bb50c965a95d033666c5ba2a56c
parentac8a51c701ebd332a44944f8ff8545c21bc438ce
[mlir] Support return and call ops in bare-ptr calling convention

This patch adds support for the 'return' and 'call' ops to the bare-ptr
calling convention. These changes also align the bare-ptr calling
convention code with the latest changes in the default calling convention
and reduce the amount of customization code needed.

Reviewed By: ftynse

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