This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Transforms][NFC] CSE: Add C++ entry point
AbandonedPublic

Authored by springerm on Jun 30 2023, 1:04 AM.

Details

Summary
  • All IR modifications are done with a rewriter.
  • The new C++ entry point takes a RewriterBase &, which may have a listener attached to it.

This revision is useful because it allows users to run CSE and track IR modifications via a listener that can be attached to the rewriter.

This is a reupload of D145226, which was reverted (9979417d4db4) due to a memory leak. The memory leak is unrelated to this change and fixed with D154185.

Depends On: D154185

Diff Detail

Event Timeline

springerm created this revision.Jun 30 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 1:04 AM
springerm requested review of this revision.Jun 30 2023, 1:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 1:04 AM

Can you reuse the original revision? We're losing the comment history...

You can click "Add Action"->"Reopen Revision" so that you can upload a new patch to the original revision.
In "History", readers can see the difference between two diffs.

mlir/lib/Transforms/CSE.cpp
157
springerm abandoned this revision.Jun 30 2023, 11:11 AM