[all-commits] [llvm/llvm-project] 12d2f7: [mlir][ods] OpFormat: fix type inference issues

Jeff Niu via All-commits all-commits at lists.llvm.org
Mon Aug 29 09:28:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12d2f75aedf858e460c63039008e1874eaf06e85
      https://github.com/llvm/llvm-project/commit/12d2f75aedf858e460c63039008e1874eaf06e85
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M mlir/include/mlir/IR/OpImplementation.h
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/op-format-spec.td
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir][ods] OpFormat: fix type inference issues

This patch fixes issues with generating assembly format parsers for
operations that use the `operands` directive or which have unnamed
arguments or results.

This patch also fixes a function in `OpAsmParser` that always produced
an error when trying to resolve variadic operands with the same type.

Fixes #51841

Reviewed By: rriddle

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




More information about the All-commits mailing list