Skip to content

Commit fb60092

Browse files
committed
LLVM and SPIRV-LLVM-Translator pulldown (WW12)
LLVM: llvm/llvm-project@de7639ddb05e SPIRV-LLVM-Translator: KhronosGroup/SPIRV-LLVM-Translator@3fe4393
2 parents 8a435d4 + 7ce78ec commit fb60092

File tree

9,432 files changed

+508767
-207104
lines changed

Some content is hidden

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

9,432 files changed

+508767
-207104
lines changed

.clang-tidy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
2-
WarningsAsErrors: 'llvm-*,misc-*,-misc-no-recursion,-misc-unused-parameters,readability-identifier-naming,-llvm-header-guard'
1+
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
32
CheckOptions:
43
- key: readability-identifier-naming.ClassCase
54
value: CamelCase

.github/workflows/clang-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Clang Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/closed-issues.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ on:
33
issues:
44
types: ['closed']
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
automate-issues-labels:
11+
permissions:
12+
issues: write # for andymckay/labeler to label issues
13+
pull-requests: write # for andymckay/labeler to label PRs
814
runs-on: ubuntu-latest
915
if: github.repository == 'llvm/llvm-project'
1016
steps:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
name: Issue Release Workflow
1616

17+
permissions:
18+
contents: read
19+
1720
on:
1821
issue_comment:
1922
types:

.github/workflows/issue-subscriber.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- labeled
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
auto-subscribe:
1013
runs-on: ubuntu-latest

.github/workflows/libclang-abi-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: libclang ABI Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/libclc-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: libclc Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/lld-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: LLD Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/lldb-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: lldb Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/llvm-bugs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: LLVM Bugs notifier
22

3+
permissions:
4+
contents: read
5+
issues: read
6+
37
on:
48
issues:
59
types:
@@ -8,6 +12,7 @@ on:
812
jobs:
913
auto-subscribe:
1014
runs-on: ubuntu-latest
15+
if: github.repository == 'llvm/llvm-project'
1116
steps:
1217
- uses: actions/setup-node@v3
1318
with:

.github/workflows/llvm-project-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: LLVM Project Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
inputs:

.github/workflows/llvm-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: LLVM Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
push:

.github/workflows/new-issues.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ on:
33
issues:
44
types: ['opened']
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
automate-issues-labels:
11+
permissions:
12+
issues: write # for andymckay/labeler to label issues
13+
pull-requests: write # for andymckay/labeler to label PRs
814
runs-on: ubuntu-latest
915
if: github.repository == 'llvm/llvm-project'
1016
steps:

.github/workflows/release-tasks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Release Task
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
tags:
@@ -8,6 +11,8 @@ on:
811

912
jobs:
1013
release-tasks:
14+
permissions:
15+
contents: write # To upload assets to release.
1116
runs-on: ubuntu-latest
1217
if: github.repository == 'llvm/llvm-project'
1318
steps:

.github/workflows/version-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- 'release/**'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
version_check:
1316
if: github.repository_owner == 'llvm'

.mailmap

Lines changed: 1 addition & 0 deletions

bolt/include/bolt/Core/BinaryBasicBlock.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@ class BinaryBasicBlock {
427427
/// Return branch info corresponding to an edge going to \p Succ basic block.
428428
const BinaryBranchInfo &getBranchInfo(const BinaryBasicBlock &Succ) const;
429429

430-
/// Return branch info corresponding to an edge going to a basic block with
431-
/// label \p Label.
432-
BinaryBranchInfo &getBranchInfo(const MCSymbol *Label);
433-
434430
/// Set branch information for the outgoing edge to block \p Succ.
435431
void setSuccessorBranchInfo(const BinaryBasicBlock &Succ, uint64_t Count,
436432
uint64_t MispredictedCount) {

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,13 @@ class BinaryContext {
366366
BinaryFunction *getBinaryFunctionContainingAddress(uint64_t Address,
367367
bool CheckPastEnd = false,
368368
bool UseMaxSize = false);
369+
const BinaryFunction *
370+
getBinaryFunctionContainingAddress(uint64_t Address,
371+
bool CheckPastEnd = false,
372+
bool UseMaxSize = false) const {
373+
return const_cast<BinaryContext *>(this)
374+
->getBinaryFunctionContainingAddress(Address, CheckPastEnd, UseMaxSize);
375+
}
369376

370377
/// Return a BinaryFunction that starts at a given \p Address.
371378
BinaryFunction *getBinaryFunctionAtAddress(uint64_t Address);
@@ -504,9 +511,11 @@ class BinaryContext {
504511
/// Optionally, populate \p Address from jump table entries. The entries
505512
/// could be partially populated if the jump table detection fails.
506513
bool analyzeJumpTable(const uint64_t Address,
507-
const JumpTable::JumpTableType Type, BinaryFunction &BF,
514+
const JumpTable::JumpTableType Type,
515+
const BinaryFunction &BF,
508516
const uint64_t NextJTAddress = 0,
509-
JumpTable::AddressesType *EntriesAsAddress = nullptr);
517+
JumpTable::AddressesType *EntriesAsAddress = nullptr,
518+
bool *HasEntryInFragment = nullptr) const;
510519

511520
/// After jump table locations are established, this function will populate
512521
/// their EntriesAsAddress based on memory contents.
@@ -1143,7 +1152,7 @@ class BinaryContext {
11431152

11441153
/// Return a relocation registered at a given \p Address, or nullptr if there
11451154
/// is no relocation at such address.
1146-
const Relocation *getRelocationAt(uint64_t Address);
1155+
const Relocation *getRelocationAt(uint64_t Address) const;
11471156

11481157
/// Register a presence of PC-relative relocation at the given \p Address.
11491158
void addPCRelativeDataRelocation(uint64_t Address) {

0 commit comments

Comments
 (0)