summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorJan Sjödin <jan_sjodin@yahoo.com>2011-12-02 15:14:37 +0000
committerJan Sjödin <jan_sjodin@yahoo.com>2011-12-02 15:14:37 +0000
commit1280eb1d0684e44e045c8f984b2e16a2443ee10c (patch)
treefd2e43b52ea751094b008241a5259dc6994eaffa /llvm/lib/Target/X86/X86Subtarget.h
parentb67440367fc599fff6d8ce2cdddf28b832e88240 (diff)
downloadbcm5719-llvm-1280eb1d0684e44e045c8f984b2e16a2443ee10c.tar.gz
bcm5719-llvm-1280eb1d0684e44e045c8f984b2e16a2443ee10c.zip
Add XOP feature flag.
llvm-svn: 145682
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 e93f8e94f62..ccb9be0c97a 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -93,6 +93,9 @@ protected:
/// HasFMA4 - Target has 4-operand fused multiply-add
bool HasFMA4;
+ /// HasXOP - Target has XOP instructions
+ bool HasXOP;
+
/// HasMOVBE - True if the processor has the MOVBE instruction.
bool HasMOVBE;
@@ -198,6 +201,7 @@ public:
bool hasCLMUL() const { return HasCLMUL; }
bool hasFMA3() const { return HasFMA3; }
bool hasFMA4() const { return HasFMA4; }
+ bool hasXOP() const { return HasXOP; }
bool hasMOVBE() const { return HasMOVBE; }
bool hasRDRAND() const { return HasRDRAND; }
bool hasF16C() const { return HasF16C; }
OpenPOWER on IntegriCloud