1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//===--- OpenACCKinds.h - OpenACC Enums -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Defines some OpenACC-specific enums and functions.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_BASIC_OPENACCKINDS_H
#define LLVM_CLANG_BASIC_OPENACCKINDS_H
namespace clang {
// Represents the Construct/Directive kind of a pragma directive. Note the
// OpenACC standard is inconsistent between calling these Construct vs
// Directive, but we're calling it a Directive to be consistent with OpenMP.
enum class OpenACCDirectiveKind {
// Compute Constructs.
Parallel,
Serial,
Kernels,
// Data Environment. "enter data" and "exit data" are also referred to in the
// Executable Directives section, but just as a back reference to the Data
// Environment.
Data,
EnterData,
ExitData,
HostData,
// Misc.
Loop,
Cache,
// Combined Constructs.
ParallelLoop,
SerialLoop,
KernelsLoop,
// Atomic Construct.
Atomic,
// Declare Directive.
Declare,
// Executable Directives. "wait" is first referred to here, but ends up being
// in its own section after "routine".
Init,
Shutdown,
Set,
Update,
Wait,
// Procedure Calls in Compute Regions.
Routine,
// Invalid.
Invalid,
};
enum class OpenACCAtomicKind {
Read,
Write,
Update,
Capture,
Invalid,
};
} // namespace clang
#endif // LLVM_CLANG_BASIC_OPENACCKINDS_H
|