[PATCH] D72926: [mlir] Generator converting LLVM intrinsics defs to MLIR ODS

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 07:55:50 PST 2020


ftynse created this revision.
Herald added subscribers: llvm-commits, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, jdoerfert, mgorny.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
ftynse added reviewers: antiagainst, andydavis1, marcello.maggioni.

Introduce a new generator for MLIR tablegen driver that consumes LLVM IR
intrinsic definitions and produces MLIR ODS definitions. This is useful to
bulk-generate MLIR operations equivalent to existing LLVM IR intrinsics, such
as additional arithmetic instructions or NVVM.

A test exercising the generation is also added. It reads the main LLVM
intrinsics file and produces ODS to make sure the TableGen model remains in
sync with what is used in LLVM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72926

Files:
  mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
  mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
  mlir/test/mlir-tblgen/intrinsics.td
  mlir/tools/mlir-tblgen/CMakeLists.txt
  mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72926.238779.patch
Type: text/x-patch
Size: 10780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200117/4c9e9456/attachment.bin>


More information about the llvm-commits mailing list