Struct cranelift_module::ModuleDeclarations [−][src]
pub struct ModuleDeclarations { /* fields omitted */ }
Expand description
This provides a view to the state of a module which allows ir::ExternalName
s to be translated
into FunctionDeclaration
s and DataDeclaration
s.
Implementations
Get the module identifier for a given name, if that name has been declared.
Get an iterator of all function declarations
Return whether name
names a function, rather than a data object.
Get the FunctionDeclaration
for the function named by name
.
Get an iterator of all data declarations
Get the DataDeclaration
for the data object named by name
.
pub fn declare_function(
&mut self,
name: &str,
linkage: Linkage,
signature: &Signature
) -> ModuleResult<(FuncId, Linkage)>
pub fn declare_function(
&mut self,
name: &str,
linkage: Linkage,
signature: &Signature
) -> ModuleResult<(FuncId, Linkage)>
Declare a function in this module.
Declare an anonymous function in this module.
Declare a data object in this module.
Declare an anonymous data object in this module.
Trait Implementations
Returns the “default value” for a type. Read more