Val

scala.scalanative.nir.Val
See theVal companion object
sealed abstract class Val

A NIR value.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ArrayValue
class Byte
class ByteString
class Char
class ClassOf
class Const
class Double
object False.type
class Float
class Global
class Int
class Local
class Long
object Null.type
class Short
class Size
class String
class StructValue
object True.type
object Unit.type
class Virtual
class Zero
Show all

Members list

Value members

Concrete methods

final def canonicalize: Val

The canonical form of this

The canonical form of this

Attributes

final def isCanonical: Boolean

true iff this is in canonical form.

true iff this is in canonical form.

Attributes

final def isMinusOne: Boolean

true iff this is a numerical value equal to "-1".

true iff this is a numerical value equal to "-1".

Attributes

final def isOne: Boolean

true iff this is the value "1" in its type.

true iff this is the value "1" in its type.

Attributes

final def isSignedMaxValue(is32BitPlatform: Boolean): Boolean

true iff this is the maximum value of a signed numerical type.

true iff this is the maximum value of a signed numerical type.

Attributes

final def isSignedMinValue(is32BitPlatform: Boolean): Boolean

true iff this is the minimum value of a signed numerical type.

true iff this is the minimum value of a signed numerical type.

Attributes

true iff this is the maximum value of an unsigned numerical type.

true iff this is the maximum value of an unsigned numerical type.

Attributes

true iff this is the minimum value of an unsigned numerical type.

true iff this is the minimum value of an unsigned numerical type.

Attributes

final def isVirtual: Boolean

true iff this represents a virtual value.

true iff this represents a virtual value.

Attributes

final def isZero: Boolean

true iff this is the "zero" value of its type.

true iff this is the "zero" value of its type.

Attributes

final def show: String

A textual representation of this.

A textual representation of this.

Attributes

final def ty: Type

The type of the value.

The type of the value.

Attributes