# Watch: https://github.com/llvm/llvm-project/tags /llvmorg-(16[.][0-9.]+)[.]tar
. "$GRIMOIRE"/CMAKE_FUNCTIONS
           SPELL=llvm16
         VERSION=16.0.6
          SOURCE="llvm-${VERSION}.src.tar.xz"
      GITHUB_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION"
   SOURCE_URL[0]="${GITHUB_URI}/${SOURCE}"
     SOURCE_HASH=sha512:8d4cdadc9a1ad249fbf9248c8e56f3bcafab73a473a0b0ca73499ed8825c62e27668aac4f1d03341631e5ad93701621e834e9e196ca32eac3ef805cf1c860083
if [[ "$LLVM_WITH_POLLY" == y ]]; then
        SOURCE11="polly-${VERSION}.src.tar.xz"
 SOURCE11_URL[0]="${GITHUB_URI}/${SOURCE11}"
   SOURCE11_HASH=sha512:791473c145930fcd1541002c5385c2fbc1b6dbecc60ca19b69f81d4df27a324609d1b0fc2723893147886eab988b4bf88e9c0ca815b1aa5b0a10d899cf32bc7e
fi
        SOURCE21="cmake-${VERSION}.src.tar.xz"
 SOURCE21_URL[0]="${GITHUB_URI}/${SOURCE21}"
   SOURCE21_HASH=sha512:52ecd941d2d85a5b668caa5d0d40480cb6a97b3bf1174e634c2a93e9ef6d03670ca7e96abb0a60cb33ba537b93d5788754dab1f2f45c1f623f788162717d088b
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SOURCE%.tar.xz}"
        WEB_SITE="https://llvm.org"
      LICENSE[0]=BSD
         ENTERED=20231110
           SHORT="A novel compiler infrastructure for the optimization of programs."
           TMPFS=off # Well, needs about 5G space, plus actual RAM for compiling.
cat << EOF
Low-Level Virtual Machine (LLVM) is a compiler infrastructure designed for
compile-time, link-time, run-time, and "idle-time" optimization of programs
from arbitrary programming languages. It currently supports compilation of
C, Objective-C, and C++ programs, using front-ends derived from GCC 4.0,
GCC 4.2, and a custom new front-end, "clang". It supports x86, x86_64, ia64,
PowerPC, and SPARC, with support for Alpha and ARM under development.
EOF
