This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add IsElementalProcedure() predicate
ClosedPublic

Authored by klausler on Jul 1 2022, 3:18 PM.

Details

Summary

Replace most tests of the explicit Attr::ELEMENTAL symbol flag with
a new predicate IsElementalProcedure() that works correctly for alternate
ENTRY points and does the right thing for procedure interfaces that
reference elemental intrinsic functions like SIN() whose elemental
nature does not propagate.

Diff Detail

Event Timeline

klausler created this revision.Jul 1 2022, 3:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2022, 3:18 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jul 1 2022, 3:18 PM
jeanPerier accepted this revision.Jul 4 2022, 1:02 AM

Looks good

This revision is now accepted and ready to land.Jul 4 2022, 1:02 AM

@klausler, they are failures when processing the intrinsic modules on Windows (see bots).

@klausler, they are failures when processing the intrinsic modules on Windows (see bots).

Both the Windows and Debian build bots look fine here.

This revision was automatically updated to reflect the committed changes.