This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Emit ABI_FP_rounding attribute.
ClosedPublic

Authored by chatur01 on Dec 2 2014, 9:20 AM.

Details

Reviewers
t.p.northover
Summary

LLVM understands a -enable-sign-dependent-rounding-fp-math codegen option. When the user has specified this option, the Tag_ABI_FP_rounding attribute should be emitted with value 1. This option currently does not appear to disable transformations and optimizations that assume default floating point rounding behavior, AFAICT, but the intention should be recorded in the build attributes, regardless of what the compiler actually does with the intention.

Aside: when Clang supports -frounding-math, it will be using this LLVM option in the translation IIUC. The -frounding-math is what toggles this build attribute.

Diff Detail

Event Timeline

chatur01 retitled this revision from to [ARM] Emit ABI_FP_rounding attribute..
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)
chatur01 set the repository for this revision to rL LLVM.
chatur01 added a subscriber: Unknown Object (MLST).
chatur01 edited the test plan for this revision. (Show Details)Dec 2 2014, 9:21 AM
t.p.northover accepted this revision.Dec 2 2014, 10:47 AM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

Hi Charlie,

This looks fine to me.

Cheers.

Tim.

This revision is now accepted and ready to land.Dec 2 2014, 10:47 AM

Thanks Tim! Committed as r223218.