Struct llvm_rs::JitEngine

source ·
pub struct JitEngine(_);
Expand description

The MCJIT backend, which compiles functions and values into machine code.

Implementations§

Run the closure cb with the machine code for the function function.

If the function takes multiple arguments, these should be wrapped in a tuple due to the limitations of Rust’s type system.

This will check that the types match at runtime when in debug mode, but not release mode. You should make sure to use debug mode if you want it to error when the types don’t match.

Run the closure cb with the machine code for the function function.

Returns a pointer to the machine code for the function function.

This is marked as unsafe because the types given as arguments and return could be different from their internal representation.

Trait Implementations§

What a reference to this type represents as a C pointer.
Destroy the contents at the pointer’s location. Read more
The options given to the engine upon creation.
Create a new execution engine with the given Module and optiions, or return a description of the error. Read more
Add a module to the list of modules to interpret or compile.
Remove a module from the list of modules to interpret or compile.
Execute all of the static constructors for this program.
Execute all of the static destructors for this program.
Attempt to find a function with the name given, or None if there wasn’t a function with that name. Read more
Run function with the arguments given as ``GenericValue`s, then return the result as one. Read more
Returns a pointer to the global value given. Read more
Returns a pointer to the global value with the name given. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

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.