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

A builder for SimpleJITBackend.

Implementations

Create a new SimpleJITBuilder.

Create a new SimpleJITBuilder with an arbitrary target. This is mainly useful for testing.

SimpleJIT requires a TargetIsa configured for non-PIC.

To create a SimpleJITBuilder for native use, use the new constructor instead.

Define a symbol in the internal symbol table.

The JIT will use the symbol table to resolve names that are declared, but not defined, in the module being compiled. A common example is external functions. With this method, functions and data can be exposed to the code being compiled which are defined by the host.

If a symbol is defined more than once, the most recent definition will be retained.

If the JIT fails to find a symbol in its internal table, it will fall back to a platform-specific search (this typically involves searching the current process for public symbols, followed by searching the platform’s C runtime).

Define multiple symbols in the internal symbol table.

Using this is equivalent to calling symbol on each element.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.