[mlir] LLVM lowering: don't use calling convention in op returns
authorAlex Zinenko <zinenko@google.com>
Wed, 12 Apr 2023 09:18:25 +0000 (09:18 +0000)
committerAlex Zinenko <zinenko@google.com>
Thu, 13 Apr 2023 10:56:56 +0000 (10:56 +0000)
commit76ba5ed053f5f2fe50c509103a45477a7f353a0f
tree0a56f3448caa5e5e0488fe70783930d29fec14ee
parent808ee9e8b98d17b1155d806c34f091bdd4693847
[mlir] LLVM lowering: don't use calling convention in op returns

Conversions to the LLVM dialect have an option to use the "bare pointer"
calling convention that converts memref types differently than the
default convention. It has crept into the conversion of operations that
are not related to calls but do require multiresult-to-struct packing.
Use a similar mechanism for the latter without using the calling
convention.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D148086
mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h
mlir/lib/Conversion/LLVMCommon/Pattern.cpp
mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp