https://github.com/joker-eph created https://github.com/llvm/llvm-project/pull/222329
This is fixing missing CMake dependencies to make our build graph correct. It is a bit verbose but will be cleaned up in a following patch making handling of the generated header automatic. List the TableGen targets owned by each affected library, and add the missing LLVM generated-header, SPIR-V source-generation, OpenACC/OpenMP generated-input, and CIR operation/type prerequisites found by clean dependency audits. Correct two stale copy-paste dependencies and the duplicate CIR link entry. The Transforms pass declarations and dialect inliner interface are independent of any dialect. Classify both under mlir-generic-headers, and associate the inliner interface with MLIRTransformUtils, which publishes InliningUtils.h. This gives every MLIR library the required ordering without repeated header-only edges. Assisted-by: Codex Assisted-by: Claude Code >From c297f73ee0ac89617d76175b05f43d15ef5a693f Mon Sep 17 00:00:00 2001 From: Mehdi Amini <[email protected]> Date: Wed, 9 Sep 2026 04:02:13 -0700 Subject: [PATCH] [MLIR] Fix and classify generated-header dependencies List the TableGen targets owned by each affected library, and add the missing LLVM generated-header, SPIR-V source-generation, OpenACC/OpenMP generated-input, and CIR operation/type prerequisites found by clean dependency audits. Correct two stale copy-paste dependencies and the duplicate CIR link entry. The Transforms pass declarations and dialect inliner interface are independent of any dialect. Classify both under mlir-generic-headers, and associate the inliner interface with MLIRTransformUtils, which publishes InliningUtils.h. This gives every MLIR library the required ordering without repeated header-only edges. Assisted-by: Codex Assisted-by: Claude Code Co-Authored-By: Claude Fable 5.1 <[email protected]> --- clang/lib/CIR/Dialect/IR/CMakeLists.txt | 2 +- clang/lib/CIR/Interfaces/CMakeLists.txt | 11 +++++++++++ mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt | 2 ++ mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt | 2 ++ mlir/include/mlir/Transforms/CMakeLists.txt | 4 ++-- mlir/lib/Bytecode/CMakeLists.txt | 4 ++++ mlir/lib/Dialect/ArmNeon/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt | 3 +++ mlir/lib/Dialect/ArmSVE/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt | 4 ++++ mlir/lib/Dialect/DLTI/CMakeLists.txt | 1 + mlir/lib/Dialect/EmitC/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/GPU/CMakeLists.txt | 4 ++++ mlir/lib/Dialect/GPU/Utils/CMakeLists.txt | 5 +++++ mlir/lib/Dialect/IRDL/CMakeLists.txt | 2 ++ mlir/lib/Dialect/LLVMIR/CMakeLists.txt | 2 ++ mlir/lib/Dialect/Linalg/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/NVGPU/IR/CMakeLists.txt | 1 + .../Dialect/OpenACCMPCommon/Interfaces/CMakeLists.txt | 2 +- mlir/lib/Dialect/Ptr/IR/CMakeLists.txt | 1 - mlir/lib/Dialect/SCF/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt | 3 +++ mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/Transform/IR/CMakeLists.txt | 7 +++++++ mlir/lib/Dialect/Transform/Interfaces/CMakeLists.txt | 3 ++- mlir/lib/Dialect/Vector/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/X86/IR/CMakeLists.txt | 1 + mlir/lib/Dialect/XeGPU/IR/CMakeLists.txt | 1 + mlir/lib/IR/CMakeLists.txt | 2 ++ mlir/lib/Target/LLVMIR/CMakeLists.txt | 1 + mlir/lib/Target/SPIRV/CMakeLists.txt | 4 ++++ mlir/lib/Transforms/CMakeLists.txt | 1 - mlir/lib/Transforms/Utils/CMakeLists.txt | 3 +++ 33 files changed, 76 insertions(+), 7 deletions(-) diff --git a/clang/lib/CIR/Dialect/IR/CMakeLists.txt b/clang/lib/CIR/Dialect/IR/CMakeLists.txt index c8205ebeabf6c..0274005a28858 100644 --- a/clang/lib/CIR/Dialect/IR/CMakeLists.txt +++ b/clang/lib/CIR/Dialect/IR/CMakeLists.txt @@ -20,6 +20,6 @@ add_clang_library(MLIRCIR MLIRDataLayoutInterfaces MLIRFuncDialect MLIRLoopLikeInterface - MLIRCIRInterfaces + MLIRPtrMemorySpaceInterfaces clangAST ) diff --git a/clang/lib/CIR/Interfaces/CMakeLists.txt b/clang/lib/CIR/Interfaces/CMakeLists.txt index 8eec8b05aa951..43a35d2516e83 100644 --- a/clang/lib/CIR/Interfaces/CMakeLists.txt +++ b/clang/lib/CIR/Interfaces/CMakeLists.txt @@ -13,8 +13,19 @@ add_clang_library(MLIRCIRInterfaces MLIRCIRTypeInterfacesIncGen MLIRCIRLoopOpInterfaceIncGen MLIRCIROpInterfacesIncGen + MLIRCIROpsIncGen + MLIRCIRTypeConstraintsIncGen + # CIR interface headers include generated core MLIR interfaces without + # linking all of their owning libraries. + MLIRCallInterfacesIncGen + MLIRControlFlowInterfacesIncGen + MLIRFunctionInterfacesIncGen + MLIRInferTypeOpInterfaceIncGen + MLIRLoopLikeInterfaceIncGen + MLIRSideEffectInterfacesIncGen LINK_LIBS MLIRIR + MLIRPtrMemorySpaceInterfaces MLIRSupport ) diff --git a/mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt b/mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt index 789cd709ff16d..ee2a8d26af0d3 100644 --- a/mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt +++ b/mlir/include/mlir/Dialect/OpenACC/CMakeLists.txt @@ -3,6 +3,8 @@ add_subdirectory(Transforms) set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Frontend/OpenACC/ACC.td) mlir_tablegen(AccCommon.td --gen-directive-decl --directives-dialect=OpenACC) add_mlir_dialect_tablegen_target(acc_common_td) +# Subsequent TableGen inputs include the generated AccCommon.td file. +list(APPEND LLVM_TARGET_DEPENDS acc_common_td) add_mlir_dialect(OpenACCOps acc) diff --git a/mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt b/mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt index 691163d9ce9ac..366e7ba60e77b 100644 --- a/mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt +++ b/mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt @@ -3,6 +3,8 @@ add_subdirectory(Transforms) set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Frontend/OpenMP/OMP.td) mlir_tablegen(OmpCommon.td --gen-directive-decl --directives-dialect=OpenMP) add_mlir_dialect_tablegen_target(omp_common_td) +# Subsequent TableGen inputs include the generated OmpCommon.td file. +list(APPEND LLVM_TARGET_DEPENDS omp_common_td) set(LLVM_TARGET_DEFINITIONS OpenMPOps.td) diff --git a/mlir/include/mlir/Transforms/CMakeLists.txt b/mlir/include/mlir/Transforms/CMakeLists.txt index 1b57a3482c1bb..5640400635191 100644 --- a/mlir/include/mlir/Transforms/CMakeLists.txt +++ b/mlir/include/mlir/Transforms/CMakeLists.txt @@ -3,10 +3,10 @@ set(LLVM_TARGET_DEFINITIONS Passes.td) mlir_tablegen(Passes.h.inc -gen-pass-decls -name Transforms) mlir_tablegen(Transforms.capi.h.inc -gen-pass-capi-header --prefix Transforms) mlir_tablegen(Transforms.capi.cpp.inc -gen-pass-capi-impl --prefix Transforms) -add_mlir_dialect_tablegen_target(MLIRTransformsPassIncGen) +add_mlir_generic_tablegen_target(MLIRTransformsPassIncGen) set(LLVM_TARGET_DEFINITIONS DialectInlinerInterface.td) mlir_tablegen(DialectInlinerInterface.h.inc -gen-dialect-interface-decls) -add_mlir_dialect_tablegen_target(MLIRTransformsDialectInterfaceIncGen) +add_mlir_generic_tablegen_target(MLIRTransformsDialectInterfaceIncGen) add_mlir_doc(Passes GeneralPasses ./ -gen-pass-doc) diff --git a/mlir/lib/Bytecode/CMakeLists.txt b/mlir/lib/Bytecode/CMakeLists.txt index c89415f60d124..5c45b2e9e0f31 100644 --- a/mlir/lib/Bytecode/CMakeLists.txt +++ b/mlir/lib/Bytecode/CMakeLists.txt @@ -7,6 +7,10 @@ add_mlir_library(MLIRBytecodeOpInterface ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Bytecode + DEPENDS + MLIRBytecodeOpInterfaceIncGen + MLIRBytecodeDialectInterfaceIncGen + LINK_LIBS PUBLIC MLIRIR MLIRSupport diff --git a/mlir/lib/Dialect/ArmNeon/IR/CMakeLists.txt b/mlir/lib/Dialect/ArmNeon/IR/CMakeLists.txt index b04919a3a3185..8329719965ddf 100644 --- a/mlir/lib/Dialect/ArmNeon/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/ArmNeon/IR/CMakeLists.txt @@ -6,6 +6,7 @@ add_mlir_dialect_library(MLIRArmNeonDialect DEPENDS MLIRArmNeonIncGen + MLIRArmNeonConversionsIncGen LINK_LIBS PUBLIC MLIRIR diff --git a/mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt b/mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt index ce0c2f4986fc6..e69868189be16 100644 --- a/mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt @@ -8,6 +8,9 @@ add_mlir_dialect_library(MLIRArmSMEDialect DEPENDS MLIRArmSMEOpsIncGen MLIRArmSMEIntrinsicOpsIncGen + MLIRArmSMEIncGen + MLIRArmSMEConversionsIncGen + MLIRArmSMEOpInterfaces LINK_LIBS PUBLIC MLIRIR diff --git a/mlir/lib/Dialect/ArmSVE/IR/CMakeLists.txt b/mlir/lib/Dialect/ArmSVE/IR/CMakeLists.txt index 9ef7384fc5492..2cfd4955e5745 100644 --- a/mlir/lib/Dialect/ArmSVE/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/ArmSVE/IR/CMakeLists.txt @@ -6,6 +6,7 @@ add_mlir_dialect_library(MLIRArmSVEDialect DEPENDS MLIRArmSVEIncGen + MLIRArmSVEConversionsIncGen LINK_LIBS PUBLIC MLIRIR diff --git a/mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt b/mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt index a6403a5298dab..20dc4d3fd8036 100644 --- a/mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/Bufferization/IR/CMakeLists.txt @@ -16,6 +16,10 @@ add_mlir_dialect_library(MLIRBufferizationDialect MLIRAllocationOpInterfaceIncGen MLIRBufferizationOpsIncGen MLIRBufferizationEnumsIncGen + MLIRBufferDeallocationOpInterfaceIncGen + MLIRBufferizableOpInterfaceIncGen + MLIRBufferViewFlowOpInterfaceIncGen + MLIRBufferizationTypeInterfacesIncGen LINK_LIBS PUBLIC MLIRAffineDialect diff --git a/mlir/lib/Dialect/DLTI/CMakeLists.txt b/mlir/lib/Dialect/DLTI/CMakeLists.txt index 7691a8a10a37a..7ae80f9e913bb 100644 --- a/mlir/lib/Dialect/DLTI/CMakeLists.txt +++ b/mlir/lib/Dialect/DLTI/CMakeLists.txt @@ -5,6 +5,7 @@ add_mlir_dialect_library(MLIRDLTIDialect DEPENDS MLIRDLTIIncGen + MLIRDLTIAttrsIncGen LINK_LIBS PUBLIC MLIRIR diff --git a/mlir/lib/Dialect/EmitC/IR/CMakeLists.txt b/mlir/lib/Dialect/EmitC/IR/CMakeLists.txt index 4cc54201d2745..6c3e4729f8fac 100644 --- a/mlir/lib/Dialect/EmitC/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/EmitC/IR/CMakeLists.txt @@ -7,6 +7,7 @@ add_mlir_dialect_library(MLIREmitCDialect DEPENDS MLIREmitCIncGen MLIREmitCAttributesIncGen + MLIREmitCInterfacesIncGen LINK_LIBS PUBLIC MLIRCallInterfaces diff --git a/mlir/lib/Dialect/GPU/CMakeLists.txt b/mlir/lib/Dialect/GPU/CMakeLists.txt index 547812da0ab97..87e09f1dbf47f 100644 --- a/mlir/lib/Dialect/GPU/CMakeLists.txt +++ b/mlir/lib/Dialect/GPU/CMakeLists.txt @@ -12,6 +12,10 @@ add_mlir_dialect_library(MLIRGPUDialect MLIRGPUOpsEnumsGen MLIRGPUOpInterfacesIncGen MLIRGPUCompilationAttrInterfacesIncGen + MLIRParallelLoopMapperEnumsGen + MLIRGPUDeviceMapperEnumsGen + # GPU dialect sources include llvm/IR/Attributes.h. + intrinsics_gen LINK_LIBS PUBLIC MLIRArithDialect diff --git a/mlir/lib/Dialect/GPU/Utils/CMakeLists.txt b/mlir/lib/Dialect/GPU/Utils/CMakeLists.txt index 69094c518a159..a49baddc2bee8 100644 --- a/mlir/lib/Dialect/GPU/Utils/CMakeLists.txt +++ b/mlir/lib/Dialect/GPU/Utils/CMakeLists.txt @@ -5,10 +5,15 @@ add_mlir_dialect_library(MLIRGPUUtils ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/GPU/Utils + # GPU utility headers include llvm/IR/Attributes.h. + DEPENDS + intrinsics_gen + LINK_LIBS PUBLIC MLIRArithDialect MLIRAffineDialect MLIRGPUDialect MLIRSupport MLIRIR + MLIRVectorDialect ) diff --git a/mlir/lib/Dialect/IRDL/CMakeLists.txt b/mlir/lib/Dialect/IRDL/CMakeLists.txt index db4b98ef5308e..c212033037560 100644 --- a/mlir/lib/Dialect/IRDL/CMakeLists.txt +++ b/mlir/lib/Dialect/IRDL/CMakeLists.txt @@ -9,6 +9,8 @@ add_mlir_dialect_library(MLIRIRDL MLIRIRDLIncGen MLIRIRDLOpsIncGen MLIRIRDLTypesIncGen + MLIRIRDLInterfacesIncGen + MLIRIRDLAttributesIncGen LINK_LIBS PUBLIC MLIRDialect diff --git a/mlir/lib/Dialect/LLVMIR/CMakeLists.txt b/mlir/lib/Dialect/LLVMIR/CMakeLists.txt index 18057048a509a..e76cfc612f8c1 100644 --- a/mlir/lib/Dialect/LLVMIR/CMakeLists.txt +++ b/mlir/lib/Dialect/LLVMIR/CMakeLists.txt @@ -39,6 +39,8 @@ add_mlir_dialect_library(MLIRLLVMDialect MLIRLLVMTypesIncGen MLIROpenMPOpsIncGen intrinsics_gen + MLIRLLVMConversionsIncGen + MLIRLLVMIntrinsicConversionsIncGen LINK_COMPONENTS BinaryFormat diff --git a/mlir/lib/Dialect/Linalg/IR/CMakeLists.txt b/mlir/lib/Dialect/Linalg/IR/CMakeLists.txt index ec4fd82468dbb..fcba43785b6fd 100644 --- a/mlir/lib/Dialect/Linalg/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/Linalg/IR/CMakeLists.txt @@ -15,6 +15,7 @@ add_mlir_dialect_library(MLIRLinalgDialect MLIRLinalgStructuredOpsIncGen MLIRLinalgRelayoutOpsIncGen MLIRShardingInterfaceIncGen + MLIRRelayoutOpInterfaceIncGen LINK_LIBS PUBLIC MLIRAffineDialect diff --git a/mlir/lib/Dialect/NVGPU/IR/CMakeLists.txt b/mlir/lib/Dialect/NVGPU/IR/CMakeLists.txt index 94776845c5321..e84914596dd62 100644 --- a/mlir/lib/Dialect/NVGPU/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/NVGPU/IR/CMakeLists.txt @@ -9,6 +9,7 @@ add_mlir_dialect_library(MLIRNVGPUDialect MLIRNVGPUEnumsIncGen MLIRNVGPUAttributesIncGen MLIRNVGPUTypesIncGen + MLIRNVGPUIncGen LINK_LIBS PUBLIC MLIRGPUDialect diff --git a/mlir/lib/Dialect/OpenACCMPCommon/Interfaces/CMakeLists.txt b/mlir/lib/Dialect/OpenACCMPCommon/Interfaces/CMakeLists.txt index 2a82ff2150287..7a7500647e9e0 100644 --- a/mlir/lib/Dialect/OpenACCMPCommon/Interfaces/CMakeLists.txt +++ b/mlir/lib/Dialect/OpenACCMPCommon/Interfaces/CMakeLists.txt @@ -5,8 +5,8 @@ ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenACCMPCommon/Interfaces DEPENDS -MLIRArithOpsIncGen MLIRAtomicInterfacesIncGen +MLIROpenACCMPOpsInterfacesIncGen LINK_LIBS PUBLIC MLIRArithDialect diff --git a/mlir/lib/Dialect/Ptr/IR/CMakeLists.txt b/mlir/lib/Dialect/Ptr/IR/CMakeLists.txt index a6b0d416a4165..5e336f9b5594f 100644 --- a/mlir/lib/Dialect/Ptr/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/Ptr/IR/CMakeLists.txt @@ -10,7 +10,6 @@ add_mlir_dialect_library( MemorySpaceInterfaces.cpp DEPENDS - MLIRPtrOpsEnumsGen MLIRPtrMemorySpaceInterfacesIncGen LINK_LIBS PUBLIC diff --git a/mlir/lib/Dialect/SCF/IR/CMakeLists.txt b/mlir/lib/Dialect/SCF/IR/CMakeLists.txt index 5e7d10e4a9d6a..652016518061b 100644 --- a/mlir/lib/Dialect/SCF/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/SCF/IR/CMakeLists.txt @@ -9,6 +9,7 @@ add_mlir_dialect_library(MLIRSCFDialect DEPENDS MLIRSCFOpsIncGen + MLIRDeviceMappingInterfacesIncGen LINK_LIBS PUBLIC MLIRArithDialect diff --git a/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt b/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt index 742272163cd82..5875cb431b23d 100644 --- a/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt @@ -54,6 +54,9 @@ add_mlir_dialect_library(MLIRSPIRVDialect MLIRSPIRVImageInterfacesIncGen MLIRSPIRVOpsIncGen MLIRSPIRVOpsShardGen + MLIRSPIRVSerializationGen + # SPIRVDialect.cpp includes llvm/IR/Attributes.h. + intrinsics_gen LINK_LIBS PUBLIC MLIRControlFlowInterfaces diff --git a/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt b/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt index fe2cc90688d08..61f2921749b2e 100644 --- a/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt @@ -42,6 +42,7 @@ add_mlir_dialect_library(MLIRSparseTensorDialect MLIRSparseTensorAttrDefsIncGen MLIRSparseTensorOpsIncGen MLIRSparseTensorTypesIncGen + MLIRSparseTensorInterfacesIncGen LINK_LIBS PUBLIC MLIRArithDialect diff --git a/mlir/lib/Dialect/Transform/IR/CMakeLists.txt b/mlir/lib/Dialect/Transform/IR/CMakeLists.txt index 5b4989f328e69..21ed91029817c 100644 --- a/mlir/lib/Dialect/Transform/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/Transform/IR/CMakeLists.txt @@ -5,6 +5,13 @@ add_mlir_dialect_library(MLIRTransformDialect TransformTypes.cpp Utils.cpp + DEPENDS + MLIRTransformDialectIncGen + MLIRTransformTypesIncGen + MLIRTransformDialectEnumIncGen + MLIRTransformDialectAttributesIncGen + MLIRTransformOpsIncGen + LINK_LIBS PUBLIC MLIRCastInterfaces MLIRFunctionInterfaces diff --git a/mlir/lib/Dialect/Transform/Interfaces/CMakeLists.txt b/mlir/lib/Dialect/Transform/Interfaces/CMakeLists.txt index fc9cbfdc9a5bf..e6c558ab21460 100644 --- a/mlir/lib/Dialect/Transform/Interfaces/CMakeLists.txt +++ b/mlir/lib/Dialect/Transform/Interfaces/CMakeLists.txt @@ -5,6 +5,8 @@ add_mlir_library(MLIRTransformDialectInterfaces DEPENDS MLIRMatchInterfacesIncGen MLIRTransformInterfacesIncGen + MLIRTransformDialectTypeInterfacesIncGen + MLIRTransformDialectAttrInterfacesIncGen LINK_LIBS PUBLIC MLIRCastInterfaces @@ -14,4 +16,3 @@ add_mlir_library(MLIRTransformDialectInterfaces MLIRTransforms MLIRTransformDialectUtils ) - diff --git a/mlir/lib/Dialect/Vector/IR/CMakeLists.txt b/mlir/lib/Dialect/Vector/IR/CMakeLists.txt index f45618cda8ece..b1af617bc480e 100644 --- a/mlir/lib/Dialect/Vector/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/Vector/IR/CMakeLists.txt @@ -11,6 +11,7 @@ add_mlir_dialect_library(MLIRVectorDialect MLIRMaskingOpInterfaceIncGen MLIRVectorOpsIncGen MLIRVectorAttributesIncGen + MLIRVectorIncGen LINK_LIBS PUBLIC MLIRAffineDialect diff --git a/mlir/lib/Dialect/X86/IR/CMakeLists.txt b/mlir/lib/Dialect/X86/IR/CMakeLists.txt index 1385e55169f84..442e419e6b289 100644 --- a/mlir/lib/Dialect/X86/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/X86/IR/CMakeLists.txt @@ -6,6 +6,7 @@ add_mlir_dialect_library(MLIRX86Dialect DEPENDS MLIRX86IncGen + MLIRX86InterfacesIncGen LINK_LIBS PUBLIC MLIRIR diff --git a/mlir/lib/Dialect/XeGPU/IR/CMakeLists.txt b/mlir/lib/Dialect/XeGPU/IR/CMakeLists.txt index 4ea73cda6de95..4356adfb11b43 100644 --- a/mlir/lib/Dialect/XeGPU/IR/CMakeLists.txt +++ b/mlir/lib/Dialect/XeGPU/IR/CMakeLists.txt @@ -10,6 +10,7 @@ add_mlir_dialect_library(MLIRXeGPUDialect MLIRXeGPUAttrInterfaceIncGen MLIRXeGPUAttrsIncGen MLIRXeGPUEnumsIncGen + MLIRXeGPUOpInterfaceIncGen LINK_LIBS PUBLIC MLIRArithDialect diff --git a/mlir/lib/IR/CMakeLists.txt b/mlir/lib/IR/CMakeLists.txt index 6cadc3131ccd4..9c9727fb8e981 100644 --- a/mlir/lib/IR/CMakeLists.txt +++ b/mlir/lib/IR/CMakeLists.txt @@ -71,6 +71,8 @@ add_mlir_library(MLIRIR MLIRSymbolInterfacesIncGen MLIRTensorEncodingIncGen MLIROpAsmDialectInterfaceIncGen + MLIRBytecodeDialectInterfaceIncGen + MLIRBytecodeOpInterfaceIncGen LINK_LIBS PUBLIC MLIRSupport diff --git a/mlir/lib/Target/LLVMIR/CMakeLists.txt b/mlir/lib/Target/LLVMIR/CMakeLists.txt index 69fd5583fac2a..ed775bc47d7bf 100644 --- a/mlir/lib/Target/LLVMIR/CMakeLists.txt +++ b/mlir/lib/Target/LLVMIR/CMakeLists.txt @@ -29,6 +29,7 @@ add_mlir_translation_library(MLIRTargetLLVMIRExport DEPENDS intrinsics_gen + MLIRLLVMTranslationDialectInterfaceIncGen LINK_COMPONENTS Analysis diff --git a/mlir/lib/Target/SPIRV/CMakeLists.txt b/mlir/lib/Target/SPIRV/CMakeLists.txt index 2926320ed286b..1785cf92a9334 100644 --- a/mlir/lib/Target/SPIRV/CMakeLists.txt +++ b/mlir/lib/Target/SPIRV/CMakeLists.txt @@ -28,6 +28,10 @@ add_mlir_translation_library(MLIRSPIRVTranslateRegistration add_mlir_dialect_library(MLIRSPIRVTarget Target.cpp + # Target.cpp includes llvm/IR/Attributes.h. + DEPENDS + intrinsics_gen + LINK_LIBS PUBLIC MLIRIR MLIRGPUDialect diff --git a/mlir/lib/Transforms/CMakeLists.txt b/mlir/lib/Transforms/CMakeLists.txt index 66b39f53c91df..e202e9756bf39 100644 --- a/mlir/lib/Transforms/CMakeLists.txt +++ b/mlir/lib/Transforms/CMakeLists.txt @@ -28,7 +28,6 @@ add_mlir_library(MLIRTransforms DEPENDS MLIRTransformsPassIncGen - MLIRTransformsDialectInterfaceIncGen LINK_LIBS PUBLIC MLIRAnalysis diff --git a/mlir/lib/Transforms/Utils/CMakeLists.txt b/mlir/lib/Transforms/Utils/CMakeLists.txt index 3ecf3859a7f4c..f38826690e141 100644 --- a/mlir/lib/Transforms/Utils/CMakeLists.txt +++ b/mlir/lib/Transforms/Utils/CMakeLists.txt @@ -15,6 +15,9 @@ add_mlir_library(MLIRTransformUtils ADDITIONAL_HEADER_DIRS ${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms + DEPENDS + MLIRTransformsDialectInterfaceIncGen + LINK_LIBS PUBLIC MLIRAnalysis MLIRCallInterfaces _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
