blob: 1078acd875f2144d3ee61f444b6e2341ec336067 [file] [log] [blame]
// Copyright 2022 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef IREE_MODULES_HAL_LOADER_MODULE_H_
#define IREE_MODULES_HAL_LOADER_MODULE_H_
#include <stdint.h>
#include "iree/base/api.h"
#include "iree/hal/api.h"
#include "iree/hal/local/executable_loader.h"
#include "iree/modules/hal/types.h"
#include "iree/vm/api.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
enum iree_hal_loader_module_flag_bits_t {
IREE_HAL_LOADER_MODULE_FLAG_NONE = 0u,
};
typedef uint32_t iree_hal_loader_module_flags_t;
// Creates the dynamic HAL executable loader module for local execution.
IREE_API_EXPORT iree_status_t iree_hal_loader_module_create(
iree_vm_instance_t* instance, iree_hal_loader_module_flags_t flags,
iree_host_size_t loader_count, iree_hal_executable_loader_t** loaders,
iree_allocator_t host_allocator, iree_vm_module_t** out_module);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif // IREE_MODULES_HAL_LOADER_MODULE_H_