2023-02-06 11:01:20 -06:00
|
|
|
//===-- Generic device loader interface -----------------------------------===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, 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
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/// Generic interface to load the \p image and launch execution of the _start
|
|
|
|
/// kernel on the target device. Copies \p argc and \p argv to the device.
|
|
|
|
/// Returns the final value of the `main` function on the device.
|
2023-03-17 14:06:53 -05:00
|
|
|
int load(int argc, char **argv, char **evnp, void *image, size_t size);
|