[llvm] 95e9aff - [X86] Update sub-features of APX for host CPU

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 03:10:42 PDT 2024


Author: Shengchen Kan
Date: 2024-07-30T18:09:58+08:00
New Revision: 95e9afff30920a43c98fea9a3ece1a2129207946

URL: https://github.com/llvm/llvm-project/commit/95e9afff30920a43c98fea9a3ece1a2129207946
DIFF: https://github.com/llvm/llvm-project/commit/95e9afff30920a43c98fea9a3ece1a2129207946.diff

LOG: [X86] Update sub-features of APX for host CPU

This is a follow-up for https://github.com/llvm/llvm-project/pull/80636

Added: 
    

Modified: 
    llvm/lib/TargetParser/Host.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index 0803521f31b91..68aed69ee574b 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1826,7 +1826,9 @@ const StringMap<bool> sys::getHostCPUFeatures() {
   Features["ppx"] = HasAPXF;
   Features["ndd"] = HasAPXF;
   Features["ccmp"] = HasAPXF;
+  Features["nf"] = HasAPXF;
   Features["cf"] = HasAPXF;
+  Features["zu"] = HasAPXF;
 
   bool HasLeafD = MaxLevel >= 0xd &&
                   !getX86CpuIDAndInfoEx(0xd, 0x1, &EAX, &EBX, &ECX, &EDX);


        


More information about the llvm-commits mailing list