[all-commits] [llvm/llvm-project] c4afec: [llvm][CMake][TableGen] Add all TableGen files to ...

David Spickett via All-commits all-commits at lists.llvm.org
Thu Nov 16 01:26:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4afeccdd235a282d200c450e06a730504a66a08
      https://github.com/llvm/llvm-project/commit/c4afeccdd235a282d200c450e06a730504a66a08
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2023-11-16 (Thu, 16 Nov 2023)

  Changed paths:
    M llvm/cmake/modules/TableGen.cmake
    M mlir/cmake/modules/AddMLIR.cmake

  Log Message:
  -----------
  [llvm][CMake][TableGen] Add all TableGen files to tablegen_compile_commands.yml (#71686)

This file is a list of files and their required include dirs, used by
the TableGen LSP server
(https://mlir.llvm.org/docs/Tools/MLIRLSP/#tablegen-lsp-language-server--tblgen-lsp-server).

Initialy this only included MLIR TableGen files, so I've expanded that
by moving it into llvm so all projects that use the llvm `tablegen`
function will be added to the file.

You could already do some things in llvm TableGen files without this,
but were limited with files that don't include their dependencies using
`include`, only with command line arguments.

Once those are in the yml file, the language server sees all that and go
to definition etc. all works.




More information about the All-commits mailing list