[clang] clang: Add pragma clang fp reciprocal (PR #68267)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 11:03:27 PDT 2023


================
@@ -1309,6 +1309,13 @@ void Sema::ActOnPragmaFPReassociate(SourceLocation Loc, bool IsEnabled) {
   CurFPFeatures = NewFPFeatures.applyOverrides(getLangOpts());
 }
 
+void Sema::ActOnPragmaFPReciprocal(SourceLocation Loc, bool IsEnabled) {
----------------
andykaylor wrote:

This should have the same checks for ffp-eval-method use as are done in ActOnPragmaFPReassociate(). Probably it's better to combine the two into something like ActOnPragmaFPValueChangingOption() since we'll likely be adding something similar for the other fast-math flags eventually.

https://github.com/llvm/llvm-project/pull/68267


More information about the cfe-commits mailing list