mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
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
This commit is contained in:
@@ -48,6 +48,12 @@ namespace llvm {
|
|||||||
/// and results are never NaNs or +-Infs.
|
/// and results are never NaNs or +-Infs.
|
||||||
extern bool FiniteOnlyFPMathOption;
|
extern bool FiniteOnlyFPMathOption;
|
||||||
extern bool FiniteOnlyFPMath();
|
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
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -27,6 +27,7 @@ namespace llvm {
|
|||||||
bool NoExcessFPPrecision;
|
bool NoExcessFPPrecision;
|
||||||
bool UnsafeFPMath;
|
bool UnsafeFPMath;
|
||||||
bool FiniteOnlyFPMathOption;
|
bool FiniteOnlyFPMathOption;
|
||||||
|
bool UseSoftFloat;
|
||||||
Reloc::Model RelocationModel;
|
Reloc::Model RelocationModel;
|
||||||
CodeModel::Model CMModel;
|
CodeModel::Model CMModel;
|
||||||
}
|
}
|
||||||
@@ -55,6 +56,12 @@ namespace {
|
|||||||
cl::desc("Enable optimizations that assumes non- NaNs / +-Infs"),
|
cl::desc("Enable optimizations that assumes non- NaNs / +-Infs"),
|
||||||
cl::location(FiniteOnlyFPMathOption),
|
cl::location(FiniteOnlyFPMathOption),
|
||||||
cl::init(false));
|
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>
|
cl::opt<llvm::Reloc::Model, true>
|
||||||
DefRelocationModel(
|
DefRelocationModel(
|
||||||
"relocation-model",
|
"relocation-model",
|
||||||
|
Reference in New Issue
Block a user