public class SSAComparisonInstruction extends SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.Visitor
iindex, NO_INDEX
Constructor and Description |
---|
SSAComparisonInstruction(int iindex,
IComparisonInstruction.Operator operator,
int result,
int val1,
int val2) |
Modifier and Type | Method and Description |
---|---|
SSAInstruction |
copyForSSA(SSAInstructionFactory insts,
int[] defs,
int[] uses)
This method is meant to be used during SSA conversion for an IR that is not in SSA form.
|
int |
getDef() |
int |
getDef(int i)
Return the ith def
|
int |
getNumberOfDefs() |
int |
getNumberOfUses() |
IComparisonInstruction.Operator |
getOperator() |
int |
getUse(int j) |
boolean |
hasDef()
Does this instruction define a normal value, as distinct from a set of exceptions possibly thrown by it (e.g.
|
int |
hashCode() |
boolean |
isFallThrough() |
String |
toString(SymbolTable symbolTable) |
void |
visit(SSAInstruction.IVisitor v)
Apply an IVisitor to this instruction.
|
equals, getExceptionTypes, getValueString, isPEI, toString
public SSAComparisonInstruction(int iindex, IComparisonInstruction.Operator operator, int result, int val1, int val2)
public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) throws IllegalArgumentException
SSAInstruction
copyForSSA
in class SSAInstruction
IllegalArgumentException
public String toString(SymbolTable symbolTable)
toString
in class SSAInstruction
public void visit(SSAInstruction.IVisitor v) throws NullPointerException
SSAInstruction
visit
in class SSAInstruction
NullPointerException
SSAInstruction.visit(IVisitor)
public boolean hasDef()
SSAInstruction
hasDef
in class SSAInstruction
SSAInstruction.getDef()
public int getDef()
getDef
in class SSAInstruction
public int getDef(int i)
SSAInstruction
getDef
in class SSAInstruction
i
- number of the def, starting at 0.public int getNumberOfDefs()
getNumberOfDefs
in class SSAInstruction
SSAInstruction.getNumberOfUses()
public int getNumberOfUses()
getNumberOfUses
in class SSAInstruction
public int getUse(int j)
getUse
in class SSAInstruction
SSAInstruction.getUse(int)
public int hashCode()
hashCode
in class SSAInstruction
public boolean isFallThrough()
isFallThrough
in class SSAInstruction
public IComparisonInstruction.Operator getOperator()