Builder
scalus.sir.lowering.LoweredValue.Builder
object Builder
Builder for LoweredValue, to avoid boilerplate code. Import this object to make available
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Builder.type
Members list
Value members
Concrete methods
def lvApply(f: LoweredValue, arg: LoweredValue, inPos: SIRPosition, resTp: Option[SIRType], resRepr: Option[LoweredValueRepresentation])(using lctx: LoweringContext): LoweredValue
def lvBoolConstant(value: Boolean, pos: SIRPosition)(using lctx: LoweringContext): ConstantLoweredValue
def lvBuiltinApply(fun: Builtin, arg: LoweredValue, tp: SIRType, lvr: LoweredValueRepresentation, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvBuiltinApply0(fun: Builtin, tp: SIRType, lvr: LoweredValueRepresentation, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvBuiltinApply2(fun: Builtin, arg1: LoweredValue, arg2: LoweredValue, tp: SIRType, lvr: LoweredValueRepresentation, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvCast(expr: LoweredValue, targetType: SIRType, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvEqualsInteger(x: LoweredValue, y: LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvIfThenElse(cond: LoweredValue, thenBranch: LoweredValue, elseBranch: LoweredValue, inPos: SIRPosition, optTargetType: Option[SIRType])(using lctx: LoweringContext): LoweredValue
def lvLamAbs(name: String, tp: SIRType, inputRepresentation: LoweredValueRepresentation, f: IdentifiableLoweredValue => LoweringContext ?=> LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvLamAbs(sirVar: Var, inputRepresentation: LoweredValueRepresentation, f: IdentifiableLoweredValue => LoweringContext ?=> LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvLetRec(name: String, tp: SIRType, repr: LoweredValueRepresentation, rhs: LoweringContext ?=> IdentifiableLoweredValue => LoweredValue, body: LoweringContext ?=> IdentifiableLoweredValue => LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LetRecLoweredValue
def lvNewLazyIdVar(id: String, tp: SIRType, lvr: LoweredValueRepresentation, rhs: LoweringContext ?=> LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): IdentifiableLoweredValue
create let and add it to the current scope.
create let and add it to the current scope.
Attributes
def lvNewLazyNamedVar(name: String, tp: SIRType, lvr: LoweredValueRepresentation, rhs: LoweringContext ?=> LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): IdentifiableLoweredValue
def lvStringConstant(value: String, pos: SIRPosition)(using lctx: LoweringContext): ConstantLoweredValue
In this article