コード例 #1
0
ファイル: ssaviz.py プロジェクト: ASPP/numba
def render_ssa(cfflow, symtab, output_file):
    "Render the SSA graph given the flow.CFGFlow and the symbol table"
    cfstats = [stat for b in cfflow.blocks for stat in b.stats]
    defs = [stat.lhs.variable for stat in cfstats
                                  if isinstance(stat, NameAssignment)]
    nodes = symtab.values() + defs
    render(nodes, output_file, SSAGraphAdaptor(), SSAGraphRenderer())
コード例 #2
0
ファイル: ssaviz.py プロジェクト: winstonewert/numba
def render_ssa(cfflow, symtab, output_file):
    "Render the SSA graph given the flow.CFGFlow and the symbol table"
    cfstats = [stat for b in cfflow.blocks for stat in b.stats]
    defs = [
        stat.lhs.variable for stat in cfstats
        if isinstance(stat, NameAssignment)
    ]
    nodes = symtab.values() + defs
    render(nodes, output_file, SSAGraphAdaptor(), SSAGraphRenderer())
コード例 #3
0
def render_cfg(cfflow, output_file):
    "Render the SSA graph given the flow.CFGFlow and the symbol table"
    graphviz.render(cfflow.blocks, output_file, CFGGraphAdaptor(),
                    CFGGraphRenderer())
コード例 #4
0
ファイル: astviz.py プロジェクト: ejmvar/numba
def render_ast(ast, output_file):
    render([ast], output_file, ASTGraphAdaptor(), ASTGraphRenderer())
コード例 #5
0
ファイル: astviz.py プロジェクト: winstonewert/numba
def render_ast(ast, output_file):
    render([ast], output_file, ASTGraphAdaptor(), ASTGraphRenderer())
コード例 #6
0
ファイル: cfgviz.py プロジェクト: Juanlu001/numba
def render_cfg(cfflow, output_file):
    "Render the SSA graph given the flow.CFGFlow and the symbol table"
    graphviz.render(cfflow.blocks, output_file, CFGGraphAdaptor(), CFGGraphRenderer())