[PATCH] D78292: [mlir] ODS: support operations with resizable operand lists

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 05:36:22 PDT 2020


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

MLIR supports operations with resizable operand lists, but this property must
be indicated during the construction of such operations. It can be done
programmatically by calling a function on OperationState. Introduce an
ODS-internal trait `ResizableOperandList` to indicate such operations are use
it when generating the bodies of various `build` functions as well as the
`parse` function when the declarative assembly format is used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78292

Files:
  mlir/include/mlir/IR/OpBase.td
  mlir/include/mlir/TableGen/Operator.h
  mlir/lib/TableGen/Operator.cpp
  mlir/test/mlir-tblgen/op-operand.td
  mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
  mlir/tools/mlir-tblgen/OpFormatGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78292.258025.patch
Type: text/x-patch
Size: 5425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200416/d74f282e/attachment.bin>


More information about the llvm-commits mailing list