summaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-09 02:41:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-09 02:41:30 +0000
commitc9ab2f39ceadefa4ac8c0c922c55a76c0d637a6e (patch)
treee52d141d7720411e8d73e15b2ed4edb0ed20e8dd /lib/Target/TargetMachine.cpp
parent4ad6d61cb71fca7161dc38339ce29f4d776b2519 (diff)
downloadllvm-c9ab2f39ceadefa4ac8c0c922c55a76c0d637a6e.tar.gz
llvm-c9ab2f39ceadefa4ac8c0c922c55a76c0d637a6e.tar.bz2
llvm-c9ab2f39ceadefa4ac8c0c922c55a76c0d637a6e.tar.xz
Added option -soft-float to generate SW fp library calls instead of fp instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r--lib/Target/TargetMachine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index e4ece7b4d5..7547614a71 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -27,6 +27,7 @@ namespace llvm {
bool NoExcessFPPrecision;
bool UnsafeFPMath;
bool FiniteOnlyFPMathOption;
+ bool UseSoftFloat;
Reloc::Model RelocationModel;
CodeModel::Model CMModel;
}
@@ -55,6 +56,12 @@ namespace {
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",