From 1f67d9427931f61585d2392c3b958cd2b459af54 Mon Sep 17 00:00:00 2001 From: Pengfei Wang Date: Thu, 30 May 2019 03:59:16 +0000 Subject: [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 --- llvm/lib/Support/Host.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Support/Host.cpp') 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 &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: -- cgit v1.2.3