diff options
author | Melanie Blower <melanie.blower@intel.com> | 2019-12-02 11:22:52 -0800 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2019-12-04 11:32:33 -0800 |
commit | cdbed2dd856c14687efd741c2d8321686102acb8 (patch) | |
tree | a51de1b31c871c79e7d2486466463562cdaa9a7d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 75bbbeec74bbac327768a636d025f292a955c672 (diff) | |
download | bcm5719-llvm-cdbed2dd856c14687efd741c2d8321686102acb8.tar.gz bcm5719-llvm-cdbed2dd856c14687efd741c2d8321686102acb8.zip |
Reapply af57dbf12e54 "Add support for options -frounding-math, ftrapping-math, -ffp-model=, and -ffp-exception-behavior="
Patch was reverted because https://bugs.llvm.org/show_bug.cgi?id=44048
The original patch is modified to set the strictfp IR attribute
explicitly in CodeGen instead of as a side effect of IRBuilder
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 7a2627ccf58..8f99b090b81 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4169,6 +4169,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); |