[PATCH] D79030: [mlir][DeclareOpInterfaceMethods] Allow specifying a set of methods to force declaration generation for.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 11:50:43 PDT 2020


rriddle created this revision.
rriddle added a reviewer: jpienaar.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, mehdi_amini.
Herald added a reviewer: antiagainst.
Herald added a project: LLVM.

Currently a declaration won't be generated if the method has a default implementation. Meaning that operations that wan't to override the default have to explicitly declare the method in the extraClassDeclarations. This revision adds an optional list parameter to DeclareOpInterfaceMethods to allow for specifying a set of methods that should always have the declarations generated, even if there is a default.

Depends On D79029 <https://reviews.llvm.org/D79029>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79030

Files:
  mlir/docs/OpDefinitions.md
  mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
  mlir/include/mlir/IR/OpBase.td
  mlir/include/mlir/TableGen/OpTrait.h
  mlir/lib/TableGen/OpTrait.cpp
  mlir/test/mlir-tblgen/op-interface.td
  mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79030.260711.patch
Type: text/x-patch
Size: 8631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/7836f34f/attachment.bin>


More information about the llvm-commits mailing list