Skip to content

Commit 1a36b82

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:6250afe37fd1 into amd-gfx:d47138e5ab99
Local branch amd-gfx d47138e Merged main:d3921e467005 into amd-gfx:4a300c28880f Remote branch main 6250afe [Github] Fetch an additional commit for docs CI on PRs
2 parents d47138e + 6250afe commit 1a36b82

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

.github/workflows/docs.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,31 @@ on:
1515
paths:
1616
- 'llvm/docs/**'
1717
- 'clang/docs/**'
18+
- 'clang-tools-extra/docs/**'
19+
- 'lldb/docs/**'
1820
pull_request:
1921
paths:
2022
- 'llvm/docs/**'
2123
- 'clang/docs/**'
24+
- 'clang-tools-extra/docs/**'
25+
- 'lldb/docs/**'
2226

2327
jobs:
2428
check-docs-build:
2529
name: "Test documentation build"
2630
runs-on: ubuntu-latest
2731
steps:
28-
# Fetch all the commits in a pull request so that the
32+
# Fetch all the commits in a pull request + 1 so that the
2933
# docs-changed-subprojects step won't pull them in itself in an extremely
3034
# slow manner.
31-
- name: Fetch LLVM sources (PR)
35+
- name: Calculate number of commits to fetch (PR)
3236
if: ${{ github.event_name == 'pull_request' }}
37+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
38+
- name: Fetch LLVM sources (PR)
39+
if: ${{ github.event_name == 'pull_request' }}
3340
uses: actions/checkout@v4
3441
with:
35-
fetch-depth: ${{ github.event.pull_request.commits }}
42+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
3643
- name: Fetch LLVM sources (push)
3744
if: ${{ github.event_name == 'push' }}
3845
uses: actions/checkout@v4
@@ -47,6 +54,10 @@ jobs:
4754
- 'llvm/docs/**'
4855
clang:
4956
- 'clang/docs/**'
57+
clang-tools-extra:
58+
- 'clang-tools-extra/docs/**'
59+
lldb:
60+
- 'lldb/docs/**'
5061
- name: Setup Python env
5162
uses: actions/setup-python@v4
5263
with:
@@ -58,7 +69,8 @@ jobs:
5869
- name: Install system dependencies
5970
run: |
6071
sudo apt-get update
61-
sudo apt-get install -y cmake ninja-build
72+
# swig and graphviz are lldb specific dependencies
73+
sudo apt-get install -y cmake ninja-build swig graphviz
6274
- name: Build LLVM docs
6375
if: steps.docs-changed-subprojects.outputs.llvm_any_changed == 'true'
6476
run: |
@@ -69,4 +81,14 @@ jobs:
6981
run: |
7082
cmake -B clang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_SPHINX=ON ./llvm
7183
TZ=UTC ninja -C clang-build docs-clang-html docs-clang-man
84+
- name: Build clang-tools-extra docs
85+
if: steps.docs-changed-subprojects.outputs.clang-tools-extra_any_changed == 'true'
86+
run: |
87+
cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm
88+
TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man
89+
- name: Build LLDB docs
90+
if: steps.docs-changed-subprojects.outputs.lldb_any_changed == 'true'
91+
run: |
92+
cmake -B lldb-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_SPHINX=ON ./llvm
93+
TZ=UTC ninja -C lldb-build docs-lldb-html docs-lldb-man
7294

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 478262
19+
#define LLVM_MAIN_REVISION 478268
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

mlir/docs/Interfaces.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ comprised of the following components:
409409
the instance is the interface class. In the trait declaration, the
410410
type of the instance is the concrete entity class
411411
(e.g. `IntegerAttr`, `FuncOp`, etc.).
412+
* Extra Trait Class Declarations (Optional: `extraTraitClassDeclaration`)
413+
- Additional C++ code that is injected into the interface trait
414+
declaration.
415+
- Allows the same replacements as extra shared class declarations.
412416

413417
`OpInterface` classes may additionally contain the following:
414418

mlir/docs/Passes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ This document describes the available MLIR passes and their contracts.
6060

6161
[include "MemRefPasses.md"]
6262

63+
## 'ml\_program' Dialect Passes
64+
65+
[include "MLProgramPasses.md"]
66+
6367
## 'nvgpu' Dialect Passes
6468

6569
[include "NVGPUPasses.md"]
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
// RUN: %libomptarget-compile-run-and-check-generic
22
// RUN: %libomptarget-compileopt-run-and-check-generic
33

4-
// These are supported and work, but we compute bogus results on the GPU. For
5-
// now we disable the CPU and enable it once the GPU is fixed.
6-
//
7-
// UNSUPPORTED: aarch64-unknown-linux-gnu
8-
// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
9-
// UNSUPPORTED: x86_64-pc-linux-gnu
10-
// UNSUPPORTED: x86_64-pc-linux-gnu-LTO
4+
// UNSUPPORTED: amdgcn-amd-amdhsa
115

126
#include <omp.h>
137
#include <stdio.h>
148

159
int main() {
16-
// TODO: Test all ICVs
10+
// TODO: Test all ICVs on all levels
1711
int lvl = 333, tid = 666, nt = 999;
1812
#pragma omp target teams map(tofrom : lvl, tid, nt) num_teams(2)
1913
{
@@ -30,7 +24,7 @@ int main() {
3024
}
3125
}
3226
// TODO: This is wrong, but at least it doesn't crash
33-
// CHECK: lvl: 333, tid: 666, nt: 999
27+
// CHECK: lvl: 2, tid: 0, nt: 1
3428
printf("lvl: %i, tid: %i, nt: %i\n", lvl, tid, nt);
3529
return 0;
3630
}

0 commit comments

Comments
 (0)