This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add support for specifying printing flags when adding an op to a Diagnostic
ClosedPublic

Authored by rriddle on Oct 13 2021, 3:59 PM.

Details

Summary

This removes edge cases where the default flags we want to use
during printing (e.g. local scope, eliding attributes, etc.)
don't get missed/dropped.

Diff Detail

Event Timeline

rriddle created this revision.Oct 13 2021, 3:59 PM
rriddle requested review of this revision.Oct 13 2021, 3:59 PM
GMNGeoffrey accepted this revision.EditedOct 13 2021, 4:26 PM

Nit: Seems like you ended up with a double negative in your description. Drop the "don't"?

This removes edge cases where the default flags we want to use
during printing (e.g. local scope, eliding attributes, etc.)
don't get missed/dropped.

->

This removes edge cases where the default flags we want to use
during printing (e.g. local scope, eliding attributes, etc.)
get missed/dropped.

This revision is now accepted and ready to land.Oct 13 2021, 4:26 PM