[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 08:26:29 PDT 2024


================
@@ -166,3 +176,9 @@ void OpenACCClausePrinter::VisitVectorLengthClause(
     const OpenACCVectorLengthClause &C) {
   OS << "vector_length(" << C.getIntExpr() << ")";
 }
+
+void OpenACCClausePrinter::VisitPrivateClause(const OpenACCPrivateClause &C) {
+  OS << "private(";
+  llvm::interleaveComma(C.getVarList(), OS);
----------------
alexey-bataev wrote:

Do you have a test for this?

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


More information about the cfe-commits mailing list