summaryrefslogtreecommitdiffstats
path: root/mlir
diff options
context:
space:
mode:
authorStella Laurenzo <laurenzo@google.com>2019-12-31 16:32:41 -0800
committerStella Laurenzo <laurenzo@google.com>2020-01-03 16:04:40 -0800
commit7d82d20f37f0873a07d74c97a081ee6a4c16bdc8 (patch)
tree44f2922f73924e248ddca3dcc2aaf32f38cecac9 /mlir
parent0458e63d28a6685dae3d17cc210ef838be533612 (diff)
downloadbcm5719-llvm-7d82d20f37f0873a07d74c97a081ee6a4c16bdc8.tar.gz
bcm5719-llvm-7d82d20f37f0873a07d74c97a081ee6a4c16bdc8.zip
Add missing mlir-headers target and add tablegen'd deps to it.
Summary: Prior to this, "ninja install-mlir-headers" failed with an error indicating the missing target. Verified that from a clean build, the installed headers include generated files. Subscribers: mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72045
Diffstat (limited to 'mlir')
-rw-r--r--mlir/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index a81221a7edd..be76e8d89eb 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -17,6 +17,7 @@ function(add_mlir_dialect dialect dialect_doc_filename)
mlir_tablegen(${dialect}.h.inc -gen-op-decls)
mlir_tablegen(${dialect}.cpp.inc -gen-op-defs)
add_public_tablegen_target(MLIR${dialect}IncGen)
+ add_dependencies(mlir-headers MLIR${dialect}IncGen)
# Generate Dialect Documentation
set(LLVM_TARGET_DEFINITIONS ${dialect_doc_filename}.td)
@@ -32,6 +33,10 @@ function(add_mlir_dialect dialect dialect_doc_filename)
add_dependencies(mlir-doc ${dialect_doc_filename}DocGen)
endfunction()
+# Installing the headers and docs needs to depend on generating any public
+# tablegen'd targets.
+add_custom_target(mlir-headers)
+set_target_properties(mlir-headers PROPERTIES FOLDER "Misc")
add_custom_target(mlir-doc)
# TODO: This is to handle the current static registration, but should be
OpenPOWER on IntegriCloud