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 TypeMethodDescriptionbooleanIndicates the operation can be removed if its output is never used.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inputs()The input operand use-def nodes in some defined ordervoidlink()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 theoprecord component.final StringtoString()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()voidunlink()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 aJitNopOprecord class.- Parameters:
op- the value for theoprecord component
-
-
Method Details
-
canBeRemoved
public boolean canBeRemoved()Description copied from interface:JitOpIndicates the operation can be removed if its output is never used.- Specified by:
canBeRemovedin interfaceJitOp- Returns:
- true if removable
-
link
public void link()Description copied from interface:JitOpAdd 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:JitOpRemove this op from theJitVal.uses()of each input operand, and (if applicable) unset theJitOutVar.definition()of the output operand. -
inputs
Description copied from interface:JitOpThe input operand use-def nodes in some defined order -
typeFor
Description copied from interface:JitOpGet 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 theoprecord component.
-