How do I dump the IRs using PassContext?

This discussion gives details about dumping IRs using the 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 ?

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

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