Author: Joseph Huber Date: 2022-04-19T08:42:43-04:00 New Revision: 944b25aee393ceb31d847fb4d3b98695852eecc9
URL: https://github.com/llvm/llvm-project/commit/944b25aee393ceb31d847fb4d3b98695852eecc9 DIFF: https://github.com/llvm/llvm-project/commit/944b25aee393ceb31d847fb4d3b98695852eecc9.diff LOG: [OpenMP] Make Xopenmp-target args compile-only to silence warnings Summary: Previously we needed the `Xopenmp-target=` option during the linking phase so the old offloading driver knew which items to extract and link for the device. Now that the new driver has become the default this is no longer necessary and will cause a warning to be emitted for the unused argument. This should be silenced to avoid noise. Added: Modified: clang/include/clang/Driver/Options.td Removed: ################################################################################ diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index a1f4075ad9590..6ec7ddb331ecb 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -812,9 +812,9 @@ def Xcuda_fatbinary : Separate<["-"], "Xcuda-fatbinary">, HelpText<"Pass <arg> to fatbinary invocation">, MetaVarName<"<arg>">; def Xcuda_ptxas : Separate<["-"], "Xcuda-ptxas">, HelpText<"Pass <arg> to the ptxas assembler">, MetaVarName<"<arg>">; -def Xopenmp_target : Separate<["-"], "Xopenmp-target">, +def Xopenmp_target : Separate<["-"], "Xopenmp-target">, Group<CompileOnly_Group>, HelpText<"Pass <arg> to the target offloading toolchain.">, MetaVarName<"<arg>">; -def Xopenmp_target_EQ : JoinedAndSeparate<["-"], "Xopenmp-target=">, +def Xopenmp_target_EQ : JoinedAndSeparate<["-"], "Xopenmp-target=">, Group<CompileOnly_Group>, HelpText<"Pass <arg> to the target offloading toolchain identified by <triple>.">, MetaVarName<"<triple> <arg>">; def z : Separate<["-"], "z">, Flags<[LinkerInput, RenderAsInput]>, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits