Implement `NoFPElim' in a target-agnostic fashion so it can be shared.

llvm-svn: 14297
This commit is contained in:
Misha Brukman 2004-06-21 21:08:45 +00:00
parent ebfd11ffb7
commit 069ca067e1
1 changed files with 8 additions and 1 deletions

View File

@ -11,9 +11,9 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Target/TargetMachine.h"
#include "llvm/Type.h" #include "llvm/Type.h"
#include "llvm/CodeGen/IntrinsicLowering.h" #include "llvm/CodeGen/IntrinsicLowering.h"
#include "llvm/Target/TargetMachine.h"
#include "Support/CommandLine.h" #include "Support/CommandLine.h"
using namespace llvm; using namespace llvm;
@ -23,11 +23,18 @@ using namespace llvm;
namespace llvm { namespace llvm {
bool PrintMachineCode; bool PrintMachineCode;
bool NoFPElim;
}; };
namespace { namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs", cl::opt<bool, true> PrintCode("print-machineinstrs",
cl::desc("Print generated machine code"), cl::desc("Print generated machine code"),
cl::location(PrintMachineCode), cl::init(false)); 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));
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------