You are using the upstream llvm-13. My patch is meant to be used with rocm’s fork (which is based on llvm 13 but using outdated API, -DLLVM_DIR=/opt/rocm/llvm/lib/cmake/llvm). If you are using the upstream one, main branch should compile. Have you tried that?