Skip to content

Commit 5af30b7

Browse files
committed
remove operands because of binOp
1 parent f65493f commit 5af30b7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

xdsl_smt/dialects/transfer.py

-32
Original file line numberDiff line numberDiff line change
@@ -356,53 +356,21 @@ def __init__(
356356
class GetLowBitsOp(BinOp):
357357
name = "transfer.get_low_bits"
358358

359-
T: ClassVar = VarConstraint(
360-
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
361-
)
362-
363-
val: Operand = operand_def(T)
364-
low_bits: Operand = operand_def(T)
365-
result: OpResult = result_def(T)
366-
367359

368360
@irdl_op_definition
369361
class SetHighBitsOp(BinOp):
370362
name = "transfer.set_high_bits"
371363

372-
T: ClassVar = VarConstraint(
373-
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
374-
)
375-
376-
val: Operand = operand_def(T)
377-
high_bits: Operand = operand_def(T)
378-
result: OpResult = result_def(T)
379-
380364

381365
@irdl_op_definition
382366
class SetLowBitsOp(BinOp):
383367
name = "transfer.set_low_bits"
384368

385-
T: ClassVar = VarConstraint(
386-
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
387-
)
388-
389-
val: Operand = operand_def(T)
390-
low_bits: Operand = operand_def(T)
391-
result: OpResult = result_def(T)
392-
393369

394370
@irdl_op_definition
395371
class SetSignBitOp(BinOp):
396372
name = "transfer.set_sign_bit"
397373

398-
T: ClassVar = VarConstraint(
399-
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
400-
)
401-
402-
val: Operand = operand_def(T)
403-
sign_bit: Operand = operand_def(T)
404-
result: OpResult = result_def(T)
405-
406374

407375
@irdl_op_definition
408376
class IsPowerOf2Op(IRDLOperation):

0 commit comments

Comments
 (0)