This is an archive of the discontinued LLVM Phabricator instance.

[mlir][lsp] Add parser support for tracking alias definitions and uses
ClosedPublic

Authored by Mogball on Aug 24 2023, 2:26 PM.

Details

Summary

This adds fields to AsmParserState to track attribute and type alias
definitions and uses and teachers the parser to inform the
AsmParserState about them. This will be used to add LSP support for goto
definition and find references for aliases.

Attribute aliases are tolerant to use before def, because certain
location aliases may be deferred.

Diff Detail

Event Timeline

Mogball created this revision.Aug 24 2023, 2:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 2:26 PM
Mogball requested review of this revision.Aug 24 2023, 2:26 PM
rriddle accepted this revision.Aug 24 2023, 3:33 PM
This revision is now accepted and ready to land.Aug 24 2023, 3:33 PM