This is an archive of the discontinued LLVM Phabricator instance.

[Debugify] Override printPipeline for NewPM debugify passes
AbandonedPublic

Authored by bjope on Jan 27 2022, 2:49 AM.

Details

Summary

Make sure NewPM versions of debugify and check-debugify present
themselves correctly when using -print-pipeline-passes option
in opt.

For some reason those passes aren't in the PassRegistry. So they
still won't be listed when using "opt -print-passes". I do not know
much about the reasoning and why it is like that, therefore this
patch just fixes the problem with -print-pipeline-passes by simple
overrides of the printPipeline function.

Diff Detail

Event Timeline

bjope created this revision.Jan 27 2022, 2:49 AM
bjope requested review of this revision.Jan 27 2022, 2:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2022, 2:49 AM

Thanks for this @bjope.

Should we add Debugify Passes in the PassRegistry?

bjope added a comment.Jan 27 2022, 3:16 AM

Thanks for this @bjope.

Should we add Debugify Passes in the PassRegistry?

Yes. If there is no particular reason why it has been omitted from the PassRegistry we could do that. Maybe as a follow up, or I'll just put this on hold while investigating that further, as I think this patch might become redundant if we use the PassRegistry instead.

bjope abandoned this revision.EditedJan 27 2022, 7:32 AM

Abandoned in favor of D118369 which adds the passes to the registry instead. That seems like a nicer solution.