It there any option in tvm similar to -print-after-all in the llvm, which can dump the llvm IR for each pass ?
When I look for the solution in deepseek, it give a example to use dump_pass_ir=1,
from tvm import relay
from tvm.relay import transform
# Build your Relay module (mod) and pass sequence
seq = transform.Sequential([...])
with tvm.transform.PassContext(opt_level=3, dump_pass_ir=1): # Dump AFTER every pass
mod_optimized = seq(mod)
So I try it base on tvm 0.18, but get a unexpected error ?
(tvm0.18_py310_zyd) root@j00595921debug2-cc95c9977-q752v:/home/zyd# python vector_matmul_add5.5.py
Traceback (most recent call last):
File "/home/zhongyunde/vector_matmul_add5.5.py", line 41, in <module>
with tvm.transform.PassContext(opt_level=3, dump_pass_ir=3):
TypeError: PassContext.__init__() got an unexpected keyword argument 'dump_pass_ir'
so now I define a dump class ,which need modify test case is not convenience to me.
At the same time, I find it only dump the IR before tir.Filter pass ?