llvm-project/mlir
Stephen Neuendorffer 7add6b6b73 [MLIR] add dependencies for all tablegen targets on 'mlir-headers'
In cmake, dependencies on generated files require some sophistication in the build system.  At build time, files are parsed to determine which headers they depend on and these dependencies are injected into the build system.  This works well with ninja, but has some constraints with the makefile generator.  According to the cmake documentation, this only works reliably within the same directory.

This patch expands the usage of mlir-headers to include all generated headers and adds an mlir-generic-headers target which triggers generation of dialect-independent headers.  These targets are used to express dependencies on generated headers.  This is mostly handled in AddMLIR.cmake and only a few CMakeLists.txt files need to change.

Differential Revision: https://reviews.llvm.org/D79242
2020-05-01 20:08:52 -07:00
..
cmake/modules [MLIR] add dependencies for all tablegen targets on 'mlir-headers' 2020-05-01 20:08:52 -07:00
docs [mlir][DenseStringElementsAttr] Add support for the Attribute based get* methods. 2020-05-01 16:34:35 -07:00
examples [MLIR] Move Verifier and Dominance Analysis from /Analysis to /IR 2020-05-01 20:01:46 -07:00
include [MLIR] add dependencies for all tablegen targets on 'mlir-headers' 2020-05-01 20:08:52 -07:00
lib [MLIR] add dependencies for all tablegen targets on 'mlir-headers' 2020-05-01 20:08:52 -07:00
test [MLIR] Move Verifier and Dominance Analysis from /Analysis to /IR 2020-05-01 20:01:46 -07:00
tools [mlir][spirv] Handle debug information during (de)serialization. 2020-05-01 14:11:54 +03:00
unittests [mlir][DenseStringElementsAttr] Add support for the Attribute based get* methods. 2020-05-01 16:34:35 -07:00
utils [mlir][spirv] NFC: use Optional to replace SPV_Optional 2020-04-13 15:44:06 -04:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [MLIR] add dependencies for all tablegen targets on 'mlir-headers' 2020-05-01 20:08:52 -07:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.