diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-01-09 09:02:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-01-09 09:02:13 +0000 |
commit | 16de4632bb263d7e0def43ebc13af5077726f067 (patch) | |
tree | 5db440daee4568f46fc01bf26ab7b327e46740d6 /lib/Target/X86/X86.td | |
parent | 8ffc964582fa1bc95eef79d4c3dddb6f48e294e9 (diff) |
Remove AVX hack in X86Subtarget. AVX/AVX2 are now treated as an SSE level. Predicate functions have been altered to maintain previous names and behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86.td')
-rw-r--r-- | lib/Target/X86/X86.td | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td index 66779361da..48c7387af3 100644 --- a/lib/Target/X86/X86.td +++ b/lib/Target/X86/X86.td @@ -80,9 +80,10 @@ def FeatureSSE4A : SubtargetFeature<"sse4a", "HasSSE4A", "true", "Support SSE 4a instructions", [FeatureSSE3]>; -def FeatureAVX : SubtargetFeature<"avx", "HasAVX", "true", - "Enable AVX instructions">; -def FeatureAVX2 : SubtargetFeature<"avx2", "HasAVX2", "true", +def FeatureAVX : SubtargetFeature<"avx", "X86SSELevel", "AVX", + "Enable AVX instructions", + [FeatureSSE42]>; +def FeatureAVX2 : SubtargetFeature<"avx2", "X86SSELevel", "AVX2", "Enable AVX2 instructions", [FeatureAVX]>; def FeatureCLMUL : SubtargetFeature<"clmul", "HasCLMUL", "true", |