[clang] [OpenACC] Implement `self` clause for compute constructs (PR #88760)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 06:30:30 PDT 2024
================
@@ -72,3 +92,9 @@ void OpenACCClausePrinter::VisitDefaultClause(const OpenACCDefaultClause &C) {
void OpenACCClausePrinter::VisitIfClause(const OpenACCIfClause &C) {
OS << "if(" << C.getConditionExpr() << ")";
}
+
+void OpenACCClausePrinter::VisitSelfClause(const OpenACCSelfClause &C) {
+ OS << "self";
+ if (const Expr *CondExpr = C.getConditionExpr())
----------------
alexey-bataev wrote:
Need to check if Clause.hasConditionExpr() is true?
https://github.com/llvm/llvm-project/pull/88760
More information about the cfe-commits
mailing list