Struct llhd::function::Function [] [src]

pub struct Function { /* fields omitted */ }

A function. Sequentially executes instructions to determine a result value from its inputs. Implements control flow and immediate execution.

Methods

impl Function
[src]

[src]

Create a new function with the given name and type signature. Anonymous arguments are created for each argument in the type signature. Use the args_mut function to get a hold of these arguments and assign names and additional data to them.

[src]

Obtain a reference to this function.

[src]

Get the name of the function.

[src]

Get the return type of the function.

[src]

Get a graph reference to one of the arguments of the function.

[src]

Get a reference to the arguments of the function.

[src]

Get a mutable reference to the arguments of the function.

[src]

Get a reference to the sequential body of the function.

[src]

Get a mutable reference to the sequential body of the function.

Trait Implementations

impl Value for Function
[src]

[src]

Get the unique ID of the value.

[src]

Get the type of the value.

[src]

Get the optional name of the value.

[src]

Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more