| 14 | using namespace mlir::python::nanobind_adaptors; |
| 15 | |
| 16 | NB_MODULE(_site_initialize_1, m) { |
| 17 | m.doc() = "All CUDA Tile IR related dialects (cuda_tile) and passes."; |
| 18 | |
| 19 | // NB: This is a special API hook that will be automatically called during |
| 20 | // library initialization. |
| 21 | m.def("register_dialects", [](MlirDialectRegistry registry) { |
| 22 | mlirCudaTileRegisterAllDialects(registry); |
| 23 | }); |
| 24 | |
| 25 | // NB: This is not a special API hook and must be invoked manually by a user |
| 26 | // in Python to register the passes. |
| 27 | m.def("register_passes", []() { mlirCudaTileRegisterAllPasses(); }); |
| 28 | } |
nothing calls this directly
no test coverage detected