[all-commits] [llvm/llvm-project] f34354: [mlir] Generator converting LLVM intrinsics defs t...

ftynse via All-commits all-commits at lists.llvm.org
Fri Jan 17 09:21:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f343544b813891387add8ef01406d36b82ed0a7e
      https://github.com/llvm/llvm-project/commit/f343544b813891387add8ef01406d36b82ed0a7e
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-01-17 (Fri, 17 Jan 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    A mlir/test/mlir-tblgen/llvm-intrinsics.td
    M mlir/tools/mlir-tblgen/CMakeLists.txt
    A mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp

  Log Message:
  -----------
  [mlir] Generator converting LLVM intrinsics defs to MLIR ODS

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.

Differential Revision: https://reviews.llvm.org/D72926




More information about the All-commits mailing list