Skip to content

Commit 03e336b

Browse files
committed
Merge branch 'sycl' into victor/kernel-fusion-amd
2 parents 69b7667 + dd1db32 commit 03e336b

File tree

3,205 files changed

+310272
-242674
lines changed

Some content is hidden

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

3,205 files changed

+310272
-242674
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ llvm/test/Transforms/SPMDTransforms/ @intel/ocl-cpu-rt-write
7070
clang/**/OffloadBundler.h @intel/dpcpp-tools-reviewers
7171
clang/**/OffloadBundler.cpp @intel/dpcpp-tools-reviewers
7272
clang/tools/clang-offload-*/ @intel/dpcpp-tools-reviewers
73+
clang/tools/clang-linker-wrapper/ @intel/dpcpp-tools-reviewers
7374

7475
# Explicit SIMD
7576
ESIMD/ @intel/dpcpp-esimd-reviewers

.github/new-issues-labeler.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
'new issue':
2-
- '/.*/'
3-
41
'clang':
52
- '/\bclang(?!\-)\b/i'
63

.github/new-prs-labeler.yml

Lines changed: 53 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,26 @@ mlir:
110110
- mlir/**
111111

112112
mlir:core:
113-
- mlir/**/Support/**
114-
- mlir/**/Parser/**
115-
- mlir/**/IR/**
116-
- mlir/**/Bytecode/**
117-
- mlir/**/AsmParser/**
118-
- mlir/**/Pass/**
119-
- mlir/**/tools/**
120-
- mlir/**/Reducer/**
121-
- mlir/**/Transforms/**
122-
- mlir/**/Debug/**
113+
- mlir/include/mlir/Support/**
114+
- mlir/lib/Support/**
115+
- mlir/include/mlir/Parser/**
116+
- mlir/lib/Parser/**
117+
- mlir/include/mlir/IR/**
118+
- mlir/lib/IR/**
119+
- mlir/include/mlir/Bytecode/**
120+
- mlir/lib/Bytecode/**
121+
- mlir/include/mlir/AsmParser/**
122+
- mlir/lib/AsmParser/**
123+
- mlir/include/mlir/Pass/**
124+
- mlir/lib/Pass/**
125+
- mlir/include/mlir/Tools/**
126+
- mlir/lib/Tools/**
127+
- mlir/include/mlir/Reducer/**
128+
- mlir/lib/Reducer/**
129+
- mlir/include/mlir/Transforms/**
130+
- mlir/lib/Transforms/**
131+
- mlir/include/mlir/Debug/**
132+
- mlir/lib/Debug/**
123133
- mlir/tools/**
124134

125135
mlir:ods:
@@ -222,6 +232,11 @@ mlir:scf:
222232

223233
mlir:spirv:
224234
- mlir/**/SPIRV/**
235+
- mlir/**/SPIRVTo*/**
236+
- mlir/**/*ToSPIRV/**
237+
- mlir/tools/mlir-spirv-cpu-runner/**
238+
- mlir/tools/mlir-vulkan-runner/**
239+
- mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
225240

226241
mlir:shape:
227242
- mlir/**/Shape/**
@@ -295,7 +310,10 @@ vectorizers:
295310
- llvm/include/llvm/Transforms/Vectorize/**
296311

297312
clang:
298-
- clang/**
313+
- any:
314+
- clang/**
315+
- '!clang/**/Format/**'
316+
- '!clang/tools/clang-format/**'
299317

300318
testing-tools:
301319
- llvm/include/llvm/FileCheck/**
@@ -362,6 +380,11 @@ debuginfo:
362380
github:workflow:
363381
- .github/workflows/**
364382

383+
cmake:
384+
- cmake/**
385+
- llvm/cmake/**
386+
- runtimes/**
387+
365388
flang:driver:
366389
- flang/tools/flang-driver/**
367390
- flang/unittests/Frontend/**
@@ -381,15 +404,12 @@ backend:m68k:
381404

382405
libc++:
383406
- libcxx/**
384-
- runtimes/**
385407

386408
libc++abi:
387409
- libcxxabi/**
388-
- runtimes/**
389410

390411
libunwind:
391412
- libunwind/**
392-
- runtimes/**
393413

394414
objectyaml:
395415
- llvm/include/llvm/ObjectYAML/**
@@ -503,6 +523,12 @@ llvm:analysis:
503523
- llvm/test/Analysis/**
504524
- llvm/unittests/Analysis/**
505525

526+
llvm:adt:
527+
- llvm/**/ADT/*
528+
529+
llvm:support:
530+
- llvm/**/Support/**
531+
506532
llvm:transforms:
507533
- llvm/lib/Transforms/**
508534
- llvm/include/llvm/Transforms/**
@@ -540,12 +566,19 @@ llvm:SelectionDAG:
540566
- llvm/include/llvm/CodeGen/ISDOpcodes.h
541567

542568
backend:DirectX:
543-
- llvm/lib/Target/DirectX/**
544-
- llvm/test/CodeGen/DirectX/**
545-
- llvm/tools/dxil-dis
546-
- llvm/test/tools/dxil-dis
547-
- clang/lib/Basic/Targets/DirectX*
548-
- llvm/include/llvm/IR/IntrinsicsDirectX.td
569+
- '**/*DirectX*'
570+
- '**/*DXIL*'
571+
- '**/*dxil*'
572+
- '**/*DirectX*/**'
573+
- '**/*DXIL*/**'
574+
- '**/*dxil*/**'
575+
576+
backend:SPIR-V:
577+
- clang/lib/Driver/ToolChains/SPIRV.*
578+
- llvm/lib/Target/SPIRV/**
579+
- llvm/test/CodeGen/SPIRV/**
580+
- llvm/test/Frontend/HLSL/**
581+
- llvm/docs/SPIRVUsage.rst
549582

550583
mlgo:
551584
- llvm/lib/Analysis/ML*

.github/workflows/issue-release-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
if: >-
7171
(github.repository == 'llvm/llvm-project') &&
7272
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
73-
contains(github.event.comment.body, '/branch')
73+
contains(github.event.comment.body, '/branch ')
7474
7575
steps:
7676
- name: Fetch LLVM sources

.github/workflows/new-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
16-
- uses: github/issue-labeler@v3.2
16+
- uses: llvm/actions/issue-labeler@main
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
configuration-path: .github/new-issues-labeler.yml

.github/workflows/pr-receive.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ permissions:
1010
jobs:
1111
pr-target:
1212
runs-on: ubuntu-latest
13-
if: github.repository == 'llvm/llvm-project'
13+
# Ignore PRs with more than 10 commits. Pull requests with a lot of
14+
# commits tend to be accidents usually when someone made a mistake while trying
15+
# to rebase. We want to ignore these pull requests to avoid excessive
16+
# notifications.
17+
if: github.repository == 'llvm/llvm-project' &&
18+
github.event.pull_request.commits < 10
1419
steps:
1520
- name: Store PR Information
1621
run: |

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class MCPlusBuilder {
170170
/// MCPlusBuilder classes must use convert/lower/create* interfaces instead.
171171
void setTailCall(MCInst &Inst);
172172

173+
public:
173174
/// Transfer annotations from \p SrcInst to \p DstInst.
174175
void moveAnnotations(MCInst &&SrcInst, MCInst &DstInst) const {
175176
assert(!getAnnotationInst(DstInst) &&
@@ -182,7 +183,6 @@ class MCPlusBuilder {
182183
removeAnnotationInst(SrcInst);
183184
}
184185

185-
public:
186186
/// Return iterator range covering def operands.
187187
iterator_range<MCInst::iterator> defOperands(MCInst &Inst) const {
188188
return make_range(Inst.begin(),
@@ -437,7 +437,7 @@ class MCPlusBuilder {
437437
virtual bool isUnsupportedBranch(const MCInst &Inst) const { return false; }
438438

439439
/// Return true of the instruction is of pseudo kind.
440-
bool isPseudo(const MCInst &Inst) const {
440+
virtual bool isPseudo(const MCInst &Inst) const {
441441
return Info->get(Inst.getOpcode()).isPseudo();
442442
}
443443

bolt/include/bolt/Passes/FixRISCVCallsPass.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This file declares the FixRISCVCallsPass class, which sets the JALR immediate
10-
// to 0 for AUIPC/JALR pairs with a R_RISCV_CALL(_PLT) relocation. This is
11-
// necessary since MC expects it to be zero in order to or-in fixups.
9+
// This file declares the FixRISCVCallsPass class, which replaces all types of
10+
// calls with PseudoCALL pseudo instructions. This ensures that relaxed calls
11+
// get expanded to auipc/jalr pairs so that BOLT can freely reassign function
12+
// addresses without having to worry about the limited range of relaxed calls.
13+
// Using PseudoCALL also ensures that the RISC-V backend inserts the necessary
14+
// relaxation-related relocations to allow JITLink to relax instruction back to
15+
// shorter versions where possible.
1216
//===----------------------------------------------------------------------===//
1317

1418
#ifndef BOLT_PASSES_FIXRISCVCALLSPASS_H

bolt/lib/Core/BinaryContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ BinaryContext::createBinaryContext(const ObjectFile *File, bool IsPIC,
131131
case llvm::Triple::riscv64:
132132
ArchName = "riscv64";
133133
// RV64GC
134-
FeaturesStr = "+m,+a,+f,+d,+zicsr,+zifencei,+c";
134+
FeaturesStr = "+m,+a,+f,+d,+zicsr,+zifencei,+c,+relax";
135135
break;
136136
default:
137137
return createStringError(std::errc::not_supported,

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,6 +3156,10 @@ void BinaryFunction::dumpGraphToFile(std::string Filename) const {
31563156
}
31573157

31583158
bool BinaryFunction::validateCFG() const {
3159+
// Skip the validation of CFG after it is finalized
3160+
if (CurrentState == State::CFG_Finalized)
3161+
return true;
3162+
31593163
bool Valid = true;
31603164
for (BinaryBasicBlock *BB : BasicBlocks)
31613165
Valid &= BB->validateSuccessorInvariants();

0 commit comments

Comments
 (0)