[all-commits] [llvm/llvm-project] 50d96f: [TableGen] Track reference locations of Records/Re...

River Riddle via All-commits all-commits at lists.llvm.org
Tue Sep 27 23:48:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50d96f59d0966bdda6b3ac4f8964ed572435b847
      https://github.com/llvm/llvm-project/commit/50d96f59d0966bdda6b3ac4f8964ed572435b847
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M clang/test/TableGen/redefined-group.td
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/TGLexer.cpp
    M llvm/lib/TableGen/TGLexer.h
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/lib/TableGen/TGParser.h
    M llvm/test/TableGen/ConstraintChecking1.td
    M llvm/test/TableGen/ConstraintChecking2.td
    M llvm/test/TableGen/ConstraintChecking3.td
    M llvm/test/TableGen/ConstraintChecking4.td
    M llvm/test/TableGen/ConstraintChecking5.td
    M llvm/test/TableGen/ConstraintChecking6.td
    M llvm/test/TableGen/ConstraintChecking7.td
    M llvm/test/TableGen/GlobalISelEmitter-setcc.td
    M llvm/test/TableGen/RegisterClass.td
    M llvm/test/TableGen/SchedModelError.td
    M llvm/test/TableGen/generic-tables.td
    M mlir/lib/Tools/tblgen-lsp-server/TableGenServer.cpp

  Log Message:
  -----------
  [TableGen] Track reference locations of Records/RecordVals

This is extremely useful for language tooling as it allows
for providing go-to-def/find-references/etc. for many
more situations than what is currently possible.

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


  Commit: 3e2ad37679ed800aa34e5255bd44672ce353d566
      https://github.com/llvm/llvm-project/commit/3e2ad37679ed800aa34e5255bd44672ce353d566
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M mlir/docs/Tools/MLIRLSP.md
    M mlir/lib/Tools/lsp-server-support/SourceMgrUtils.cpp
    M mlir/lib/Tools/lsp-server-support/SourceMgrUtils.h
    M mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp
    M mlir/lib/Tools/tblgen-lsp-server/TableGenServer.cpp
    M mlir/test/tblgen-lsp-server/hover.test
    M mlir/test/tblgen-lsp-server/include/included.td

  Log Message:
  -----------
  [TableGen:LSP] Add hover support for records and recordvals

This provides hover information for classes, defs, fields, and template
arguments. Like PDLL, this pulls documentation from the source code
when hovering over fields and records.

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


  Commit: 99e24123e9578acc54b47a238ee54d591d1a64d1
      https://github.com/llvm/llvm-project/commit/99e24123e9578acc54b47a238ee54d591d1a64d1
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M mlir/lib/Tools/lsp-server-support/SourceMgrUtils.cpp
    M mlir/lib/Tools/lsp-server-support/SourceMgrUtils.h
    M mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp
    M mlir/lib/Tools/tblgen-lsp-server/TableGenServer.cpp
    M mlir/test/tblgen-lsp-server/definition.test

  Log Message:
  -----------
  [TableGen:LSP] Resolve "go-to-def" on a let field to the base definition

This allows for go-to-def on the a `let` field to resolve to the definition
of the base class. This is kind of like how C++ works with go-to-def
from use->def->decl, with the decl in this case being the base definition
of the field.

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


  Commit: 18f954e7159e0728be0a4382aea8ccbb7fa502c5
      https://github.com/llvm/llvm-project/commit/18f954e7159e0728be0a4382aea8ccbb7fa502c5
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M mlir/docs/Tools/MLIRLSP.md

  Log Message:
  -----------
  [mlir:LSP] Add a doc blurb for bytecode editing support

This was missed when bytecode support was originally added.


Compare: https://github.com/llvm/llvm-project/compare/67bce07964da...18f954e7159e


More information about the All-commits mailing list