scale.backend.x86
Class X86RRDBranch

java.lang.Object
  extended by scale.backend.Instruction
      extended by scale.backend.Branch
          extended by scale.backend.x86.X86Branch
              extended by scale.backend.x86.X86RBranch
                  extended by scale.backend.x86.X86RRBranch
                      extended by scale.backend.x86.X86RRDBranch
All Implemented Interfaces:
java.lang.Cloneable

public class X86RRDBranch
extends X86RRBranch

This is the base class for all X86 branches that reference two registers and a displacement.

$Id$

Copyright 2008 by James H. Burrill
All Rights Reserved.


Field Summary
protected  Displacement disp
           
 
Fields inherited from class scale.backend.x86.X86RRBranch
reg2
 
Fields inherited from class scale.backend.x86.X86RBranch
reg
 
Fields inherited from class scale.backend.x86.X86Branch
opcode, pt
 
Constructor Summary
X86RRDBranch(int opcode, boolean pt, int numTargets, int reg, int reg2, Displacement disp)
           
 
Method Summary
 void assembler(Assembler asm, Emit emit)
          Insert the assembler representation of the instruction into the output stream.
protected  boolean checkForm(int opcode)
           
 Displacement getDisplacement()
           
 void setDisplacement(Displacement disp)
           
 java.lang.String toString()
           
 
Methods inherited from class scale.backend.x86.X86RRBranch
getReg2, remapRegisters, remapSrcRegister, setReg2, uses
 
Methods inherited from class scale.backend.x86.X86RBranch
getReg, setReg
 
Methods inherited from class scale.backend.x86.X86Branch
assembleDisp, buildAddress, canBeDeleted, defs, getOpcode, getOperandSize, getOperandSizeLabel, getPt, instructionSize, isReversed, isUnconditional, mods, remapDestRegister, setOpcode, setOperandSize, setReturnedStructSize, setScale, specifyRegisterUsage
 
Methods inherited from class scale.backend.Branch
additionalRegsKilled, additionalRegsSet, additionalRegsUsed, addTarget, copy, getBranchProbability, getExecutionCycles, getRegsKilled, getTarget, independent, isBranch, isCall, markAsCall, nullify, numTargets, setBranchProbability, uses
 
Methods inherited from class scale.backend.Instruction
clone, ehash, getBBID, getCopyDest, getCopySrc, getDestRegister, getFunctionalUnit, getLoopNumber, getNext, getPredicate, getPredicates, getSrcRegisters, getTag, isCopy, isLabel, isLoad, isMandatory, isMarker, isPhi, isPredicated, isPredicatedOnTrue, isPrefetch, isSpillInstruction, isSpillLoadPoint, isSpillStorePoint, isStore, markSpillInstruction, 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
 

Field Detail

disp

protected Displacement disp
Constructor Detail

X86RRDBranch

public X86RRDBranch(int opcode,
                    boolean pt,
                    int numTargets,
                    int reg,
                    int reg2,
                    Displacement disp)
Method Detail

checkForm

protected boolean checkForm(int opcode)
Overrides:
checkForm in class X86RRBranch

getDisplacement

public Displacement getDisplacement()
Overrides:
getDisplacement in class X86Branch

setDisplacement

public void setDisplacement(Displacement disp)
Overrides:
setDisplacement in class X86Branch

assembler

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

Overrides:
assembler in class X86RRBranch

toString

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