[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

Evan Cheng evan.cheng at apple.com
Fri Dec 8 18:41:45 PST 2006



Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.55 -> 1.56
---
Log message:

Added option -soft-float to generate SW fp library calls instead of fp instructions.

---
Diffs of the changes:  (+7 -0)

 TargetMachine.cpp |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.55 llvm/lib/Target/TargetMachine.cpp:1.56
--- llvm/lib/Target/TargetMachine.cpp:1.55	Thu Sep  7 18:39:26 2006
+++ llvm/lib/Target/TargetMachine.cpp	Fri Dec  8 20:41:30 2006
@@ -27,6 +27,7 @@
   bool NoExcessFPPrecision;
   bool UnsafeFPMath;
   bool FiniteOnlyFPMathOption;
+  bool UseSoftFloat;
   Reloc::Model RelocationModel;
   CodeModel::Model CMModel;
 }
@@ -55,6 +56,12 @@
                cl::desc("Enable optimizations that assumes non- NaNs / +-Infs"),
                cl::location(FiniteOnlyFPMathOption),
                cl::init(false));
+  cl::opt<bool, true>
+  GenerateSoftFloatCalls("soft-float",
+               cl::desc("Generate software floating point library calls"),
+               cl::location(UseSoftFloat),
+               cl::init(false));
+
   cl::opt<llvm::Reloc::Model, true>
   DefRelocationModel(
     "relocation-model",






More information about the llvm-commits mailing list