Package ghidra.pcode.emu.jit.op
Record Class JitCatenateOp
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.op.JitCatenateOp
- Record Components:
out
- the use-def variable node for the outputparts
- the inputs to be concatenated
- All Implemented Interfaces:
JitDefOp
,JitOp
,JitSyntheticOp
public record JitCatenateOp(JitOutVar out, List<JitVal> parts)
extends Record
implements JitDefOp, JitSyntheticOp
The synthetic use-def node for concatenation.
These are synthesized when memory/register access patterns cause multiple use-def variable nodes
to be "read" at the same time. E.g., consider AL
and AH
to be written and then
AX
read.
-
Constructor Summary
ConstructorsConstructorDescriptionJitCatenateOp
(JitOutVar out, List<JitVal> parts) Compact constructor for validation -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 orderiterParts
(boolean bigEndian) Iterate over the parts from most to least significantvoid
link()
Add this op to theJitVal.uses()
of each input operand, and (if applicable) set theJitOutVar.definition()
of the output operand to this op.out()
Returns the value of theout
record component.parts()
Returns the value of theparts
record component.partType()
We'd like every part to be anint
.final String
toString()
Returns a string representation of this record class.type()
The required type behavior for the outputtypeFor
(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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ghidra.pcode.emu.jit.op.JitDefOp
canBeRemoved
Methods inherited from interface ghidra.pcode.emu.jit.op.JitSyntheticOp
op
-
Constructor Details
-
JitCatenateOp
Compact constructor for validation- Parameters:
out
- the use-def variable node for the outputparts
- the inputs to be concatenated
-
-
Method Details
-
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. -
iterParts
Iterate over the parts from most to least significant- Parameters:
bigEndian
- the byte order off the machine- Returns:
- an iterable over the parts
-
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()
-
partType
We'd like every part to be anint
.- Returns:
JitTypeBehavior.INTEGER
-
type
Description copied from interface:JitDefOp
The required type behavior for the output -
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)
. -
out
Returns the value of theout
record component. -
parts
Returns the value of theparts
record component.- Returns:
- the value of the
parts
record component
-