[llvm-commits] CVS: llvm/include/llvm/Target/TargetOptions.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 29 21:09:53 PDT 2005
Changes in directory llvm/include/llvm/Target:
TargetOptions.h updated: 1.4 -> 1.5
---
Log message:
Expose an option allowing unsafe math optimizations. Patch contributed by
Morten Ofstad!
---
Diffs of the changes: (+6 -0)
TargetOptions.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/include/llvm/Target/TargetOptions.h
diff -u llvm/include/llvm/Target/TargetOptions.h:1.4 llvm/include/llvm/Target/TargetOptions.h:1.5
--- llvm/include/llvm/Target/TargetOptions.h:1.4 Thu Apr 21 15:53:44 2005
+++ llvm/include/llvm/Target/TargetOptions.h Fri Apr 29 23:09:37 2005
@@ -41,6 +41,12 @@
/// pattern ISel if available.
extern int PatternISelTriState;
+ /// UnsafeFPMath - This flag is enabled when the
+ /// -enable-unsafe-fp-math flag is specified on the command line. When
+ /// 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.
+ extern bool UnsafeFPMath;
} // End llvm namespace
#endif
More information about the llvm-commits
mailing list