Revert "[mlir][cmake] Don't add dependencies on mlir-(generic-)headers"

This reverts commit 7691b69d5b.

Bots are broken because we're missing CMake dependencies all around now.
This commit is contained in:
Mehdi Amini 2022-09-03 01:43:21 +00:00
parent 220c2cb0a8
commit 95201fcca0
5 changed files with 12 additions and 4 deletions

View File

@ -577,19 +577,19 @@ endfunction()
# Declare the library associated with a dialect.
function(add_mlir_dialect_library name)
set_property(GLOBAL APPEND PROPERTY MLIR_DIALECT_LIBS ${name})
add_mlir_library(${ARGV})
add_mlir_library(${ARGV} DEPENDS mlir-headers)
endfunction(add_mlir_dialect_library)
# Declare the library associated with a conversion.
function(add_mlir_conversion_library name)
set_property(GLOBAL APPEND PROPERTY MLIR_CONVERSION_LIBS ${name})
add_mlir_library(${ARGV})
add_mlir_library(${ARGV} DEPENDS mlir-headers)
endfunction(add_mlir_conversion_library)
# Declare the library associated with a translation.
function(add_mlir_translation_library name)
set_property(GLOBAL APPEND PROPERTY MLIR_TRANSLATION_LIBS ${name})
add_mlir_library(${ARGV})
add_mlir_library(${ARGV} DEPENDS mlir-headers)
endfunction(add_mlir_translation_library)
# Verification tools to aid debugging.

View File

@ -34,6 +34,9 @@ add_mlir_library(MLIRAnalysis
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
DEPENDS
mlir-headers
LINK_LIBS PUBLIC
MLIRCallInterfaces
MLIRControlFlowInterfaces

View File

@ -6,7 +6,6 @@ add_mlir_dialect_library(MLIRTransformDialect
DEPENDS
MLIRTransformDialectIncGen
MLIRTransformInterfacesIncGen
MLIRTransformOpsIncGen
LINK_LIBS PUBLIC
MLIRIR

View File

@ -10,6 +10,9 @@ add_mlir_library(MLIRPass
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass
DEPENDS
mlir-generic-headers
LINK_LIBS PUBLIC
MLIRAnalysis
MLIRIR

View File

@ -6,6 +6,9 @@ add_mlir_library(MLIRRewrite
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Rewrite
DEPENDS
mlir-generic-headers
LINK_LIBS PUBLIC
MLIRIR
MLIRPDLDialect