This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Asm] Add support for using an alias for trailing operation locations
ClosedPublic

Authored by rriddle on Nov 2 2020, 3:22 PM.

Details

Summary

Locations often get very long and clutter up operations when printed inline with them. This revision adds support for using aliases with trailing operation locations, and makes printing with aliases the default behavior. Aliases in the trailing location take the form loc(<alias>), such as loc(#loc0). As with all aliases, using mlir-print-local-scope can be used to disable them and get the inline behavior.

Depends On D90512

Diff Detail

Event Timeline

rriddle created this revision.Nov 2 2020, 3:22 PM
rriddle requested review of this revision.Nov 2 2020, 3:22 PM
mravishankar resigned from this revision.Nov 3 2020, 9:00 AM
mehdi_amini accepted this revision.Nov 3 2020, 12:49 PM
This revision is now accepted and ready to land.Nov 3 2020, 12:49 PM
This revision was landed with ongoing or failed builds.Nov 9 2020, 10:03 PM
This revision was automatically updated to reflect the committed changes.