aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorBryan Tan <Technius@users.noreply.github.com>2025-08-27 01:40:48 -0700
committerGitHub <noreply@github.com>2025-08-27 10:40:48 +0200
commit35110b7b10134f7f5008f8f55ab0f190198d9874 (patch)
tree331b9f771ebecf5039b45baf06b88cfcc788f82a /clang/lib/AST/ByteCode/Compiler.cpp
parent9cca295dccfa8bcefdd7f3ba512d5d042ae57ca8 (diff)
downloadllvm-35110b7b10134f7f5008f8f55ab0f190198d9874.zip
llvm-35110b7b10134f7f5008f8f55ab0f190198d9874.tar.gz
llvm-35110b7b10134f7f5008f8f55ab0f190198d9874.tar.bz2
[mlir] Consistently add TableGen generated files as deps to `mlir-headers`/`mlir-generic-headers` CMake targets (#155474)
Tool targets like `mlir-opt` rely on the `mlir-headers` or `mlir-generic-headers` targets to run first to generate headers. However, many of the `IncGen` targets are not specified as dependencies of the header targets in CMake, which causes spurious build failures when using a high number of parallel build jobs. Thus, this commit introduces a pair of new CMake macros `add_mlir_dialect_tablegen_target` and `add_mlir_generic_tablegen_target` to `AddMLIR.cmake`, which can be used in place of `add_public_tablegen_target` to ensure (by convention) that `IncGen` targets are added to the `mlir-headers` (resp. `mlir-generic-headers`) target dependencies. Most uses of `add_public_tablegen_target` in the dialects have been refactored to use the new macros.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions