[clang] [clang][OpenMP] Implement `isOpenMPExecutableDirective` (PR #97089)
Krzysztof Parzyszek via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 28 11:21:47 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
----------------
kparzysz wrote:
Are you sure? "...condition is met for this directive..." sounds correct to me.
https://github.com/llvm/llvm-project/pull/97089
More information about the cfe-commits
mailing list