FAUST compiler  0.9.9.6b8
Typedefs | Functions
shlysis.hh File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "list.hh"
Include dependency graph for shlysis.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef bool(* barrier )(const Tree &t)

Functions

Tree shprkey (Tree t)
 Create a specific property key for the sharing count of subtrees of t.
int shcount (Tree key, Tree t)
 Return the value of sharing count or 0.

Typedef Documentation

typedef bool(* barrier)(const Tree &t)

Definition at line 58 of file shlysis.hh.


Function Documentation

int shcount ( Tree  key,
Tree  t 
)

Return the value of sharing count or 0.

Definition at line 81 of file shlysis.cpp.

References Node::getInt(), getProperty(), and CTree::node().

Referenced by annotate().

{
    Tree c;
    if (getProperty(t, key, c)) {
        return c->node().getInt();
    } else {
        return 0;
    }
}   

Here is the call graph for this function:

Here is the caller graph for this function:

Tree shprkey ( Tree  t)

Create a specific property key for the sharing count of subtrees of t.

Definition at line 69 of file shlysis.cpp.

References name(), tree(), and unique().

Referenced by ScalarCompiler::sharingAnalysis(), DocCompiler::sharingAnalysis(), and shlysis().

{
    char    name[256];
    snprintf(name, 256, "SHARED IN %p : ", (CTree*)t);
    return tree(unique(name));
}   

Here is the call graph for this function:

Here is the caller graph for this function: