Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
vm.h File Reference

VM bytecode compiler package. More...

Go to the source code of this file.

Macros

#define LOOMC_ARTIFACT_FORMAT_VM   "vm"
 IREE VM bytecode module artifact format.

Functions

loomc_status_t loomc_target_environment_create_vm (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates a target environment containing the VM compiler and emitter.

Detailed Description

VM bytecode compiler package.

The package compiles functions for the portable IREE VM and emits canonical VM bytecode modules. Compilation and emission require no live device or platform runtime.

Function Documentation

◆ loomc_target_environment_create_vm()

loomc_status_t loomc_target_environment_create_vm ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates a target environment containing the VM compiler and emitter.

Parameters
allocatorHost allocator used for target-environment storage.
out_target_environmentReceives one retained environment on success.
Returns
OK when the target environment was created.
Ownership
The caller releases the returned reference with loomc_target_environment_release. The environment may be shared across compiler instances and worker threads.