Page MenuHomePhabricator

FENV_ACCESS support for libm-style constrained intrinsics

Authored by kpn on Aug 28 2018, 11:56 AM.



This builds on D49865 to get #pragma STDC FENV_ACCESS ON to and used by AST handling of function calls to math intrinsics. This now emits constrained math intrinsics instead of the regular variety for the ones currently implemented in llvm.

This should be good for C. More work is needed for C++.

Diff Detail

Event Timeline

kpn created this revision.Aug 28 2018, 11:56 AM
kpn updated this revision to Diff 165995.Sep 18 2018, 9:58 AM


Correct obvious error with powi. Fix test and test both C and (partial) C++.


kpn updated this revision to Diff 168814.Oct 9 2018, 9:06 AM

Update based on feedback to D52839: add missing AST (de)serialization support.


wuzish added a subscriber: wuzish.Jul 4 2019, 1:51 AM
kpn abandoned this revision.Sep 20 2019, 9:24 AM

I believe Serge Pavlov has demonstrated a better way to do this.