If I want to use MLIR, how should I choose the LLVM compiler version

I want to build a new compiler for my hardware. Just don’t know how to choose the version of LLVM.

Recommended latest LLVM 20.1.5 Release

OK,Thanks a lot!