[all-commits] [llvm/llvm-project] 5c8419: [mlir] Add hover support to mlir-lsp-server

River Riddle via All-commits all-commits at lists.llvm.org
Fri May 7 18:09:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c84195b8ccb0c1352cd040a01b7b56374dd7ba6
      https://github.com/llvm/llvm-project/commit/5c84195b8ccb0c1352cd040a01b7b56374dd7ba6
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M mlir/docs/Tools/MLIRLSP.md
    M mlir/include/mlir/Parser/AsmParserState.h
    M mlir/lib/Parser/AsmParserState.cpp
    M mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
    M mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
    M mlir/lib/Tools/mlir-lsp-server/MLIRServer.h
    M mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.cpp
    M mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.h
    A mlir/test/mlir-lsp-server/hover.test
    M mlir/test/mlir-lsp-server/initialize-params.test

  Log Message:
  -----------
  [mlir] Add hover support to mlir-lsp-server

This provides information when the user hovers over a part of the source .mlir file. This revision adds the following hover behavior:
* Operation:
  - Shows the generic form.
* Operation Result:
  - Shows the parent operation name, result number(s), and type(s).
* Block:
  - Shows the parent operation name, block number, predecessors, and successors.
* Block Argument:
  - Shows the parent operation name, parent block, argument number, and type.

Differential Revision: https://reviews.llvm.org/D101113




More information about the All-commits mailing list