Skip to content

Commit

Permalink
remove operands because of binOp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatsunespica committed Feb 11, 2025
1 parent f65493f commit 5af30b7
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions xdsl_smt/dialects/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,53 +356,21 @@ def __init__(
class GetLowBitsOp(BinOp):
name = "transfer.get_low_bits"

T: ClassVar = VarConstraint(
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
)

val: Operand = operand_def(T)
low_bits: Operand = operand_def(T)
result: OpResult = result_def(T)


@irdl_op_definition
class SetHighBitsOp(BinOp):
name = "transfer.set_high_bits"

T: ClassVar = VarConstraint(
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
)

val: Operand = operand_def(T)
high_bits: Operand = operand_def(T)
result: OpResult = result_def(T)


@irdl_op_definition
class SetLowBitsOp(BinOp):
name = "transfer.set_low_bits"

T: ClassVar = VarConstraint(
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
)

val: Operand = operand_def(T)
low_bits: Operand = operand_def(T)
result: OpResult = result_def(T)


@irdl_op_definition
class SetSignBitOp(BinOp):
name = "transfer.set_sign_bit"

T: ClassVar = VarConstraint(
"T", irdl_to_attr_constraint(TransIntegerType | IntegerType)
)

val: Operand = operand_def(T)
sign_bit: Operand = operand_def(T)
result: OpResult = result_def(T)


@irdl_op_definition
class IsPowerOf2Op(IRDLOperation):
Expand Down

0 comments on commit 5af30b7

Please sign in to comment.