Module driver

Source
Expand description

Pipeline driver hooks and browser artifact helpers.

Modulesยง

passes ๐Ÿ”’
Concrete pass wrappers used by the driver pipeline.

Structsยง

BrowserArtifacts
Browser-facing compilation artifacts captured from the pipeline.
BrowserDriver
Driver that records browser-facing artifacts during compilation.
HirOriginTable
Side-table provenance ids keyed by HIR expression ids.
MirOriginTable
Side-table provenance ids keyed by MIR function/local ids.
NullDriver
Driver that discards all pipeline outputs.

Enumsยง

CompileError
Error produced while compiling a source file through the full pipeline.

Traitsยง

Driver
Hook interface for observing compiler pipeline outputs.

Functionsยง

compile_for_browser
Compile source into browser-facing artifacts.
compile_resolved_program ๐Ÿ”’
compile_with_driver
Compile a native source file through the full pipeline using driver hooks.
compile_with_driver_for_browser
Compile a browser source file through the full pipeline using driver hooks.
mir_function_totals ๐Ÿ”’
Return total local and instruction counts across all MIR functions.
mir_instr_source_pos_and_dst ๐Ÿ”’
Return one MIR destination local and source position when available.
record_hir_provenance_origins ๐Ÿ”’
Record provenance chains for all HIR expressions with source spans.
record_mir_provenance_origins ๐Ÿ”’
Record provenance chains for MIR locals that carry source positions.
source_pos_to_span ๐Ÿ”’
Convert MIR source-position metadata into a source span.