Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 1 | //===- OMPDeviceConstants.h - OpenMP device related constants ----- C++ -*-===// |
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 | /// \file |
||
9 | /// |
||
10 | /// This file defines constans that will be used by both host and device |
||
11 | /// compilation. |
||
12 | /// |
||
13 | //===----------------------------------------------------------------------===// |
||
14 | |||
15 | #ifndef LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H |
||
16 | #define LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H |
||
17 | |||
18 | namespace llvm { |
||
19 | namespace omp { |
||
20 | |||
21 | enum OMPTgtExecModeFlags : unsigned char { |
||
22 | OMP_TGT_EXEC_MODE_GENERIC = 1 << 0, |
||
23 | OMP_TGT_EXEC_MODE_SPMD = 1 << 1, |
||
24 | OMP_TGT_EXEC_MODE_GENERIC_SPMD = |
||
25 | OMP_TGT_EXEC_MODE_GENERIC | OMP_TGT_EXEC_MODE_SPMD |
||
26 | }; |
||
27 | |||
28 | } // end namespace omp |
||
29 | } // end namespace llvm |
||
30 | |||
31 | #endif // LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H |