This is an archive of the discontinued LLVM Phabricator instance.

[flang] Check constant arguments to bit manipulation intrinsics even if not foldable
ClosedPublic

Authored by klausler on Dec 15 2022, 12:17 PM.

Details

Summary

When some arguments that specify bit positions, shift counts, and field sizes are
constant at compilation time, but other arguments are not constant, the compiler
should still validate the constant ones. In the current sources, validation is
only performed for intrinsic references that can be folded to constants.

Diff Detail

Event Timeline

klausler created this revision.Dec 15 2022, 12:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 12:17 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 15 2022, 12:17 PM
jeanPerier accepted this revision.Dec 16 2022, 12:15 AM

Looks good

This revision is now accepted and ready to land.Dec 16 2022, 12:15 AM