This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Error out when using an older CPU than Haswell with x86_64h
Needs ReviewPublic

Authored by thegameg on Jan 7 2019, 8:32 AM.

Details

Summary

r349381 adds support to specify any CPU that overrides the default for x86_64h.

It does not make sense to allow this to be used with anything older than Haswell.

Diff Detail

Event Timeline

thegameg created this revision.Jan 7 2019, 8:32 AM
craig.topper added inline comments.Feb 10 2019, 12:49 AM
lib/Driver/ToolChains/Arch/X86.cpp
24

Why are we blocking all AMD CPUs?

thegameg marked an inline comment as done.Feb 12 2019, 4:37 PM
thegameg added inline comments.
lib/Driver/ToolChains/Arch/X86.cpp
24

The arch x86_64h is used for Intel 64-bit Haswell in mach-o. We are trying to validate wether the -march= passed along with -target x86_64h-apple-darwin is Intel, and at least Haswell.