[all-commits] [llvm/llvm-project] d1bb30: [mlir] fix `add_tablegen()` macro to allow install...

Ashay Rane via All-commits all-commits at lists.llvm.org
Sun Aug 7 15:49:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1bb3016ddc8331a96048eda37ab13bf412c7749
      https://github.com/llvm/llvm-project/commit/d1bb3016ddc8331a96048eda37ab13bf412c7749
  Author: Ashay Rane <ashay at users.noreply.github.com>
  Date:   2022-08-07 (Sun, 07 Aug 2022)

  Changed paths:
    M clang/utils/TableGen/CMakeLists.txt
    M llvm/cmake/modules/TableGen.cmake
    M llvm/utils/TableGen/CMakeLists.txt
    M mlir/tools/mlir-pdll/CMakeLists.txt
    M mlir/tools/mlir-tblgen/CMakeLists.txt

  Log Message:
  -----------
  [mlir] fix `add_tablegen()` macro to allow installing mlir-pdll

Prior to this patch, the `add_tablegen()` macro in
llvm/cmake/modules/TableGen.cmake added the install rule only if
`project` matched `LLVM` or `MLIR`.  This patch adds an optional
`DESTINATION` argument, which, if non-empty, decides whether (and where)
to install the tablegen tool, thus eliminating the need for
project-specific overrides.  This patch also updates all other
invocations of the `add_tablegen()` macro.

Reviewed By: nikic

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




More information about the All-commits mailing list