forked from OSchip/llvm-project
[clang-cl] Add /Qvec and /Qvec- to control vectorization
llvm-svn: 237335
This commit is contained in:
parent
8c8fb1602c
commit
87b853c5f0
|
@ -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>;
|
||||
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">;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue