477 Commits

Author SHA1 Message Date
Jonas Devlieghere
58cb0e651f
[.github] Add myself as a reviewer for DWARFLinker & friends (#96531) 2024-06-24 11:26:02 -07:00
Tom Stellard
da0e5359fc
workflows: Add a new job for packaging release sources (#91834)
This job uses the new artifact attestations:

https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/

This will allow users to verify that the sources came from a specific
workflow run in the llvm-project repository. Currently, this job does
not automatically upload sources to the release page, but rather it
attaches them the workflow run as artifacts. The release manager is
expected to download, verify, and sign the sources before uploading them
to the release page.

We may be able to automatically upload them in the future once we have a
process for signing the binaries within the github workflow.
Technically, though, the binaries are being signed as part of the
attestation process, but the only way to verify the signatures is using
the gh command line tool, and I don't think it is best to rely on that,
since the tool may not be easily available on all systems.
2024-06-18 08:27:33 -07:00
Owen Pan
5914a5671a
[GitHub][workflows] Use latest clang-format version 18.1.7 (#95757)
Since clang-format 18.1.4, there have been a number of commits that
fixed various kinds of issues:

- Bug
3ceccbdb1995

- Regression
6dbaa89433f7
51ff7f38b633
35fea1032741
7699b341b763
768118d1ad38
8c0fe0d65ed8

- Crash
f1491c7460e7

- Invalid code generation
0abb89a80f5c
2024-06-17 09:49:12 -07:00
Louis Dionne
c7b32341e9 [libc++] Rename workflow that restarts preempted jobs
All the libc++ workflows start with `libcxx-`, so use that prefix for
this job as well. Also, remove trailing whitespace from the yaml file.
2024-06-14 12:44:09 -04:00
Jannick Kremer
e38729968b
[CI] Update setup-python action to v5 for GHA (#95414)
We currently receive a warning on all Github Actions workflows that use
`setup-python`, since they all use v4 of the action, which uses the
deprecated Node.js 16. This PR upgrades the action in all places to v5,
which uses Node.js 20 (see [setup-python release
page](https://github.com/actions/setup-python/releases/tag/v5.0.0))
2024-06-13 10:16:59 -07:00
Jannick Kremer
8f795fc798
[libclang/python] Change minimum Python test version to 3.8 (#95210)
This fixes #95209
2024-06-13 18:48:31 +04:00
Martin Storsjö
bce2498767
[libcxx] [ci] Update Clang for Windows jobs to 18.1.x (#95228)
Pick the latest version available in Chocolatey (18.1.6) and llvm-mingw
(20240606, which includes LLVM 18.1.7).

Also add the flag "--allow-downgrade" when installing a specific version
of LLVM. If the preinstalled version is higher than the requested one,
Chocolatey would otherwise error out when requesting installing a lower
version. This will avoid errors in the future, if the runner image comes
preinstalled with a newer version of LLVM.

(This currently seems to happen with a recent version of the GitHub
Actions runner image, version 20240610.1.0 has LLVM 18.1.6 already
preinstalled, and will error out when trying to install the 17.0.6
version that we previously requested.)
2024-06-12 12:01:08 -04:00
Martin Storsjö
27ac46e6be
[libc++][ci] Don't install wget in the Windows jobs (#95215)
Nothing uses wget - only curl is used, and that's available out of the
box.
2024-06-12 11:25:37 -04:00
Tom Stellard
81671fe0e2
[workflows] Add post-commit job that periodically runs the clang static analyzer (#94106)
This job will run once per day on the main branch, and for every commit
on a release branch. It currently only builds llvm, but could add more
sub-projects in the future.

OpenSSF Best Practices recommends running a static analyzer on software
before it is released:
https://www.bestpractices.dev/en/criteria/0#0.static_analysis
2024-06-07 19:02:55 -07:00
Tom Stellard
0d1b3671a9
[CMake][Release] Use the TXZ cpack generator for binaries (#90138) 2024-06-07 02:27:59 -07:00
Tom Stellard
e49f902358
[workflows] Add scan-build to ci-ubuntu-22.04 container (#94543)
This will be used for a new CI job that runs the static analyzer.
2024-06-06 06:05:29 -07:00
Tom Stellard
aa512943f4
workflows: Disable stage2 of the release builds (#93056)
We need to skip this step until PGO is re-enabled for the release
builds.
2024-06-05 09:33:13 -07:00
Justin Fargnoli
3e228c8eaf
[GitHub] Add NVPTX backend labeler (#94080)
Add patterns to label NVPTX backend related changes automatically.
2024-06-03 10:27:56 -07:00
Eric Fiselier
b6ea134e41 Fix pagination issue in libc++ buildbot restarter 2024-06-02 10:18:44 -04:00
Eric Fiselier
867c9f6713 Fix permissions on restarter workflow 2024-06-01 12:30:14 -04:00
Eric Fiselier
e9057c30a4 Create check run on workflow run to better display result.
In order to make the behavior of the libc++ restarter more visible
to users, this change creates a check run on the considered workflow
to let users know what action, if any, was taken
2024-06-01 12:22:26 -04:00
Eric Fiselier
86bb5c8427 Create annotations to better explain restarter decision 2024-06-01 11:53:22 -04:00
Vlad Serebrennikov
ed35a92c40
[clang] Introduce target-specific Sema components (#93179)
This patch introduces `SemaAMDGPU`, `SemaARM`, `SemaBPF`, `SemaHexagon`,
`SemaLoongArch`, `SemaMIPS`, `SemaNVPTX`, `SemaPPC`, `SemaSystemZ`,
`SemaWasm`. This continues previous efforts to split Sema up. Additional
context can be found in #84184 and #92682.

I decided to bundle target-specific components together because of their
low impact on `Sema`. That said, their impact on `SemaChecking.cpp` is
far from low, and I consider it a success.

Somewhat accidentally, I also moved Wasm- and AMDGPU-specific function
from `SemaDeclAttr.cpp`, because they were exposed in `Sema`. That went
well, and I consider it a success, too. I'd like to move the rest of
static target-specific functions out of `SemaDeclAttr.cpp` like we're
doing with built-ins in `SemaChecking.cpp` .
2024-05-30 19:59:59 +04:00
Mingming Liu
3255752cbd
[Github]Update PGO with more filepaths (#93720)
- `llvm/**/ProfileData/**/*` intends to cover `llvm/include/llvm/ProfileData/` and `llvm/lib/ProfileData/`
- `llvm/**/SampleProfile*` intends to cover a bunch of SamplePGO files and their headers. For example, 
    `SampleProfile.cpp`, `SampleProfileMatcher.cpp`, `SampleProfileProbe.cpp`
- `llvm/**/CodeGen/MIRSampleProfile*` intends to cover MIRSampleProfile.cpp and its header.
- `llvm/test/Transforms/SampleProfile/**/*` intends to cover unit tests.
2024-05-29 13:17:19 -07:00
Eric Fiselier
e492aa5adb Remove one more unneeded debug log line 2024-05-28 21:08:07 -04:00
Eric Fiselier
d11922ebb2 Remove unneeded debug logging 2024-05-28 20:54:16 -04:00
Eric Fiselier
bd5cd4b837 Fix trigger for libc++ job rerunner.
Testing github actions is such a pain. I swear it should match now.
2024-05-28 20:03:36 -04:00
Eric Fiselier
b9cdea66b6 Attempt to fix issue with plus sign in libc++ workflow name 2024-05-28 18:23:14 -04:00
Eric
067b4ccb4b
Upstream libc++ buildbot restarter. (#93582)
I've been running a cronjob on my local machine to restart preempted
libc++ CI runs. This is bad and brittle. This upstreams a much better
version of the restarter.

It works by matching on check run annotations looking for mention
of the machine being shutdown.

If there are both preempted jobs and failing jobs, we don't restart
the workflow. Maybe we should change that?
2024-05-28 18:19:04 -04:00
Ryuichi Watanabe
7892d43474
Update llvm-bugs.yml (#77243) 2024-05-19 15:01:47 -07:00
Aiden Grossman
9e98815ef0 [Github] Revert accidental changes to dependabot config
f3524e9aebbfabed0c60d0087b39ce14d8f778da accidentally touched the
dependabot config. This patch reverts that change.
2024-05-18 05:04:59 +00:00
Mircea Trofin
cfe9deb135 Reapply "[ctx_profile] Integration test (#92456)"
This reverts commit 881f20e958e80bd30463fc57d2d3e891bcb8a571.

Passing -ldl -lpthread explicitly
2024-05-17 21:55:39 -07:00
Tom Stellard
89b83d2d3f
[git] Add hashes to requirements.txt for extra security (#92305)
https://pip.pypa.io/en/stable/topics/secure-installs/
2024-05-17 06:49:27 -07:00
Timm Bäder
e27f9bb319 [github] Add keith back to bazel codeowners
Wrongly removed in 45cc6bdea97be10793e4cd5f0ef11abd9d19adea.
2024-05-16 08:28:25 +02:00
Timm Bäder
45cc6bdea9 [clang][Interp] Implement __builtin_shufflevector 2024-05-16 08:26:59 +02:00
Tom Stellard
d06270ee00
[workflows] Fix libclang-abi-tests to work with new version scheme (#91865) 2024-05-15 06:08:29 -07:00
Keith Smiley
18ba0cc26e
[github] Add keith to bazel owners (NFC) (#92164)
I'm interested in being CC'd on these changes
2024-05-14 12:24:32 -07:00
Tom Stellard
c99d1156c2
[workflows] Add a job for requesting a release note on release branch PRs (#91826)
We have been collecting release notes from the PRs for most of the
18.1.x releases and this just helps automate the process.
2024-05-13 16:31:21 -07:00
Matthias Gehre
29a986bc09
new-prs-labeler.yml: Include conversion passes of TOSA/emitc (#91921) 2024-05-13 15:36:46 +02:00
Tom Stellard
720dfd94df
workflows: Fix missing GITHUB_TOKEN in release-doxygen.yml upload step (#91091)
We were accidentally setting the GITHUB_TOKEN environment variable in
the previous step.
2024-05-09 20:30:29 -07:00
Tom Stellard
0d31ac8893
workflows: Remove top-level permissions from release-tasks.yml (#91088)
This is the recommend best practice and we also don't need write access
for all jobs.
2024-05-09 20:29:25 -07:00
Renato Golin
db4cf7c0fc
Update CODEOWNERS
Adding myself to linalg dialect
2024-05-08 13:33:20 +01:00
Nikita Popov
7098cd215b [NFC] Add myself as code owner for llvm/IR/Core.cpp
In practice I end up reviewing most changes to the C API.
2024-05-08 11:03:43 +09:00
Tom Stellard
abac98479b
[Workflows] Re-write release-binaries workflow (#89521)
This updates the release-binaries workflow so that the different build
stages are split across multiple jobs. This saves money by reducing the
time spent on the larger github runners and also makes it easier to
debug, because now it's possible to build a smaller release package
(with clang and lld) using only the free GitHub runners.

The workflow no longer uses the test-release.sh script but instead uses
the Release.cmake cache. This gives the workflow more flexibility and
ensures that the binary package will always be created even if the tests
fail.

This idea to split the stages comes from the "LLVM Precommit CI through
Github Actions" RFC:

https://discourse.llvm.org/t/rfc-llvm-precommit-ci-through-github-actions/76456
2024-05-04 15:10:12 -07:00
Nathan Lanza
ad1e10ae11
[github] Add ClangIR codeowners (#86089) 2024-04-27 19:05:00 -04:00
Amir Ayupov
e71ce0020f
[github] Add BOLT to new-prs-labeler.yml (#90114) 2024-04-25 13:13:55 -07:00
Louis Dionne
fcf86673b8
[libc++] Tag PRs that modify libc++ workflows appropriately (#89798) 2024-04-25 09:24:54 -04:00
Mark de Wever
9e95951830
[libc++][CI] Removes clang-tidy references. (#89092)
The clang-tidy selection has been made automatic recently so this is not
longer needed.

Thanks to Louis for spotting this.
2024-04-23 19:46:40 +02:00
Théo Degioanni
efe0a2eddb [nfc][github] subscribe myself to MLIR Mem2Reg PRs 2024-04-20 19:23:25 +02:00
Oleksandr "Alex" Zinenko
e06fb82b40
[github] notify me about mlir python changes 2024-04-18 14:43:31 +02:00
Guray Ozen
42348b6918
[github] Add myself as default code reviewer (#89099) 2024-04-18 09:24:14 +02:00
Shilei Tian
800f1050e1
[GitHub] Add a new mapping for offload subproject (#89118)
Fix #89071.
2024-04-17 14:53:01 -04:00
Nathan Lanza
ed741ffe89
[github] Add ClangIR to new-prs-labeler.yml (#86088) 2024-04-17 14:06:01 -04:00
Maksim Levental
84ec2d3b38
[mlir][python] add to CODEOWNERS (#88561) 2024-04-14 17:20:05 -05:00
Marius Brehler
a952c12388
[GitHub] Set top level token permission (#87326) 2024-04-11 22:58:47 +02:00