Skip to content

Commit 6ba7061

Browse files
committed
Merge branch 'main' into onesided_lower_bound
* main: (5908 commits) [readtapi] Cleanup printing command line options (llvm#75106) [flang] Fix compilation error due to variable no being used (llvm#75210) [C API] Add getters and setters for fast-math flags on relevant instructions (llvm#75123) [libc++][CI] Tests the no RTTI configuration. (llvm#65518) [RemoveDIs] Fold variable into assert, it's only used once. NFC [RemoveDI] Handle DPValues in SROA (llvm#74089) [AArch64][GlobalISel] Test Pre-Commit for Look into array's element [mlir][tensor] Fix bug in `tensor.extract(tensor.from_elements)` folder (llvm#75109) [analyzer] Move alpha checker EnumCastOutOfRange to optin (llvm#67157) [RemoveDIs] Handle DPValues in replaceDbgDeclare (llvm#73507) [SHT_LLVM_BB_ADDR_MAP] Implements PGOAnalysisMap in Object and ObjectYAML with tests. [X86][GlobalISel] Add instruction selection for G_SELECT (llvm#70753) [AMDGPU] Remove unused function splitScalar64BitAddSub [LLVM][DWARF] Add compilation directory and dwo name to TU in dwo section (llvm#74909) [clang][Interp] Implement __builtin_ffs (llvm#72988) [RemoveDIs] Update ConvertDebugDeclareToDebugValue after llvm#72276 (llvm#73508) [libc][NFC] Reuse `FloatProperties` constant instead of creating new ones (llvm#75187) [RemoveDIs] Fix removeRedundantDdbgInstrs utils for dbg.declares (llvm#74102) Reapply "[RemoveDIs][NFC] Find DPValues using findDbgDeclares (llvm#73500)" [GitHub] Remove author association print from new-prs workflow ...
2 parents d568d49 + 142e567 commit 6ba7061

File tree

15,020 files changed

+1055908
-369855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,020 files changed

+1055908
-369855
lines changed

.ci/generate-buildkite-pipeline-premerge

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@ set -eu
2121
set -o pipefail
2222

2323
# Environment variables script works with:
24-
# List of files affected by this commit
25-
: ${MODIFIED_FILES:=$(git diff --name-only HEAD~1)}
24+
2625
# Fetch origin/main to have an up to date merge base for main...HEAD diff.
2726
git fetch origin main:main
28-
echo "files modified HEAD~1" >&2
29-
git --no-pager diff --name-only HEAD~1 >&2
30-
echo "files modified main...HEAD" >&2
31-
git --no-pager diff --name-only main...HEAD | head -n 10 >&2
32-
merge_base=$(git merge-base main HEAD)
33-
echo "merge base with main $merge_base" >&2
34-
echo "git log" >&2
35-
git --no-pager log --oneline --abbrev-commit -n 5 >&2
27+
# List of files affected by this commit
28+
: ${MODIFIED_FILES:=$(git diff --name-only main...HEAD)}
3629
# Filter rules for generic windows tests
3730
: ${WINDOWS_AGENTS:='{"queue": "windows"}'}
3831
# Filter rules for generic linux tests

.ci/monolithic-linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4949
-D LLVM_ENABLE_LLD=ON \
5050
-D CMAKE_CXX_FLAGS=-gmlt \
5151
-D BOLT_CLANG_EXE=/usr/bin/clang \
52-
-D LLVM_CCACHE_BUILD=ON
52+
-D LLVM_CCACHE_BUILD=ON \
53+
-D MLIR_ENABLE_BINDINGS_PYTHON=ON
5354

5455
echo "--- ninja"
5556
# Targets are not escaped as they are passed as separate arguments.

.ci/monolithic-windows.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
4848
-D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
4949
-D COMPILER_RT_BUILD_ORC=OFF \
5050
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
51-
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache
51+
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
52+
-D MLIR_ENABLE_BINDINGS_PYTHON=ON
5253

5354
echo "--- ninja"
5455
# Targets are not escaped as they are passed as separate arguments.

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ f6d557ee34b6bbdb1dc32f29e34b4a4a8ad35e81
6464

6565
# [libc++][NFC] clang-format <shared_mutex>
6666
2d7eb9c9ea1a146412a83603d5c0c6339a5d8284
67+
68+
# [libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI
69+
4c198542226223f6a5c5511a1f89b37d15ee10b9
70+
71+
# [libc++] Replace uses of _VSTD:: by std:: (#74331)
72+
77a00c0d546cd4aa8311b5b9031ae9ea8cdb050c

.github/CODEOWNERS

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,46 @@
3232
/clang/www/make_cxx_dr_status @Endilll
3333

3434
/lldb/ @JDevlieghere
35+
36+
# Linalg in MLIR.
37+
/mlir/include/mlir/Dialect/Linalg @dcaballe @nicolasvasilache
38+
/mlir/lib/Dialect/Linalg @dcaballe @nicolasvasilache
39+
40+
# Vector in MLIR.
41+
/mlir/**/*AMX* @dcaballe
42+
/mlir/**/*Neon* @banach-space @dcaballe @nicolasvasilache
43+
/mlir/**/*SME* @banach-space @dcaballe @nicolasvasilache
44+
/mlir/**/*SVE* @banach-space @dcaballe @nicolasvasilache
45+
/mlir/**/*VectorInterfaces* @dcaballe @nicolasvasilache
46+
/mlir/**/*VectorToSCF* @banach-space @dcaballe @nicolasvasilache
47+
/mlir/**/*VectorToLLVM* @banach-space @dcaballe @nicolasvasilache
48+
/mlir/**/*X86Vector* @dcaballe @nicolasvasilache
49+
/mlir/include/mlir/Dialect/Vector @dcaballe @nicolasvasilache
50+
/mlir/lib/Dialect/Vector @dcaballe @nicolasvasilache
51+
52+
/mlir/include/mlir/Interfaces/TilingInterface.* @MaheshRavishankar @nicolasvasilache
53+
54+
/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp @MaheshRavishankar @nicolasvasilache
55+
/mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp @MaheshRavishankar @nicolasvasilache
56+
/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp @MaheshRavishankar @nicolasvasilache
57+
/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp @MaheshRavishankar @nicolasvasilache
58+
/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp @MaheshRavishankar @nicolasvasilache
59+
/mlir/lib/Interfaces/TilingInterface.* @MaheshRavishankar @nicolasvasilache
60+
61+
/mlir/**/*EmulateNarrowType* @hanhanW
62+
/mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp @hanhanW @nicolasvasilache
63+
/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp @hanhanW @nicolasvasilache
64+
/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp @hanhanW @nicolasvasilache
65+
/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp @hanhanW @nicolasvasilache
66+
/mlir/lib/Dialect/Tensor/Transforms/FoldIntoPackAndUnpackPatterns.cpp @hanhanW @nicolasvasilache
67+
/mlir/lib/Dialect/Vector/Transforms/* @hanhanW @nicolasvasilache
68+
69+
# Transform Dialect in MLIR.
70+
/mlir/include/mlir/Dialect/Transform/* @ftynse @nicolasvasilache
71+
/mlir/lib/Dialect/Transform/* @ftynse @nicolasvasilache
72+
73+
# SPIR-V in MLIR.
74+
/mlir/**/SPIRV/ @antiagainst @kuhar
75+
/mlir/**/SPIRVTo*/ @antiagainst @kuhar
76+
/mlir/**/*ToSPIRV/ @antiagainst @kuhar
77+
/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp @antiagainst @kuhar

.github/new-prs-labeler.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
clang:dataflow:
2-
- clang/**/Analysis/**/*
2+
- clang/include/clang/Analysis/FlowSensitive/**/*
3+
- clang/lib/Analysis/FlowSensitive/**/*
4+
- clang/unittests/Analysis/FlowSensitive/**/*
5+
- clang/docs/DataFlowAnalysisIntro.md
6+
- clang/docs/DataFlowAnalysisIntroImages/**/*
37

48
clang:frontend:
59
- clang/lib/AST/**/*
@@ -794,3 +798,35 @@ llvm:binary-utilities:
794798
- llvm/tools/llvm-size/**
795799
- llvm/tools/llvm-strings/**
796800
- llvm/tools/llvm-symbolizer/**
801+
802+
clang:openmp:
803+
- clang/include/clang/Basic/OpenMP*
804+
- clang/include/clang/AST/OpenMPClause.h
805+
- clang/include/clang/AST/DeclOpenMP.h
806+
- clang/include/clang/AST/ExprOpenMP.h
807+
- clang/include/clang/AST/StmtOpenMP.h
808+
- clang/lib/AST/DeclOpenMP.cpp
809+
- clang/lib/AST/OpenMPClause.cpp
810+
- clang/lib/AST/StmtOpenMP.cpp
811+
- clang/lib/Headers/openmp_wrappers/**
812+
- clang/lib/Parse/ParseOpenMP.cpp
813+
- clang/lib/Basic/OpenMPKinds.cpp
814+
- clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
815+
- clang/lib/Driver/ToolChains/AMDGPUOpenMP.h
816+
- clang/lib/CodeGen/CgStmtOpenMP.cpp
817+
- clang/lib/CodeGen/CGOpenMP*
818+
- clang/lib/Sema/SemaOpenMP.cpp
819+
- clang/test/OpenMP/**
820+
- clang/test/AST/ast-dump-openmp-*
821+
- llvm/lib/Frontend/OpenMP/**
822+
- llvm/lib/Transforms/IPO/OpenMPOpt.cpp
823+
- llvm/include/llvm/Frontend/OpenMP/**
824+
- llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
825+
- llvm/unittests/Frontend/OpenMP*
826+
- llvm/test/Transforms/OpenMP/**
827+
828+
openmp:libomp:
829+
- any: ['openmp/**', '!openmp/libomptarget/**']
830+
831+
openmp:libomptarget:
832+
- any: ['openmp/**', '!openmp/runtime/**']

.github/workflows/docs.yml

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
# LLVM Documentation CI
2+
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See https://llvm.org/LICENSE.txt for license information.
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
name: "Test documentation build"
7+
8+
permissions:
9+
contents: read
10+
11+
on:
12+
push:
13+
branches:
14+
- 'main'
15+
paths:
16+
- 'llvm/docs/**'
17+
- 'clang/docs/**'
18+
- 'clang/include/clang/Basic/AttrDocs.td'
19+
- 'clang/include/clang/Driver/ClangOptionDocs.td'
20+
- 'clang/include/clang/Basic/DiagnosticDocs.td'
21+
- 'clang-tools-extra/docs/**'
22+
- 'lldb/docs/**'
23+
- 'libunwind/docs/**'
24+
- 'libcxx/docs/**'
25+
- 'libc/docs/**'
26+
- 'lld/docs/**'
27+
- 'openmp/docs/**'
28+
- 'polly/docs/**'
29+
- 'flang/docs/**'
30+
- 'flang/include/flang/Optimizer/Dialect/FIROps.td'
31+
pull_request:
32+
paths:
33+
- 'llvm/docs/**'
34+
- 'clang/docs/**'
35+
- 'clang/include/clang/Basic/AttrDocs.td'
36+
- 'clang/include/clang/Driver/ClangOptionDocs.td'
37+
- 'clang/include/clang/Basic/DiagnosticDocs.td'
38+
- 'clang-tools-extra/docs/**'
39+
- 'lldb/docs/**'
40+
- 'libunwind/docs/**'
41+
- 'libcxx/docs/**'
42+
- 'libc/docs/**'
43+
- 'lld/docs/**'
44+
- 'openmp/docs/**'
45+
- 'polly/docs/**'
46+
- 'flang/docs/**'
47+
- 'flang/include/flang/Optimizer/Dialect/FIROps.td'
48+
49+
jobs:
50+
check-docs-build:
51+
name: "Test documentation build"
52+
runs-on: ubuntu-latest
53+
if: github.repository == 'llvm/llvm-project'
54+
steps:
55+
# Don't fetch before checking for file changes to force the file changes
56+
# action to use the Github API in pull requests. If it's a push to a
57+
# branch we can't use the Github API to get the diff, so we need to have
58+
# a local checkout beforehand.
59+
- name: Fetch LLVM sources (Push)
60+
if: ${{ github.event_name == 'push' }}
61+
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 1
64+
- name: Get subprojects that have doc changes
65+
id: docs-changed-subprojects
66+
uses: tj-actions/changed-files@v39
67+
with:
68+
files_yaml: |
69+
llvm:
70+
- 'llvm/docs/**'
71+
clang:
72+
- 'clang/docs/**'
73+
- 'clang/include/clang/Basic/AttrDocs.td'
74+
- 'clang/include/clang/Driver/ClangOptionDocs.td'
75+
- 'clang/include/clang/Basic/DiagnosticDocs.td'
76+
clang-tools-extra:
77+
- 'clang-tools-extra/docs/**'
78+
lldb:
79+
- 'lldb/docs/**'
80+
libunwind:
81+
- 'libunwind/docs/**'
82+
libcxx:
83+
- 'libcxx/docs/**'
84+
libc:
85+
- 'libc/docs/**'
86+
lld:
87+
- 'lld/docs/**'
88+
openmp:
89+
- 'openmp/docs/**'
90+
polly:
91+
- 'polly/docs/**'
92+
flang:
93+
- 'flang/docs/**'
94+
- 'flang/include/flang/Optimizer/Dialect/FIROps.td'
95+
- name: Fetch LLVM sources (PR)
96+
if: ${{ github.event_name == 'pull_request' }}
97+
uses: actions/checkout@v4
98+
with:
99+
fetch-depth: 1
100+
- name: Setup Python env
101+
uses: actions/setup-python@v4
102+
with:
103+
python-version: '3.11'
104+
cache: 'pip'
105+
cache-dependency-path: 'llvm/docs/requirements.txt'
106+
- name: Install python dependencies
107+
run: pip install -r llvm/docs/requirements.txt
108+
- name: Install system dependencies
109+
run: |
110+
sudo apt-get update
111+
# swig and graphviz are lldb specific dependencies
112+
sudo apt-get install -y cmake ninja-build swig graphviz
113+
- name: Build LLVM docs
114+
if: steps.docs-changed-subprojects.outputs.llvm_any_changed == 'true'
115+
run: |
116+
cmake -B llvm-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_SPHINX=ON ./llvm
117+
TZ=UTC ninja -C llvm-build docs-llvm-html docs-llvm-man
118+
- name: Build Clang docs
119+
if: steps.docs-changed-subprojects.outputs.clang_any_changed == 'true'
120+
run: |
121+
cmake -B clang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_SPHINX=ON ./llvm
122+
TZ=UTC ninja -C clang-build docs-clang-html docs-clang-man
123+
- name: Build clang-tools-extra docs
124+
if: steps.docs-changed-subprojects.outputs.clang-tools-extra_any_changed == 'true'
125+
run: |
126+
cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm
127+
TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man
128+
- name: Build LLDB docs
129+
if: steps.docs-changed-subprojects.outputs.lldb_any_changed == 'true'
130+
run: |
131+
cmake -B lldb-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_SPHINX=ON ./llvm
132+
TZ=UTC ninja -C lldb-build docs-lldb-html docs-lldb-man
133+
- name: Build libunwind docs
134+
if: steps.docs-changed-subprojects.outputs.libunwind_any_changed == 'true'
135+
run: |
136+
cmake -B libunwind-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libunwind" -DLLVM_ENABLE_SPHINX=ON ./runtimes
137+
TZ=UTC ninja -C libunwind-build docs-libunwind-html
138+
- name: Build libcxx docs
139+
if: steps.docs-changed-subprojects.outputs.libcxx_any_changed == 'true'
140+
run: |
141+
cmake -B libcxx-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" -DLLVM_ENABLE_SPHINX=ON ./runtimes
142+
TZ=UTC ninja -C libcxx-build docs-libcxx-html
143+
- name: Build libc docs
144+
if: steps.docs-changed-subprojects.outputs.libc_any_changed == 'true'
145+
run: |
146+
cmake -B libc-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_ENABLE_SPHINX=ON ./runtimes
147+
TZ=UTC ninja -C libc-build docs-libc-html
148+
- name: Build LLD docs
149+
if: steps.docs-changed-subprojects.outputs.lld_any_changed == 'true'
150+
run: |
151+
cmake -B lld-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="lld" -DLLVM_ENABLE_SPHINX=ON ./llvm
152+
TZ=UTC ninja -C lld-build docs-lld-html
153+
- name: Build OpenMP docs
154+
if: steps.docs-changed-subprojects.outputs.openmp_any_changed == 'true'
155+
run: |
156+
cmake -B openmp-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;openmp" -DLLVM_ENABLE_SPHINX=ON ./llvm
157+
TZ=UTC ninja -C openmp-build docs-openmp-html
158+
- name: Build Polly docs
159+
if: steps.docs-changed-subprojects.outputs.polly_any_changed == 'true'
160+
run: |
161+
cmake -B polly-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="polly" -DLLVM_ENABLE_SPHINX=ON ./llvm
162+
TZ=UTC ninja -C polly-build docs-polly-html docs-polly-man
163+
- name: Build Flang docs
164+
if: steps.docs-changed-subprojects.outputs.flang_any_changed == 'true'
165+
# TODO(boomanaiden154): Remove the SPHINX_WARNINGS_AS_ERRORS from the
166+
# CMake invocation once the warnings in the flang docs build are fixed.
167+
run: |
168+
cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON -DSPHINX_WARNINGS_AS_ERRORS=OFF ./llvm
169+
TZ=UTC ninja -C flang-build docs-flang-html docs-flang-man
170+

.github/workflows/issue-subscriber.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
steps:
1616
- name: Setup Automation Script
1717
run: |
18-
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
19-
curl -O -L https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
18+
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
19+
curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
2020
chmod a+x github-automation.py
2121
pip install -r requirements.txt
2222

0 commit comments

Comments
 (0)