[all-commits] [llvm/llvm-project] a5b584: [mlir][lsp] Add parser support for tracking alias ...

Jeff Niu via All-commits all-commits at lists.llvm.org
Thu Aug 24 19:03:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5b584d8b4a569c38b0740f226336da2a67c3824
      https://github.com/llvm/llvm-project/commit/a5b584d8b4a569c38b0740f226336da2a67c3824
  Author: Mogball <jeff at modular.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    M mlir/include/mlir/AsmParser/AsmParserState.h
    M mlir/lib/AsmParser/AsmParserState.cpp
    M mlir/lib/AsmParser/DialectSymbolParser.cpp
    M mlir/lib/AsmParser/Parser.cpp

  Log Message:
  -----------
  [mlir][lsp] Add parser support for tracking alias definitions and uses

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.

Reviewed By: rriddle

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




More information about the All-commits mailing list