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:
- Does TVM provide a Python API to extract the complete LLVM IR code and compile it into a shared object file?
- The latest TVM document has removed
relay
as well as thelib.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!