On Wed, May 13, 2015 at 10:19 PM, David Majnemer <[email protected]> wrote:
> Author: majnemer > Date: Thu May 14 00:19:17 2015 > New Revision: 237335 > > URL: http://llvm.org/viewvc/llvm-project?rev=237335&view=rev > Log: > [clang-cl] Add /Qvec and /Qvec- to control vectorization > > Modified: > cfe/trunk/include/clang/Driver/CLCompatOptions.td > cfe/trunk/test/Driver/cl-options.c > > Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=237335&r1=237334&r2=237335&view=diff > > ============================================================================== > --- cfe/trunk/include/clang/Driver/CLCompatOptions.td (original) > +++ cfe/trunk/include/clang/Driver/CLCompatOptions.td Thu May 14 00:19:17 > 2015 > @@ -210,6 +210,12 @@ def _SLASH_o : CLJoinedOrSeparate<"o">, > HelpText<"Set output file or directory (ends in / or \\)">, > MetaVarName<"<file or directory>">; > def _SLASH_P : CLFlag<"P">, HelpText<"Preprocess to file">; > +def _SLASH_Qvec : CLFlag<"Qvec">, > + HelpText<"Enable the loop vectorization passes">, > + Alias<fvectorize>; > +def _SLASH_Qvec_ : CLFlag<"Qvec-">, > + HelpText<"Disable the loop vectorization passes">, > + Alias<fno_vectorize>; > Should these be in the "// Aliases:" section further up instead? > def _SLASH_Tc : CLCompileJoinedOrSeparate<"Tc">, > HelpText<"Specify a C source file">, MetaVarName<"<filename>">; > def _SLASH_TC : CLCompileFlag<"TC">, HelpText<"Treat all source files as > C">; > > Modified: cfe/trunk/test/Driver/cl-options.c > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=237335&r1=237334&r2=237335&view=diff > > ============================================================================== > --- cfe/trunk/test/Driver/cl-options.c (original) > +++ cfe/trunk/test/Driver/cl-options.c Thu May 14 00:19:17 2015 > @@ -109,6 +109,12 @@ > // RUN: %clang_cl /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s > // Oy_: -mdisable-fp-elim > > +// RUN: %clang_cl /Qvec -### -- %s 2>&1 | FileCheck -check-prefix=Qvec %s > +// Qvec: -vectorize-loops > + > +// RUN: %clang_cl /Qvec /Qvec- -### -- %s 2>&1 | FileCheck > -check-prefix=Qvec_ %s > +// Qvec_-NOT: -vectorize-loops > + > // RUN: %clang_cl /showIncludes -### -- %s 2>&1 | FileCheck > -check-prefix=showIncludes %s > // showIncludes: --show-includes > > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
