[clang] [OpenMP][Clang] Parsing/Sema support for `need_device_ptr(fb_nullify/fb_preserve)`. (PR #168905)
Fazlay Rabbi via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 24 14:54:24 PST 2025
================
@@ -1724,6 +1724,10 @@ def warn_omp_invalid_attribute_for_ompx_attributes : Warning<"'ompx_attribute' c
"%0 is ignored">, InGroup<OpenMPExtensions>;
def err_omp_duplicate_modifier : Error<"duplicate modifier '%0' in '%1' clause">;
def err_omp_expected_modifier : Error<"expected modifier in '%0' clause">;
+def err_omp_unknown_need_device_ptr_modifier
+ : Error<
+ "invalid argument for 'need_device_ptr' modifier in 'adjust_args' clause. "
----------------
mdfazlay wrote:
"invalid argument for 'need_device_ptr' modifier in 'adjust_args' clause; expected 'fp_nullify' or 'fb_preserve'" - this one would probably be more consistent with the format of other error messages IMO.
https://github.com/llvm/llvm-project/pull/168905
More information about the cfe-commits
mailing list