at.dms.kjc.common
Class ConvertLocalsToFields
java.lang.Object
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.
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 |
ConvertLocalsToFields
public ConvertLocalsToFields()
doit
public static void doit(SIRStream str)
- Converts locals to fields for all methods of all filters in
'str'.