r237335 - [clang-cl] Add /Qvec and /Qvec- to control vectorization

David Majnemer david.majnemer at gmail.com
Sat Jun 20 21:42:21 PDT 2015


On Sat, Jun 20, 2015 at 9:11 PM, Nico Weber <thakis at chromium.org> wrote:

> On Wed, May 13, 2015 at 10:19 PM, David Majnemer <david.majnemer at gmail.com
> > 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?
>

Yes, I think that would be appropriate.


>
>
>>  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
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150620/2ae18945/attachment.html>


More information about the cfe-commits mailing list