https://gitlab.freedesktop.org/mesa/mesa/-/issues/6505

--- a/meson.build
+++ b/meson.build
@@ -1733,6 +1733,7 @@
 if draw_with_llvm
   llvm_modules += 'native'
 endif
+llvm_modules += 'passes'
 
 if with_amd_vk or with_gallium_radeonsi
   _llvm_version = '>= 11.0.0'
