[Chapel Merge] Add support for LLVM 21

Branch: refs/heads/main
Revision: 61a4522485d4185f417ceb6873b04317f89470fd
Author: jabraham17
Link: Add support for LLVM 21 by jabraham17 · Pull Request #27941 · chapel-lang/chapel · GitHub
Log Message:
Add support for LLVM 21 (#27941)

Adds support for building Chapel with LLVM 21

  • paratest with LLVM 21
  • paratest with LLVM 21 and GASNet
  • start_test test/llvm with LLVM 21 on macos
  • make check with LLVM 20
  • make check with LLVM 18
  • make check with LLVM 14
  • start_test test/gpu/native with CHPL_GPU=nvidia and LLVM 21

[Reviewed by @arifthpe]

Compare: Comparing 14b18f0d7761a293957fefd1a131a1e326644a68...755a70187d11c02f0d435b77a4e2d353ea6e4c16 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/cg-CForLoop.cpp
M compiler/codegen/cg-expr.cpp
M compiler/codegen/cg-symbol.cpp
M compiler/codegen/cg-type.cpp
M compiler/codegen/codegen.cpp
M compiler/include/llvmUtil.h
M compiler/llvm/clangUtil.cpp
M compiler/llvm/llvmAggregateGlobalOps.cpp
M compiler/llvm/llvmGlobalToWide.cpp
M compiler/llvm/llvmUtil.cpp
M frontend/lib/util/clang-integration.cpp
A test/llvm/abi/aarch64-darwin/export-vs-c-llvm21.good
A test/llvm/abi/x86-64/export-vs-c-llvm21.good
M util/chplenv/chpl_llvm.py
https://github.com/chapel-lang/chapel/pull/27941.diff