[all-commits] [llvm/llvm-project] 5dbcf5: [X86] Add Feature64Bit to the 'generic' CPU and re...

topperc via All-commits all-commits at lists.llvm.org
Thu Jul 23 09:16:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dbcf5e3ccafb90d07b749e437c8e9089eda8516
      https://github.com/llvm/llvm-project/commit/5dbcf5e3ccafb90d07b749e437c8e9089eda8516
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-07-23 (Thu, 23 Jul 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86.td
    M llvm/lib/Target/X86/X86Subtarget.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list