cranelift_codegen_meta

Module gen_types

Source
Expand description

Generate sources with type info.

This generates a types.rs file which is included in cranelift-codegen/ir/types.rs. The file provides constant definitions for the most commonly used types, including all of the scalar types.

This ensures that the metaprogram and the generated program see the same type numbering.

Functionsยง

  • Emit definition for all dynamic vector types with bits total size.
  • emit_type ๐Ÿ”’
    Emit a constant definition of a single value type.
  • emit_types ๐Ÿ”’
    Emit types using the given formatter object.
  • emit_vectors ๐Ÿ”’
    Emit definition for all vector types with bits total size.
  • generate ๐Ÿ”’
    Generate the types file.