mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-31 16:14:15 +00:00
Implement `NoFPElim' in a target-agnostic fashion so it can be shared.
llvm-svn: 14297
This commit is contained in:
parent
2b3c4ca665
commit
2f580c043c
@ -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));
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user