Package ghidra.pcode.emu.jit.op
Record Class JitNopOp
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.op.JitNopOp
- Record Components:
op
- the p-code op
- All Implemented Interfaces:
JitOp
The use-def node for a
JitPassage.NopPcodeOp
or an inlined PcodeOp.CALLOTHER
.
When a callother is inlined, we preserve the original op for bookkeeping, but ensure that no code is emitted for it by wrapping it in this use-def node class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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
-
JitNopOp
Creates an instance of aJitNopOp
record class.- Parameters:
op
- the value for theop
record component
-
-
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()
-
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.
-