[mlir] Intrinsics generator: use TableGen-defined builder function
authorAlex Zinenko <zinenko@google.com>
Fri, 21 Feb 2020 13:46:14 +0000 (14:46 +0100)
committerAlex Zinenko <zinenko@google.com>
Tue, 25 Feb 2020 10:59:04 +0000 (11:59 +0100)
commit3a1b34ff69be5d1cbd218bfe81fc66edb8fa15f1
tree92e92b0030422c62e5825965a431ba518d67c4e8
parent00d4814f499fd09f8cf326c1c1a219175268b970
[mlir] Intrinsics generator: use TableGen-defined builder function

Originally, intrinsics generator for the LLVM dialect has been producing
customized code fragments for the translation of MLIR operations to LLVM IR
intrinsics. LLVM dialect ODS now provides a generalized version of the
translation code, parameterizable with the properties of the operation.
Generate ODS that uses this version of the translation code instead of
generating a new version of it for each intrinsic.

Differential Revision: https://reviews.llvm.org/D74893
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/test/mlir-tblgen/llvm-intrinsics.td
mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp