clang-cl: Make all x86 CPU feature flags available, such as -msse3
authorReid Kleckner <reid@kleckner.net>
Sat, 12 Jul 2014 00:29:05 +0000 (00:29 +0000)
committerReid Kleckner <reid@kleckner.net>
Sat, 12 Jul 2014 00:29:05 +0000 (00:29 +0000)
commit681ae920834f4634e282ba5d80cfd06db1d05f44
tree9abc4eda39791eef0ef8d90b5b1588c4fb7f8f13
parent60755108391b515456f0f6cb4617e0a70a1f8ee1
clang-cl: Make all x86 CPU feature flags available, such as -msse3

Ideally, we would use the /arch cl.exe flag for this stuff.
Unfortunately, MSVC supports only 5 /arch flag values, which isn't
nearly enough to cover all the CPU features that LLVM cares about.  At
the very least, we need to know about SSE3 and SSE4.1 in addition to
SSE, SSE2, AVX, and AVX2.

In the future we should add the relevant /arch mappings in addition to
these gcc-style -m flags.

llvm-svn: 212869
clang/include/clang/Driver/Options.td
clang/test/Driver/cl-options.c