Loom C API
Public Loom compiler C API
Toggle main menu visibility
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
22
extern
"C"
{
23
#endif
24
35
LOOMC_API_EXPORT
loomc_status_t
loomc_task_pool_allocate_from_iree_executor
(
36
iree_task_executor_t* executor,
loomc_allocator_t
allocator,
37
loomc_task_pool_t
** out_pool);
38
47
LOOMC_API_EXPORT
iree_task_executor_t*
iree_task_executor_from_loomc_task_pool
(
48
const
loomc_task_pool_t
* pool);
49
50
#ifdef __cplusplus
51
}
// extern "C"
52
#endif
53
54
#endif
// LOOMC_IREE_TASK_POOL_H_
LOOMC_API_EXPORT
#define LOOMC_API_EXPORT
Exports a public Loom C API symbol from a shared library build.
Definition
base.h:34
loomc_status_t
struct iree_status_handle_t * loomc_status_t
Opaque status handle.
Definition
base.h:55
loomc_task_pool_allocate_from_iree_executor
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_from_loomc_task_pool
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.
loomc_allocator_t
Host allocator used for persistent Loom object storage.
Definition
base.h:390
task_pool.h
Optional standard worker population for concurrent application work.
loomc_task_pool_t
struct loomc_task_pool_t loomc_task_pool_t
Opaque standard task pool.
Definition
task_pool.h:30
loomc
iree
task_pool.h
Generated by
1.17.0