Skip to content

Commit

Permalink
[OpenMP][Driver] Adds --opaque-offload-linker option to Clang options
Browse files Browse the repository at this point in the history
Fixes visibility for --opaque-offload-linker and --no-opaque-offload-linker to be visible Clang and CC1 option.
Removes necessity of specifying option after -Xclang

Change-Id: I5c724dc8389d079ba80330b24686917630e9e3ea
  • Loading branch information
nicebert authored and ronlieb committed Oct 25, 2023
1 parent a9b8060 commit 47243ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -3467,9 +3467,9 @@ defm openmp_optimistic_collapse : BoolFOption<"openmp-optimistic-collapse",
NegFlag<SetFalse>, BothFlags<[NoArgumentUnused, HelpHidden], []>>;
def static_openmp: Flag<["-"], "static-openmp">,
HelpText<"Use the static host OpenMP runtime while linking.">;
def opaque_offload_linker : Flag<["--"], "opaque-offload-linker">, Visibility<[CC1Option]>, Group<f_Group>,
def opaque_offload_linker : Flag<["--"], "opaque-offload-linker">, Visibility<[ClangOption, CC1Option]>, Group<f_Group>,
HelpText<"Build/link omp offload binary, construct opaque cmd list instead of single clang-linker-wrapper cmd.">;
def no_opaque_offload_linker : Flag<["--"], "no-opaque-offload-linker">, Visibility<[CC1Option]>, Group<f_Group>,
def no_opaque_offload_linker : Flag<["--"], "no-opaque-offload-linker">, Visibility<[ClangOption, CC1Option]>, Group<f_Group>,
HelpText<"Build/link omp offload binary, using single clang-linker-wrapper cmd.">;
def fopenmp_new_driver : Flag<["-"], "fopenmp-new-driver">, Flags<[HelpHidden]>,
HelpText<"Use the new driver for OpenMP offloading.">;
Expand Down

0 comments on commit 47243ae

Please sign in to comment.