at.dms.kjc.common
Class StructureIncludeFile

java.lang.Object
  extended by at.dms.kjc.common.StructureIncludeFile
All Implemented Interfaces:
FlatVisitor

public class StructureIncludeFile
extends Object
implements FlatVisitor

Create structs.h and its contents. Used in raw (space) and cluster backends. (These have parted ways, only RAW now.)

Author:
Janis

Field Summary
static boolean debugging
           
 
Method Summary
static void doit(SIRStructure[] structs, FlatNode toplevel)
          Create structures include file in current directory.
static void doit(SIRStructure[] structs, FlatNode toplevel, String dir)
          Create structures include file in directory .
 void visitNode(FlatNode node)
          Don't even think of it! Only public to avoid using an inner class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugging

public static boolean debugging
Method Detail

doit

public static void doit(SIRStructure[] structs,
                        FlatNode toplevel)
Create structures include file in current directory. If standalone switch is not set, also creates push and pop routines for using structure fields.


doit

public static void doit(SIRStructure[] structs,
                        FlatNode toplevel,
                        String dir)
Create structures include file in directory . If standalone switch is not set, also creates push and pop routines for using structure fields.


visitNode

public void visitNode(FlatNode node)
Don't even think of it! Only public to avoid using an inner class.

Specified by:
visitNode in interface FlatVisitor
Parameters:
node - the node that is being currently visited.