[docs] Fix build-docs.sh
[llvm-project.git] / clang / lib / Headers / openmp_wrappers / complex.h
blob7e7c0866426bc9ec9ffb9e41f11c1c8b6c079243
1 /*===-- complex --- OpenMP complex wrapper for target regions --------- c++ -===
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
7 *===-----------------------------------------------------------------------===
8 */
10 #ifndef __CLANG_OPENMP_COMPLEX_H__
11 #define __CLANG_OPENMP_COMPLEX_H__
13 #ifndef _OPENMP
14 #error "This file is for OpenMP compilation only."
15 #endif
17 // We require math functions in the complex builtins below.
18 #include <math.h>
20 #ifdef __NVPTX__
21 #define __OPENMP_NVPTX__
22 #include <__clang_cuda_complex_builtins.h>
23 #undef __OPENMP_NVPTX__
24 #endif
26 #ifdef __AMDGCN__
27 #define __OPENMP_AMDGCN__
28 #include <__clang_cuda_complex_builtins.h>
29 #undef __OPENMP_AMDGCN__
30 #endif
32 #endif
34 // Grab the host header too.
35 #include_next <complex.h>