Permalink
Browse files

Omit type information for graphviz

  • Loading branch information...
1 parent 53b77f7 commit 1719bdb9cfcfb052944983a1a554fed14c10a6c6 @markflorisson committed Aug 13, 2012
Showing with 7 additions and 3 deletions.
  1. +6 −2 Cython/Compiler/Vector.py
  2. +1 −1 Cython/minivect
@@ -200,9 +200,10 @@ def __init__(self, context, name):
super(CythonGraphvizGenerator, self).__init__(context, name)
self.set_mini_colors()
- def format_node(self, node):
+ def format_node(self, node, want_type_info=True):
if isinstance(node, miniast.Node):
- return super(CythonGraphvizGenerator, self).format_node(node)
+ return super(CythonGraphvizGenerator, self).format_node(
+ node, want_type_info)
result = type(node).__name__
if isinstance(node, (ExprNodes.BinopNode, ExprNodes.UnopNode)):
@@ -680,6 +681,9 @@ def run_specializer(self, code, specializer, guard=None, counter=None):
"""
if write_graphviz and 'array_expression' in self.function.name:
mangled_name = "_%s" % specializer.specialization_name
+ if specializer.is_vectorizing_specializer:
+ mangled_name = "%s_vector%d" % (mangled_name,
+ specializer.vector_size)
filename = graphviz_out_filename % mangled_name
print "Writing to", filename

0 comments on commit 1719bdb

Please sign in to comment.