[Chapel Merge] dlopen: Migrate `chpl_comm_register_global_var` to module code

Branch: refs/heads/main
Revision: 465b045eee7055d675f9c6827db525e17d683c64
Author: dlongnecke-cray
Link: dlopen: Migrate `chpl_comm_register_global_var` to module code by dlongnecke-cray · Pull Request #28887 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Migrate chpl_comm_register_global_var to module code (#28887)

This PR migrates the RT function chpl_comm_register_global_var to live
in module code. It introduces a new internal module called
ChapelRuntimeInterface.chpl. In the future much more stuff will live
in this module. For now, it only contains a single procedure
chpl_registerGlobalVar, which is functionally identical to its old
runtime equivalent.

TESTING

  • standard
  • COMM=gasnet, COMPILER=gnu
  • Build with COMM=ofi, COMPILER=gnu
  • Build with gasnet-asan and run fastAndIncremental.chpl

Reviewed by @jabraham17. Thanks!

Compare: Comparing ca0e4ddd01b4a354d82b184cdcca3ccf518c3fae...7ca245cfdaf6d2980f16180bb1c3e85ba52f1cb8 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/cg-expr.cpp
A modules/internal/ChapelRuntimeInterface.chpl
M modules/internal/ChapelStandard.chpl
M runtime/include/chpl-comm.h
M runtime/include/chpl-prginfo-data-macro.h
M runtime/include/chplcgfns.h
M runtime/src/chpl-comm.c
M runtime/src/comm/gasnet/comm-gasnet-ex.c
M runtime/src/comm/ofi/comm-ofi.c
M runtime/src/comm/ugni/comm-ugni.c
M test/compflags/ferguson/print-module-resolution.good
M test/modules/sungeun/init/printModuleInitOrder.good
https://github.com/chapel-lang/chapel/pull/28887.diff