summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorGabor Buella <gabor.buella@intel.com>2018-04-13 07:35:08 +0000
committerGabor Buella <gabor.buella@intel.com>2018-04-13 07:35:08 +0000
commit604be4424bdc2ad62a386ad656ea287e1adde05f (patch)
tree3cee2e03a33c8755623a1e1145d0245b1814dfc6 /llvm/lib/Support/Host.cpp
parent8293161712e68ff966d5dbfb623c5e33d96331f0 (diff)
downloadbcm5719-llvm-604be4424bdc2ad62a386ad656ea287e1adde05f.tar.gz
bcm5719-llvm-604be4424bdc2ad62a386ad656ea287e1adde05f.zip
[X86] Introduce cldemote instruction
Hint to hardware to move the cache line containing the address to a more distant level of the cache without writing back to memory. Reviewers: craig.topper, zvi Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D45256 llvm-svn: 329992
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 304a9e3736a..4df1102cf26 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1257,6 +1257,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["avx512bitalg"] = HasLeaf7 && ((ECX >> 12) & 1) && HasAVX512Save;
Features["avx512vpopcntdq"] = HasLeaf7 && ((ECX >> 14) & 1) && HasAVX512Save;
Features["rdpid"] = HasLeaf7 && ((ECX >> 22) & 1);
+ Features["cldemote"] = HasLeaf7 && ((ECX >> 25) & 1);
Features["ibt"] = HasLeaf7 && ((EDX >> 20) & 1);
OpenPOWER on IntegriCloud