Pass plugins are compiled and linked dynamically by default. Setting
LLVM_${NAME}_LINK_INTO_TOOLS to ON turns the project into a
statically linked extension. Projects like Polly can be used this way by
adding -DLLVM_POLLY_LINK_INTO_TOOLS=ON to the cmake command.
The changes in this patch makes the PassBuilder in Flang aware of statically
linked pass plugins, see the documentation for more details:
https://github.com/llvm/llvm-project/blob/main/llvm/docs/WritingAnLLVMNewPMPass.rst#id21
[nit] More specifically, when https://reviews.llvm.org/D129156. is merged, right?