This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Asm] Add support for resolving operation locations after parsing has finished
ClosedPublic

Authored by rriddle on Nov 10 2020, 7:02 PM.

Details

Summary

This revision adds support in the parser/printer for "deferrable" aliases, i.e. those that can be resolved after printing has finished. This allows for printing aliases for operation locations after the module instead of before, i.e. this is now supported:

"foo.op"() : () -> () loc(#loc)

#loc = loc("some_location")

Diff Detail

Event Timeline

rriddle created this revision.Nov 10 2020, 7:02 PM
rriddle requested review of this revision.Nov 10 2020, 7:02 PM
mehdi_amini accepted this revision.Nov 12 2020, 6:37 PM
This revision is now accepted and ready to land.Nov 12 2020, 6:37 PM