at.dms.kjc.common
Class ConvertLocalsToFields

java.lang.Object
  extended by at.dms.kjc.common.ConvertLocalsToFields

public class ConvertLocalsToFields
extends Object

This class converts certain (large) local variables into fields so that they are eventually declared as globals rather than locals, thereby avoiding stack-overflow problems. THIS TRANSFORMATION IS NOT SAFE YET!-- because it does not re-initialize the field in place of its previous declaration. See the TODO list below for how to make this safe. IF YOU FIX IT TO BE SAFE, please remove safety warning in strc.


Constructor Summary
ConvertLocalsToFields()
           
 
Method Summary
static void doit(SIRStream str)
          Converts locals to fields for all methods of all filters in 'str'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertLocalsToFields

public ConvertLocalsToFields()
Method Detail

doit

public static void doit(SIRStream str)
Converts locals to fields for all methods of all filters in 'str'.