[flang-commits] [clang] [flang] [llvm] [mlir] [flang][OpenMP] Add frontend support for ompx_bare clause (PR #111106)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Thu Oct 10 03:18:52 PDT 2024
================
@@ -1103,6 +1105,13 @@ bool ConstructDecompositionT<C, H>::applyClause(
return applyToOutermost(node);
}
+template <typename C, typename H>
+bool ConstructDecompositionT<C, H>::applyClause(
+ const tomp::clause::OmpxBareT<TypeTy, IdTy, ExprTy> &clause,
+ const ClauseTy *node) {
+ return applyToAll(node);
----------------
skatrak wrote:
I thought about this a bit more, and perhaps we should apply it only to the innermost (i.e. `teams`). The reason I'm thinking this is that in that case it could be processed the same as a `thread_limit` + a `num_teams` clause attached to that construct. In that case, we wouldn't need to explicitly represent `ompx_bare` in the dialect either, we'd only update these other clauses to accept multiple dimensions.
https://github.com/llvm/llvm-project/pull/111106
More information about the flang-commits
mailing list