coins.ssa
クラス SsaSymTab

java.lang.Object
  |
  +--coins.ssa.SsaSymTab

class SsaSymTab
extends java.lang.Object

The symbol table of SSA variables.


フィールドの概要
static java.lang.String DUMMY_FUNC
           
(パッケージプライベート)  int nPhyRegs
           
(パッケージプライベート)  EnumRegVars rn
           
 
コンストラクタの概要
(パッケージプライベート) SsaSymTab(SsaEnvironment e, Function f)
          Constructor
Create a new symbol table in the SSA form.
 
メソッドの概要
(パッケージプライベート)  int compare(Symbol s1, Symbol s2)
          Compare the specified two symbols.
(パッケージプライベート)  Symbol currentAddressSymbol(Symbol s)
          Get the current symbol of the FRAME or the STATIC node.
 boolean isPhyReg(Symbol s)
           
(パッケージプライベート)  Symbol newAddressSymbol(Symbol s)
          Get a new symbol of the FRAME node or the STATIC node.
(パッケージプライベート)  Symbol newGlobalSymbol(java.lang.String name)
           
(パッケージプライベート)  Symbol newSsaSymbol(java.lang.String name, int type)
          Get a new symbol of the SSA variable.
(パッケージプライベート)  Symbol newSsaSymbol(Symbol s)
          Get a new symbol of the SSA variable.
(パッケージプライベート)  Symbol newSsaSymbol1(Symbol s)
          Called from TranslateToSsa.
(パッケージプライベート)  Symbol orgSym(Symbol s)
          Get the original symbol of the specified symbol.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

rn

EnumRegVars rn

nPhyRegs

int nPhyRegs

DUMMY_FUNC

public static final java.lang.String DUMMY_FUNC
関連項目:
定数フィールド値
コンストラクタの詳細

SsaSymTab

SsaSymTab(SsaEnvironment e,
          Function f)
Constructor
Create a new symbol table in the SSA form. Initialize all local variables in the current function.

パラメータ:
e - The environment of the SSA module
f - The current function
メソッドの詳細

compare

int compare(Symbol s1,
            Symbol s2)
Compare the specified two symbols.

パラメータ:
s1 - The first specified symbol
s2 - The second specified symbol
戻り値:
If s1 and s2 are the same, return 0. If s1 has the large suffix number, then return 1. Otherwise return -1.

orgSym

Symbol orgSym(Symbol s)
Get the original symbol of the specified symbol.

パラメータ:
s - The specified symbol
戻り値:
Original symbol of the specified one

newAddressSymbol

Symbol newAddressSymbol(Symbol s)
Get a new symbol of the FRAME node or the STATIC node.

パラメータ:
s - The old symbol
戻り値:
A new symbol

currentAddressSymbol

Symbol currentAddressSymbol(Symbol s)
Get the current symbol of the FRAME or the STATIC node.

パラメータ:
s - The specified symbol
戻り値:
The current symbol for the specified symbol

newSsaSymbol

Symbol newSsaSymbol(Symbol s)
Get a new symbol of the SSA variable.

パラメータ:
s - The old symbol
戻り値:
A new symbol of the SSA variable

newSsaSymbol1

Symbol newSsaSymbol1(Symbol s)
Called from TranslateToSsa. Get a new symbol of the SSA variable.

パラメータ:
s - The old symbol
戻り値:
A new symbol of the SSA variable

isPhyReg

public boolean isPhyReg(Symbol s)

newGlobalSymbol

Symbol newGlobalSymbol(java.lang.String name)

newSsaSymbol

Symbol newSsaSymbol(java.lang.String name,
                    int type)
Get a new symbol of the SSA variable.

パラメータ:
name - The base name of the symbol
type - The type of the symbol
戻り値:
A new symbol of the SSA variable