From 59cd748855e31ca948ee626aab00926eaa458d33 Mon Sep 17 00:00:00 2001 From: ronlieb Date: Tue, 29 Oct 2024 15:39:49 -0400 Subject: [PATCH] Revert "Remove -fopenacc command line option (#187)" (#197) This reverts commit 8902936f8238bb8ba8bb6cceba10e2a55459326e. --- clang/include/clang/Driver/Options.td | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 2b5f0f48fc276c..3b7ea1697e9b8a 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -1472,7 +1472,7 @@ def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">, // Clang specific/exclusive options for OpenACC. def openacc_macro_override : Separate<["-"], "fexperimental-openacc-macro-override">, - Visibility<[]>, + Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Overrides the _OPENACC macro value for experimental testing " "during OpenACC support development">; @@ -3664,8 +3664,10 @@ def fno_openmp_target_debug : Flag<["-"], "fno-openmp-target-debug">; //===----------------------------------------------------------------------===// // FlangOption + FC1 + ClangOption + CC1Option //===----------------------------------------------------------------------===// -def fopenacc : Flag<["-"], "fopenacc">, Group, Visibility<[]>, +let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption] in { +def fopenacc : Flag<["-"], "fopenacc">, Group, HelpText<"Enable OpenACC">; +} // let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption] //===----------------------------------------------------------------------===// // Optimisation remark options