diff options
author | Melanie Blower <melanie.blower@intel.com> | 2019-11-05 13:41:21 -0800 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2019-11-07 07:22:45 -0800 |
commit | af57dbf12e54f3a8ff48534bf1078f4de104c1cd (patch) | |
tree | c5ae577882a5e6750c379d1735cdc423b88ce83c /clang/lib/CodeGen/CodeGenFunction.h | |
parent | de61aa3118b9bac85c468ea7ec40604a086744f5 (diff) | |
download | bcm5719-llvm-af57dbf12e54f3a8ff48534bf1078f4de104c1cd.tar.gz bcm5719-llvm-af57dbf12e54f3a8ff48534bf1078f4de104c1cd.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 5c3d1764fad..b05475a3000 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4156,6 +4156,9 @@ public: /// point operation, expressed as the maximum relative error in ulp. void SetFPAccuracy(llvm::Value *Val, float Accuracy); + /// SetFPModel - Control floating point behavior via fp-model settings. + void SetFPModel(); + private: llvm::MDNode *getRangeForLoadFromType(QualType Ty); void EmitReturnOfRValue(RValue RV, QualType Ty); |