[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 14:31:40 PDT 2020


ftynse added a comment.

In D78292#1987137 <https://reviews.llvm.org/D78292#1987137>, @jpienaar wrote:

> How do we refer to resizable operands? E.g., OpE has resizeable operands, how do you refer to them in a pattern?


The same way you usually do. It's up to your op how its operands are split into groups and how those groups are referred to. Being able to resize the list doesn't necessarily mean append operands. In most cases, I'd expect there is a variadic group. But I can also see an op with one optional operand. The use case I have has 3 variadic groups and 2 of them are modified.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78292/new/

https://reviews.llvm.org/D78292





More information about the llvm-commits mailing list