cetus.transforms
Class LoopInterchange

java.lang.Object
  extended by cetus.analysis.AnalysisPass
      extended by cetus.transforms.LoopInterchange

public class LoopInterchange
extends AnalysisPass

Exchage loops if they are perfect nested loop.


Field Summary
 
Fields inherited from class cetus.analysis.AnalysisPass
program
 
Constructor Summary
LoopInterchange(Program program)
           
 
Method Summary
 java.lang.String getPassName()
           
 boolean isLegal(java.util.LinkedList<Loop> nest, int src, int target)
           
 void start()
           
 void swapLoop(ForLoop loop1, ForLoop loop2)
           
 
Methods inherited from class cetus.analysis.AnalysisPass
run, startAndCheck
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopInterchange

public LoopInterchange(Program program)
Method Detail

getPassName

public java.lang.String getPassName()
Specified by:
getPassName in class AnalysisPass

start

public void start()
Specified by:
start in class AnalysisPass

swapLoop

public void swapLoop(ForLoop loop1,
                     ForLoop loop2)

isLegal

public boolean isLegal(java.util.LinkedList<Loop> nest,
                       int src,
                       int target)