This is an archive of the discontinued LLVM Phabricator instance.

[flang] add -f[no-]rounding-math
AbandonedPublic

Authored by tblah on Nov 21 2022, 2:55 AM.

Details

Summary

Only add the option processing and store the result. No attributes are added to FIR yet.

Forwarding is a bit different to Clang: Clang will forward -fno-rounding-math if RoundingFPMath is false (the default). This commit does not add a flag in the default case: only adding -frounding-math to pass on a non-default value.

Diff Detail

Event Timeline

tblah created this revision.Nov 21 2022, 2:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2022, 2:55 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
tblah requested review of this revision.Nov 21 2022, 2:55 AM
kiranchandramohan requested changes to this revision.Nov 21 2022, 3:26 AM

Since this flag does not directly map to an MLIR Operation or LLVM Instruction fast attribute, I think we need to have an understanding of how to model this in FIR/MLIR or how to generate code in the Flang Lowering code.

This revision now requires changes to proceed.Nov 21 2022, 3:26 AM
tblah abandoned this revision.Jan 6 2023, 2:22 AM