coins.simd
Class Util

java.lang.Object
  extended bycoins.simd.Util

public class Util
extends java.lang.Object

Utility class for SIMD optimization classes.


Constructor Summary
(package private) Util()
           
 
Method Summary
static void abort(java.lang.String s)
          Prints an error message and aborts.
static void assert2(boolean p, java.lang.String s)
          Tests a condition, and prints messages and exits if it is false.
static void assert2(boolean p, java.lang.String s, int lineno)
          Tests a condition, and prints messages and exits if it is false.
static java.util.Vector blkToVecs(BasicBlk blk)
           
(package private)  BiList findTargetLir(LirNode root, int opCode, BiList l)
          Search and find the LIR nodes which has the specified operation code.
static void printBlk(BasicBlk blk)
           
static void revV(java.util.Vector v)
           
static void sorry(boolean p, java.lang.String s)
          Tests a condition, and prints a message and exits if it is true.
static void vecsToBlk(BasicBlk blk, java.util.Vector vs)
           
static void warn(java.lang.String s)
          Prints an error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

Util()
Method Detail

findTargetLir

BiList findTargetLir(LirNode root,
                     int opCode,
                     BiList l)
Search and find the LIR nodes which has the specified operation code.

Parameters:
root - The root node of the search
opCode - The specified operation code
l - The list which is stored in the found LIR node
Returns:
The list of LIR nodes

assert2

public static void assert2(boolean p,
                           java.lang.String s,
                           int lineno)
                    throws SimdOptException
Tests a condition, and prints messages and exits if it is false.

Parameters:
p - boolean which represents a condition.
s - String which represents a description of the condition.
lineno - int which represents a line number.
Throws:
SimdOptException

assert2

public static void assert2(boolean p,
                           java.lang.String s)
                    throws SimdOptException
Tests a condition, and prints messages and exits if it is false.

Parameters:
p - boolean which represents a condition.
s - String which represents a description of the condition.
Throws:
SimdOptException

abort

public static void abort(java.lang.String s)
                  throws SimdOptException
Prints an error message and aborts.

Parameters:
s - Strint which represents an error message.
Throws:
SimdOptException

sorry

public static void sorry(boolean p,
                         java.lang.String s)
                  throws SimdOptException
Tests a condition, and prints a message and exits if it is true.

Parameters:
p - boolean which represents a condition.
s - String which represents an error message.
Throws:
SimdOptException

warn

public static void warn(java.lang.String s)
Prints an error message.

Parameters:
s - String which represents an error message.

printBlk

public static void printBlk(BasicBlk blk)

blkToVecs

public static java.util.Vector blkToVecs(BasicBlk blk)

vecsToBlk

public static void vecsToBlk(BasicBlk blk,
                             java.util.Vector vs)

revV

public static void revV(java.util.Vector v)