Record Class RegisterAllocationPass.RegisterAssignment
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.passes.stage2.RegisterAllocationPass.RegisterAssignment
- Enclosing class:
RegisterAllocationPass
public static record RegisterAllocationPass.RegisterAssignment(Map<ImpScmNode, Short> srcRegisters, Map<ImpScmNode, Short> dstRegisters, int maxRegistersUsed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegisterAssignment(Map<ImpScmNode, Short> srcRegisters, Map<ImpScmNode, Short> dstRegisters, int maxRegistersUsed) Creates an instance of aRegisterAssignmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedstRegistersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRegistersUsedrecord component.Returns the value of thesrcRegistersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisterAssignment
public RegisterAssignment(Map<ImpScmNode, Short> srcRegisters, Map<ImpScmNode, Short> dstRegisters, int maxRegistersUsed) Creates an instance of aRegisterAssignmentrecord class.- Parameters:
srcRegisters- the value for thesrcRegistersrecord componentdstRegisters- the value for thedstRegistersrecord componentmaxRegistersUsed- the value for themaxRegistersUsedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
srcRegisters
Returns the value of thesrcRegistersrecord component.- Returns:
- the value of the
srcRegistersrecord component
-
dstRegisters
Returns the value of thedstRegistersrecord component.- Returns:
- the value of the
dstRegistersrecord component
-
maxRegistersUsed
public int maxRegistersUsed()Returns the value of themaxRegistersUsedrecord component.- Returns:
- the value of the
maxRegistersUsedrecord component
-