aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-15 06:00:32 +0000
committerChris Lattner <sabre@nondot.org>2005-01-15 06:00:32 +0000
commit45554a61f2814e1d445e272076fd7187e74a25c0 (patch)
tree140ad07f9cf4a7fef6ca3c633ad62cd6b688d12c /lib/Target/TargetMachine.cpp
parente9ef81dd2f9f51ac80bc000cca67051020a1e227 (diff)
Add a new target-independent code generator flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r--lib/Target/TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index 973165f186..22df91faeb 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -24,6 +24,7 @@ using namespace llvm;
namespace llvm {
bool PrintMachineCode;
bool NoFramePointerElim;
+ bool NoExcessFPPrecision;
};
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
@@ -35,6 +36,11 @@ namespace {
cl::desc("Disable frame pointer elimination optimization"),
cl::location(NoFramePointerElim),
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));
};
//---------------------------------------------------------------------------