[all-commits] [llvm/llvm-project] d7314b: [mlir-tblgen] Support binding multi-results of Nat...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Tue Jul 20 20:36:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7314b3c094e96fbca7b195eab5fa521bda5fe22
      https://github.com/llvm/llvm-project/commit/d7314b3c094e96fbca7b195eab5fa521bda5fe22
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M mlir/docs/DeclarativeRewrites.md
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/TableGen/Pattern.h
    M mlir/lib/TableGen/Pattern.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp
    M mlir/test/mlir-tblgen/pattern.mlir
    M mlir/tools/mlir-tblgen/RewriterGen.cpp

  Log Message:
  -----------
  [mlir-tblgen] Support binding multi-results of NativeCodeCall

We are able to bind NativeCodeCall result as binding operation. To make
table-gen have better understanding in the form of helper function,
we need to specify the number of return values in the NativeCodeCall
template. A VoidNativeCodeCall is added for void case.

Reviewed By: jpienaar

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




More information about the All-commits mailing list