[tvm0.20.0-Relax] How to codegen llvm-ir with Relax?

I’d suggest looking at tir_to_runtime. This function calls codegen_build which in turn calls the appropriate target build function (e.g., target.build.llvm for the llvm target).