# Watch: https://github.com/llvm/llvm-project/tags /llvmorg-(15[.][0-9.]+)[.]tar
. "$GRIMOIRE"/CMAKE_FUNCTIONS
           SPELL=llvm15
         VERSION=15.0.7
      PATCHLEVEL=1
          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=sha256:4ad8b2cc8003c86d0078d15d987d84e3a739f24aae9033865c027abae93ee7a4
if [[ "$LLVM_WITH_POLLY" == y ]]; then
        SOURCE11="polly-${VERSION}.src.tar.xz"
 SOURCE11_URL[0]="${GITHUB_URI}/${SOURCE11}"
   SOURCE11_HASH=sha256:1053610cace401c0b4e6d430d441277b0283dd4112581e2acc90e174d3192819
fi
        SOURCE21="cmake-${VERSION}.src.tar.xz"
 SOURCE21_URL[0]="${GITHUB_URI}/${SOURCE21}"
   SOURCE21_HASH=sha256:8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SOURCE%.tar.xz}"
        WEB_SITE="https://llvm.org"
      LICENSE[0]=BSD
         ENTERED=20230330
           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
