Record Class FreshBooleanOperand
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.FreshBooleanOperand
record FreshBooleanOperand(List<IRInstr> instructions, String result, String primitive)
extends Record
A Boolean LEFT operand for a short-circuit AND: a FRESH SSA temp (loaded from an alloca-backed var)
plus its primitive. The LOGICAL_AND_BLOCK PHI names the LEFT operand's value on the short-circuit path,
so it must be an SSA value — passing a bare alloca-backed var drops the PHI and the lowered result then
fails LLVM SSA dominance ("does not dominate all uses").
-
Constructor Summary
ConstructorsConstructorDescriptionFreshBooleanOperand(List<IRInstr> instructions, String result, String primitive) Creates an instance of aFreshBooleanOperandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.Returns the value of theprimitiverecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FreshBooleanOperand
Creates an instance of aFreshBooleanOperandrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentresult- the value for theresultrecord componentprimitive- the value for theprimitiverecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
instructions
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
primitive
Returns the value of theprimitiverecord component.- Returns:
- the value of the
primitiverecord component
-