How to modify LLVM IR code in TVM?

Hi, I am trying to extract the LLVM IR code of an IRModule and compile it after manual modification. However I can only find the lib.get_lib().get_source('ll') function after building the library with relay.build and the shared object compiled from this LLVM IR doesn’t work.

I have two questions:

  1. Does TVM provide a Python API to extract the complete LLVM IR code and compile it into a shared object file?
  2. The latest TVM document has removed relay as well as the lib.get_lib().get_source('ll') function. Will TVM provide an API which allows users to modify the underlying IR code in the future?

Thank you very much!