summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-04-15 22:12:16 +0000
committerNate Begeman <natebegeman@mac.com>2005-04-15 22:12:16 +0000
commit779c5cbb44f0a79f27d26aeb14a22f5156da5943 (patch)
tree47e63d732d097b08a9b843752af80d0f2afc0e80 /llvm/lib/Target/TargetMachine.cpp
parente0a9d042e2e1a6827cd9555df58f4fbc276db26d (diff)
downloadbcm5719-llvm-779c5cbb44f0a79f27d26aeb14a22f5156da5943.tar.gz
bcm5719-llvm-779c5cbb44f0a79f27d26aeb14a22f5156da5943.zip
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 llvm-svn: 21309
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index 22df91faeb8..fc7530addda 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/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));
};
//---------------------------------------------------------------------------
OpenPOWER on IntegriCloud