How do I dump the IRs using PassContext?

This discussion gives details about dumping IRs using the tvm.build() function but this has been depreciated. Is there a work around for the same using PassContext or without installing the older version from source and using tvm.build() ?

Hi, @kausthubtm Is this close to what you are looking for?

By using instrumentation, you can print mod before and after each pass.