This is an archive of the discontinued LLVM Phabricator instance.

[Orc][LLJIT] Add optimizer support to LLJIT
AbandonedPublic

Authored by hintonda on Jan 8 2020, 11:13 AM.

Details

Reviewers
lhames
beanz
alexr
Summary

Add ability to optimize LLJIT modules by moving the TransformLayer
from LLLazyJIT up to LLJIT so it can be used by both. The LLLazyJIT
interface and functionality remains unchanged.

This is a minimal patch that reuses TransformLayer for both LLJIT and
LLLazyJIT. This shouldn't be a problem, since LLLazyJIT functionality
remains unchanged. However, an alternative would be to add a module
specific TransformLayer.

Event Timeline

hintonda created this revision.Jan 8 2020, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2020, 11:13 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
alexr added a comment.Jan 8 2020, 11:33 AM

Seems simple enough, but Lang should weigh in.

Actually I missed that clone-to-new-context update in e9e26c01cd865da678b1af6ba5f417c713956a66. I've fixed it in c75180258e6. Thanks for this Don!