diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-24 08:18:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-24 08:18:44 +0000 |
commit | 6f0161aac396de29d5a296f8b0ee81827b7e0a9c (patch) | |
tree | 083a859e84bd3d418f991cba02727c0557609cd9 /lib/Target/X86/X86TargetMachine.cpp | |
parent | 47d2f2bb50414eb1b2fc26592ebad6b00272e0e5 (diff) |
Add -sse[,2,3] arguments to LLC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 51ba378135..1a9e978dc4 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -25,6 +25,8 @@ #include "Support/Statistic.h" using namespace llvm; +X86VectorEnum llvm::X86Vector = NoSSE; + namespace { cl::opt<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer " @@ -33,6 +35,18 @@ namespace { cl::desc("Disable the X86 asm printer, for use " "when profiling the code generator.")); + // FIXME: This should eventually be handled with target triples and + // subtarget support! + cl::opt<X86VectorEnum, true> + SSEArg( + cl::desc("Enable SSE support in the X86 target:"), + cl::values( + clEnumValN(SSE, "sse", " Enable SSE support"), + clEnumValN(SSE2, "sse2", " Enable SSE and SSE2 support"), + clEnumValN(SSE3, "sse3", " Enable SSE, SSE2, and SSE3 support"), + clEnumValEnd), + cl::location(X86Vector), cl::init(NoSSE)); + // Register the target. RegisterTarget<X86TargetMachine> X("x86", " IA-32 (Pentium and above)"); } |