coins.simd
Class SimdDriver

java.lang.Object
  extended bycoins.simd.SimdDriver
All Implemented Interfaces:
LocalTransformer, Transformer

public class SimdDriver
extends java.lang.Object
implements LocalTransformer

Class for SIMD optimization part driver


Field Summary
 IoRoot ioRoot
           
static int THR
           
 
Constructor Summary
SimdDriver(Module m, IoRoot io, CompileSpecification coinsSpec)
          Constructs a SimdDriver object
 
Method Summary
 boolean callSimdOpt(Function f, ImList args)
           
 boolean doIt(Data data, ImList args)
          Transform the DATA component.
 boolean doIt(Function f, ImList args)
          SIMD Optimize
(package private)  LirNode makeAlignmentTestCode(Function func, BiList aligns)
           
(package private)  LirNode makeBranch(Function func, LirNode cond, LirNode to1, LirNode to2)
           
 java.lang.String name()
          Return the name of the transforming engine.
 java.lang.String subject()
          Return brief description of the tranformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ioRoot

public final IoRoot ioRoot

THR

public static final int THR
See Also:
Constant Field Values
Constructor Detail

SimdDriver

public SimdDriver(Module m,
                  IoRoot io,
                  CompileSpecification coinsSpec)
Constructs a SimdDriver object

Parameters:
m - Module
io - IoRoot
coinsSpec - CompilerSpecification
Method Detail

doIt

public boolean doIt(Data data,
                    ImList args)
Description copied from interface: LocalTransformer
Transform the DATA component.

Specified by:
doIt in interface LocalTransformer
Parameters:
data - DATA to be transformed.
args - list of optional arguments.
Returns:
true if transformation suceeded.

name

public java.lang.String name()
Description copied from interface: Transformer
Return the name of the transforming engine. Used for trace tag name.

Specified by:
name in interface Transformer
Returns:
the name of the transforming engine.

subject

public java.lang.String subject()
Description copied from interface: Transformer
Return brief description of the tranformation.

Specified by:
subject in interface Transformer
Returns:
brief description of the tranformation.

doIt

public boolean doIt(Function f,
                    ImList args)
SIMD Optimize

Specified by:
doIt in interface LocalTransformer
Parameters:
f - Function
args - ImList
Returns:
true if transformation suceeded.

callSimdOpt

public boolean callSimdOpt(Function f,
                           ImList args)

makeAlignmentTestCode

LirNode makeAlignmentTestCode(Function func,
                              BiList aligns)

makeBranch

LirNode makeBranch(Function func,
                   LirNode cond,
                   LirNode to1,
                   LirNode to2)