pub struct ObjectModule { /* private fields */ }
Expand description

An ObjectModule implements Module and emits “.o” files using the object library.

See the ObjectBuilder for a convenient way to construct ObjectModule instances.

Implementations

Create a new ObjectModule using the given Cranelift target.

Finalize all relocations and output an object.

Trait Implementations

Return the TargetIsa to compile for.

Get all declarations in this module.

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.

Define a function, producing the function body from the given Context. Read more

Define a function, taking the function body from the given bytes. Read more

Define a data object, producing the data contents from the given DataContext.

Get the module identifier for a given name, if that name has been declared. Read more

Return the target information needed by frontends to produce Cranelift IR for the current target. Read more

Create a new Context initialized for use with this Module. Read more

Clear the given Context and reset it for use with a new function. Read more

Create a new empty Signature with the default calling convention for the TargetIsa, to which parameter and return types can be added for declaring a function to be called by this Module. Read more

Clear the given Signature and reset for use with a new function. Read more

Use this when you’re building the IR of a function to reference a function. Read more

Use this when you’re building the IR of a function to reference a data object. Read more

TODO: Same as above.

TODO: Same as above.

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 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.