[clang] [llvm] [openmp] [Clang][OpenMP] Add reverse directive (PR #92916)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 26 05:49:28 PDT 2024


================
@@ -449,6 +449,23 @@ OMPUnrollDirective *OMPUnrollDirective::CreateEmpty(const ASTContext &C,
       SourceLocation(), SourceLocation());
 }
 
+OMPReverseDirective *
+OMPReverseDirective::Create(const ASTContext &C, SourceLocation StartLoc,
+                            SourceLocation EndLoc, Stmt *AssociatedStmt,
+                            Stmt *TransformedStmt, Stmt *PreInits) {
+  OMPReverseDirective *Dir = createDirective<OMPReverseDirective>(
+      C, {}, AssociatedStmt, TransformedStmtOffset + 1, StartLoc, EndLoc);
----------------
alexey-bataev wrote:

```suggestion
      C, std::nullopt, AssociatedStmt, TransformedStmtOffset + 1, StartLoc, EndLoc);
```


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


More information about the cfe-commits mailing list