scale.backend.x86
Class X86RDBranch

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.X86RDBranch
All Implemented Interfaces:
java.lang.Cloneable

public class X86RDBranch
extends X86RBranch

This is the base class for all X86 branches that reference a register 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.X86RBranch
reg
 
Fields inherited from class scale.backend.x86.X86Branch
opcode, pt
 
Constructor Summary
X86RDBranch(int opcode, boolean pt, int numTargets, int reg, 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.X86RBranch
getReg, remapRegisters, remapSrcRegister, setReg, uses
 
Methods inherited from class scale.backend.x86.X86Branch
assembleDisp, buildAddress, canBeDeleted, defs, getOpcode, getOperandSize, getOperandSizeLabel, getPt, getReg2, instructionSize, isReversed, isUnconditional, mods, remapDestRegister, setOpcode, setOperandSize, setReg2, 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

X86RDBranch

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

checkForm

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

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 X86RBranch

toString

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