diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-30 04:09:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-30 04:09:52 +0000 |
commit | 34f74a6162f1e493a9773e83a684cf31fa4838de (patch) | |
tree | 45df7730dd858d387c2e2f4bbce4e28a7243ac00 /include/llvm/Target/TargetOptions.h | |
parent | b42a9ffbe9f5dc7dc0e54c6425dff10e926e1f3d (diff) | |
download | external_llvm-34f74a6162f1e493a9773e83a684cf31fa4838de.zip external_llvm-34f74a6162f1e493a9773e83a684cf31fa4838de.tar.gz external_llvm-34f74a6162f1e493a9773e83a684cf31fa4838de.tar.bz2 |
Expose an option allowing unsafe math optimizations. Patch contributed by
Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetOptions.h')
-rw-r--r-- | include/llvm/Target/TargetOptions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h index 19b83d5..0018377 100644 --- a/include/llvm/Target/TargetOptions.h +++ b/include/llvm/Target/TargetOptions.h @@ -41,6 +41,12 @@ namespace llvm { /// 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 |