[clang] [OpenMP][Clang] Add support for OMP6.1 fb_nullify and fb_preserve in need_device_ptr modifier (PR #168905)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 11:27:12 PST 2025
================
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=61 %s
+
+void __attribute__((noinline)) device_impl(int *xp, int *&xpref, int n) {}
+
+#pragma omp declare variant(device_impl) \
+ adjust_args(need_device_ptr(foo) : xp, xpref) // expected-error{{unknown modifier in 'need_device_ptr' clause (OpenMP 6.1 or later only)}} // expected-error{{expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive}}
----------------
zahiraam wrote:
Done.
https://github.com/llvm/llvm-project/pull/168905
More information about the cfe-commits
mailing list