[Chapel Merge] Remove compiler code for LLVM 10 and below

Branch: refs/heads/main
Revision: 144322ada1ff7573f494040ba7396dc38827514f
Author: vasslitvinov
Link: Remove compiler code for LLVM 10 and below by vasslitvinov · Pull Request #24860 · chapel-lang/chapel · GitHub
Log Message:
Remove compiler code for LLVM 10 and below (#24860)

Given that we no longer support LLVM versions <= 10,
this PR removes compiler code guarded by #if conditionals
that will never be used.

While there, fix a bug in checking for LLVM 12 and
some formatting improvements.

Motivation: get some obsolete code out of my way for an upcoming PR.

r: @jabraham17 - thanks!

Compare: Comparing c3a31f99e1148c6339f7250915bbfc94e54120b4...2aa3e7a2710024473cac0f84853cd27bca605306 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/cg-expr.cpp
M compiler/codegen/cg-symbol.cpp
M compiler/codegen/cg-type.cpp
M compiler/include/clangUtil.h
M compiler/llvm/clangUtil.cpp
M compiler/llvm/llvmAggregateGlobalOps.cpp
M compiler/llvm/llvmDebug.cpp
M compiler/llvm/llvmExtractIR.cpp
M compiler/llvm/llvmGlobalToWide.cpp
M compiler/llvm/llvmUtil.cpp
https://github.com/chapel-lang/chapel/pull/24860.diff