[clang] [OpenACC] Implement initial parsing for Construct/Directive Names (PR #72661)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 17 07:21:41 PST 2023


================
@@ -0,0 +1,72 @@
+//===--- 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,
----------------
alexey-bataev wrote:

I would suggest starting with a single construct support, say parallel. Other constructs must be added later, when each particular feature is going to be implemented.

https://github.com/llvm/llvm-project/pull/72661


More information about the cfe-commits mailing list