This is an archive of the discontinued LLVM Phabricator instance.

[ORC] Introduce IRPartitionLayer for common partition functionality.
Needs ReviewPublic

Authored by sunho on Aug 21 2023, 3:53 AM.

Details

Summary

The IR module partitioning logic has been embeded in CompileOnDemandLayer but this functionality is also required for other purpose such as re-optimization.
This patch splits that IR partitioning logic out of CompileOnDemandLayer into a new IR layer IRPartitionLayer.

A motivation behind making it into new IR layer is for the possibility of "lazy re-optimizing JIT" where we'd like to have a composition like "IRPartitionLayer -> CompileOnDemandLayer -> ReOptLayer"

Diff Detail

Event Timeline

sunho created this revision.Aug 21 2023, 3:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 3:53 AM
sunho requested review of this revision.Aug 21 2023, 3:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 3:53 AM