This is an archive of the discontinued LLVM Phabricator instance.

[flang] Polymorphic Operations Conversion Pass
ClosedPublic

Authored by Renaud-K on Feb 27 2023, 2:45 PM.

Details

Summary

Introducing the PolymorphicOpConversionPass and moving fir.select_type into it.
The plan is also use this pass for fir.dispatch
The goal is to simplify the lowering of polymorphic operations with an intermediate FIR representation.

Diff Detail

Event Timeline

Renaud-K created this revision.Feb 27 2023, 2:45 PM
Renaud-K requested review of this revision.Feb 27 2023, 2:45 PM

I don't understand this code very well, but I can confirm that all builds and tests correctly and looks OK to me.

This revision is now accepted and ready to land.Feb 27 2023, 9:35 PM
flang/lib/Optimizer/Transforms/PolymorphicOpConversion.cpp
59

Could you please move the definition out of the anonymous namespace? Thanks.

jeanPerier accepted this revision.Feb 28 2023, 2:23 AM
Renaud-K updated this revision to Diff 501217.Feb 28 2023, 10:32 AM

Moved function definitions outside of the anonymous namespace

clementval accepted this revision.Mar 1 2023, 9:25 AM

Still LGTM

Renaud-K closed this revision.Mar 15 2023, 6:24 PM

Apologies for forgetting the phabricator review in the commit message.