@@ -101,7 +101,7 @@ class OpName(Node):
101101class InstHeader (Node ):
102102 override : bool
103103 register : bool
104- kind : Literal ["inst" , "op" , "legacy" ] # Legacy means no (inputs -- outputs)
104+ kind : Literal ["inst" , "op" ]
105105 name : str
106106 inputs : list [InputEffect ]
107107 outputs : list [OutputEffect ]
@@ -111,7 +111,7 @@ class InstHeader(Node):
111111class InstDef (Node ):
112112 override : bool
113113 register : bool
114- kind : Literal ["inst" , "op" , "legacy" ]
114+ kind : Literal ["inst" , "op" ]
115115 name : str
116116 inputs : list [InputEffect ]
117117 outputs : list [OutputEffect ]
@@ -174,9 +174,6 @@ def inst_header(self) -> InstHeader | None:
174174 if self .expect (lx .RPAREN ):
175175 if (tkn := self .peek ()) and tkn .kind == lx .LBRACE :
176176 return InstHeader (override , register , kind , name , inp , outp )
177- elif self .expect (lx .RPAREN ) and kind == "inst" :
178- # No legacy stack effect if kind is "op".
179- return InstHeader (override , register , "legacy" , name , [], [])
180177 return None
181178
182179 def io_effect (self ) -> tuple [list [InputEffect ], list [OutputEffect ]]:
0 commit comments