LLVM
22.0.0git
include
llvm
Frontend
OpenMP
OMPDeviceConstants.h
Go to the documentation of this file.
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_BARE
= 0,
23
OMP_TGT_EXEC_MODE_GENERIC
= 1 << 0,
24
OMP_TGT_EXEC_MODE_SPMD
= 1 << 1,
25
OMP_TGT_EXEC_MODE_GENERIC_SPMD
=
26
OMP_TGT_EXEC_MODE_GENERIC
|
OMP_TGT_EXEC_MODE_SPMD
,
27
OMP_TGT_EXEC_MODE_SPMD_NO_LOOP
= 1 << 2 |
OMP_TGT_EXEC_MODE_SPMD
28
};
29
30
}
// end namespace omp
31
}
// end namespace llvm
32
33
#endif
// LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H
llvm::omp::OMPTgtExecModeFlags
OMPTgtExecModeFlags
Definition:
OMPDeviceConstants.h:21
llvm::omp::OMP_TGT_EXEC_MODE_BARE
@ OMP_TGT_EXEC_MODE_BARE
Definition:
OMPDeviceConstants.h:22
llvm::omp::OMP_TGT_EXEC_MODE_SPMD
@ OMP_TGT_EXEC_MODE_SPMD
Definition:
OMPDeviceConstants.h:24
llvm::omp::OMP_TGT_EXEC_MODE_GENERIC_SPMD
@ OMP_TGT_EXEC_MODE_GENERIC_SPMD
Definition:
OMPDeviceConstants.h:25
llvm::omp::OMP_TGT_EXEC_MODE_SPMD_NO_LOOP
@ OMP_TGT_EXEC_MODE_SPMD_NO_LOOP
Definition:
OMPDeviceConstants.h:27
llvm::omp::OMP_TGT_EXEC_MODE_GENERIC
@ OMP_TGT_EXEC_MODE_GENERIC
Definition:
OMPDeviceConstants.h:23
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Wed Sep 3 2025 01:27:48 for LLVM by
1.9.6