diff --git a/README.md b/README.md index 687c3c539..7b07189d0 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,11 @@ Finally, if you're "bringing your own LLVM", i.e., you have a prebuilt/compiled ``` Note, in this case you will need to supply `-DLLVM_EXTERNAL_LIT=$SOMEWHERE` (e.g., `pip install lit; SOMEWHERE=$(which lit)`). +Note, also, getting the right/matching build of LLVM, that works with IREE is tough (besides the commit hash, there are various flags to set). +To enable adventurous users to avail themselves of `-DIREE_BUILD_BUNDLED_LLVM=OFF` we cache/store/save the LLVM distribution for *every successful CI run*. +These can then be downloaded by checking the artifacts section of any recent CI run's [Summary page](https://github.com/nod-ai/iree-amd-aie/actions/runs/10713474448): + + Lit tests specific to AIE can be run with something like: diff --git a/build_tools/build_llvm.ps1 b/build_tools/build_llvm.ps1 index 7515afcd9..cbcf323e2 100644 --- a/build_tools/build_llvm.ps1 +++ b/build_tools/build_llvm.ps1 @@ -1,3 +1,9 @@ +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + # Enable strict mode $ErrorActionPreference = 'Stop' diff --git a/build_tools/build_llvm.sh b/build_tools/build_llvm.sh index 5f3f2383f..aa3bcf1dc 100644 --- a/build_tools/build_llvm.sh +++ b/build_tools/build_llvm.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception set -eux -o errtrace diff --git a/build_tools/build_test_cpp.ps1 b/build_tools/build_test_cpp.ps1 index fbff491cd..f190dc192 100644 --- a/build_tools/build_test_cpp.ps1 +++ b/build_tools/build_test_cpp.ps1 @@ -1,3 +1,9 @@ +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + # Enable strict mode $ErrorActionPreference = 'Stop' diff --git a/build_tools/build_test_cpp.sh b/build_tools/build_test_cpp.sh index ae2695f17..1b0b1ac28 100644 --- a/build_tools/build_test_cpp.sh +++ b/build_tools/build_test_cpp.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception set -eux -o errtrace diff --git a/build_tools/download_peano.sh b/build_tools/download_peano.sh index 70c8693f5..3f6d35e0a 100644 --- a/build_tools/download_peano.sh +++ b/build_tools/download_peano.sh @@ -1,4 +1,10 @@ #!/bin/bash +# +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception RELEASE=19.0.0.2024082221+90abe71b pip download llvm_aie==$RELEASE -f https://github.com/Xilinx/llvm-aie/releases/expanded_assets/nightly diff --git a/build_tools/linux_default_toolchain.cmake b/build_tools/linux_default_toolchain.cmake index 4e0c36c71..4a37172df 100644 --- a/build_tools/linux_default_toolchain.cmake +++ b/build_tools/linux_default_toolchain.cmake @@ -1,3 +1,9 @@ +# Copyright 2024 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + message(STATUS "Enabling thin archives (static libraries will not be relocatable)") set(CMAKE_C_ARCHIVE_APPEND " qT ") set(CMAKE_CXX_ARCHIVE_APPEND " qT ")