@@ -22,7 +22,7 @@ namespace clang {
22
22
// Represents the Construct/Directive kind of a pragma directive. Note the
23
23
// OpenACC standard is inconsistent between calling these Construct vs
24
24
// Directive, but we're calling it a Directive to be consistent with OpenMP.
25
- enum class OpenACCDirectiveKind {
25
+ enum class OpenACCDirectiveKind : uint8_t {
26
26
// Compute Constructs.
27
27
Parallel,
28
28
Serial,
@@ -152,7 +152,7 @@ inline bool isOpenACCComputeDirectiveKind(OpenACCDirectiveKind K) {
152
152
K == OpenACCDirectiveKind::Kernels;
153
153
}
154
154
155
- enum class OpenACCAtomicKind {
155
+ enum class OpenACCAtomicKind : uint8_t {
156
156
Read,
157
157
Write,
158
158
Update,
@@ -161,7 +161,7 @@ enum class OpenACCAtomicKind {
161
161
};
162
162
163
163
// / Represents the kind of an OpenACC clause.
164
- enum class OpenACCClauseKind {
164
+ enum class OpenACCClauseKind : uint8_t {
165
165
// / 'finalize' clause, allowed on 'exit data' directive.
166
166
Finalize,
167
167
// / 'if_present' clause, allowed on 'host_data' and 'update' directives.
@@ -459,7 +459,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &Out,
459
459
return printOpenACCClauseKind (Out, K);
460
460
}
461
461
462
- enum class OpenACCDefaultClauseKind {
462
+ enum class OpenACCDefaultClauseKind : uint8_t {
463
463
// / 'none' option.
464
464
None,
465
465
// / 'present' option.
@@ -492,7 +492,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &Out,
492
492
return printOpenACCDefaultClauseKind (Out, K);
493
493
}
494
494
495
- enum class OpenACCReductionOperator {
495
+ enum class OpenACCReductionOperator : uint8_t {
496
496
// / '+'.
497
497
Addition,
498
498
// / '*'.
0 commit comments