[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Nate Begeman
natebegeman at mac.com
Fri Apr 15 15:12:28 PDT 2005
Changes in directory llvm/lib/Target:
TargetMachine.cpp updated: 1.35 -> 1.36
---
Log message:
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
---
Diffs of the changes: (+8 -3)
TargetMachine.cpp | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.35 llvm/lib/Target/TargetMachine.cpp:1.36
--- llvm/lib/Target/TargetMachine.cpp:1.35 Sat Jan 15 00:00:32 2005
+++ llvm/lib/Target/TargetMachine.cpp Fri Apr 15 17:12:15 2005
@@ -25,6 +25,7 @@
bool PrintMachineCode;
bool NoFramePointerElim;
bool NoExcessFPPrecision;
+ int PatternISelTriState;
};
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
@@ -38,9 +39,13 @@
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));
};
//---------------------------------------------------------------------------
More information about the llvm-commits
mailing list