summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-08-21 21:59:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-08-21 21:59:03 +0000
commit5389b84a780ac17b63c10ad97cd5e3aaa41595b7 (patch)
treeb30e8e4628eee08e91a51c918b44fea901db868e /lib/CodeGen/CodeGenFunction.cpp
parent47ad6ce1afad6b70927347dfa15e0f1dc76bf5bb (diff)
downloadclang-5389b84a780ac17b63c10ad97cd5e3aaa41595b7.tar.gz
clang-5389b84a780ac17b63c10ad97cd5e3aaa41595b7.tar.bz2
clang-5389b84a780ac17b63c10ad97cd5e3aaa41595b7.tar.xz
Move -mfpmath handling to -cc1 and implement it for x86.
The original idea was to implement it all on the driver, but to do that the driver needs to know the sse level and to do that it has to know the default features of a cpu. Benjamin Kramer pointed out that if one day we decide to implement support for ' __attribute__ ((__target__ ("arch=core2")))', then the frontend needs to keep its knowledge of default features of a cpu. To avoid duplicating which part of clang handles default cpu features, it is probably better to handle -mfpmath in the frontend. For ARM this patch is just a small improvement. Instead of a cpu list, we check if neon is enabled, which allows us to reject things like -mcpu=cortex-a9 -mfpu=vfp -mfpmath=neon For X86, since LLVM doesn't support an independent ssefp feature, we just make sure the selected -mfpmath matches the sse level. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions