[llvm-branch-commits] [flang] [flang][OpenMP] Use different ids for block and s/a ORDERED directive (PR #214727)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 7 11:50:50 PDT 2026


================
@@ -1903,8 +1910,10 @@ auto OmpDirectiveSpecificationParser::Parse(ParseState &state) const
 }
 
 static bool IsStandaloneOrdered(const OmpDirectiveSpecification &spec) {
-  // An ORDERED construct is standalone if it has DOACROSS or DEPEND clause.
-  return spec.DirId() == llvm::omp::Directive::OMPD_ordered &&
+  // An ORDERED directive is standalone if it has DOACROSS or DEPEND clause.
+  // The directive name parser will always use OMPD_ordered_standalone
+  // for "ORDEED".
----------------
kwyatt-ext wrote:

Just a quick comment as I skim through.  A more thorough review to follow: "ORDERED"

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


More information about the llvm-branch-commits mailing list