[clang] [OpenACC] Implement AST for OpenACC Compute Constructs (PR #81188)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 12:48:35 PST 2024
================
@@ -2838,6 +2838,27 @@ void ASTStmtWriter::VisitOMPTargetParallelGenericLoopDirective(
Code = serialization::STMT_OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE;
}
+//===----------------------------------------------------------------------===//
+// OpenACC Constructs/Directives.
+//===----------------------------------------------------------------------===//
+void ASTStmtWriter::VisitOpenACCConstructStmt(OpenACCConstructStmt *S) {
+ Record.writeEnum(S->Kind);
+ Record.AddSourceRange(S->Range);
+ // TODO OpenACC: Serialize Clauses.
----------------
erichkeane wrote:
Note that I'm stealing 'TODO OpenACC:' as a comment prefix for things that need to happen 'really soon' for OpenACC.
https://github.com/llvm/llvm-project/pull/81188
More information about the cfe-commits
mailing list