mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 12:04:02 +00:00
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
This commit is contained in:
parent
b41dabd8ad
commit
0fb5a66760
@ -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));
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user