Using LLVM's legacy PM for optimization pipeline was deprecated in
and some rarely used pieces are being removed.
populateModulePassManager is a main API indicating legacy usage. Rename
and deprecate it to make users aware. Use a function attribute instead
of LLVM_ATTRIBUTE_DEPRECATED to allow warning suppression with #pragma
without worrying about MSVC.