aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-06-21 21:08:45 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-06-21 21:08:45 +0000
commit0fb5a667607668c4babf068a47dde361e42d4184 (patch)
tree4f349f70bf1cfbaf8e59f59288dbaa38bed5b0ad /lib
parentb41dabd8ad06fd7780f5158af54c887a79515d07 (diff)
downloadexternal_llvm-0fb5a667607668c4babf068a47dde361e42d4184.zip
external_llvm-0fb5a667607668c4babf068a47dde361e42d4184.tar.gz
external_llvm-0fb5a667607668c4babf068a47dde361e42d4184.tar.bz2
Implement `NoFPElim' in a target-agnostic fashion so it can be shared.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/TargetMachine.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index 051ebf0..f5bbdd1 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -11,9 +11,9 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Target/TargetMachine.h"
#include "llvm/Type.h"
#include "llvm/CodeGen/IntrinsicLowering.h"
+#include "llvm/Target/TargetMachine.h"
#include "Support/CommandLine.h"
using namespace llvm;
@@ -23,11 +23,18 @@ using namespace llvm;
namespace llvm {
bool PrintMachineCode;
+ bool NoFPElim;
};
+
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
cl::desc("Print generated machine code"),
cl::location(PrintMachineCode), cl::init(false));
+
+ cl::opt<bool, true>
+ DisableFPElim("disable-fp-elim",
+ cl::desc("Disable frame pointer elimination optimization"),
+ cl::location(NoFPElim), cl::init(false));
};
//---------------------------------------------------------------------------