This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower fir.dispatch in the fir-polymorphic-op pass
ClosedPublic

Authored by Renaud-K on Mar 21 2023, 5:04 PM.

Details

Summary

Continuing the effort of moving polymorphic types related operation into the fir-polymorphic-op pass

Lowering fir.dispatch before target-rewrite enables target-rewrite to operate on these calls.

Diff Detail

Event Timeline

Renaud-K created this revision.Mar 21 2023, 5:04 PM
Renaud-K requested review of this revision.Mar 21 2023, 5:04 PM

All builds and tests correctly and looks good to me. But I'll leave it to someone with more relevant expertise to approve.

Renaud-K updated this revision to Diff 507460.Mar 22 2023, 11:56 AM

Needed to reformat runtime-type-info.cpp with a version 15 of clang-format to make the buildbot happy

jeanPerier accepted this revision.Mar 23 2023, 3:09 AM

Looks good to me, thanks for simplifying codegen and making transformations more modular.

This revision is now accepted and ready to land.Mar 23 2023, 3:09 AM
This revision was automatically updated to reflect the committed changes.

Thanks Renaud for this simplification in code gen!