scale.backend.alpha
Class RPCCInstruction
java.lang.Object
scale.backend.Instruction
scale.backend.alpha.MemoryInstruction
scale.backend.alpha.RPCCInstruction
- All Implemented Interfaces:
- java.lang.Cloneable
public class RPCCInstruction
- extends MemoryInstruction
This class represents an Alpha RPCC instruction.
$Id: RPCCInstruction.java,v 1.15 2005-02-07 21:27:21 burrill Exp $
Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
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, 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, nullify, 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 |
RPCCInstruction
public RPCCInstruction(int ra)
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 useindex
- is an index associated with the instructionstrength
- is the importance of the instruction- See Also:
RegisterAllocator.useRegister(int,int,int)
,
RegisterAllocator.defRegister(int,int)
defs
public boolean defs(int register,
RegisterSet registers)
- Return true if the instruction uses the register.
- Overrides:
defs
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