[clang] [clang][OpenMP] 6.0: Add defaultmap implicit-behaviors 'private' and 'storage' (PR #157767)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 11 08:35:00 PDT 2025
================
@@ -23025,8 +23032,11 @@ OMPClause *SemaOpenMP::ActOnOpenMPDefaultmapClause(
}
} else {
StringRef ModifierValue =
- "'alloc', 'from', 'to', 'tofrom', "
- "'firstprivate', 'none', 'default', 'present'";
+ getLangOpts().OpenMP < 60
+ ? "'alloc', 'from', 'to', 'tofrom', "
+ "'firstprivate', 'none', 'default', 'present'"
+ : "'storage', 'from', 'to', 'tofrom', "
----------------
alexey-bataev wrote:
Shall the alloc modifier be deprecated for version 6?
https://github.com/llvm/llvm-project/pull/157767
More information about the cfe-commits
mailing list