Expand description
Top-level lib.rs for cranelift_module.
Structs§
- Data
Context - This is to data objects what cranelift_codegen::Context is to functions.
- Data
Description - A description of a data object.
- DataId
- A data object identifier for use in the
Moduleinterface. - FuncId
- A function identifier for use in the
Moduleinterface. - Module
- A
Moduleis a utility for collecting functions and data objects, and linking them together. - Module
Function - A function belonging to a
Module. - Module
Namespace - This provides a view to the state of a module which allows
ir::ExternalNames to be translated intoFunctionDeclarations andDataDeclarations.
Enums§
- Func
OrData Id - A declared name may refer to either a function or data declaration
- Init
- This specifies how data is to be initialized.
- Linkage
- Linkage refers to where an entity is defined and who can see it.
- Module
Error - Error messages for all
ModuleandBackendmethods
Constants§
- VERSION
- Version number of this crate.
Traits§
- Backend
- A
Backendimplements the functionality needed to support aModule.
Functions§
- default_
libcall_ names - Default names for
ir::LibCalls. A function by this name is imported into the object as part of the translation of air::ExternalName::LibCallvariant.
Type Aliases§
- Module
Result - A convenient alias for a
Resultthat usesModuleErroras the error type.