Struct weld::WeldModule [] [src]

pub struct WeldModule { /* fields omitted */ }

A compiled runnable Weld module.

Methods

impl WeldModule
[src]

Creates a compiled WeldModule with a Weld program and configuration.

A compiled module encapsulates JIT'd code in the current process. This function takes a string reprsentation of Weld code, parses it, and compiles it into machine code. The passed WeldConf can be used to configure how the code is compiled (see conf.rs for a list of compilation options). Each configuration option has a default value, so setting configuration options is optional.

Run this WeldModule with a configuration and argument.

This is the entry point for running a Weld program. The WeldConf specifies how runtime options for running the program (e.g., number of threads): see conf.rs for a list of runtime options. Each configuration option has a default value, so setting configuration options is optional.

Weld Arguments

This function takes a WeldValue initialized using WeldValue::new_from_data or another Weld program. The value must encapsulate a valid pointer in a "Weld-compatible" format as specified by the specification. This method is, as a result, unsafe because passing invalid data into a Weld program will cause undefined behavior.

Note that most Rust values cannot be passed into Weld directly. That is, it is not safe to simply pass a pointer to a Vec<T> into Weld directly.

Important traits for Vec<u8>

Returns the Weld arguments types of this WeldModule.

Returns the Weld return type of this WeldModule.

Trait Implementations

Auto Trait Implementations

impl !Send for WeldModule

impl !Sync for WeldModule