Skip to content

Commit

Permalink
LLVM and SPIRV-LLVM-Translator pulldown (WW12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-sycl committed Mar 28, 2023
2 parents 8a435d4 + 7ce78ec commit fb60092
Show file tree
Hide file tree
Showing 9,432 changed files with 508,767 additions and 207,104 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 1 addition & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
WarningsAsErrors: 'llvm-*,misc-*,-misc-no-recursion,-misc-unused-parameters,readability-identifier-naming,-llvm-header-guard'
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/clang-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Clang Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ on:
issues:
types: ['closed']

permissions:
contents: read

jobs:
automate-issues-labels:
permissions:
issues: write # for andymckay/labeler to label issues
pull-requests: write # for andymckay/labeler to label PRs
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/issue-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

name: Issue Release Workflow

permissions:
contents: read

on:
issue_comment:
types:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/issue-subscriber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types:
- labeled

permissions:
contents: read

jobs:
auto-subscribe:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/libclang-abi-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: libclang ABI Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/libclc-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: libclc Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lld-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: LLD Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lldb-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: lldb Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/llvm-bugs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: LLVM Bugs notifier

permissions:
contents: read
issues: read

on:
issues:
types:
Expand All @@ -8,6 +12,7 @@ on:
jobs:
auto-subscribe:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- uses: actions/setup-node@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llvm-project-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: LLVM Project Tests

permissions:
contents: read

on:
workflow_dispatch:
inputs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/llvm-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: LLVM Tests

permissions:
contents: read

on:
workflow_dispatch:
push:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/new-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ on:
issues:
types: ['opened']

permissions:
contents: read

jobs:
automate-issues-labels:
permissions:
issues: write # for andymckay/labeler to label issues
pull-requests: write # for andymckay/labeler to label PRs
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-tasks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release Task

permissions:
contents: read

on:
push:
tags:
Expand All @@ -8,6 +11,8 @@ on:

jobs:
release-tasks:
permissions:
contents: write # To upload assets to release.
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- 'release/**'

permissions:
contents: read

jobs:
version_check:
if: github.repository_owner == 'llvm'
Expand Down
1 change: 1 addition & 0 deletions .mailmap
4 changes: 0 additions & 4 deletions bolt/include/bolt/Core/BinaryBasicBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,6 @@ class BinaryBasicBlock {
/// Return branch info corresponding to an edge going to \p Succ basic block.
const BinaryBranchInfo &getBranchInfo(const BinaryBasicBlock &Succ) const;

/// Return branch info corresponding to an edge going to a basic block with
/// label \p Label.
BinaryBranchInfo &getBranchInfo(const MCSymbol *Label);

/// Set branch information for the outgoing edge to block \p Succ.
void setSuccessorBranchInfo(const BinaryBasicBlock &Succ, uint64_t Count,
uint64_t MispredictedCount) {
Expand Down
15 changes: 12 additions & 3 deletions bolt/include/bolt/Core/BinaryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ class BinaryContext {
BinaryFunction *getBinaryFunctionContainingAddress(uint64_t Address,
bool CheckPastEnd = false,
bool UseMaxSize = false);
const BinaryFunction *
getBinaryFunctionContainingAddress(uint64_t Address,
bool CheckPastEnd = false,
bool UseMaxSize = false) const {
return const_cast<BinaryContext *>(this)
->getBinaryFunctionContainingAddress(Address, CheckPastEnd, UseMaxSize);
}

/// Return a BinaryFunction that starts at a given \p Address.
BinaryFunction *getBinaryFunctionAtAddress(uint64_t Address);
Expand Down Expand Up @@ -504,9 +511,11 @@ class BinaryContext {
/// Optionally, populate \p Address from jump table entries. The entries
/// could be partially populated if the jump table detection fails.
bool analyzeJumpTable(const uint64_t Address,
const JumpTable::JumpTableType Type, BinaryFunction &BF,
const JumpTable::JumpTableType Type,
const BinaryFunction &BF,
const uint64_t NextJTAddress = 0,
JumpTable::AddressesType *EntriesAsAddress = nullptr);
JumpTable::AddressesType *EntriesAsAddress = nullptr,
bool *HasEntryInFragment = nullptr) const;

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

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

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

0 comments on commit fb60092

Please sign in to comment.