Package ghidra.pcode.emu.jit.op
Record Class JitStoreOp
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.op.JitStoreOp
- Record Components:
op
- the p-code opspace
- the address spaceoffset
- the use-def node for the offsetvalue
- the use-def node for the value to store
- All Implemented Interfaces:
JitOp
public record JitStoreOp(PcodeOp op, AddressSpace space, JitVal offset, JitVal value)
extends Record
implements JitOp
The use-def node for a
PcodeOp.STORE
.-
Constructor Summary
ConstructorsConstructorDescriptionJitStoreOp
(PcodeOp op, AddressSpace space, JitVal offset, JitVal value) Creates an instance of aJitStoreOp
record class. -
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.offset()
Returns the value of theoffset
record component.We'd like the offset to be anint
.op()
Returns the value of theop
record component.space()
Returns the value of thespace
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.value()
Returns the value of thevalue
record component.We do not require a particular type for the value.
-
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()
-
offsetType
We'd like the offset to be anint
.- Returns:
JitTypeBehavior.INTEGER
-
valueType
We do not require a particular type for the value.- Returns:
JitTypeBehavior.ANY
-
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. -
space
Returns the value of thespace
record component.- Returns:
- the value of the
space
record component
-
offset
Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-