Skip to content

Commit

Permalink
Support *args in CombineMapper.map_sub_array_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 2, 2024
1 parent 8116d69 commit 913e360
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions loopy/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ def map_reduction(self, expr, *args, **kwargs):
def map_type_cast(self, expr, *args, **kwargs):
return self.rec(expr.child, *args, **kwargs)

def map_sub_array_ref(self, expr):
def map_sub_array_ref(self, expr, *args, **kwargs):
return self.combine((
self.rec(expr.subscript),
self.combine(tuple(self.rec(idx) for idx in expr.swept_inames))))
self.rec(expr.subscript, *args, **kwargs),
self.combine(tuple(
self.rec(idx, *args, **kwargs)
for idx in expr.swept_inames))))

map_linear_subscript = CombineMapperBase.map_subscript

Expand Down

0 comments on commit 913e360

Please sign in to comment.