tim.schmielau created this revision. Herald added a project: All. tim.schmielau requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
The documentation is still rather terse because it needs to fit onto a single line of clang --help output. But at least it lists what the user can specify and documents the non-obvious syntax. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D149456 Files: clang/include/clang/Driver/Options.td Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -3957,8 +3957,12 @@ def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>, HelpText<"Don't generate implicit floating point or vector instructions">; def mimplicit_float : Flag<["-"], "mimplicit-float">, Group<m_Group>; -def mrecip : Flag<["-"], "mrecip">, Group<m_Group>; +def mrecip : Flag<["-"], "mrecip">, Group<m_Group>, + HelpText<"Equivalent to '-mrecip=all'">; def mrecip_EQ : CommaJoined<["-"], "mrecip=">, Group<m_Group>, Flags<[CC1Option]>, + HelpText<"Control use of approximate reciprocal and reciprocal square root instructions followed by <n> iterations of " + "Newton-Raphson refinement. " + "<value> = ( ['!'] ['vec-'] ('rcp'|'sqrt') [('h'|'s'|'d')] [':'<n>] ) | 'all' | 'default' | 'none'">, MarshallingInfoStringVector<CodeGenOpts<"Reciprocals">>; def mprefer_vector_width_EQ : Joined<["-"], "mprefer-vector-width=">, Group<m_Group>, Flags<[CC1Option]>, HelpText<"Specifies preferred vector width for auto-vectorization. Defaults to 'none' which allows target specific decisions.">,
Index: clang/include/clang/Driver/Options.td =================================================================== --- clang/include/clang/Driver/Options.td +++ clang/include/clang/Driver/Options.td @@ -3957,8 +3957,12 @@ def mno_implicit_float : Flag<["-"], "mno-implicit-float">, Group<m_Group>, HelpText<"Don't generate implicit floating point or vector instructions">; def mimplicit_float : Flag<["-"], "mimplicit-float">, Group<m_Group>; -def mrecip : Flag<["-"], "mrecip">, Group<m_Group>; +def mrecip : Flag<["-"], "mrecip">, Group<m_Group>, + HelpText<"Equivalent to '-mrecip=all'">; def mrecip_EQ : CommaJoined<["-"], "mrecip=">, Group<m_Group>, Flags<[CC1Option]>, + HelpText<"Control use of approximate reciprocal and reciprocal square root instructions followed by <n> iterations of " + "Newton-Raphson refinement. " + "<value> = ( ['!'] ['vec-'] ('rcp'|'sqrt') [('h'|'s'|'d')] [':'<n>] ) | 'all' | 'default' | 'none'">, MarshallingInfoStringVector<CodeGenOpts<"Reciprocals">>; def mprefer_vector_width_EQ : Joined<["-"], "mprefer-vector-width=">, Group<m_Group>, Flags<[CC1Option]>, HelpText<"Specifies preferred vector width for auto-vectorization. Defaults to 'none' which allows target specific decisions.">,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits