aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorPhoebe Wang <phoebe.wang@intel.com>2022-10-27 17:08:49 +0800
committerPhoebe Wang <phoebe.wang@intel.com>2022-10-27 17:20:07 +0800
commitb51b90d6e25c3a3129608e2d764cae8818b7ad15 (patch)
treeaf96038ad0f6581dac4391645e004b0d2995dd26 /llvm/lib/Support/Host.cpp
parentbf531f28f51a32e8f130ca1e6ce8d689315341d8 (diff)
downloadllvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.zip
llvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.tar.gz
llvm-b51b90d6e25c3a3129608e2d764cae8818b7ad15.tar.bz2
[X86][1/2] SUPPORT RAO-INT
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Initial authored by Liu Chen (@LiuChen3) Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D135951
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 9492db3..fac2b01 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1805,6 +1805,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["amx-int8"] = HasLeaf7 && ((EDX >> 25) & 1) && HasAMXSave;
bool HasLeaf7Subleaf1 =
MaxLevel >= 7 && !getX86CpuIDAndInfoEx(0x7, 0x1, &EAX, &EBX, &ECX, &EDX);
+ Features["raoint"] = HasLeaf7Subleaf1 && ((EAX >> 3) & 1);
Features["avxvnni"] = HasLeaf7Subleaf1 && ((EAX >> 4) & 1) && HasAVXSave;
Features["avx512bf16"] = HasLeaf7Subleaf1 && ((EAX >> 5) & 1) && HasAVX512Save;
Features["amx-fp16"] = HasLeaf7Subleaf1 && ((EAX >> 21) & 1) && HasAMXSave;