[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / lib / Headers / openmp_wrappers / stdlib.h
blobd607469e04f79e09c34f3b2bf37d9827ea98bec4
1 /*===---- openmp_wrapper/stdlib.h ------ OpenMP math.h intercept ----- 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_STDLIB_H__
11 #define __CLANG_OPENMP_STDLIB_H__
13 #ifndef _OPENMP
14 #error "This file is for OpenMP compilation only."
15 #endif
17 #include_next <stdlib.h>
19 #ifdef __AMDGCN__
20 #pragma omp begin declare variant match(device = {arch(amdgcn)})
22 #define __OPENMP_AMDGCN__
23 #include <__clang_hip_stdlib.h>
24 #undef __OPENMP_AMDGCN__
26 #pragma omp end declare variant
27 #endif
29 #endif // __CLANG_OPENMP_STDLIB_H__