[Chapel Merge] Improve the generated task function names

Branch: refs/heads/main
Revision: 1237c51e751fec4fb94c06e3d52904bc36cb7a08
Author: jabraham17
Link: Improve the generated task function names by jabraham17 · Pull Request #28704 · chapel-lang/chapel · GitHub
Log Message:
Improve the generated task function names (#28704)

Improves the generated task function names to help users understand code
easier.

Previously, task functions like coforall and begin would be
generated as coforall_fn. These function names would appear in things
like perf traces, but the easiest way to disambiguate which coforall was
showing up in the trace was the inspect the generated code.

This PR improves that by generating a better name for task functions
based on the module name and line number, similar to how we generate GPU
kernels. This means users can look only at the generated function name
in a trace and map it back to their source code.

  • paratest with LLVM backend
  • paratest with C backend

[Reviewed by @dlongnecke-cray]

Compare: Comparing 2c1e1864115ef3e88e3193111f8ccb506936c22e...a8dd53cad332e552324e5e7542add185aa664336 · chapel-lang/chapel · GitHub

Diff:
M compiler/AST/build.cpp
M compiler/AST/view.cpp
M compiler/include/view.h
M compiler/passes/createTaskFunctions.cpp
M compiler/resolution/functionResolution.cpp
A test/parallel/codegen/.gitignore
A test/parallel/codegen/namedTaskFunctions.chpl
A test/parallel/codegen/namedTaskFunctions.cleanfiles
A test/parallel/codegen/namedTaskFunctions.compopts
A test/parallel/codegen/namedTaskFunctions.good
A test/parallel/codegen/namedTaskFunctions.prediff
A test/parallel/codegen/namedTaskFunctions.skipif
M test/performance/bradc/opequals.good
https://github.com/chapel-lang/chapel/pull/28704.diff