[all-commits] [llvm/llvm-project] 084563: [mlir][ir] Custom ops' parse/print fall back to di...

Jeff Niu via All-commits all-commits at lists.llvm.org
Fri Dec 10 11:34:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0845635eda428173861fa1a4dd3de014b595daf7
      https://github.com/llvm/llvm-project/commit/0845635eda428173861fa1a4dd3de014b595daf7
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2021-12-10 (Fri, 10 Dec 2021)

  Changed paths:
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/lib/IR/Operation.cpp
    M mlir/test/IR/parser.mlir
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td

  Log Message:
  -----------
  [mlir][ir] Custom ops' parse/print fall back to dialect hooks

Custom ops that have no parser or printer should fall back to the dialect's parser and/or printer hooks. This avoids the need to define parsers and printers that simply dispatch to the dialect hook.

Reviewed By: mehdi_amini, rriddle

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




More information about the All-commits mailing list