abla/runtime/scalar

Generated from source.

Import with import "abla/runtime/scalar".

Source: abla/runtime/scalar/entry.ab

ablaRuntimeValueAddress (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeValueAddress(
    value: any
): int

Returns the native address of the value representation, which may only be used while the value is live.

ablaRuntimeFloatReflectionEnabled (fun)

trusted fun ablaRuntimeFloatReflectionEnabled(): bool

The compiler replaces this with a module-wide constant after emission.

ablaRuntimeValueWord0 (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeValueWord0(value: any): int

Read this value's own payload directly so LLVM can eliminate temporary boxes without changing the semantics of arbitrary raw pointer arithmetic.

ablaRuntimeLoadI32 (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeLoadI32(address: int): int

Returns the native 32-bit word at the address, which must reference readable storage.

ablaRuntimeLoadI64 (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeLoadI64(address: int): int

Returns the native 64-bit word at the address, which must reference readable storage.

ablaRuntimeTrap (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeTrap(): void

Terminates execution by raising an unconditional runtime trap.

__ablaRuntimeTag (fun)

@inline
trusted fun __ablaRuntimeTag(value: any): int

Returns the runtime type tag stored in the value header.

__ablaRuntimeWord0 (fun)

@inline
trusted fun __ablaRuntimeWord0(value: any): int

Returns the first payload word of the value representation.

__ablaRuntimeRequire (fun)

@inline
trusted fun __ablaRuntimeRequire(value: any, tag: int): bool

Returns true when the tag matches and traps on a mismatched type.

__ablaRuntimeAsI64 (fun)

@inline
trusted fun __ablaRuntimeAsI64(value: any): int

Returns the signed integer payload and traps if the value has another runtime tag.

__ablaRuntimeAsBool (fun)

@inline
trusted fun __ablaRuntimeAsBool(value: any): bool

Returns the boolean payload and traps if the value has another runtime tag.

ablaRuntimeMakeValue (extern)

trusted noescape extern:"intrinsic" fun ablaRuntimeMakeValue(
    tag: int,
    auxiliary: int,
    word0: int,
    word1: int
): any

Allocation-free value constructors, shared by hosted and freestanding programs. Keeping their bodies visible lets LLVM eliminate unused boxes.

__ablaRuntimeVoid (fun)

trusted fun __ablaRuntimeVoid(): any

Returns the runtime representation of void.

__ablaRuntimeNull (fun)

trusted fun __ablaRuntimeNull(): any

Returns the runtime representation of null.

__ablaRuntimeI64 (fun)

@inline
trusted fun __ablaRuntimeI64(value: int): any

Returns the runtime representation of a signed 64-bit integer.

__ablaRuntimeBool (fun)

@inline
trusted fun __ablaRuntimeBool(value: bool): any

Returns the runtime representation of a boolean.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.