1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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

llvm-svn: 32393
This commit is contained in:
Evan Cheng 2006-12-09 02:41:30 +00:00
parent 6cc4dc27b3
commit f1e9ec7225
2 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,12 @@ namespace llvm {
/// and results are never NaNs or +-Infs.
extern bool FiniteOnlyFPMathOption;
extern bool FiniteOnlyFPMath();
/// UseSoftFloat - This flag is enabled when the -soft-float flag is specified
/// on the command line. When this flag is on, the code generator will
/// generate libcalls to the software floating point library instead of
/// target FP instructions.
extern bool UseSoftFloat;
} // End llvm namespace
#endif

View File

@ -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",