[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #117904)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 15 01:18:36 PST 2024


================
@@ -11774,6 +11774,9 @@ def err_omp_clause_requires_dispatch_construct : Error<
   "'%0' clause requires 'dispatch' context selector">;
 def err_omp_append_args_with_varargs : Error<
   "'append_args' is not allowed with varargs functions">;
+def warn_omp_dispatch_clause_novariants_nocontext : Warning<
+  "only 'novariants' clause is supported when 'novariants' & 'nocontext' clauses occur on the same dispatch construct">,
----------------
SunilKuravinakop wrote:

In case of 
       `#pragma omp dispatch nocontext(c1) novariants(c2) depend(inout:x)`
the alternative warning message that you have suggested may not be proper because it indicates `depend` is also not expected.

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


More information about the llvm-commits mailing list