[all-commits] [llvm/llvm-project] 5ac144: [X86] Calculate the needed size of the feature arr...

topperc via All-commits all-commits at lists.llvm.org
Mon Jun 22 11:47:14 PDT 2020


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

  Changed paths:
    M compiler-rt/lib/builtins/cpu_model.c
    M llvm/include/llvm/Support/X86TargetParser.h
    M llvm/lib/Support/Host.cpp

  Log Message:
  -----------
  [X86] Calculate the needed size of the feature arrays in _cpu_indicator_init and getHostCPUName using the size of the feature enum.

Move 0 initialization up to the caller so we don't need to know
the size.


  Commit: 0dfc8e1837e3e3ac06ab8c08fdc08b15e0ae1c2d
      https://github.com/llvm/llvm-project/commit/0dfc8e1837e3e3ac06ab8c08fdc08b15e0ae1c2d
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M clang/lib/Basic/Targets/X86.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M llvm/include/llvm/Support/X86TargetParser.def
    M llvm/include/llvm/Support/X86TargetParser.h

  Log Message:
  -----------
  [X86] Remove encoding value from the X86_FEATURE and X86_FEATURE_COMPAT macro. NFCI

This was orignally done so we could separate the compatibility
values and the llvm internal only features into a separate entries
in the feature array. This was needed when we explicitly had to
convert the feature into the proper 32-bit chunk at every reference
and we didn't want things moving around.

Now everything is in an array and we have helper funtions or macros
to convert encoding to index. So we renumbering is no longer an
issue.


Compare: https://github.com/llvm/llvm-project/compare/663860f63e73...0dfc8e1837e3


More information about the All-commits mailing list