diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-05-03 15:51:39 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-05-03 15:51:39 +0000 |
commit | 99b925bdf38840a43ed0f57c37fec389f0388148 (patch) | |
tree | 1cb1f3fd745494a2a15ebe62667ea1b9269f6788 /llvm/lib/Target/X86/X86Subtarget.h | |
parent | b339c6dcc07bbd3c60bb42f05566323b973107d9 (diff) | |
download | bcm5719-llvm-99b925bdf38840a43ed0f57c37fec389f0388148.tar.gz bcm5719-llvm-99b925bdf38840a43ed0f57c37fec389f0388148.zip |
[X86][LWP] Add llvm support for LWP instructions (reapplied).
This patch adds support for the the LightWeight Profiling (LWP) instructions which are available on all AMD Bulldozer class CPUs (bdver1 to bdver4).
Reapplied - this time without changing line endings of existing files.
Differential Revision: https://reviews.llvm.org/D32769
llvm-svn: 302041
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 8568cf04e7d..de1514243ae 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -124,6 +124,9 @@ protected: /// Target has TBM instructions. bool HasTBM; + /// Target has LWP instructions + bool HasLWP; + /// True if the processor has the MOVBE instruction. bool HasMOVBE; @@ -447,6 +450,7 @@ public: bool hasAnyFMA() const { return hasFMA() || hasFMA4(); } bool hasXOP() const { return HasXOP; } bool hasTBM() const { return HasTBM; } + bool hasLWP() const { return HasLWP; } bool hasMOVBE() const { return HasMOVBE; } bool hasRDRAND() const { return HasRDRAND; } bool hasF16C() const { return HasF16C; } |