[mlir] StandardToLLVM: make one-to-one convresion pattern publicly available
authorAlex Zinenko <zinenko@google.com>
Thu, 26 Mar 2020 17:08:57 +0000 (18:08 +0100)
committerAlex Zinenko <zinenko@google.com>
Thu, 26 Mar 2020 17:24:07 +0000 (18:24 +0100)
commit987fbae0add347b72a1d705ca6349e39549a25d5
tree363a6f913e4d28673271be71f6fe7d5a5676f641
parentabcb9bb742c9f9fba3b71355b14c0cdcf2893ab0
[mlir] StandardToLLVM: make one-to-one convresion pattern publicly available

Summary:
The Standard-to-LLVM dialect convresion has a set of utility classes that
simplify conversions, including patterns that provide one-to-one conversion
operation conversion with optional result packing. Expose these classes in a
public header so that conversions other than Standard-to-LLVM (e.g. vectors, or
LLVM-based intrinsics) could also use them. Since the patterns are implemented
as class templates and in order to keep the code size limited, keep the
implementation private by resorting to op identifiers instead of template-based
builders.

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