Struct llhd::ir::Module [−][src]
pub struct Module { /* fields omitted */ }
Expand description
A module.
This is the root node of an LLHD intermediate representation. Contains
Function
, Process
, and Entity
declarations and definitions.
Implementations
Dump the module in human-readable form.
Remove a unit from the module.
Remove a declaration from the module.
Return an iterator over the units in this module.
Return a mutable iterator over the units in this module.
Return a parallel iterator over the units in this module.
Return a parallel mutable iterator over the units in this module.
Return an iterator over the functions in this module.
Return an iterator over the processes in this module.
Return an iterator over the entities in this module.
Return an iterator over the external unit declarations in this module.
Return a mutable unit in the module.
Return an iterator over the symbols in the module.
pub fn local_symbols<'a>(
&'a self
) -> impl Iterator<Item = (&UnitName, LinkedUnit, &Signature)> + 'a
pub fn local_symbols<'a>(
&'a self
) -> impl Iterator<Item = (&UnitName, LinkedUnit, &Signature)> + 'a
Return an iterator over the local symbols in the module.
pub fn global_symbols<'a>(
&'a self
) -> impl Iterator<Item = (&UnitName, LinkedUnit, &Signature)> + 'a
pub fn global_symbols<'a>(
&'a self
) -> impl Iterator<Item = (&UnitName, LinkedUnit, &Signature)> + 'a
Return an iterator over the global symbols in the module.
Check whether the module is internally linked.
Adding or modifying a unit invalidates the linkage within the module.
Lookup what an external unit links to.
The module must be linked for this to work.
Add a location hint to a unit.
Annotates the byte offset of a unit in the input file.
Get the location hint associated with a unit.
Returns the byte offset of the unit in the input file, or None if there is no hint for the value.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more