Introduce Builder and Product types to the Module workflow.
This eliminates API confusion and surface area with respect to what state the `Backend` needs to be in at different points. Now, API users will construct a `Builder`, and pass it into the `Module` which uses it to constrct a `Backend`. The `Backend` instance only lives inside the `Module`. And when finished, the `Module` can return a `Product` back to the user providing any outputs it has.
This commit is contained in:
@@ -26,4 +26,4 @@ extern crate libc;
|
||||
mod backend;
|
||||
mod memory;
|
||||
|
||||
pub use backend::SimpleJITBackend;
|
||||
pub use backend::{SimpleJITBuilder, SimpleJITBackend};
|
||||
|
||||
Reference in New Issue
Block a user