[Mlir-commits] [mlir] 19c3026 - [mlir] Fix PDL python bindings build

Denys Shabalin llvmlistbot at llvm.org
Wed Jan 19 04:59:00 PST 2022


Author: Denys Shabalin
Date: 2022-01-19T13:58:55+01:00
New Revision: 19c3026891e8bd29ee63cccccb3d0948dc183232

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

LOG: [mlir] Fix PDL python bindings build

Fixes incorrect build definition for the bindings for the PDL dialect.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D117657

Added: 
    

Modified: 
    mlir/python/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/python/CMakeLists.txt b/mlir/python/CMakeLists.txt
index 77d6b08322644..59ddd83fb8b0f 100644
--- a/mlir/python/CMakeLists.txt
+++ b/mlir/python/CMakeLists.txt
@@ -123,14 +123,15 @@ declare_mlir_python_sources(
     dialects/quant.py
     _mlir_libs/_mlir/dialects/quant.pyi)
 
-declare_mlir_python_sources(
-  MLIRPythonSources.Dialects.pdl
+declare_mlir_dialect_python_bindings(
   ADD_TO_PARENT MLIRPythonSources.Dialects
   ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mlir"
+  TD_FILE dialects/PDLOps.td
   SOURCES
     dialects/pdl.py
     dialects/_pdl_ops_ext.py
-    _mlir_libs/_mlir/dialects/pdl.pyi)
+    _mlir_libs/_mlir/dialects/pdl.pyi
+  DIALECT_NAME pdl)
 
 declare_mlir_dialect_python_bindings(
   ADD_TO_PARENT MLIRPythonSources.Dialects


        


More information about the Mlir-commits mailing list