]> granicus.if.org Git - clang/commit
[clang-cl] Use /arch: to set the base target CPU
authorReid Kleckner <reid@kleckner.net>
Tue, 30 Jun 2015 16:32:04 +0000 (16:32 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 30 Jun 2015 16:32:04 +0000 (16:32 +0000)
commit11fd95dc829c969286da2082e4506f10a7363588
tree72ce3659fe907a2ea1d572dca7be2e7ee165a186
parent939c4bfc237975df828cc6b1ff9eb24710efd494
[clang-cl] Use /arch: to set the base target CPU

The main effect of this change is that /arch:IA32 will use i386 as the
CPU, while clang-cl will continue to default to pentium4 (aka SSE2 plus
the usual other features).

/arch:AVX and /arch:AVX2 will also now enable the other features
available in sandybridge and haswell respectively, which is consistent
with MSDN.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241077 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/cl-x86-flags.c