harpoon.IR.Quads
Class SSIToSSA

java.lang.Object
  extended by harpoon.IR.Quads.SSIToSSA

public class SSIToSSA
extends Object

SSIToSSA renames variables to eliminate sigma functions in an SSI-form codeview, yielding an SSA codeview.

Version:
$Id: SSIToSSA.java,v 1.7 2004/02/08 01:55:25 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
 AllocationInformation<Quad> allocInfo
          AllocationInformation for the new quads, or null if no allocation information for the old quads was supplied.
 Derivation<Quad> derivation
          Derivation for the new quads, or null if no Derivation for the old quads was supplied.
 Map<Quad,Quad> quadMap
          Map from old ssi quads to new ssa quads.
 Map<Quad,Quad> revQuadMap
          Map from new ssa quads to old ssi quads.
 TempMap revTempMap
          Map from new ssa temps to old ssi temps.
 HEADER rootQuad
          New root element (of the SSA-form graph)
 TempMap tempMap
          Map from old ssi temps to new ssa temps.
 
Constructor Summary
SSIToSSA(Code c, QuadFactory nqf)
          Converts the given code (in SSI form) to a graph graph in SSA form created using the given code factory nqf.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootQuad

public final HEADER rootQuad
New root element (of the SSA-form graph)


tempMap

public final TempMap tempMap
Map from old ssi temps to new ssa temps.


revTempMap

public final TempMap revTempMap
Map from new ssa temps to old ssi temps.


quadMap

public final Map<Quad,Quad> quadMap
Map from old ssi quads to new ssa quads.


revQuadMap

public final Map<Quad,Quad> revQuadMap
Map from new ssa quads to old ssi quads.


allocInfo

public final AllocationInformation<Quad> allocInfo
AllocationInformation for the new quads, or null if no allocation information for the old quads was supplied.


derivation

public final Derivation<Quad> derivation
Derivation for the new quads, or null if no Derivation for the old quads was supplied.

Constructor Detail

SSIToSSA

public SSIToSSA(Code c,
                QuadFactory nqf)
Converts the given code (in SSI form) to a graph graph in SSA form created using the given code factory nqf.