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 Object
trait Matchable
class 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 lvCast(expr: LoweredValue, targetType: SIRType, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvDelay(value: LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue
def lvForce(value: 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 lvIntConstant(value: Int, pos: SIRPosition)(using lctx: LoweringContext): ConstantLoweredValue
def lvLamAbs(name: String, tp: SIRType, inputRepresentation: LoweredValueRepresentation, f: IdentifiableLoweredValue => LoweringContext ?=> LoweredValue, inPos: SIRPosition)(using lctx: LoweringContext): LoweredValue

create let and add it to the current scope.

create let and add it to the current scope.

Attributes

def lvStringConstant(value: String, pos: SIRPosition)(using lctx: LoweringContext): ConstantLoweredValue
def lvTrace(message: String, value: LoweredValue)(using LoweringContext): LoweredValue