[flang] [llvm] [mlir] [flang][OpenMP] Add frontend support for ompx_bare clause (PR #111106)
Ivan R. Ivanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 17:00:07 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);
----------------
ivanradanov wrote:
The intent of ompx_bare is to support writing cuda/hip-like kernels on GPUs with a specific number of teams and threads, so it should be fine as is with only applying it to the target. The sema check should make sure it is only allowed if it is a part of `target teams` (thank you @kparzysz)
https://github.com/llvm/llvm-project/pull/111106
More information about the llvm-commits
mailing list