Record Class ScmLaneSetCover
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneSetCover
- All Implemented Interfaces:
ImpScmNode
public record ScmLaneSetCover(int maxNodes, long targetMask, boolean pairMode)
extends Record
implements ImpScmNode
Multi-lane greedy minimum set cover / exact 2-node pair cover step (opcode
0xC9 OP_LANE_SET_COVER).-
Constructor Summary
ConstructorsConstructorDescriptionScmLaneSetCover(int maskReg, int mode) ScmLaneSetCover(int maxNodes, long targetMask, boolean pairMode) Creates an instance of aScmLaneSetCoverrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.static ScmLaneSetCovergreedy(int maxNodes, long targetMask) final inthashCode()Returns a hash code value for this object.intmaskReg()intmaxNodes()Returns the value of themaxNodesrecord component.intmode()booleanpairMode()Returns the value of thepairModerecord component.static ScmLaneSetCoverpairs(long targetMask) longReturns the value of thetargetMaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScmLaneSetCover
public ScmLaneSetCover(int maxNodes, long targetMask, boolean pairMode) Creates an instance of aScmLaneSetCoverrecord class.- Parameters:
maxNodes- the value for themaxNodesrecord componenttargetMask- the value for thetargetMaskrecord componentpairMode- the value for thepairModerecord component
-
ScmLaneSetCover
public ScmLaneSetCover(int maskReg, int mode)
-
-
Method Details
-
maskReg
public int maskReg() -
mode
public int mode() -
greedy
-
pairs
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxNodes
public int maxNodes()Returns the value of themaxNodesrecord component.- Returns:
- the value of the
maxNodesrecord component
-
targetMask
public long targetMask()Returns the value of thetargetMaskrecord component.- Returns:
- the value of the
targetMaskrecord component
-
pairMode
public boolean pairMode()Returns the value of thepairModerecord component.- Returns:
- the value of the
pairModerecord component
-