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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 08:32:36 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);
----------------
erichkeane wrote:

I dont!  I THINK this uses 'ast-print', so give me a minute and I'll put one on this review that tests all of the variants here.

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


More information about the cfe-commits mailing list