Skip to content

Commit

Permalink
Combine constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
compor committed Jan 30, 2025
1 parent a173dcc commit ab1834d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xdsl/dialects/arith.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ class ConstantOp(IRDLOperation):
result = result_def(_T)
value = prop_def(
TypedAttributeConstraint(
IntegerAttr.constr(type=IndexTypeConstr)
| IntegerAttr.constr(type=SignlessIntegerConstraint)
IntegerAttr.constr(type=SignlessIntegerConstraint | IndexTypeConstr)
| BaseAttr[FloatAttr[AnyFloat]](FloatAttr)
| BaseAttr(DenseIntOrFPElementsAttr),
_T,
Expand Down

0 comments on commit ab1834d

Please sign in to comment.