[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 04:19:03 PDT 2025


================
@@ -3700,6 +3701,11 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
     if (NeedsCleanup)
       Flags = Flags | DestructorsFlag;
   }
+  if (const auto *Clause = D.getSingleClause<OMPThreadsetClause>()) {
----------------
Ritanya-B-Bharadwaj wrote:

For this flag, I followed the existing pattern where flags are handled directly, not through the data parameter, to stay consistent. Since the other flags are also managed this way, it didn’t seem necessary to change it just for this case. However, if you think using the data parameter is the right approach, I can take it up separately as a new task — to modify the existing features and add support for passing all flags via the data parameter.

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


More information about the cfe-commits mailing list