Reapply "[Clang] Optionally use NewPM to run CodeGen Pipeline" (#205943)
This reverts commit 0c4cc9f8adc5acda1aa49b8a8704433e237848ee.
This patch also fixes the dependency issue by making the clang CodeGen
library depend on the LLVM CodeGen library which is needed by the NewPM
for CodeGen.
Reviewers: oontvoo
Pull Request: https://github.com/llvm/llvm-project/pull/205986