[all-commits] [llvm/llvm-project] 58ce4a: [mlir][TableGen] Support intrinsics with multiple ...

ftynse via All-commits all-commits at lists.llvm.org
Thu Nov 19 01:00:04 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58ce4a8b1190f2ccc584140ca7fd1a6391846f3d
      https://github.com/llvm/llvm-project/commit/58ce4a8b1190f2ccc584140ca7fd1a6391846f3d
  Author: Ji Kim <jikimjikim at google.com>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
    M mlir/test/Target/llvmir-intrinsics.mlir
    M mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp

  Log Message:
  -----------
  [mlir][TableGen] Support intrinsics with multiple returns and overloaded operands.

For intrinsics with multiple returns where one or more operands are overloaded, the overloaded type is inferred from the corresponding field of the resulting struct, instead of accessing the result directly.

As such, the hasResult parameter of LLVM_IntrOpBase (and derived classes) is replaced with numResults. TableGen for intrinsics also updated to populate this field with the total number of results.

Reviewed By: ftynse

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




More information about the All-commits mailing list