Add support for options -frounding-math, ftrapping-math, -ffp-model=, and -ffp-except...
authorMelanie Blower <melanie.blower@intel.com>
Tue, 5 Nov 2019 21:41:21 +0000 (13:41 -0800)
committerMelanie Blower <melanie.blower@intel.com>
Thu, 7 Nov 2019 15:22:45 +0000 (07:22 -0800)
commitaf57dbf12e54f3a8ff48534bf1078f4de104c1cd
treec5ae577882a5e6750c379d1735cdc423b88ce83c
parentde61aa3118b9bac85c468ea7ec40604a086744f5
Add support for options -frounding-math, ftrapping-math, -ffp-model=, and -ffp-exception-behavior=

    Add options to control floating point behavior: trapping and
    exception behavior, rounding, and control of optimizations that affect
    floating point calculations. More details in UsersManual.rst.

    Reviewers: rjmccall

    Differential Revision: https://reviews.llvm.org/D62731
13 files changed:
clang/docs/UsersManual.rst
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/fpconstrained.c [new file with mode: 0644]
clang/test/Driver/clang_f_opts.c
clang/test/Driver/fast-math.c
clang/test/Driver/fp-model.c [new file with mode: 0644]
llvm/include/llvm/Target/TargetOptions.h