coins.ffront
Class CommonManager

java.lang.Object
  extended bycoins.ffront.BaseManager
      extended bycoins.ffront.CommonManager

public class CommonManager
extends BaseManager

Manage Common variables

  Block variables storage image in C

  union{
    struct{
      int a;
      int b;
    } unit_name_A;
    struct{
      int c;
      int d;
    } unit_name_B;
  } BlockNameA;
  ...


Field Summary
(package private)  java.util.Map bk_table_
           
(package private)  SymTable c_sym_table_
           
(package private)  DeclManager fDeclMgr
           
(package private)  SymTable g_sym_table_
           
(package private)  java.util.Map id_table_
           
(package private)  java.lang.String unit_name_
           
 
Fields inherited from class coins.ffront.BaseManager
fHir, fHirUtil, fTypeUtil, hir, hirRoot, sym, symRoot
 
Constructor Summary
(package private) CommonManager(FirToHir fth, DeclManager declm)
           
 
Method Summary
(package private)  void commitInitialValue()
           
(package private)  Var defineGlobalVal(java.lang.String ident, Type type)
           
(package private)  Var getGlobalBlockVar(java.lang.String ident)
           
(package private)  UnionType getGlobalBlockVarType(java.lang.String ident)
           
(package private)  int getHeightOnBlockVar(java.lang.String ident)
           
(package private)  boolean isBlockVariable(java.lang.String ident)
           
(package private)  void makeBlockStructure(java.lang.String name, FirList list)
           
(package private)  Exp makeExp(java.lang.String ident)
           
(package private)  void processCommon(java.lang.String unit_name)
          Process Common statements in an program unit.
(package private)  void setInitialValue(java.lang.String lexem, Exp exp)
           
(package private)  Sym symBlockVariable(java.lang.String ident)
           
 
Methods inherited from class coins.ffront.BaseManager
dp, printMsgFatal, printMsgRecovered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id_table_

java.util.Map id_table_

bk_table_

java.util.Map bk_table_

g_sym_table_

SymTable g_sym_table_

c_sym_table_

SymTable c_sym_table_

unit_name_

java.lang.String unit_name_

fDeclMgr

DeclManager fDeclMgr
Constructor Detail

CommonManager

CommonManager(FirToHir fth,
              DeclManager declm)
Method Detail

processCommon

void processCommon(java.lang.String unit_name)
Process Common statements in an program unit.


makeBlockStructure

void makeBlockStructure(java.lang.String name,
                        FirList list)

defineGlobalVal

Var defineGlobalVal(java.lang.String ident,
                    Type type)

makeExp

Exp makeExp(java.lang.String ident)

isBlockVariable

boolean isBlockVariable(java.lang.String ident)
Returns:
true if ident is block variable

symBlockVariable

Sym symBlockVariable(java.lang.String ident)

getGlobalBlockVarType

UnionType getGlobalBlockVarType(java.lang.String ident)

getGlobalBlockVar

Var getGlobalBlockVar(java.lang.String ident)

getHeightOnBlockVar

int getHeightOnBlockVar(java.lang.String ident)

setInitialValue

void setInitialValue(java.lang.String lexem,
                     Exp exp)

commitInitialValue

void commitInitialValue()