Skip to content
Snippets Groups Projects
Commit 36790774 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni
Browse files

Adding a missing argument to IdentityMapper

parent 7095ac70
No related branches found
No related tags found
2 merge requests!426Discussion: kernel_callables_v3-edit2,!246WIP: Kernel Callables
...@@ -688,7 +688,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper): ...@@ -688,7 +688,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
tuple(self.rec(child) tuple(self.rec(child)
for child in expr.parameters)) for child in expr.parameters))
else: else:
return IdentityMapper.map_call(self, expr) return IdentityMapper.map_call(self, expr, expn_state)
else: else:
return self.map_substitution(name, tag, expr.parameters, expn_state) return self.map_substitution(name, tag, expr.parameters, expn_state)
...@@ -713,7 +713,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper): ...@@ -713,7 +713,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
for key, val in six.iteritems(expr.kw_parameters)) for key, val in six.iteritems(expr.kw_parameters))
) )
else: else:
return IdentityMapper.map_call_with_kwargs(self, expr) return IdentityMapper.map_call_with_kwargs(self, expr, expn_state)
def map_reduction(self, expr, expn_state): def map_reduction(self, expr, expn_state):
from loopy.symbolic import Reduction from loopy.symbolic import Reduction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment