Skip to content

Commit

Permalink
[MLIR] Add missing MLIRDialectUtils dep to TilingInterface (llvm#84544)
Browse files Browse the repository at this point in the history
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRTilingInterface.a only:
```
In file included from mlir/include/mlir/Interfaces/TilingInterface.h:17,                                                                     
                 from mlir/lib/Interfaces/TilingInterface.cpp:13:                                                                            
mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h:27:10: fatal error: mlir/Dialect/Utils/DialectUtilsEnums.h.inc: No such file or directory
```
  • Loading branch information
RoboTux authored and chencha3 committed Mar 22, 2024
1 parent 39c5ba3 commit 7bdbe23
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion mlir/lib/Interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,20 @@ add_mlir_library(MLIRSubsetOpInterface
MLIRValueBoundsOpInterface
)

add_mlir_interface_library(TilingInterface)
add_mlir_library(MLIRTilingInterface
TilingInterface.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Interfaces

DEPENDS
MLIRTilingInterfaceIncGen
MLIRDialectUtils

LINK_LIBS PUBLIC
MLIRIR
)

add_mlir_interface_library(VectorInterfaces)
add_mlir_interface_library(ViewLikeInterface)

Expand Down

0 comments on commit 7bdbe23

Please sign in to comment.