Skip to main content

Module literal

Module literal 

Source
Expand description

Compile-time integer constants, optionally with symbolic labels.

A Literal stores a raw u64 value together with an optional SymbolicRef that gives it meaning beyond its numeric value — for example the address of a known block or function. When a literal has a symbolic reference it is displayed as &<name> rather than 0x….

Every literal carries a TypeId that encodes its byte width (and, for pointer literals, its space provenance). Type is preserved through constant folding.

Structs§

Literal
A compile-time integer constant stored in a Context.
LiteralId

Enums§

SymbolicRef
An optional symbolic meaning attached to a Literal.

Type Aliases§

LiteralRef