diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-11-22 00:44:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-11-22 00:44:41 +0000 |
commit | c0d82857e095de15b31b0d654856aebea60dd339 (patch) | |
tree | 04c938dec76cf3dc04cbb1533132b08351cb8aa4 /lib/Target/X86/X86Subtarget.h | |
parent | 1d4bf66d6e03d76ff1fecddb10f1ae9b9ec9da77 (diff) | |
download | external_llvm-c0d82857e095de15b31b0d654856aebea60dd339.zip external_llvm-c0d82857e095de15b31b0d654856aebea60dd339.tar.gz external_llvm-c0d82857e095de15b31b0d654856aebea60dd339.tar.bz2 |
Add methods for querying minimum SSE version along with AVX. Simplifies all the places that had to check a version of SSE and AVX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index 763fb43..e93f8e9 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -190,6 +190,10 @@ public: bool hasAVX2() const { return HasAVX2; } bool hasXMM() const { return hasSSE1() || hasAVX(); } bool hasXMMInt() const { return hasSSE2() || hasAVX(); } + bool hasSSE3orAVX() const { return hasSSE3() || hasAVX(); } + bool hasSSSE3orAVX() const { return hasSSSE3() || hasAVX(); } + bool hasSSE41orAVX() const { return hasSSE41() || hasAVX(); } + bool hasSSE42orAVX() const { return hasSSE42() || hasAVX(); } bool hasAES() const { return HasAES; } bool hasCLMUL() const { return HasCLMUL; } bool hasFMA3() const { return HasFMA3; } |