[Chapel Merge] Add support for LLVM 22

Branch: refs/heads/main
Revision: 06bda7ea114dcf3ae1e23de8ef1508dd49c88a9a
Author: jabraham17
Link: Add support for LLVM 22 by jabraham17 · Pull Request #28551 · chapel-lang/chapel · GitHub
Log Message:
Add support for LLVM 22 (#28551)

Adds support to Chapel for LLVM 22

  • paratest x86 linux64
  • paratest gasnet x86 linux64
  • start_test test/llvm arm mac
  • start_test test/gpu/native with AMD GPUs and COMM=none
  • start_test test/gpu/native with NVIDIA GPUs and COMM=ofi

[Reviewed by @arifthpe]

Compare: Comparing de01286aa2fb70828a54387c2a3eeb3a37b3d24c...8e5157f0c5053536b5d608b256800de04cae8aad · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/cg-expr.cpp
M compiler/codegen/cg-symbol.cpp
M compiler/codegen/codegen.cpp
M compiler/include/clangUtil.h
M compiler/llvm/clangUtil.cpp
M compiler/main/driver.cpp
M compiler/passes/externCResolve.cpp
M frontend/lib/util/clang-integration.cpp
M runtime/include/gpu/chpl-gpu-gen-common.h
M runtime/src/gpu/amd/Makefile.share
M runtime/src/gpu/cpu/Makefile.share
M runtime/src/gpu/nvidia/Makefile.share
M test/gpu/native/deviceAttributes.hip.c
A test/llvm/abi/aarch64-darwin/export-vs-c-llvm22.good
A test/llvm/abi/x86-64/export-vs-c-llvm22.good
M util/chplenv/chpl_gpu.py
M util/chplenv/chpl_llvm.py
https://github.com/chapel-lang/chapel/pull/28551.diff