Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
wasm.h
Go to the documentation of this file.
1// Copyright 2026 The IREE Authors
2//
3// Licensed under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7#ifndef LOOMC_TARGET_WASM_H_
8#define LOOMC_TARGET_WASM_H_
9
10#include "loomc/target.h"
11
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#define LOOMC_ARTIFACT_FORMAT_WASM_BINARY "wasm-binary"
25
38 loomc_allocator_t allocator,
39 loomc_target_environment_t** out_target_environment);
40
41#ifdef __cplusplus
42} // extern "C"
43#endif
44
45#endif // LOOMC_TARGET_WASM_H_
#define LOOMC_API_EXPORT
Exports a public Loom C API symbol from a shared library build.
Definition base.h:34
struct iree_status_handle_t * loomc_status_t
Opaque status handle.
Definition base.h:55
Host allocator used for persistent Loom object storage.
Definition base.h:390
Prepared target environments and target lowering pipelines.
struct loomc_target_environment_t loomc_target_environment_t
Prepared immutable target environment.
Definition target.h:124
loomc_status_t loomc_target_environment_create_wasm(loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
Creates a target environment containing the WebAssembly compiler and emitter.