This is an archive of the discontinued LLVM Phabricator instance.

[mlir][core] Add option to print users of an operation as a comment
AbandonedPublic

Authored by cpillmayer on Apr 18 2022, 1:28 PM.

Details

Reviewers
None
Summary

This capability in the AssemblyWriter allows to print users of an operation as a comment as proposed in git issue #53286.
To be able to refer to void type users such as store or ret, an option to generate slot numbers for void instructions is added.

Diff Detail

Unit TestsFailed

Event Timeline

cpillmayer created this revision.Apr 18 2022, 1:28 PM
cpillmayer requested review of this revision.Apr 18 2022, 1:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 1:28 PM

There may be some confusion happening here. It looks like you intended to add support for MLIR (given the commit title and bug reference), but the files in this commit are adding support to LLVM instead. MLIR and LLVM have different underlying infrastructure. (though this may still be a welcome addition for LLVM users)

cpillmayer added a comment.EditedApr 18 2022, 1:52 PM

There may be some confusion happening here. It looks like you intended to add support for MLIR (given the commit title and bug reference), but the files in this commit are adding support to LLVM instead. MLIR and LLVM have different underlying infrastructure. (though this may still be a welcome addition for LLVM users)

@rriddle You are right, sorry about that. I will close this patch and reopen it with the correct description.

cpillmayer abandoned this revision.Apr 18 2022, 2:17 PM