Need guidance on building DL compiler

you can use the relax which is the latest version of IR TVM uses. You can try to look into tutorials like End-to-End Optimize Model — tvm 0.22.dev0 documentation