|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.Instruction scale.backend.Branch scale.backend.ppc.PPCBranch
public abstract class PPCBranch
This is the abstract class for all machine PPCBranch instructions.
$Id: PPCBranch.java,v 1.4 2006-04-26 18:07:17 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 | |
---|---|
protected int |
opcode
the instruction opcode |
protected boolean |
pt
True branch predicted? |
Constructor Summary | |
---|---|
protected |
PPCBranch(int opcode,
boolean pt,
int numTargets)
|
Method Summary | |
---|---|
java.lang.String |
assembleDisp(Assembler asm,
Displacement disp,
int ftn)
Generate a String representation of a Displacement that can be used by the assembly code generater. |
boolean |
canBeAnnulled()
Return true if the branch can be annulled. |
boolean |
canBeDeleted(RegisterSet registers)
Return true if the instruction can be deleted without changing program semantics. |
int |
getOpcode()
Return the numeric opcode of the instruction. |
boolean |
getPt()
|
int |
instructionSize()
Return the number of bytes required for the instruction. |
boolean |
isUnconditional()
Return true if the branch is an unconditional transfer of control to a new address. |
void |
setOpcode(int opcode)
|
Methods inherited from class scale.backend.Branch |
---|
additionalRegsKilled, additionalRegsSet, additionalRegsUsed, addTarget, copy, defs, getBranchProbability, getExecutionCycles, getRegsKilled, getTarget, independent, isBranch, isCall, markAsCall, mods, nullify, numTargets, remapDestRegister, remapRegisters, remapSrcRegister, setBranchProbability, specifyRegisterUsage, toString, uses, uses |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int opcode
protected boolean pt
Constructor Detail |
---|
protected PPCBranch(int opcode, boolean pt, int numTargets)
numTargets
- is the number of successors of this instruction.pt
- is true if the true condition is predicted
For routine calls, it does not include the routine called.Method Detail |
---|
public java.lang.String assembleDisp(Assembler asm, Displacement disp, int ftn)
public final int getOpcode()
Instruction
getOpcode
in class Instruction
public final void setOpcode(int opcode)
public boolean getPt()
public boolean canBeDeleted(RegisterSet registers)
canBeDeleted
in class Instruction
public int instructionSize()
Instruction
instructionSize
in class Instruction
public boolean canBeAnnulled()
public boolean isUnconditional()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |