Print the function code from lib


#1

I wanna see fuction code from lib.bc which I saved, how can I get it? For example, in graph.json, there is a function named xxx, I wanna print xxx code from lib.bc


#2

Use llvm-dis (from the clang toolchain) to disassemble the .bc file.


#3

Are you trying to inspect the contents of a specific operator, say conv2d? For that you can instrument the corresponding definition in TOPI kind of like what is done here: https://docs.tvm.ai/tutorials/language/schedule_primitives.html#split