<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 20, 2015 at 9:11 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Wed, May 13, 2015 at 10:19 PM, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: majnemer<br>
Date: Thu May 14 00:19:17 2015<br>
New Revision: 237335<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D237335-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=rpcFz0EGIE1MLHz8MzQ7PUx6jWfYIIyGRfVJxxucmAU&s=wToGZBNDY7z3jFaNuwyd9_cNoxYP4jj012mv_kr2xIQ&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=237335&view=rev</a><br>
Log:<br>
[clang-cl] Add /Qvec and /Qvec- to control vectorization<br>
<br>
Modified:<br>
    cfe/trunk/include/clang/Driver/CLCompatOptions.td<br>
    cfe/trunk/test/Driver/cl-options.c<br>
<br>
Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_cfe_trunk_include_clang_Driver_CLCompatOptions.td-3Frev-3D237335-26r1-3D237334-26r2-3D237335-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=rpcFz0EGIE1MLHz8MzQ7PUx6jWfYIIyGRfVJxxucmAU&s=eAMALqaoSs780jtngtB2YsDFkIgW5WhXQ45zQjYfp3Q&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=237335&r1=237334&r2=237335&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/include/clang/Driver/CLCompatOptions.td (original)<br>
+++ cfe/trunk/include/clang/Driver/CLCompatOptions.td Thu May 14 00:19:17 2015<br>
@@ -210,6 +210,12 @@ def _SLASH_o : CLJoinedOrSeparate<"o">,<br>
   HelpText<"Set output file or directory (ends in / or \\)">,<br>
   MetaVarName<"<file or directory>">;<br>
 def _SLASH_P : CLFlag<"P">, HelpText<"Preprocess to file">;<br>
+def _SLASH_Qvec : CLFlag<"Qvec">,<br>
+                  HelpText<"Enable the loop vectorization passes">,<br>
+                  Alias<fvectorize>;<br>
+def _SLASH_Qvec_ : CLFlag<"Qvec-">,<br>
+                   HelpText<"Disable the loop vectorization passes">,<br>
+                   Alias<fno_vectorize>;<br></blockquote><div><br></div></div></div><div>Should these be in the "// Aliases:" section further up instead?</div></div></div></div></blockquote><div><br></div><div>Yes, I think that would be appropriate.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 def _SLASH_Tc : CLCompileJoinedOrSeparate<"Tc">,<br>
   HelpText<"Specify a C source file">, MetaVarName<"<filename>">;<br>
 def _SLASH_TC : CLCompileFlag<"TC">, HelpText<"Treat all source files as C">;<br>
<br>
Modified: cfe/trunk/test/Driver/cl-options.c<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_cfe_trunk_test_Driver_cl-2Doptions.c-3Frev-3D237335-26r1-3D237334-26r2-3D237335-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=rpcFz0EGIE1MLHz8MzQ7PUx6jWfYIIyGRfVJxxucmAU&s=EP10CpArKHNwOs8l5Qvz0mu20bIm_K0STVL7NAUDu4g&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=237335&r1=237334&r2=237335&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/test/Driver/cl-options.c (original)<br>
+++ cfe/trunk/test/Driver/cl-options.c Thu May 14 00:19:17 2015<br>
@@ -109,6 +109,12 @@<br>
 // RUN: %clang_cl /Oy- -### -- %s 2>&1 | FileCheck -check-prefix=Oy_ %s<br>
 // Oy_: -mdisable-fp-elim<br>
<br>
+// RUN: %clang_cl /Qvec -### -- %s 2>&1 | FileCheck -check-prefix=Qvec %s<br>
+// Qvec: -vectorize-loops<br>
+<br>
+// RUN: %clang_cl /Qvec /Qvec- -### -- %s 2>&1 | FileCheck -check-prefix=Qvec_ %s<br>
+// Qvec_-NOT: -vectorize-loops<br>
+<br>
 // RUN: %clang_cl /showIncludes -### -- %s 2>&1 | FileCheck -check-prefix=showIncludes %s<br>
 // showIncludes: --show-includes<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>