This is an archive of the discontinued LLVM Phabricator instance.

Make MLIR Pass Timing output configurable through injection
ClosedPublic

Authored by mehdi_amini on Apr 26 2020, 7:34 PM.

Details

Summary

This makes it possible for the client to control where the pass timings will
be printed.

Diff Detail

Event Timeline

mehdi_amini created this revision.Apr 26 2020, 7:34 PM
Herald added a project: Restricted Project. · View Herald Transcript
rriddle added inline comments.Apr 26 2020, 8:04 PM
mlir/include/mlir/Pass/PassManager.h
235

Do we need to pass the display mode back? Is there a situation where it would differ from the config?

Remove displayMode from callback arguments

(actually do it)

mehdi_amini marked an inline comment as done.Apr 27 2020, 4:39 PM
rriddle accepted this revision.Apr 27 2020, 4:49 PM
rriddle added inline comments.
mlir/lib/Pass/PassTiming.cpp
235–236

Is this actually optional?

This revision is now accepted and ready to land.Apr 27 2020, 4:49 PM
Harbormaster completed remote builds in B54898: Diff 260494.
This revision was automatically updated to reflect the committed changes.
mehdi_amini marked 2 inline comments as done.