Page MenuHomePhabricator

FENV_ACCESS support for libm-style constrained intrinsics
Needs ReviewPublic

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

Details

Summary

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

Rebase.

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

Ping.

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.

Ping.

wuzish added a subscriber: wuzish.Jul 4 2019, 1:51 AM