Polaris: PhiPlaceDef Class Reference

PhiPlaceDef Class Reference

Data structure for Phi function placement. More...

#include <PhiPlaceDef.h>

Inheritance diagram for PhiPlaceDef:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PhiPlaceDef (Symbol &v)
 ~PhiPlaceDef ()
virtual Definitiondefinition_clone () const
virtual int structures_OK () const
 Check the structure of the data for errors or inconsistency Return 0 and print error message if problems found, otherwise return 1 without message.
virtual void print (ostream &o) const

Public Attributes

Symbolvar
RefList< Statementassigned
int involved
int C
RefStack< Symbolsyms

Friends

ostream & operator<< (ostream &o, const PhiPlaceDef &p)

Detailed Description

Data structure for Phi function placement.

Polaris C++ VDL

See also:
PhiPlaceDef.h

PhiPlaceDef.cc

DESCRIPTION

Find the joins to place Phi functions. Using the algorithm by Cytron etc. "Efficiently Computing Static Single Assignment Form and Control Dependence Graph". ACM TPLS, Vol 13, No. 4, October, 1991, 451-490.

Definition at line 31 of file PhiPlaceDef.h.


Constructor & Destructor Documentation

PhiPlaceDef::PhiPlaceDef Symbol v  )  [inline]
 

Definition at line 54 of file PhiPlaceDef.h.

References C, involved, register_instance(), and var.

PhiPlaceDef::~PhiPlaceDef  ) 
 

Definition at line 28 of file PhiPlaceDef.cc.

References RefStack< T >::clear(), syms, and unregister_instance().


Member Function Documentation

Definition * PhiPlaceDef::definition_clone  )  const [virtual]
 

Implements Definition.

Definition at line 38 of file PhiPlaceDef.cc.

int PhiPlaceDef::structures_OK  )  const [virtual]
 

Check the structure of the data for errors or inconsistency Return 0 and print error message if problems found, otherwise return 1 without message.

Implements Definition.

Definition at line 45 of file PhiPlaceDef.cc.

References Symbol::structures_OK(), and var.

void PhiPlaceDef::print ostream &  o  )  const [virtual]
 

Implements Definition.

Definition at line 51 of file PhiPlaceDef.cc.

References assigned, C, involved, RefStack< T >::print(), RefList< T >::print(), syms, and var.


Friends And Related Function Documentation

ostream& operator<< ostream &  o,
const PhiPlaceDef p
[friend]
 

Definition at line 22 of file PhiPlaceDef.cc.


Member Data Documentation

Symbol* PhiPlaceDef::var
 

Definition at line 35 of file PhiPlaceDef.h.

Referenced by SSAProgramUnit::init_SSA_stack(), PhiPlaceDef(), SSAProgramUnit::place_phi_functions(), print(), SSAProgramUnit::SEARCH(), SEARCH(), and structures_OK().

RefList<Statement> PhiPlaceDef::assigned
 

Definition at line 36 of file PhiPlaceDef.h.

Referenced by SSAProgramUnit::init_variable_set(), SSAProgramUnit::place_phi_functions(), and print().

int PhiPlaceDef::involved
 

Definition at line 37 of file PhiPlaceDef.h.

Referenced by DFS_S(), SSAProgramUnit::init_SSA_stack(), SSAProgramUnit::init_variable_set(), PhiPlaceDef(), SSAProgramUnit::place_phi_functions(), print(), SSAProgramUnit::SEARCH(), and SEARCH().

int PhiPlaceDef::C
 

Definition at line 38 of file PhiPlaceDef.h.

Referenced by PhiPlaceDef(), print(), SSAProgramUnit::SEARCH(), and SEARCH().

RefStack<Symbol> PhiPlaceDef::syms
 

Definition at line 40 of file PhiPlaceDef.h.

Referenced by SSAProgramUnit::init_SSA_stack(), print(), SSAProgramUnit::SEARCH(), SEARCH(), and ~PhiPlaceDef().


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:07:53 2005