aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-03-20 05:06:58 +0000
committerMon P Wang <wangmp@apple.com>2009-03-20 05:06:58 +0000
commitbc65ca8de591e278fc613b5dc0e178b2ddcd215e (patch)
tree32026130fb84b4b803a977697ae45e60b80f87e1 /include
parent654c98c4f39591132027835a52dee4993618de51 (diff)
downloadexternal_llvm-bc65ca8de591e278fc613b5dc0e178b2ddcd215e.zip
external_llvm-bc65ca8de591e278fc613b5dc0e178b2ddcd215e.tar.gz
external_llvm-bc65ca8de591e278fc613b5dc0e178b2ddcd215e.tar.bz2
Added option to enable generating less precise mad (multiply addition)
for those architectures that support the instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetOptions.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index 54468f4..276ea13 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -26,6 +26,14 @@ namespace llvm {
/// elimination optimization, this option should disable it.
extern bool NoFramePointerElim;
+ /// LessPreciseFPMAD - This flag is enabled when the
+ /// -enable-fp-mad is specified on the command line. When this flag is off
+ /// (the default), the code generator is not allowed to generate mad
+ /// (multiply add) if the result is "less precise" than doing those operations
+ /// individually.
+ extern bool LessPreciseFPMADOption;
+ extern bool LessPreciseFPMAD();
+
/// NoExcessFPPrecision - This flag is enabled when the
/// -disable-excess-fp-precision flag is specified on the command line. When
/// this flag is off (the default), the code generator is allowed to produce
@@ -39,7 +47,7 @@ namespace llvm {
/// this flag is off (the default), the code generator is not allowed to
/// produce results that are "less precise" than IEEE allows. This includes
/// use of X86 instructions like FSIN and FCOS instead of libcalls.
- /// UnsafeFPMath implies FiniteOnlyFPMath.
+ /// UnsafeFPMath implies FiniteOnlyFPMath and LessPreciseFPMAD.
extern bool UnsafeFPMath;
/// FiniteOnlyFPMath - This returns true when the -enable-finite-only-fp-math