diff options
author | Eric Christopher <echristo@apple.com> | 2010-04-02 21:54:27 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-04-02 21:54:27 +0000 |
commit | 2ef63183a5cb3222001539495e66af3819daf26d (patch) | |
tree | 1bf79749f065d6231dc0a4dd6ca45e7e695e2b34 /llvm/lib/Target/X86/X86Subtarget.h | |
parent | c268ced34e2774a160d0d84d058664dc63512308 (diff) | |
download | bcm5719-llvm-2ef63183a5cb3222001539495e66af3819daf26d.tar.gz bcm5719-llvm-2ef63183a5cb3222001539495e66af3819daf26d.zip |
Separate out the AES-NI instructions from the SSE4.2 instructions. Add
a new subtarget option for AES and check for the support. Add "westmere"
line of processors and add AES-NI support to the core i7.
Add a couple of TODOs for information I couldn't verify.
llvm-svn: 100231
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 bf30154625b..8a873f04df4 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -69,6 +69,9 @@ protected: /// HasAVX - Target has AVX instructions bool HasAVX; + /// HasAES - Target has AES instructions + bool HasAES; + /// HasFMA3 - Target has 3-operand fused multiply-add bool HasFMA3; @@ -148,6 +151,7 @@ public: bool has3DNow() const { return X863DNowLevel >= ThreeDNow; } bool has3DNowA() const { return X863DNowLevel >= ThreeDNowA; } bool hasAVX() const { return HasAVX; } + bool hasAES() const { return HasAES; } bool hasFMA3() const { return HasFMA3; } bool hasFMA4() const { return HasFMA4; } bool isBTMemSlow() const { return IsBTMemSlow; } |