[Chapel Merge] Convert more sections of callDestructors to use Pa

Branch: refs/heads/main
Revision: 3c50563
Author: benharsh
Link: Convert more sections of callDestructors to use PassManager by benharsh · Pull Request #20190 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20190 from benharsh/more-cd-pass-manager

Convert more sections of callDestructors to use PassManager

These are some relatively straightforward changes to the callDestructors pass that convert sub-passes to use the PassManager.

Splitting off the LowerAutoDestroyRuntimeType section seems appropriate conceptually, but is somewhat wasteful. In CallDestructorsCallCleanup we simply overload the functionality when it might technically be more appropriate to split off the section that mutates PRIM_ASSIGN_ELIDED_COPY, rather than removing it.

[ r @dlongnecke-cray ]

Modified Files:
M compiler/include/pass-manager-passes.h

M compiler/resolution/callDestructors.cpp

Compare: https://github.com/chapel-lang/chapel/compare/2ed35e32e3f7...3c505639c6e6