[all-commits] [llvm/llvm-project] 0ce9bf: [X86] Add a helper lambda to getIntelProcessorType...

topperc via All-commits all-commits at lists.llvm.org
Thu Jun 11 21:15:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ce9bf6eed4a630f2b2735a7226c2d5bf2c7c57a
      https://github.com/llvm/llvm-project/commit/0ce9bf6eed4a630f2b2735a7226c2d5bf2c7c57a
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M llvm/lib/Support/Host.cpp

  Log Message:
  -----------
  [X86] Add a helper lambda to getIntelProcessorTypeAndSubtype to select feature bits from the correct 32-bit feature variable.

We have three 32 bit variables containing feature bits. But our
enum is a flat 96 bit space. So we need to pick which of the
variables to use based on the bit value. We used to do this
manually by mentioning the correct variable and subtracting an
offset from the enum. But this is error prone.




More information about the All-commits mailing list