[clang] [clang][OpenMP] Implement `isOpenMPExecutableDirective` (PR #97089)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 11:22:58 PDT 2024


================
@@ -368,6 +368,14 @@ bool needsTaskBasedThreadLimit(OpenMPDirectiveKind DKind);
 /// is restricted only to memory order clauses of "OMPC_acquire",
 /// "OMPC_relaxed" and "OMPC_seq_cst".
 bool checkFailClauseParameter(OpenMPClauseKind FailClauseParameter);
+
+/// Checks if the specified directive is considered as "executable". This
+/// combines the OpenMP categories of "executable" and "subsidiary", plus
+/// any other directives that are should be treated as executable.
+/// \param DKind Specified directive.
+/// \return true - if the above condition is met for this directive
----------------
alexey-bataev wrote:

Up to you

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


More information about the cfe-commits mailing list