transonic.analyses.util
Utilities for the analyses
Functions
|
Adapt code_dependance to the call of a jitted function in a jitted function: |
|
Change the name of changed_node in code_dep by adding "__" + func + "__" at the beginning of the imported module, and return the modified code |
|
|
|
|
|
Create a filtered code with what is needed to create the annotations |
|
Filter the module to keep only the necessary nodes needed by functions or class in the parameter names |
|
Return the path of node (instance of ast.Import or ast.ImportFrom) |
|
Get the comments in a node |
|
Create the annotations from a definition node |
|
Get all imported functions needed by boosted functions and methods at multiple levels, (i.e get functions needed by functions imported by boosted function) and add them into code_ext |
|
Pretty print the AST |
|
Print the code corresponding to a tree or a node |
Classes
|
Analyse to find the last line of a node |