Record Class ScmLaneReduceAttr
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneReduceAttr
- All Implemented Interfaces:
ImpScmNode
public record ScmLaneReduceAttr(int attrId, String attrName, int redOp, boolean fromRegister)
extends Record
implements ImpScmNode
Multi-lane per-lane attribute aggregation (opcode
0xC8 OP_LANE_REDUCE_ATTR).-
Constructor Summary
ConstructorsConstructorDescriptionScmLaneReduceAttr(int attrId, int redOp) ScmLaneReduceAttr(int attrId, String attrName, int redOp, boolean fromRegister) Creates an instance of aScmLaneReduceAttrrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) intattrId()Returns the value of theattrIdrecord component.attrName()Returns the value of theattrNamerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromRegisterrecord component.final inthashCode()Returns a hash code value for this object.static ScmLaneReduceAttrof(int attrId, int redOp) static ScmLaneReduceAttrintredOp()Returns the value of theredOprecord component.intreduceOp()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScmLaneReduceAttr
Creates an instance of aScmLaneReduceAttrrecord class.- Parameters:
attrId- the value for theattrIdrecord componentattrName- the value for theattrNamerecord componentredOp- the value for theredOprecord componentfromRegister- the value for thefromRegisterrecord component
-
ScmLaneReduceAttr
public ScmLaneReduceAttr(int attrId, int redOp)
-
-
Method Details
-
reduceOp
public int reduceOp() -
of
-
ofName
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
attrId
public int attrId()Returns the value of theattrIdrecord component.- Returns:
- the value of the
attrIdrecord component
-
attrName
Returns the value of theattrNamerecord component.- Returns:
- the value of the
attrNamerecord component
-
redOp
public int redOp()Returns the value of theredOprecord component.- Returns:
- the value of the
redOprecord component
-
fromRegister
public boolean fromRegister()Returns the value of thefromRegisterrecord component.- Returns:
- the value of the
fromRegisterrecord component
-