diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-04-15 22:12:16 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-04-15 22:12:16 +0000 |
commit | f8b02949e3d13e9b7cd38e029fcbf3e799366aa7 (patch) | |
tree | 025797138ecad26749d620e07ea0a4cb7d9755e5 /lib/Target/TargetMachine.cpp | |
parent | da3f2968540b0925aee7bad0bf911883fb2c691b (diff) |
Make pattern isel default for ppc
Add new ppc beta option related to using condition registers
Make pattern isel control flag (-enable-pattern-isel) global and tristate
0 == off
1 == on
2 == target default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 22df91faeb..fc7530addd 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -25,6 +25,7 @@ namespace llvm { bool PrintMachineCode; bool NoFramePointerElim; bool NoExcessFPPrecision; + int PatternISelTriState; }; namespace { cl::opt<bool, true> PrintCode("print-machineinstrs", @@ -38,9 +39,13 @@ namespace { cl::init(false)); cl::opt<bool, true> DisableExcessPrecision("disable-excess-fp-precision", - cl::desc("Disable optimizations that may increase FP precision"), - cl::location(NoExcessFPPrecision), - cl::init(false)); + cl::desc("Disable optimizations that may increase FP precision"), + cl::location(NoExcessFPPrecision), + cl::init(false)); + cl::opt<int, true> PatternISel("enable-pattern-isel", + cl::desc("sets the pattern ISel off(0), on(1), default(2)"), + cl::location(PatternISelTriState), + cl::init(2)); }; //--------------------------------------------------------------------------- |