Skip to content
Snippets Groups Projects
Commit b5e01ace authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Improve order in kernel printing (print substs next to insns)

parent a3abcb86
No related branches found
No related tags found
No related merge requests found
......@@ -922,12 +922,6 @@ class LoopKernel(RecordWithoutPickling):
line = "%s: %s" % (iname, self.iname_to_tag.get(iname))
lines.append(line)
if self.substitutions:
lines.append(sep)
lines.append("SUBSTIUTION RULES:")
for rule_name in sorted(six.iterkeys(self.substitutions)):
lines.append(str(self.substitutions[rule_name]))
if self.temporary_variables:
lines.append(sep)
lines.append("TEMPORARIES:")
......@@ -935,6 +929,12 @@ class LoopKernel(RecordWithoutPickling):
key=lambda tv: tv.name):
lines.append(str(tv))
if self.substitutions:
lines.append(sep)
lines.append("SUBSTIUTION RULES:")
for rule_name in sorted(six.iterkeys(self.substitutions)):
lines.append(str(self.substitutions[rule_name]))
lines.append(sep)
lines.append("INSTRUCTIONS:")
loop_list_width = 35
......
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