Class SSABinaryOpInstruction
java.lang.Object
com.ibm.wala.ssa.SSAInstruction
com.ibm.wala.ssa.SSAAbstractBinaryInstruction
com.ibm.wala.ssa.SSABinaryOpInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from class SSAInstruction
SSAInstruction.IVisitor, SSAInstruction.VisitorModifier and TypeClassDescriptionstatic interfaceThis interface is used by Instruction.visit to dispatch based on the instruction type.static classA base visitor implementation that does nothing. -
Field Summary
Fields inherited from class SSAAbstractBinaryInstruction
result, val1, val2Fields inherited from class SSAInstruction
NO_INDEX -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSSABinaryOpInstruction(int iindex, IBinaryOpInstruction.IOperator operator, int result, int val1, int val2, boolean mayBeInteger) -
Method Summary
Modifier and TypeMethodDescriptionUgh.booleanbooleanisPEI()booleantoString(SymbolTable symbolTable) voidApply an IVisitor to this instruction.Methods inherited from class SSAAbstractBinaryInstruction
getDef, getDef, getNumberOfDefs, getNumberOfUses, getUse, hasDef, hashCodeMethods inherited from class SSAInstruction
copyForSSA, equals, getExceptionTypes, getValueString, iIndex, setInstructionIndex, toStringModifier and TypeMethodDescriptionabstract SSAInstructioncopyForSSA(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.final booleanWe assume these instructions are canonical and managed by a governing IR object.This method should never return null.protected StringgetValueString(SymbolTable symbolTable, int valueNumber) intiIndex()voidsetInstructionIndex(int instructionIndex) toString()
-
Constructor Details
-
SSABinaryOpInstruction
protected SSABinaryOpInstruction(int iindex, IBinaryOpInstruction.IOperator operator, int result, int val1, int val2, boolean mayBeInteger)
-
-
Method Details
-
toString
- Specified by:
toStringin classSSAInstruction
-
visit
Description copied from class:SSAInstructionApply an IVisitor to this instruction. We invoke the appropriate IVisitor method according to the type of this instruction.- Specified by:
visitin classSSAInstruction- Throws:
NullPointerException- See Also:
-
getOperator
Ugh. clean up shrike operator stuff. -
isPEI
public boolean isPEI()- Overrides:
isPEIin classSSAInstruction- Returns:
- true iff this instruction may throw an exception.
- See Also:
-
isFallThrough
public boolean isFallThrough()- Specified by:
isFallThroughin classSSAInstruction- Returns:
- true iff this instruction may fall through to the next
- See Also:
-
mayBeIntegerOp
public boolean mayBeIntegerOp()
-