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().

00082 {
00083     Tree c;
00084     if (getProperty(t, key, c)) {
00085         return c->node().getInt();
00086     } else {
00087         return 0;
00088     }
00089 }   

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().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Tue Aug 10 08:04:16 2010 for FAUST compiler by  doxygen 1.6.3