[flang-commits] [flang] [Flang][OpenMP] Lowering Order clause to MLIR (PR #96730)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed Jun 26 04:28:51 PDT 2024


================
@@ -394,6 +394,29 @@ bool ClauseProcessor::processNumThreads(
   return false;
 }
 
+bool ClauseProcessor::processOrder(mlir::omp::OrderClauseOps &result) const {
+  if (auto *clause = findUniqueClause<omp::clause::Order>()) {
----------------
skatrak wrote:

Nit: If you move the `using` statement above, you can simplify this statement as well.
```suggestion
  if (auto *clause = findUniqueClause<Order>()) {
```

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


More information about the flang-commits mailing list