[Chapel Merge] Update the compiler to support LLVM-13

Branch: refs/heads/main
Revision: 4fe5226
Author: daviditen
Link: Unavailable
Log Message:

Merge pull request #19064 from daviditen/llvm-13-compiler-updates

Update the compiler to support LLVM-13

[reviewed by @lydia-duncan]

Update the compiler with changes required to work with LLVM-13. Maintain
backward compatibility with versions 12 and 11.

The widest change was changing calls to the CreateLoad method to take the
value's type as its the first argument.

There were also a handful of flags that changed availability when passing
options between Clang and LLVM, functions that were deprecated and other
small changes.

Signed-off-by: David Iten daviditen@users.noreply.github.com

Modified Files:
M compiler/codegen/cg-expr.cpp

M compiler/codegen/cg-symbol.cpp
M compiler/codegen/codegen.cpp
M compiler/include/llvmGlobalToWide.h
M compiler/llvm/clangUtil.cpp
M compiler/llvm/llvmAggregateGlobalOps.cpp
M compiler/llvm/llvmExtractIR.cpp
M compiler/llvm/llvmUtil.cpp

Compare: https://github.com/chapel-lang/chapel/compare/3d48f9cd20cd...4fe522659182