This is an archive of the discontinued LLVM Phabricator instance.

Introduce the concept of IR listeners in MLIR
Needs ReviewPublic

Authored by mehdi_amini on Jan 21 2023, 1:35 PM.

Details

Reviewers
rriddle
Summary

This patch introduces the concept of IR listeners in MLIR. IR listeners
are used to track changes in the IR. They are attached to an Operation
and receive notifications when the operation is modified.

Operation inherits listeners from the parent operation. This allows to
set a listener on a FuncOp (or a ModuleOp) for example and receive
notifications about any future Operation inserted somewhere in the
function.

RFC: https://discourse.llvm.org/t/rfc-introduce-the-concept-of-ir-listeners-in-mlir/67854

Diff Detail

Event Timeline

mehdi_amini created this revision.Jan 21 2023, 1:35 PM
Herald added a project: Restricted Project. · View Herald Transcript
mehdi_amini requested review of this revision.Jan 21 2023, 1:35 PM
mehdi_amini edited the summary of this revision. (Show Details)Jan 21 2023, 1:59 PM

thread-safety