Debian Codegraph @

offload/unittests/Conformance/include/mathtest/OffloadForward.hpp

raw
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, 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 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// This file contains forward declarations for the opaque types and handles
11 /// used by the Offload API.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef MATHTEST_OFFLOADFORWARD_HPP
16 #define MATHTEST_OFFLOADFORWARD_HPP
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif // __cplusplus
21
22 struct ol_error_struct_t;
23 typedef const ol_error_struct_t *ol_result_t;
24 #define OL_SUCCESS (static_cast<ol_result_t>(nullptr))
25
26 struct ol_device_impl_t;
27 typedef struct ol_device_impl_t *ol_device_handle_t;
28
29 struct ol_program_impl_t;
30 typedef struct ol_program_impl_t *ol_program_handle_t;
31
32 struct ol_symbol_impl_t;
33 typedef struct ol_symbol_impl_t *ol_symbol_handle_t;
34
35 #ifdef __cplusplus
36 }
37 #endif // __cplusplus
38
39 #endif // MATHTEST_OFFLOADFORWARD_HPP