[PATCH] D106191: [clang] Option control afn flag

Masoud Ataei via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 7 13:38:57 PDT 2021


masoud.ataei added inline comments.


================
Comment at: clang/docs/UsersManual.rst:1393
+
+   Allow substitution of approximate calculations for functions.
+   Defaults to ``-fno-approx-func``.
----------------
erichkeane wrote:
> This seems pretty incomplete to me, I have no idea what it does from this description.  Can you elaborate?
If I didn't miss to say it is about math function calls, then I guess it would be more clear. 
```
Allow substitution of approximate calculations for math function calls.
```
This option just adds `afn` fast-math flag to the function calls and in backend the math function call can be replaced by an approximate calculation (either another math function call or not). 
https://llvm.org/docs/LangRef.html#fast-math-flags


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106191/new/

https://reviews.llvm.org/D106191



More information about the cfe-commits mailing list