cpu: fix clang flags for generic x86_64#13491
Conversation
|
It's available according to $ llc-3.9 -march=x86-64 -mcpu=help
Available CPUs for this target:
amdfam10 - Select the amdfam10 processor.
athlon - Select the athlon processor.
athlon-4 - Select the athlon-4 processor.
athlon-fx - Select the athlon-fx processor.
athlon-mp - Select the athlon-mp processor.
athlon-tbird - Select the athlon-tbird processor.
athlon-xp - Select the athlon-xp processor.
athlon64 - Select the athlon64 processor.
athlon64-sse3 - Select the athlon64-sse3 processor.
atom - Select the atom processor.
barcelona - Select the barcelona processor.
bdver1 - Select the bdver1 processor.
bdver2 - Select the bdver2 processor.
bdver3 - Select the bdver3 processor.
bdver4 - Select the bdver4 processor.
bonnell - Select the bonnell processor.
broadwell - Select the broadwell processor.
btver1 - Select the btver1 processor.
btver2 - Select the btver2 processor.
c3 - Select the c3 processor.
c3-2 - Select the c3-2 processor.
cannonlake - Select the cannonlake processor.
core-avx-i - Select the core-avx-i processor.
core-avx2 - Select the core-avx2 processor.
core2 - Select the core2 processor.
corei7 - Select the corei7 processor.
corei7-avx - Select the corei7-avx processor.
generic - Select the generic processor.
geode - Select the geode processor.
haswell - Select the haswell processor.
[ ... ] |
|
|
|
This appears to be failing for one of the |
|
For reference, this issue is also causing build failures for the |
becker33
left a comment
There was a problem hiding this comment.
The new version looks good to me, I can't approve it though since I'm the PR author and github doesn't like that.
|
@becker33 I'd say let's merge this if |
|
Ok. @tgamblin this should probably be backported to v0.13 for the next patch release. Have we settled on a way of marking such things? |
* cpu: differentiate flags used for pristine LLVM vs. Apple's version
The
x86_64target for clang currently provides architecture flags-march=x86_64 -mcpu=generic. The-mcpu=genericflag is ignored by clang (and seems to be a mistaken copy/paste from GCC.This PR removes that flag.