#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "list.hh"
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. |
Definition at line 58 of file shlysis.hh.
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 }
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 }