[compiler-rt] [llvm] [clang] [clang-tools-extra] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

Shengchen Kan via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 4 01:26:51 PST 2024


================
@@ -1845,6 +1845,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
   Features["prefetchi"]  = HasLeaf7Subleaf1 && ((EDX >> 14) & 1);
   Features["usermsr"]  = HasLeaf7Subleaf1 && ((EDX >> 15) & 1);
   Features["avx10.1-256"] = HasLeaf7Subleaf1 && ((EDX >> 19) & 1);
+  Features["egpr"] = HasLeaf7Subleaf1 && ((EDX >> 21) & 1);
----------------
KanRobert wrote:

Same here. Should discuss with GCC team and create a separate PR.

https://github.com/llvm/llvm-project/pull/79086


More information about the cfe-commits mailing list