How to write TIR pass with Python API

Hi all, I wanna to know How to write TIR pass with Python API, but I find no related docs.

I found the tir.pass called with C++ written located in CreatePassList(bool) of src/driver/driver_api.cc.

Hope this section can help you:

Pass Infrastructure — tvm 0.11.dev0 documentation .

And from my practice, writing a c++ pass may not be as hard as you might think.

Thanks a lot. I will have a look. :smiling_face_with_three_hearts:

Thanks a lot. I will have a look. :smiling_face_with_three_hearts: