Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
iree/task_pool.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.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
7#ifndef LOOMC_IREE_TASK_POOL_H_
8#define LOOMC_IREE_TASK_POOL_H_
9
10#include "iree/task/executor.h"
11#include "loomc/task_pool.h"
12
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
36 iree_task_executor_t* executor, loomc_allocator_t allocator,
37 loomc_task_pool_t** out_pool);
38
48 const loomc_task_pool_t* pool);
49
50#ifdef __cplusplus
51} // extern "C"
52#endif
53
54#endif // LOOMC_IREE_TASK_POOL_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
loomc_status_t loomc_task_pool_allocate_from_iree_executor(iree_task_executor_t *executor, loomc_allocator_t allocator, loomc_task_pool_t **out_pool)
Allocates a Loom task pool retaining an existing IREE task executor.
iree_task_executor_t * iree_task_executor_from_loomc_task_pool(const loomc_task_pool_t *pool)
Returns the borrowed IREE task executor owned by pool.
Host allocator used for persistent Loom object storage.
Definition base.h:390
Optional standard worker population for concurrent application work.
struct loomc_task_pool_t loomc_task_pool_t
Opaque standard task pool.
Definition task_pool.h:30