This is an archive of the discontinued LLVM Phabricator instance.

Add hook for dialect specializing processing blocks post inlining calls
ClosedPublic

Authored by jpienaar on Jun 16 2021, 10:10 AM.

Details

Summary

This allows for dialects to do different post-processing depending on operations with the inliner (my use case requires different attribute propagation rules depending on call op). This hook runs before the regular processInlinedBlocks method.

Diff Detail

Event Timeline

jpienaar created this revision.Jun 16 2021, 10:10 AM
jpienaar requested review of this revision.Jun 16 2021, 10:10 AM

Missing the test?

mlir/test/lib/Dialect/Test/TestDialect.cpp
178

nit: Prefer early exit here.

jpienaar updated this revision to Diff 352516.Jun 16 2021, 12:32 PM
jpienaar marked an inline comment as done.

Add forgotten test update & use early exit

rriddle accepted this revision.Jun 16 2021, 12:45 PM
This revision is now accepted and ready to land.Jun 16 2021, 12:45 PM
This revision was landed with ongoing or failed builds.Jun 16 2021, 12:53 PM
This revision was automatically updated to reflect the committed changes.