|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.Instruction scale.backend.alpha.MemoryInstruction scale.backend.alpha.LoadAddressInstruction
public class LoadAddressInstruction
This class represents Alpha load address instructions.
$Id: LoadAddressInstruction.java,v 1.34 2006-11-09 00:56:09 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 | |
---|---|
LoadAddressInstruction(int opcode,
int ra,
int rb)
|
|
LoadAddressInstruction(int opcode,
int ra,
int rb,
Displacement displacement)
|
|
LoadAddressInstruction(int opcode,
int ra,
int rb,
Displacement displacement,
int relocType)
|
Method Summary | |
---|---|
void |
assembler(Assembler asm,
Emit emit)
Insert the assembler representation of the instruction into the output stream. |
boolean |
canBeDeleted(RegisterSet registers)
Return true if the instruction can be deleted without changing program semantics. |
static int |
created()
Return the number of instances of this class created. |
boolean |
defs(int register,
RegisterSet registers)
Return true if the instruction sets the register |
int |
getDestRegister()
Return the destination register or -1 if none. |
int |
getExecutionCycles()
Return the number of cycles that this instruction requires. |
int |
getFunctionalUnit()
Return the number of the functional unit required to execute this instruction. |
boolean |
independent(Instruction inst,
RegisterSet registers)
Return true if this instruction is independent of the specified instruction. |
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. |
boolean |
uses(int register,
RegisterSet registers)
Return true if the instruction uses the register. |
Methods inherited from class scale.backend.alpha.MemoryInstruction |
---|
getDisplacement, getOpcode, getRa, getRb, getRelocType, instructionSize, remapDestRegister, remapRegisters, remapSrcRegister, setDisplacement, setRb, toString |
Methods inherited from class scale.backend.Instruction |
---|
clone, copy, ehash, getBBID, getCopyDest, getCopySrc, 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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LoadAddressInstruction(int opcode, int ra, int rb)
public LoadAddressInstruction(int opcode, int ra, int rb, Displacement displacement)
public LoadAddressInstruction(int opcode, int ra, int rb, Displacement displacement, int relocType)
Method Detail |
---|
public static int created()
public int getDestRegister()
getDestRegister
in class Instruction
public int getExecutionCycles()
getExecutionCycles
in class MemoryInstruction
public int getFunctionalUnit()
getFunctionalUnit
in class MemoryInstruction
public void assembler(Assembler asm, Emit emit)
MemoryInstruction
assembler
in class MemoryInstruction
public void nullify(RegisterSet rs)
nullify
in class Instruction
public boolean canBeDeleted(RegisterSet registers)
canBeDeleted
in class Instruction
public void specifyRegisterUsage(RegisterAllocator rs, int index, int strength)
specifyRegisterUsage
in class Instruction
rs
- is the register set in useindex
- is an index associated with the instructionstrength
- is the importance of the instructionRegisterAllocator.useRegister(int,int,int)
,
RegisterAllocator.defRegister(int,int)
public boolean uses(int register, RegisterSet registers)
uses
in class Instruction
public boolean defs(int register, RegisterSet registers)
defs
in class Instruction
public boolean independent(Instruction inst, RegisterSet registers)
independent
in class MemoryInstruction
inst
- is the specified instruction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |