This is an archive of the discontinued LLVM Phabricator instance.

[FPEnv][FMF] Move helper function to header, move fast math flags to new include file.
ClosedPublic

Authored by kpn on Feb 14 2022, 11:37 AM.

Details

Summary

In a prior review I was asked to move the helper function canIgnoreSNaN() out to FPEnv.h. This wasn't possible at the time because that function needs the fast math flags, and including them includes lots of other stuff that isn't needed.

This patch moves the fast math flags out into a new FMF.h file unchanged, and moves the helper function out to FPEnv.h also unchanged. This ticket only moves code around.

Diff Detail

Event Timeline

kpn created this revision.Feb 14 2022, 11:37 AM
kpn requested review of this revision.Feb 14 2022, 11:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 11:37 AM
kpn updated this revision to Diff 408564.Feb 14 2022, 12:33 PM

Remove unneeded includes, and correct the placement of the include of FMF.h.

spatel accepted this revision.Feb 15 2022, 8:36 AM

LGTM

This revision is now accepted and ready to land.Feb 15 2022, 8:36 AM
This revision was landed with ongoing or failed builds.Feb 16 2022, 9:35 AM
This revision was automatically updated to reflect the committed changes.