This is an archive of the discontinued LLVM Phabricator instance.

[mlir][lsp] Add LSP support for attribute and type aliases
ClosedPublic

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

Details

Summary

This wires in attribute and type aliases into the MLIR LSP server. This
will allow goto definition and find references on attribute and type
references, which should make debugging locations and other metadata
easier.

Depends on D158781

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:27 PM
rriddle added inline comments.
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
660–661

You could also wrap in an mlir markdown block, which would give syntax highlighting

671–672

Same here.

This revision is now accepted and ready to land.Aug 24 2023, 3:27 PM
Mogball added inline comments.Aug 24 2023, 5:52 PM
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
660–661

Pretty cool. I'll give that a try.

Mogball updated this revision to Diff 553364.Aug 24 2023, 10:44 PM

markdown format

This revision was landed with ongoing or failed builds.Aug 24 2023, 10:51 PM
This revision was automatically updated to reflect the committed changes.