This is an archive of the discontinued LLVM Phabricator instance.

FENV_ACCESS support for libm-style constrained intrinsics
AbandonedPublic

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.

kpn abandoned this revision.Sep 20 2019, 9:24 AM

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