[Chapel Merge] Move pass manager passes into header, convert Expa

Branch: refs/heads/main
Revision: fdccd07
Author: dlongnecke-cray
Link: Move pass manager passes into header, convert ExpandExternArrayCalls by dlongnecke-cray · Pull Request #20014 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20014 from dlongnecke-cray/pm-expand-extern-array-calls

Move pass manager passes into header, convert ExpandExternArrayCalls (#20014)

Convert the expandExternArrayCalls pass into a pass that is run
by the new pass manager.

Create a new header pass-manager-passes.h to store all the passes.
They are listed in approximate execution order, but that may change
as things are run out of order, and some passes are already run
multiple times.

In the future we might like to dedicate a header per pass (and clean
up source files accordingly), but I think this is a fine substitute
in the interim.

TESTING

  • ALL on linux64, standard

Reviewed by @lydia-duncan. Thanks!

Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com

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

M compiler/include/passes.h
M compiler/passes/expandExternArrayCalls.cpp
M compiler/passes/insertLineNumbers.cpp
M compiler/passes/returnStarTuplesByRefArgs.cpp

Compare: https://github.com/chapel-lang/chapel/compare/08f1d4886b76...fdccd0794785