[all-commits] [llvm/llvm-project] 58696d: [clang][X86] Add __cpuidex function to cpuid.h

Aiden Grossman via All-commits all-commits at lists.llvm.org
Sat Aug 19 17:16:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58696d2f5bbae32dddcaec6891293e769465e77c
      https://github.com/llvm/llvm-project/commit/58696d2f5bbae32dddcaec6891293e769465e77c
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-08-19 (Sat, 19 Aug 2023)

  Changed paths:
    M clang/lib/Headers/cpuid.h
    A clang/test/Headers/__cpuidex_conflict.c
    M clang/test/Headers/cpuid.c

  Log Message:
  -----------
  [clang][X86] Add __cpuidex function to cpuid.h

MSVC has a __cpuidex function implemented to call the underlying cpuid
instruction which accepts a leaf, subleaf, and data array that the output
data is written into. This patch adds this functionality into clang
under the cpuid.h header. This also makes clang match GCC's behavior.
GCC has had __cpuidex in its cpuid.h since 2020.


  Commit: 64da0be1fc06ee2199bd27c980736986e0eccd9d
      https://github.com/llvm/llvm-project/commit/64da0be1fc06ee2199bd27c980736986e0eccd9d
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-08-19 (Sat, 19 Aug 2023)

  Changed paths:
    M llvm/include/llvm/IR/StructuralHash.h
    M llvm/include/llvm/Transforms/Utils/FunctionComparator.h
    M llvm/lib/IR/StructuralHash.cpp
    M llvm/lib/Transforms/IPO/MergeFunctions.cpp
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp

  Log Message:
  -----------
  Reland "[NFCi][MergeFunctions] Consolidate Hashing Functions"

This is a reland of 28134a29fdedd8972acdfb39223571ddcc15dc59 which was
reverted due to behavioral differences between 32 and 64 bit builds that
have since been fixed.

Differential Revision: https://reviews.llvm.org/D158217


Compare: https://github.com/llvm/llvm-project/compare/6521c40fb1e1...64da0be1fc06


More information about the All-commits mailing list