summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorPengfei Wang <pengfei.wang@intel.com>2019-05-30 03:59:16 +0000
committerPengfei Wang <pengfei.wang@intel.com>2019-05-30 03:59:16 +0000
commit1f67d9427931f61585d2392c3b958cd2b459af54 (patch)
tree4505af926e68c98cc0fcff87dc7ed8714f66eec1 /llvm/lib/Support/Host.cpp
parent2632ebb551db67801d41ee8e3ab931f639180a94 (diff)
downloadbcm5719-llvm-1f67d9427931f61585d2392c3b958cd2b459af54.tar.gz
bcm5719-llvm-1f67d9427931f61585d2392c3b958cd2b459af54.zip
[X86] Add ENQCMD instructions
For more details about these instructions, please refer to the latest ISE document: https://software.intel.com/en-us/download/intel-architecture-instruction-set-extensions-programming-reference. Patch by Tianqing Wang (tianqing) Differential Revision: https://reviews.llvm.org/D62281 llvm-svn: 362053
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 542ebe9e537..1aa2b82ce60 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1380,6 +1380,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["cldemote"] = HasLeaf7 && ((ECX >> 25) & 1);
Features["movdiri"] = HasLeaf7 && ((ECX >> 27) & 1);
Features["movdir64b"] = HasLeaf7 && ((ECX >> 28) & 1);
+ Features["enqcmd"] = HasLeaf7 && ((ECX >> 29) & 1);
// There are two CPUID leafs which information associated with the pconfig
// instruction:
OpenPOWER on IntegriCloud