mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
Every dialect was dependent on `mlir-headers`, which was causing the build of any single MLIR dialect to pull in a bunch of extra dependencies that aren't needed. Now, MLIR dialects will need to explicitly depend on `MLIR*IncGen` targets to pull in any needed headers. This does not impact the actual `mlir-header` target. Consider the "simple" Arithmetic dialect. Before: ``` % ninja MLIRArithmeticDialect [151/812] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/JSONBackend.cpp.o ``` After: ``` % ninja MLIRArithmeticDialect [207/374] Building CXX object tools/mlir/lib/TableGen/CMakeFiles/MLIRTableGen.dir/GenInfo.cpp.o ``` (Both clean builds) Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D133132
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.