Skip to content

Commit

Permalink
compiler: Use _visit instead of visit for homogeneity
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Feb 3, 2022
1 parent 5802275 commit aa391ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions devito/ir/iet/visitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def _args_call(self, args):
for i in args:
try:
if isinstance(i, Call):
ret.append(self.visit(i, nested_call=True))
ret.append(self._visit(i, nested_call=True))
elif isinstance(i, Lambda):
ret.append(self.visit(i))
ret.append(self._visit(i))
else:
ret.append(i._C_name)
except AttributeError:
Expand Down Expand Up @@ -448,7 +448,7 @@ def visit_CallableBody(self, o):
body = []
prev = None
for i in o.children:
v = self.visit(i)
v = self._visit(i)
if v:
if prev:
body.append(c.Line())
Expand Down Expand Up @@ -485,7 +485,7 @@ def visit_Operator(self, o):
prefix = ' '.join(i.root.prefix + (i.root.retval,))
esigns.append(c.FunctionDeclaration(c.Value(prefix, i.root.name),
self._args_decl(i.root.parameters)))
efuncs.extend([self.visit(i.root), blankline])
efuncs.extend([self._visit(i.root), blankline])

# Header files, extra definitions, ...
header = [c.Define(*i) for i in o._headers] + [blankline]
Expand Down

0 comments on commit aa391ae

Please sign in to comment.