Recently,I just want to know how to add a Pass in TVM , so I read the docs about TVM and I found there were there ways to add a pass in TVM
1:https://docs.tvm.ai/tutorials/dev/low_level_custom_pass.html I think we can use tvm.ir_pass.PostOrderVisit(stmt, func) and tvm.ir_pass.IRTransform to create a pass in Python Frontend。
2:https://docs.tvm.ai/dev/relay_pass_infra.html I think we can build a pass through decoration in Python Frontend,like @relay.transform.function_pass(opt_level=1)
3:https://docs.tvm.ai/dev/relay_add_pass.html I think we can Create ExprVisitor subclass and ExprMutator subclass ,then register a pass with the pass manager. this method are used in C++ backend.