scale.backend.sparc
Class FmoveInstruction

java.lang.Object
  extended by scale.backend.Instruction
      extended by scale.backend.sparc.SparcInstruction
          extended by scale.backend.sparc.FltOpInstruction
              extended by scale.backend.sparc.FmoveInstruction
All Implemented Interfaces:
java.lang.Cloneable

public class FmoveInstruction
extends FltOpInstruction

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

FmoveInstruction

public FmoveInstruction(int opcode,
                        int cc,
                        int rs2,
                        int rd)
Method Detail

created

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


getSrcRegisters

public int[] getSrcRegisters()
Return the source registers or null if none.

Overrides:
getSrcRegisters in class FltOpInstruction

specifyRegisterUsage

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

Overrides:
specifyRegisterUsage in class FltOpInstruction
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)

uses

public boolean uses(int register,
                    RegisterSet registers)
Return true if the instruction uses the register.

Overrides:
uses in class FltOpInstruction

independent

public boolean independent(Instruction inst,
                           RegisterSet registers)
Return true if this instruction is independent of the specified instruction. If instructions are independent, than one instruction can be moved before or after the other instruction without changing the semantics of the program.

Overrides:
independent in class FltOpInstruction
Parameters:
inst - is the specified instruction

assembler

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

Overrides:
assembler in class FltOpInstruction

toString

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