[Mlir-commits] [mlir] caf8b1f - [MLIR] Add missing MLIRDialectUtils dep to TilingInterface (#84544)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 20 08:04:15 PDT 2024


Author: Thomas Preud'homme
Date: 2024-03-20T15:04:10Z
New Revision: caf8b1f654122342dc846ae4d9a86d5c6f93f945

URL: https://github.com/llvm/llvm-project/commit/caf8b1f654122342dc846ae4d9a86d5c6f93f945
DIFF: https://github.com/llvm/llvm-project/commit/caf8b1f654122342dc846ae4d9a86d5c6f93f945.diff

LOG: [MLIR] Add missing MLIRDialectUtils dep to TilingInterface (#84544)

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
```

Added: 
    

Modified: 
    mlir/lib/Interfaces/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Interfaces/CMakeLists.txt b/mlir/lib/Interfaces/CMakeLists.txt
index e7c76e70ed6b5d..d3b7bf65ad3e73 100644
--- a/mlir/lib/Interfaces/CMakeLists.txt
+++ b/mlir/lib/Interfaces/CMakeLists.txt
@@ -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)
 


        


More information about the Mlir-commits mailing list