1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
==================
Analysis utilities
==================
.. currentmodule:: llvmlite.binding
.. function:: get_function_cfg(func, show_inst=True)
Return a string of the control-flow graph of the function,
in DOT format.
* If `func` is not a materialized function, the module
containing the function is parsed to create an actual
LLVM module.
* The `show_inst` flag controls whether the instructions of each block
are ``printed.functions``.
.. function:: view_dot_graph(graph, filename=None, view=False)
View the given DOT source. This function requires the
graphviz package.
* If view is ``True``, the image is rendered and displayed in
the default application in the system. The file path of the
output is returned.
* If view is ``False``, a ``graphviz.Source`` object is
returned.
* If view is ``False`` and the environment is in an IPython
session, an IPython image object is returned and can be
displayed inline in the notebook.
|