summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorGabor Buella <gabor.buella@intel.com>2018-05-25 06:32:05 +0000
committerGabor Buella <gabor.buella@intel.com>2018-05-25 06:32:05 +0000
commitd2f1ab1b1001d0ddf9ab227e1666ec9477e47eb9 (patch)
tree5868d9c0d1c932a357627d340020f44db58d5c40 /llvm/lib/Target/X86/X86Subtarget.h
parent79fffe351561eaa837a81abe5a55284ae9b4472f (diff)
downloadbcm5719-llvm-d2f1ab1b1001d0ddf9ab227e1666ec9477e47eb9.tar.gz
bcm5719-llvm-d2f1ab1b1001d0ddf9ab227e1666ec9477e47eb9.zip
[x86] invpcid LLVM intrinsic
Re-add the feature flag for invpcid, which was removed in r294561. Add an intrinsic, which always uses a 32 bit integer as first argument, while the instruction actually uses a 64 bit register in 64 bit mode for the INVPCID_TYPE argument. Reviewers: craig.topper Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D47141 llvm-svn: 333255
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index ea42e9a65f6..a9a06b0954e 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -360,6 +360,9 @@ protected:
/// using Shadow Stack
bool HasSHSTK;
+ /// Processor supports Invalidate Process-Context Identifier
+ bool HasINVPCID;
+
/// Processor has Software Guard Extensions
bool HasSGX;
@@ -644,6 +647,7 @@ public:
bool hasWAITPKG() const { return HasWAITPKG; }
bool hasPCONFIG() const { return HasPCONFIG; }
bool hasSGX() const { return HasSGX; }
+ bool hasINVPCID() const { return HasINVPCID; }
bool useRetpoline() const { return UseRetpoline; }
bool useRetpolineExternalThunk() const { return UseRetpolineExternalThunk; }
OpenPOWER on IntegriCloud