|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.Instruction scale.backend.sparc.SparcInstruction scale.backend.sparc.FltOpInstruction scale.backend.sparc.FmoveInstruction
public class FmoveInstruction
This class represents Sparc floating point move instructions.
$Id: FmoveInstruction.java,v 1.19 2006-10-04 13:59:15 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.sparc.FltOpInstruction |
---|
rd, rs2 |
Fields inherited from class scale.backend.sparc.SparcInstruction |
---|
opcode, setCC, useCC |
Constructor Summary | |
---|---|
FmoveInstruction(int opcode,
int cc,
int rs2,
int rd)
|
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 created. |
int[] |
getSrcRegisters()
Return the source registers or null if none. |
boolean |
independent(Instruction inst,
RegisterSet registers)
Return true if this instruction is independent of the specified instruction. |
void |
specifyRegisterUsage(RegisterAllocator rs,
int index,
int strength)
Specify the registers used by this instruction. |
java.lang.String |
toString()
|
boolean |
uses(int register,
RegisterSet registers)
Return true if the instruction uses the register. |
Methods inherited from class scale.backend.sparc.FltOpInstruction |
---|
canBeDeleted, defs, getDestRegister, remapDestRegister, remapRegisters, remapSrcRegister |
Methods inherited from class scale.backend.sparc.SparcInstruction |
---|
assembleDisp, getOpcode, independentCC, instructionSize, setOpcode, setsCC, setSetCC, setsSpecialReg, setUseCC, usesCC |
Methods inherited from class scale.backend.Instruction |
---|
clone, copy, ehash, getBBID, getCopyDest, getCopySrc, getExecutionCycles, getFunctionalUnit, getLoopNumber, getNext, getPredicate, getPredicates, 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, setTag, specifyNotSpillLoadPoint, specifySpillStorePoint |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FmoveInstruction(int opcode, int cc, int rs2, int rd)
Method Detail |
---|
public static int created()
public int[] getSrcRegisters()
null
if none.
getSrcRegisters
in class FltOpInstruction
public void specifyRegisterUsage(RegisterAllocator rs, int index, int strength)
specifyRegisterUsage
in class FltOpInstruction
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 FltOpInstruction
public boolean independent(Instruction inst, RegisterSet registers)
independent
in class FltOpInstruction
inst
- is the specified instructionpublic void assembler(Assembler gen, Emit emit)
assembler
in class FltOpInstruction
public java.lang.String toString()
toString
in class FltOpInstruction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |