scale.backend.alpha
Class BarriorInstruction

java.lang.Object
  extended by scale.backend.Instruction
      extended by scale.backend.alpha.MemoryInstruction
          extended by scale.backend.alpha.BarriorInstruction
All Implemented Interfaces:
java.lang.Cloneable

public class BarriorInstruction
extends MemoryInstruction

This class represents an Alpha Memory Barrior instruction.

$Id: BarriorInstruction.java,v 1.16 2006-11-09 14:40:25 burrill Exp $

Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Field Summary
 
Fields inherited from class scale.backend.alpha.MemoryInstruction
displacement, opcode, ra, rb, relocType
 
Constructor Summary
BarriorInstruction()
           
 
Method Summary
 void assembler(Assembler gen, Emit emit)
          Insert the assembler representation of the instruction into the output stream.
static int created()
          Return the number of instances of this class that were created.
 void nullify(RegisterSet rs)
          Mark the instruction as no longer needed.
 void specifyRegisterUsage(RegisterAllocator rs, int index, int strength)
          Specify the registers used by this instruction.
 java.lang.String toString()
           
 
Methods inherited from class scale.backend.alpha.MemoryInstruction
getDisplacement, getExecutionCycles, getFunctionalUnit, getOpcode, getRa, getRb, getRelocType, independent, instructionSize, remapDestRegister, remapRegisters, remapSrcRegister, setDisplacement, setRb
 
Methods inherited from class scale.backend.Instruction
canBeDeleted, clone, copy, defs, ehash, getBBID, getCopyDest, getCopySrc, getDestRegister, getLoopNumber, getNext, getPredicate, getPredicates, getSrcRegisters, getTag, isBranch, isCopy, isLabel, isLoad, isMandatory, isMarker, isPhi, isPredicated, isPredicatedOnTrue, isPrefetch, isSpillInstruction, isSpillLoadPoint, isSpillStorePoint, isStore, markSpillInstruction, mods, nullified, numPredicates, removePredicates, setBBID, setLoopNumber, setMandatory, setNext, setPredicate, setPredicate, setPredicatedOnTrue, setPredicates, setsSpecialReg, setTag, specifyNotSpillLoadPoint, specifySpillStorePoint, uses
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BarriorInstruction

public BarriorInstruction()
Method Detail

created

public static int created()
Return the number of instances of this class that were created.


nullify

public void nullify(RegisterSet rs)
Mark the instruction as no longer needed.

Overrides:
nullify in class Instruction

assembler

public void assembler(Assembler gen,
                      Emit emit)
Insert the assembler representation of the instruction into the output stream.

Overrides:
assembler in class MemoryInstruction

toString

public java.lang.String toString()
Overrides:
toString in class MemoryInstruction

specifyRegisterUsage

public void specifyRegisterUsage(RegisterAllocator rs,
                                 int index,
                                 int strength)
Specify the registers used by this instruction.

Specified by:
specifyRegisterUsage in class Instruction
Parameters:
rs - is the register set in use
index - is an index associated with the instruction
strength - is the importance of the instruction
See Also:
RegisterAllocator.useRegister(int,int,int), RegisterAllocator.defRegister(int,int)