@@ -180,10 +180,10 @@ eudslpygen(EUDSLGenDLTIDialect
180180 NAMESPACES mlir::DLTIDialect mlir::DLTIDialect::detail
181181)
182182
183- # eudslpygen(EUDSLGenemitc
184- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
185- # NAMESPACES mlir::emitc mlir::emitc::detail
186- # )
183+ eudslpygen(EUDSLGenemitc
184+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
185+ NAMESPACES mlir::emitc mlir::emitc::detail
186+ )
187187
188188eudslpygen(EUDSLGenfunc
189189 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -216,10 +216,10 @@ eudslpygen(EUDSLGenlinalg
216216 NAMESPACES mlir::linalg mlir::linalg::detail
217217)
218218
219- # eudslpygen(EUDSLGenLLVM
220- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
221- # NAMESPACES mlir::LLVM mlir::LLVM::detail
222- # )
219+ eudslpygen(EUDSLGenLLVM
220+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
221+ NAMESPACES mlir::LLVM mlir::LLVM::detail
222+ )
223223
224224eudslpygen(EUDSLGenmath
225225 ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
@@ -323,6 +323,7 @@ eudslpygen(EUDSLGenspirv
323323 NAMESPACES mlir::spirv mlir::spirv::detail
324324 EXTRA_INCLUDES
325325 mlir/Dialect/SPIRV/IR/SPIRVOps.h
326+ mlir/IR/PatternMatch.h
326327)
327328
328329eudslpygen(EUDSLGentensor
@@ -355,62 +356,17 @@ eudslpygen(EUDSLGenx86vector
355356 NAMESPACES mlir::x86vector mlir::x86vector::detail
356357)
357358
358- # eudslpygen(EUDSLGenxegpu
359- # ${MLIR_INCLUDE_DIR}/mlir/InitAllDialects.h
360- # NAMESPACES mlir::xegpu mlir::xegpu::detail
361- # )
359+ eudslpygen(EUDSLGenxegpu
360+ ${MLIR_INCLUDE_DIR} /mlir/InitAllDialects.h
361+ NAMESPACES mlir::xegpu mlir::xegpu::detail
362+ )
362363
363364nanobind_add_module(eudslpy_ext
364365 NB_STATIC
365366 NB_DOMAIN eudsl
366367 src/eudslpy_ext.cpp
367- ${EUDSLGenacc_GENERATED_SHARDS}
368- ${EUDSLGenaffine_GENERATED_SHARDS}
369- ${EUDSLGenamdgpu_GENERATED_SHARDS}
370- ${EUDSLGenamx_GENERATED_SHARDS}
371- ${EUDSLGenarith_GENERATED_SHARDS}
372- ${EUDSLGenarm_neon_GENERATED_SHARDS}
373- ${EUDSLGenarm_sme_GENERATED_SHARDS}
374- ${EUDSLGenarm_sve_GENERATED_SHARDS}
375- ${EUDSLGenasync_GENERATED_SHARDS}
376- ${EUDSLGenbufferization_GENERATED_SHARDS}
377- ${EUDSLGencf_GENERATED_SHARDS}
378- ${EUDSLGencomplex_GENERATED_SHARDS}
379- ${EUDSLGenDLTIDialect_GENERATED_SHARDS}
380- # ${EUDSLGenemitc_GENERATED_SHARDS}
381- ${EUDSLGenfunc_GENERATED_SHARDS}
382- ${EUDSLGengpu_GENERATED_SHARDS}
383- ${EUDSLGenindex_GENERATED_SHARDS}
384- # ${EUDSLGenirdl_GENERATED_SHARDS}
385- # ${EUDSLGenlinalg_GENERATED_SHARDS}
386- # ${EUDSLGenLLVM_GENERATED_SHARDS}
387- ${EUDSLGenmath_GENERATED_SHARDS}
388- ${EUDSLGenmemref_GENERATED_SHARDS}
389- ${EUDSLGenmesh_GENERATED_SHARDS}
390- ${EUDSLGenml_program_GENERATED_SHARDS}
391- ${EUDSLGenmpi_GENERATED_SHARDS}
392- ${EUDSLGennvgpu_GENERATED_SHARDS}
393- ${EUDSLGenNVVM_GENERATED_SHARDS}
394- # ${EUDSLGenomp_GENERATED_SHARDS}
395- ${EUDSLGenpdl_GENERATED_SHARDS}
396- ${EUDSLGenpdl_interp_GENERATED_SHARDS}
397- ${EUDSLGenpolynomial_GENERATED_SHARDS}
398- ${EUDSLGenptr_GENERATED_SHARDS}
399- ${EUDSLGenquant_GENERATED_SHARDS}
400- ${EUDSLGenROCDL_GENERATED_SHARDS}
401- # ${EUDSLGenscf_GENERATED_SHARDS}
402- # ${EUDSLGenshape_GENERATED_SHARDS}
403- ${EUDSLGensparse_tensor_GENERATED_SHARDS}
404- # ${EUDSLGenspirv_GENERATED_SHARDS}
405- ${EUDSLGentensor_GENERATED_SHARDS}
406- ${EUDSLGentosa_GENERATED_SHARDS}
407- ${EUDSLGentransform_GENERATED_SHARDS}
408- ${EUDSLGenub_GENERATED_SHARDS}
409- # ${EUDSLGenvector_GENERATED_SHARDS}
410- ${EUDSLGenx86vector_GENERATED_SHARDS}
411- # ${EUDSLGenxegpu_GENERATED_SHARDS}
412- )
413- add_dependencies (eudslpy_ext
368+ )
369+ target_link_libraries (eudslpy_ext PRIVATE
414370 EUDSLGenacc
415371 EUDSLGenaffine
416372 EUDSLGenamdgpu
@@ -424,38 +380,38 @@ add_dependencies(eudslpy_ext
424380 EUDSLGencf
425381 EUDSLGencomplex
426382 EUDSLGenDLTIDialect
427- # EUDSLGenemitc
383+ EUDSLGenemitc
428384 EUDSLGenfunc
429385 EUDSLGengpu
430386 EUDSLGenindex
431- # EUDSLGenirdl
432- # EUDSLGenlinalg
433- # EUDSLGenLLVM
387+ # EUDSLGenirdl
388+ EUDSLGenlinalg
389+ EUDSLGenLLVM
434390 EUDSLGenmath
435391 EUDSLGenmemref
436392 EUDSLGenmesh
437393 EUDSLGenml_program
438394 EUDSLGenmpi
439395 EUDSLGennvgpu
440396 EUDSLGenNVVM
441- # EUDSLGenomp
397+ # EUDSLGenomp
442398 EUDSLGenpdl
443399 EUDSLGenpdl_interp
444400 EUDSLGenpolynomial
445401 EUDSLGenptr
446402 EUDSLGenquant
447403 EUDSLGenROCDL
448- # EUDSLGenscf
449- # EUDSLGenshape
404+ EUDSLGenscf
405+ EUDSLGenshape
450406 EUDSLGensparse_tensor
451- # EUDSLGenspirv
407+ EUDSLGenspirv
452408 EUDSLGentensor
453409 EUDSLGentosa
454410 EUDSLGentransform
455411 EUDSLGenub
456- # EUDSLGenvector
412+ # EUDSLGenvector
457413 EUDSLGenx86vector
458- # EUDSLGenxegpu
414+ EUDSLGenxegpu
459415)
460416set_target_properties (eudslpy_ext
461417 PROPERTIES
@@ -503,7 +459,8 @@ target_compile_options(eudslpy_ext PRIVATE ${nanobind_options})
503459target_compile_options (nanobind-static PRIVATE ${nanobind_options} )
504460
505461# note WORKING_DIRECTORY
506- set (NB_STUBGEN_CMD "${Python_EXECUTABLE} " "-m" "nanobind.stubgen" --module eudslpy_ext --recursive --include -private --output -dir .)
462+ set (NB_STUBGEN_CMD "${Python_EXECUTABLE} " "-m" "nanobind.stubgen"
463+ --module eudslpy_ext --recursive --include -private --output -dir .)
507464set (NB_STUBGEN_OUTPUTS "__init__.pyi" )
508465add_custom_command (
509466 OUTPUT ${NB_STUBGEN_OUTPUTS}
0 commit comments