Skip to content

Commit

Permalink
Update to xDSL main. (Modulo deprecated calls)
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyChacal committed Oct 6, 2023
1 parent 94b77fe commit ac5d6bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devito/ir/ietxdsl/cluster_to_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _visit_math_nodes(self, node: Expr) -> SSAValue:
else:
raise ValueError("Expected float or int as pow args!")

op = op_cls.get(base, ex)
op = op_cls(base, ex)
self.block.add_op(op)
return op.result

Expand Down
6 changes: 3 additions & 3 deletions devito/ir/ietxdsl/iet_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class For(IRDLOperation):

subindices: IntAttr = attr_def(IntAttr)

properties: ArrayAttr[builtin.StringAttr] = attr_def(ArrayAttr[builtin.StringAttr])
props: ArrayAttr[builtin.StringAttr] = attr_def(ArrayAttr[builtin.StringAttr])
pragmas: ArrayAttr[builtin.StringAttr] = attr_def(ArrayAttr[builtin.StringAttr])

def subindice_ssa_vals(self) -> tuple[SSAValue, ...]:
Expand All @@ -380,7 +380,7 @@ def parallelism_property(self) -> str | None:
Return either "parallel" or "sequential" (or None),
depending on the properties present
"""
for attr in self.properties.data:
for attr in self.props.data:
if attr.data in ('parallel', 'sequential'):
return attr.data
return None
Expand All @@ -405,7 +405,7 @@ def get(
for i in range(subindices):
body.blocks[0].args[i+1].name_hint = f"{loop_var_name[0]}{i}"

return For.build(
return For(
operands=[lb, ub, step],
attributes={
'subindices': IntAttr(subindices),
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ distributed<2022.10
pytest>=3.6,<8.0
pytest-runner
pytest-cov
xdsl>=0.11
git+https://github.com/xdslproject/xdsl.git@138298bdaaf44e54d07cf905615936f90b050a12
frozenlist<=1.4

0 comments on commit ac5d6bd

Please sign in to comment.