Module misc

Source
Expand description

A common functionality used among various compilers.

Enums§

CompiledKind
Represents the kind of compiled function or module, used for debugging and identification purposes across multiple compiler backends (e.g., LLVM, Cranelift).

Functions§

function_kind_to_filename
Converts a kind into a filename, that we will use to dump the contents of the IR object file to.
sanitize_filename 🔒
Sanitizes a string so it can be safely used as a filename.
types_to_signature
Converts a slice of Type into a string signature, mapping each type to a specific character. Used to represent function signatures in a compact string form.