Skip to content

Commit

Permalink
Update xdsl/irdl/declarative_assembly_format.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sasha Lopoukhine <[email protected]>
  • Loading branch information
alexarice and superlopuh authored Nov 27, 2024
1 parent 3b4c3b0 commit 147c591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xdsl/irdl/declarative_assembly_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,13 @@ class OperandsDirective(VariadicOperandDirective, VariadicTypeableDirective):
An operands directive, with the following format:
operands-directive ::= operands
Prints each operand of the operation, inserting a comma between each.
The variadic_index represents the position of a (single) variadic variable,
with the boolean representing whether it is optional
"""

variadic_index: tuple[bool, int] | None
"""
Represents the position of a (single) variadic variable, with the boolean
representing whether it is optional
"""

def _set_using_variadic_index(
self,
Expand Down

0 comments on commit 147c591

Please sign in to comment.