[clang] [OpenMP] Introduce the initial support for OpenMP kernel language (PR #66844)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 25 08:17:46 PDT 2023


================
@@ -0,0 +1,21 @@
+// RUN: %clang_cc1 -verify -fopenmp %s
+// RUN: %clang_cc1 -verify -fopenmp-simd %s
+// RUN: %clang_cc1 -verify -fopenmp -fopenmp-targets=nvptx64 %s
+
+void foo() {
+}
+
+void bar() {
+#pragma omp target ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp target'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target'}}
----------------
jdoerfert wrote:

This message seems unhelpful.

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


More information about the cfe-commits mailing list