[all-commits] [llvm/llvm-project] 05594d: [mlir][ods] Handle DeclareOpInterfaceMethods in fo...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Tue Jan 4 08:29:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05594de2d77b6f4735b8d8d417039b60987b3a79
      https://github.com/llvm/llvm-project/commit/05594de2d77b6f4735b8d8d417039b60987b3a79
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/mlir-tblgen/op-format.mlir
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir][ods] Handle DeclareOpInterfaceMethods in formatgen

Previously it would not consider ops with
DeclareOpInterfaceMethods<InferTypeOpInterface> as having the
InferTypeOpInterface interfaces added. The OpInterface nested inside
DeclareOpInterfaceMethods is not retained so that one could query it, so
check for the the C++ class directly (a bit raw/low level - will be
addressed in follow up).

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




More information about the All-commits mailing list