coins.mdf
Class MdfModule

java.lang.Object
  extended bycoins.mdf.MdfModule

public class MdfModule
extends java.lang.Object

This class holds the macro flow graphs in the current compile unit.


Field Summary
 java.util.List flowGraph
          The macro flow graphs in the current compile unit
 
Constructor Summary
(package private) MdfModule(MdfEnvironment e, HirRoot hRoot)
          Constructor
 
Method Summary
(package private)  void changeStructure()
          Change the program structure into switch-case.
(package private)  boolean check()
          Debug method
(package private)  void generateMfg()
          Generate macro flow graphs in the current compile unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flowGraph

public final java.util.List flowGraph
The macro flow graphs in the current compile unit

Constructor Detail

MdfModule

MdfModule(MdfEnvironment e,
          HirRoot hRoot)
Constructor

Parameters:
e - The environment of the MDF module
hRoot - The current HirRoot
Method Detail

generateMfg

void generateMfg()
           throws PassException
Generate macro flow graphs in the current compile unit.

Throws:
PassException - Any exceptions in it

changeStructure

void changeStructure()
               throws PassException
Change the program structure into switch-case.

Throws:
PassException - Any exceptions in it

check

boolean check()
Debug method

Returns:
True if any trouble