Skip to content

Commit

Permalink
Fix new bug
Browse files Browse the repository at this point in the history
  • Loading branch information
math-fehr committed May 20, 2024
1 parent 5711037 commit 5c82517
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xdsl_pdl/passes/pdl_to_irdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ def match_and_rewrite(self, op: AttributeOp, rewriter: PatternRewriter, /):
return
# In the case of a typed attribute, we assume that it is an integer attribute
if op.value_type is not None:
if not isinstance(op.value_type, IntegerType):
raise Exception(
"Only typed attributes with integer types are supported"
)
value = irdl.AnyOp()
if op.output.name_hint is not None:
value.output.name_hint = op.output.name_hint + "_value"
Expand Down

0 comments on commit 5c82517

Please sign in to comment.