Skip to main content

Crate jit_codegen

Crate jit_codegen 

Source
Expand description

Code generation utilities that turn normalized AARCHMRS data into compact Rust tables.

This crate does not participate in runtime encoding directly. Instead it generates:

  • deduplicated EncodingSpec pools,
  • mnemonic/variant dispatch tables,
  • macro-side normalization and fast-dispatch metadata.

The output is consumed by jit at build time.

Enums§

CodegenError
Errors emitted by codegen.

Functions§

collect_conditional_branch_alias_rules
Collects generated conditional-branch alias spellings and their canonical mnemonic mappings.
collect_flat_from_generated_rust
Collects normalized instruction variants from generated aarchmrs-instructions Rust source.
generate_encoder_module
Generates a Rust module that declares encoding specs for all provided variants.
generate_macro_normalization_module
Generates a Rust module that declares JIT macro normalization rule tables.