[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Jun 21 16:16:01 PDT 2004
Changes in directory llvm/lib/Target:
TargetMachine.cpp updated: 1.26 -> 1.27
---
Log message:
Implement `NoFPElim' in a target-agnostic fashion so it can be shared.
---
Diffs of the changes: (+8 -1)
Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.26 llvm/lib/Target/TargetMachine.cpp:1.27
--- llvm/lib/Target/TargetMachine.cpp:1.26 Sun Jun 20 02:47:20 2004
+++ llvm/lib/Target/TargetMachine.cpp Mon Jun 21 16:08:45 2004
@@ -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 @@
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));
};
//---------------------------------------------------------------------------
More information about the llvm-commits
mailing list