ROCM target fails with LLVM ERROR

Yes, I met this issue recently with rocm 4.3. I tried various LLVM versions up to 12, but what worked at the end was to use LLVM shipped as part of rocm install. But their LLVM fork is using some out-dated API which was changed recently in the upstream, so I had to modify codegen_amdgpu.cc and codegen_nvptx.cc to build TVM.

Probably using the recently released LLVM 13 would also work.