]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/clang/lib/Headers/openmp_wrappers/__clang_openmp_math_declares.h
MFC r355940:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / clang / lib / Headers / openmp_wrappers / __clang_openmp_math_declares.h
1 /*===---- __clang_openmp_math_declares.h - OpenMP math declares ------------===
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
10 #ifndef __CLANG_OPENMP_MATH_DECLARES_H__
11 #define __CLANG_OPENMP_MATH_DECLARES_H__
12
13 #ifndef _OPENMP
14 #error "This file is for OpenMP compilation only."
15 #endif
16
17 #if defined(__NVPTX__) && defined(_OPENMP)
18
19 #define __CUDA__
20
21 #if defined(__cplusplus)
22   #include <__clang_cuda_math_forward_declares.h>
23 #endif
24
25 /// Include declarations for libdevice functions.
26 #include <__clang_cuda_libdevice_declares.h>
27 /// Provide definitions for these functions.
28 #include <__clang_cuda_device_functions.h>
29
30 #undef __CUDA__
31
32 #endif
33 #endif