-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from Xilinx/kschwarz.update.aie.public
Update aie-public to llvmorg-19-init~1
- Loading branch information
Showing
9,201 changed files
with
353,538 additions
and
151,961 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "pip" | ||
directory: "/llvm/docs" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
llvm-docs-requirements: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Github action workflows should be stored in this directrory. | ||
Github action workflows should be stored in this directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
name: Build CI Container | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/build-ci-container.yml | ||
- '.github/workflows/containers/github-action-ci/**' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/build-ci-container.yml | ||
- '.github/workflows/containers/github-action-ci/**' | ||
|
||
jobs: | ||
build-ci-container: | ||
if: github.repository_owner == 'llvm' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Write Variables | ||
id: vars | ||
run: | | ||
tag=`date +%s` | ||
container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/ci-ubuntu-22.04" | ||
echo "container-name=$container_name" >> $GITHUB_OUTPUT | ||
echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT | ||
- name: Checkout LLVM | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: .github/workflows/containers/github-action-ci/ | ||
|
||
- name: Build Container | ||
working-directory: ./.github/workflows/containers/github-action-ci/ | ||
run: | | ||
podman build -t ${{ steps.vars.outputs.container-name-tag }} . | ||
podman tag ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}:latest | ||
- name: Test Container | ||
run: | | ||
for image in ${{ steps.vars.outputs.container-name-tag }} ${{ steps.vars.outputs.container-name }}; do | ||
podman run --rm -it $image /usr/bin/bash -x -c 'printf '\''#include <iostream>\nint main(int argc, char **argv) { std::cout << "Hello\\n"; }'\'' | clang++ -x c++ - && ./a.out | grep Hello' | ||
done | ||
- name: Push Container | ||
if: github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io | ||
podman push ${{ steps.vars.outputs.container-name-tag }} | ||
podman push ${{ steps.vars.outputs.container-name }}:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM docker.io/library/ubuntu:22.04 as base | ||
ENV LLVM_SYSROOT=/opt/llvm/ | ||
|
||
FROM base as toolchain | ||
ENV LLVM_MAJOR=17 | ||
ENV LLVM_VERSION=${LLVM_MAJOR}.0.6 | ||
ENV LLVM_DIRNAME=clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-22.04 | ||
ENV LLVM_FILENAME=${LLVM_DIRNAME}.tar.xz | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
xz-utils | ||
|
||
RUN mkdir -p $LLVM_SYSROOT/bin/ $LLVM_SYSROOT/lib/ | ||
|
||
RUN curl -O -L https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/$LLVM_FILENAME | ||
|
||
RUN tar -C $LLVM_SYSROOT --strip-components=1 -xJf $LLVM_FILENAME \ | ||
$LLVM_DIRNAME/bin/clang \ | ||
$LLVM_DIRNAME/bin/clang++ \ | ||
$LLVM_DIRNAME/bin/clang-cl \ | ||
$LLVM_DIRNAME/bin/clang-$LLVM_MAJOR \ | ||
$LLVM_DIRNAME/bin/lld \ | ||
$LLVM_DIRNAME/bin/ld.lld \ | ||
$LLVM_DIRNAME/lib/clang/ | ||
|
||
|
||
FROM base | ||
|
||
COPY --from=toolchain $LLVM_SYSROOT $LLVM_SYSROOT | ||
|
||
# Need to install curl for hendrikmuhs/ccache-action | ||
# Need nodejs for some of the GitHub actions. | ||
# Need perl-modules for clang analyzer tests. | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
binutils \ | ||
cmake \ | ||
curl \ | ||
libstdc++-11-dev \ | ||
ninja-build \ | ||
nodejs \ | ||
perl-modules \ | ||
python3-psutil | ||
|
||
ENV LLVM_SYSROOT=$LLVM_SYSROOT | ||
ENV PATH=${LLVM_SYSROOT}/bin:${PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Libclang Python Binding Tests | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'clang/bindings/python/**' | ||
- 'clang/tools/libclang/**' | ||
- 'clang/CMakeList.txt' | ||
- '.github/workflows/libclang-python-tests.yml' | ||
- '.github/workflows/llvm-project-tests.yml' | ||
pull_request: | ||
paths: | ||
- 'clang/bindings/python/**' | ||
- 'clang/tools/libclang/**' | ||
- 'clang/CMakeList.txt' | ||
- '.github/workflows/libclang-python-tests.yml' | ||
- '.github/workflows/llvm-project-tests.yml' | ||
|
||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
check-clang-python: | ||
# Build libclang and then run the libclang Python binding's unit tests. | ||
name: Build and run Python unit tests | ||
if: github.repository == 'llvm/llvm-project' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.11"] | ||
uses: ./.github/workflows/llvm-project-tests.yml | ||
with: | ||
build_target: check-clang-python | ||
projects: clang | ||
# There is an issue running on "windows-2019". | ||
# See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082. | ||
os_list: '["ubuntu-latest"]' | ||
python_version: ${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.