We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce8c15 commit 1ab1045Copy full SHA for 1ab1045
xdsl/transforms/convert_pdl_to_pdl_interp/conversion.py
@@ -172,15 +172,15 @@ def _extract_operation_predicates(
172
"""Extract predicates for an operation"""
173
predicates: list[PositionalPredicate] = []
174
175
+ if not isinstance(op_op, pdl.OperationOp):
176
+ return predicates
177
+
178
if not op_pos.is_root():
179
is_not_null = Predicate.get_is_not_null()
180
predicates.append(
181
PositionalPredicate(q=is_not_null.q, a=is_not_null.a, position=op_pos)
182
)
183
- if not isinstance(op_op, pdl.OperationOp):
- return predicates
-
184
# Operation name check
185
if op_op.opName:
186
op_name = op_op.opName.data
0 commit comments