|
FAUST compiler
0.9.9.6b8
|
Uses colors to analyze dependencies among sub expressions. More...

Go to the source code of this file.
Functions | |
| static int | allocateColor (Tree exp) |
| allocate a new unique color for exp More... | |
| static void | colorize (Tree exp, int color) |
| add color information to exp and all its subtrees More... | |
| static void | uncolorize (Tree exp) |
| remove color information More... | |
| static void | listMultiColoredExp (Tree exp, set< Tree > &lst) |
| list multicolored subexpressions of exp More... | |
| void | splitDependance (const set< Tree > &exps, set< Tree > &post, set< Tree > &pre) |
| Analyze a set of expressions to discover its dependencies that is subexpressions common to at least two of these expressions. More... | |
| static void | addColor (Tree exp, int color) |
| a color to the colors of exp More... | |
| static bool | hasColor (Tree exp, int color) |
| true if exp is already colored with color More... | |
| static int | colorsCount (Tree exp) |
| returns the number of colors of exp More... | |
| static void | clearColors (Tree exp) |
| remove the color property of exp More... | |
| void | setColorProperty (Tree sig, set< int > *colorset) |
| set the color-set property of sig More... | |
| set< int > * | getColorProperty (Tree sig) |
| retrieve the color-set property of sig More... | |
Variables | |
| Tree | COLORPROPERTY = tree(symbol("ColorProperty")) |
Uses colors to analyze dependencies among sub expressions.
Definition in file colorize.cpp.
|
static |
a color to the colors of exp
Add a color to the colorset of exp.
Create an empty coloset if needed.
| sig | the signal we want to color |
| color | the color used |
Definition at line 154 of file colorize.cpp.
References getColorProperty(), and setColorProperty().
Referenced by colorize().


|
static |
allocate a new unique color for exp
Allocate a unique color (an integer) for an expression.
by converting its address into an integer
Definition at line 59 of file colorize.cpp.
Referenced by splitDependance().

|
static |
remove the color property of exp
Count the number of colors of exp.
| exp | the expression we want to count the colors |
Definition at line 203 of file colorize.cpp.
References getColorProperty().
Referenced by uncolorize().


|
static |
add color information to exp and all its subtrees
Add a color to all the expression tree.
Definition at line 73 of file colorize.cpp.
References addColor(), getSubSignals(), and hasColor().
Referenced by splitDependance().


|
static |
returns the number of colors of exp
Count the number of colors of exp.
| exp | the expression we want to count the colors |
Definition at line 187 of file colorize.cpp.
References getColorProperty().
Referenced by listMultiColoredExp(), and uncolorize().


| set<int>* getColorProperty | ( | Tree | sig | ) |
retrieve the color-set property of sig
| sig | the signal we want to know the color-set property |
Definition at line 135 of file colorize.cpp.
References COLORPROPERTY, getProperty(), and tree2ptr().
Referenced by addColor(), clearColors(), colorsCount(), and hasColor().


|
static |
true if exp is already colored with color
Test if exp as color in its colorset.
| sig | the signal we want to test |
| color | the color to test |
Definition at line 171 of file colorize.cpp.
References getColorProperty().
Referenced by colorize().


list multicolored subexpressions of exp
Make a set of the multicolored sub-expressions.
Definition at line 99 of file colorize.cpp.
References colorsCount(), and getSubSignals().
Referenced by splitDependance().


| void setColorProperty | ( | Tree | sig, |
| set< int > * | colorset | ||
| ) |
set the color-set property of sig
| sig | the signal we want to type |
| t | the type of the signal |
Definition at line 125 of file colorize.cpp.
References COLORPROPERTY, setProperty(), and tree().
Referenced by addColor().


Analyze a set of expressions to discover its dependencies that is subexpressions common to at least two of these expressions.
| exps | set of expressions to analyze |
| post | resulting set of post expressions |
| pre | resulting set of pre expressions |
Definition at line 28 of file colorize.cpp.
References allocateColor(), colorize(), listMultiColoredExp(), and uncolorize().

|
static |
remove color information
Remove the colors of an expression tree.
Definition at line 86 of file colorize.cpp.
References clearColors(), colorsCount(), and getSubSignals().
Referenced by splitDependance().


Definition at line 118 of file colorize.cpp.
Referenced by getColorProperty(), and setColorProperty().
1.8.7