1 #ifndef HALIDE_WASM_EXECUTOR_H 2 #define HALIDE_WASM_EXECUTOR_H 29 struct WasmModuleContents;
41 const std::vector<Argument> &arguments,
42 const std::string &fn_name,
43 const std::map<std::string, JITExtern> &externs,
44 const std::vector<JITModule> &extern_deps);
47 int run(
const void *
const *args);
53 #endif // HALIDE_WASM_EXECUTOR_H Handle to compiled wasm code which can be called later.
A struct representing a target machine and os to generate code for.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
Not visible externally, similar to 'static' linkage in C.
Defines the internal representation of parameters to halide piplines.
Internal::IntrusivePtr< WasmModuleContents > contents
Defines a type used for expressing the type signature of a generated halide pipeline.
static WasmModule compile(const Module &module, const std::vector< Argument > &arguments, const std::string &fn_name, const std::map< std::string, JITExtern > &externs, const std::vector< JITModule > &extern_deps)
Compile generated wasm code with a set of externs.
static bool can_jit_target(const Target &target)
If the given target can be executed via the wasm executor, return true.
int run(const void *const *args)
Run generated previously compiled wasm code with a set of arguments.