<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">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=C4doksySgcFgw-k3Zc5hl4sXFbyev4bHkw1wF-ABYd0&s=IYi3jkdVx7oZAN_1-mW3oZE2sfysRtKtnFJg-IuAh1Y&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=C4doksySgcFgw-k3Zc5hl4sXFbyev4bHkw1wF-ABYd0&s=F81O5j6KH5LWHplqnWiNLJdVC7eiBOJPf0i2DWaIo2Y&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>Should these be in the "// Aliases:" section further up instead?</div><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=C4doksySgcFgw-k3Zc5hl4sXFbyev4bHkw1wF-ABYd0&s=5KnRunhd-rkcs0PMhehKlAe06fG6uAWczpkvxE9NKFM&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">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></div><br></div></div>