@@ -356,53 +356,21 @@ def __init__(
356
356
class GetLowBitsOp (BinOp ):
357
357
name = "transfer.get_low_bits"
358
358
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
-
367
359
368
360
@irdl_op_definition
369
361
class SetHighBitsOp (BinOp ):
370
362
name = "transfer.set_high_bits"
371
363
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
-
380
364
381
365
@irdl_op_definition
382
366
class SetLowBitsOp (BinOp ):
383
367
name = "transfer.set_low_bits"
384
368
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
-
393
369
394
370
@irdl_op_definition
395
371
class SetSignBitOp (BinOp ):
396
372
name = "transfer.set_sign_bit"
397
373
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
-
406
374
407
375
@irdl_op_definition
408
376
class IsPowerOf2Op (IRDLOperation ):
0 commit comments