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

Create a new empty module.

Dump the module in human-readable form.

Add a unit to the module.

Remove a unit from the module.

Declare an external unit.

Declare an external unit.

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 an unit in the module.

Return a mutable unit in the module.

Return an iterator over the symbols in the module.

Return an iterator over the local symbols in the module.

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.

Locally link the module.

Panic if the module is not well-formed.

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

Deserialize this value from the given Serde deserializer. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.