diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-12-09 02:41:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-12-09 02:41:30 +0000 |
commit | e107a8b872264eda7260fce2e766136b0496b213 (patch) | |
tree | 5806fb38dbea00bab612ebe046e26fe64d5a42f3 /llvm/lib | |
parent | b0629487d8ba555bd3c0146ea434bae6687bdec1 (diff) | |
download | bcm5719-llvm-e107a8b872264eda7260fce2e766136b0496b213.tar.gz bcm5719-llvm-e107a8b872264eda7260fce2e766136b0496b213.zip |
Added option -soft-float to generate SW fp library calls instead of fp instructions.
llvm-svn: 32393
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index e4ece7b4d52..7547614a717 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/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", |