[all-commits] [llvm/llvm-project] e424a3: [X86] Explicitly initialize __cpu_features2 global...

topperc via All-commits all-commits at lists.llvm.org
Fri Jun 12 18:31:08 PDT 2020


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

  Changed paths:
    M compiler-rt/lib/builtins/cpu_model.c

  Log Message:
  -----------
  [X86] Explicitly initialize __cpu_features2 global in compiler-rt to 0.

Seems like this may be needed in order for the linker to find the
symbol. At least on my Mac.


  Commit: 94ccb2acbf2c5c1ba6ce2d60240e7e27f44a50d5
      https://github.com/llvm/llvm-project/commit/94ccb2acbf2c5c1ba6ce2d60240e7e27f44a50d5
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    M compiler-rt/lib/builtins/cpu_model.c

  Log Message:
  -----------
  [X86] Combine to two feature variables in __cpu_indicator_init into an array and pass them around as pointer we can treat as an array.

This simplifies the indexing code to set and test bits.


  Commit: a27d0dcf6518ca08bb5498f58ca6a430b09eae33
      https://github.com/llvm/llvm-project/commit/a27d0dcf6518ca08bb5498f58ca6a430b09eae33
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

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

  Log Message:
  -----------
  [X86] Combine the three feature variables in getHostCPUName into an array and pass it around as an array reference.

This makes the setting and clearing of bits simpler.


Compare: https://github.com/llvm/llvm-project/compare/c1e47b47f884...a27d0dcf6518


More information about the All-commits mailing list