HomePhabricator

[X86] Add Feature64Bit to the 'generic' CPU and remove feature string hacking…

Authored by craig.topper on Jul 23 2020, 8:52 AM.

Description

[X86] Add Feature64Bit to the 'generic' CPU and remove feature string hacking in X86Subtarget constructor

Feature64Bit is only used by a check in the X86Subtarget
constructor to ensure that the CPU selected supports 64-bit mode
when the triple is for 64-bit mode.

'generic' is the default CPU in llc and so needs to be able to
pass this check. Previously we did this by detecting the name and
adding the feature to the feature string. But there doesn't seem
to be any reason we can't just add the feature to the CPU directly.

Details

Committed
craig.topperJul 23 2020, 9:16 AM
Parents
rG83dca19c1123: [flang] Fix a crash when a BOZ literal is used as a relational operator
Branches
Unknown
Tags
Unknown