|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.backend.Instruction
scale.backend.Branch
scale.backend.x86.X86Branch
scale.backend.x86.X86RBranch
public class X86RBranch
This is the base class for all X86 branches that reference just a register.
$Id$
Copyright 2008 by James H. Burrill
All Rights Reserved.
| Field Summary | |
|---|---|
protected int |
reg
|
| Fields inherited from class scale.backend.x86.X86Branch |
|---|
opcode, pt |
| Constructor Summary | |
|---|---|
X86RBranch(int opcode,
boolean pt,
int numTargets,
int reg)
|
|
| Method Summary | |
|---|---|
void |
assembler(Assembler asm,
Emit emit)
Insert the assembler representation of the instruction into the output stream. |
protected boolean |
checkForm(int opcode)
|
int |
getReg()
|
void |
remapRegisters(int[] map)
Map the virtual registers referenced in the instruction to the specified real registers. |
void |
remapSrcRegister(int oldReg,
int newReg)
Map the registers used in the instruction as sources to the specified register. |
void |
setReg(int reg)
|
java.lang.String |
toString()
|
boolean |
uses(int register,
RegisterSet registers)
Return true if the instruction uses the register. |
| Methods inherited from class scale.backend.x86.X86Branch |
|---|
assembleDisp, buildAddress, canBeDeleted, defs, getDisplacement, getOpcode, getOperandSize, getOperandSizeLabel, getPt, getReg2, instructionSize, isReversed, isUnconditional, mods, remapDestRegister, setDisplacement, 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 java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int reg
| Constructor Detail |
|---|
public X86RBranch(int opcode,
boolean pt,
int numTargets,
int reg)
| Method Detail |
|---|
protected boolean checkForm(int opcode)
checkForm in class X86Branchpublic int getReg()
getReg in class X86Branchpublic void setReg(int reg)
setReg in class X86Branchpublic void remapRegisters(int[] map)
Branch
remapRegisters in class X86Branchmap - maps from the virtual register to real register
public void remapSrcRegister(int oldReg,
int newReg)
remapSrcRegister in class X86BrancholdReg - is the previous source registernewReg - is the new source register
public boolean uses(int register,
RegisterSet registers)
uses in class X86Branch
public void assembler(Assembler asm,
Emit emit)
assembler in class X86Branchpublic java.lang.String toString()
toString in class X86Branch
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||