scale.backend.x86
Class X86DBranch

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

public class X86DBranch
extends X86Branch

This is the base class for all X86 branches that reference just a displacement.

$Id$

Copyright 2008 by James H. Burrill
All Rights Reserved.


Field Summary
protected  Displacement disp
           
 
Fields inherited from class scale.backend.x86.X86Branch
opcode, pt
 
Constructor Summary
X86DBranch(int opcode, boolean pt, int numTargets, 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.X86Branch
assembleDisp, buildAddress, canBeDeleted, defs, getOpcode, getOperandSize, getOperandSizeLabel, getPt, getReg, getReg2, instructionSize, isReversed, isUnconditional, mods, remapDestRegister, remapRegisters, remapSrcRegister, setOpcode, setOperandSize, setReg, setReg2, setReturnedStructSize, setScale, specifyRegisterUsage, uses
 
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

X86DBranch

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

checkForm

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

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 X86Branch

toString

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