Package ghidra.pcode.emu.jit.op
Record Class JitBranchIndOp
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.op.JitBranchIndOp
- Record Components:
op
- the p-code optarget
- the use-def node for the target offsetbranch
- the branch record created for the p-code op
- All Implemented Interfaces:
JitOp
public record JitBranchIndOp(PcodeOp op, JitVal target, JitPassage.IndBranch branch)
extends Record
implements JitOp
The use-def node for a
PcodeOp.BRANCHIND
.-
Constructor Summary
ConstructorsConstructorDescriptionJitBranchIndOp
(PcodeOp op, JitVal target, JitPassage.IndBranch branch) Creates an instance of aJitBranchIndOp
record class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()
Returns the value of thebranch
record component.boolean
Indicates the operation can be removed if its output is never used.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.inputs()
The input operand use-def nodes in some defined ordervoid
link()
Add this op to theJitVal.uses()
of each input operand, and (if applicable) set theJitOutVar.definition()
of the output operand to this op.op()
Returns the value of theop
record component.target()
Returns the value of thetarget
record component.We'd like the offset to be anint
.final String
toString()
Returns a string representation of this record class.typeFor
(int position) Get the required type behavior for the input at the given position inJitOp.inputs()
void
unlink()
Remove this op from theJitVal.uses()
of each input operand, and (if applicable) unset theJitOutVar.definition()
of the output operand.
-
Constructor Details
-
Method Details
-
canBeRemoved
public boolean canBeRemoved()Description copied from interface:JitOp
Indicates the operation can be removed if its output is never used.- Specified by:
canBeRemoved
in interfaceJitOp
- Returns:
- true if removable
-
link
public void link()Description copied from interface:JitOp
Add this op to theJitVal.uses()
of each input operand, and (if applicable) set theJitOutVar.definition()
of the output operand to this op. -
unlink
public void unlink()Description copied from interface:JitOp
Remove this op from theJitVal.uses()
of each input operand, and (if applicable) unset theJitOutVar.definition()
of the output operand. -
inputs
Description copied from interface:JitOp
The input operand use-def nodes in some defined order -
typeFor
Description copied from interface:JitOp
Get the required type behavior for the input at the given position inJitOp.inputs()
-
targetType
We'd like the offset to be anint
.- Returns:
JitTypeBehavior.INTEGER
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
op
Returns the value of theop
record component. -
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
branch
Returns the value of thebranch
record component.- Returns:
- the value of the
branch
record component
-