Skip to content

Commit bb9883a

Browse files
committed
resolve linux.dump merge conflict
2 parents 1ce1969 + 33746d8 commit bb9883a

File tree

2,597 files changed

+116760
-60970
lines changed

Some content is hidden

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

2,597 files changed

+116760
-60970
lines changed

.clang-tidy

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
1+
Checks: |
2+
-*,
3+
clang-diagnostic-*,
4+
llvm-*,
5+
-llvm-header-guard,
6+
misc-*,
7+
-misc-no-recursion,
8+
-misc-non-private-member-variables-in-classes,
9+
-misc-unused-parameters,
10+
readability-identifier-naming
11+
WarningsAsErrors: |
12+
llvm-*,
13+
-llvm-header-guard,
14+
misc-*,
15+
-misc-no-recursion,
16+
-misc-non-private-member-variables-in-classes,
17+
-misc-unused-parameters,
18+
readability-identifier-naming
219
CheckOptions:
320
- key: readability-identifier-naming.ClassCase
421
value: CamelCase
@@ -24,3 +41,5 @@ CheckOptions:
2441
value: 1
2542
- key: modernize-use-default-member-init.UseAssignment
2643
value: 1
44+
- key: llvm-namespace-comment.ShortNamespaceLines
45+
value: '25'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,5 @@ jobs:
8787
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
8888
release-workflow \
8989
--issue-number ${{ github.event.issue.number }} \
90+
--phab-token ${{ secrets.RELEASE_WORKFLOW_PHAB_TOKEN }} \
9091
auto

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,10 @@ jobs:
124124
- name: Dump ABI
125125
run: |
126126
parallel abi-dumper -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o {}-${{ matrix.ref }}.abi ./build/lib/{} ::: ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}
127-
# Remove symbol versioning from dumps, so we can compare across major
128-
# versions. We don't need to do this for libclang.so since its ABI
129-
# is stable across major releases and the symbol versions don't change.
130-
if [ -e libclang-cpp.so-${{ matrix.ref }}.abi ]; then
131-
sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' libclang-cpp.so-${{ matrix.ref }}.abi
132-
fi
127+
for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
128+
# Remove symbol versioning from dumps, so we can compare across major versions.
129+
sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
130+
done
133131
- name: Upload ABI file
134132
uses: actions/upload-artifact@v2
135133
with:

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ on:
4040
type: string
4141
required: false
4242
default: ""
43+
lts_aws_matrix:
44+
type: string
45+
required: false
46+
default: ""
4347
lts_cmake_extra_args:
4448
type: string
4549
required: false
@@ -155,9 +159,31 @@ jobs:
155159
name: sycl_lit_${{ inputs.build_artifact_suffix }}
156160
path: lit.tar.xz
157161

158-
llvm_test_suite:
162+
aws-start:
163+
name: Start AWS
159164
needs: build
160-
if: ${{ inputs.lts_matrix != '' }}
165+
if: ${{ inputs.lts_aws_matrix != '' }}
166+
runs-on: ubuntu-latest
167+
environment: aws
168+
steps:
169+
- name: Setup script
170+
run: |
171+
mkdir -p ./aws-ec2
172+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/action.yml -P ./aws-ec2
173+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/aws-ec2.js -P ./aws-ec2
174+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/package.json -P ./aws-ec2
175+
npm install ./aws-ec2
176+
- name: Start AWS EC2 runners
177+
uses: ./aws-ec2
178+
with:
179+
runs-on-list: ${{ inputs.lts_aws_matrix }}
180+
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
181+
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
182+
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
183+
184+
llvm_test_suite:
185+
needs: [build, aws-start]
186+
if: ${{ !failure() && inputs.lts_matrix != '' }}
161187
strategy:
162188
fail-fast: false
163189
max-parallel: ${{ inputs.max_parallel }}
@@ -203,3 +229,26 @@ jobs:
203229
check_sycl_all: ${{ matrix.check_sycl_all }}
204230
results_name_suffix: ${{ matrix.config }}_${{ inputs.build_artifact_suffix }}
205231
cmake_args: '${{ matrix.cmake_args }} ${{ inputs.lts_cmake_extra_args }}'
232+
233+
aws-stop:
234+
name: Stop AWS
235+
needs: [ aws-start, llvm_test_suite ]
236+
if: ${{ always() && inputs.lts_ats_matrix != '' }}
237+
runs-on: ubuntu-latest
238+
environment: aws
239+
steps:
240+
- name: Setup script
241+
run: |
242+
mkdir -p ./aws-ec2
243+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/action.yml -P ./aws-ec2
244+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/aws-ec2.js -P ./aws-ec2
245+
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/package.json -P ./aws-ec2
246+
npm install ./aws-ec2
247+
- name: Stop AWS EC2 runners
248+
uses: ./aws-ec2
249+
with:
250+
runs-on-list: ${{ inputs.lts_aws_matrix }}
251+
mode: stop
252+
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
253+
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
254+
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

.github/workflows/sycl_nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: github.repository == 'intel/llvm'
2121
uses: ./.github/workflows/sycl_linux_build_and_test.yml
2222
needs: resolve_matrix
23+
secrets: inherit
2324
with:
2425
build_cache_root: "/__w/"
2526
build_artifact_suffix: default
@@ -29,6 +30,7 @@ jobs:
2930
if: github.repository == 'intel/llvm'
3031
uses: ./.github/workflows/sycl_linux_build_and_test.yml
3132
needs: resolve_matrix
33+
secrets: inherit
3234
with:
3335
build_cache_root: "/__w/"
3436
build_cache_suffix: opaque_pointers

.github/workflows/sycl_post_commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ jobs:
2121
name: Linux Default
2222
needs: resolve_matrix
2323
uses: ./.github/workflows/sycl_linux_build_and_test.yml
24+
secrets: inherit
2425
with:
2526
build_cache_root: "/__w/llvm"
2627
build_artifact_suffix: "post_commit"
2728
lts_matrix: ${{ needs.resolve_matrix.outputs.lts_matrix }}
29+
lts_aws_matrix: ${{ needs.resolve_matrix.outputs.lts_aws_matrix }}
2830
linux_no_assert:
2931
name: Linux (no assert)
3032
uses: ./.github/workflows/sycl_linux_build_and_test.yml
33+
secrets: inherit
3134
with:
3235
build_cache_root: "/__w/llvm"
3336
build_cache_suffix: gcc_no_assertions

.github/workflows/sycl_precommit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: SYCL
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- sycl
77
# Do not run builds if changes are only in the following locations
@@ -25,6 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727
with:
28+
persist-credentials: false
2829
fetch-depth: 2
2930
- name: Run clang-format
3031
uses: ./devops/actions/clang-format
@@ -43,9 +44,11 @@ jobs:
4344
needs: [lint, resolve_matrix]
4445
if: always() && (success() || contains(github.event.pull_request.labels.*.name, 'ignore-lint'))
4546
uses: ./.github/workflows/sycl_linux_build_and_test.yml
47+
secrets: inherit
4648
with:
4749
build_cache_root: "/__w/"
4850
build_cache_size: "8G"
4951
build_artifact_suffix: "default"
5052
build_cache_suffix: "default"
5153
lts_matrix: ${{ needs.resolve_matrix.outputs.lts_matrix }}
54+
lts_aws_matrix: ${{ needs.resolve_matrix.outputs.lts_aws_matrix }}

.github/workflows/sycl_resolve_test_matrix.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ on:
1919
type: string
2020
required: true
2121
default: ""
22+
uniq:
23+
description: Unique string to name dynamic runners in AWS
24+
type: string
25+
required: false
26+
default: ${{ github.run_id }}-${{ github.run_attempt }}
2227
outputs:
2328
lts_matrix:
2429
description: "Generated Matrix"
2530
value: ${{ jobs.resolve_matrix.outputs.lts_matrix }}
31+
lts_aws_matrix:
32+
description: "Generated Matrix AWS subset"
33+
value: ${{ jobs.resolve_matrix.outputs.lts_aws_matrix }}
2634
jobs:
2735
resolve_matrix:
2836
name: Resolve Test Matrix

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Intel LLVM-based projects:
55

66
- [oneAPI DPC++ compiler](#oneapi-dpc-compiler)
77
- [Late-outline OpenMP and OpenMP Offload](#late-outline-openmp-and-openmp-offload)
8+
sudo apt-get install llvm-16-dev llvm-16-tools clang-16 libclang-16-dev
9+
`-DLLVM_EXTERNAL_LIT="/usr/lib/llvm-16/build/utils/lit/lit.py"` is
810

911
## oneAPI DPC++ compiler
1012

bolt/include/bolt/Core/BinaryDomTree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
#ifndef BOLT_CORE_BINARY_DOMTREE_H
1515
#define BOLT_CORE_BINARY_DOMTREE_H
1616

17+
#include "bolt/Core/BinaryBasicBlock.h"
18+
#include "llvm/IR/Dominators.h"
1719
#include "llvm/Support/GenericDomTreeConstruction.h"
1820

1921
namespace llvm {
2022
namespace bolt {
2123

22-
class BinaryBasicBlock;
2324
using BinaryDomTreeNode = DomTreeNodeBase<BinaryBasicBlock>;
2425
using BinaryDominatorTree = DomTreeBase<BinaryBasicBlock>;
2526

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ class BinaryFunction {
994994
bool hasName(const std::string &FunctionName) const {
995995
auto Res =
996996
forEachName([&](StringRef Name) { return Name == FunctionName; });
997-
return Res.hasValue();
997+
return Res.has_value();
998998
}
999999

10001000
/// Check if any of function names matches the given regex.
@@ -1005,7 +1005,7 @@ class BinaryFunction {
10051005
Optional<StringRef> hasRestoredNameRegex(const StringRef NameRegex) const;
10061006

10071007
/// Return a vector of all possible names for the function.
1008-
const std::vector<StringRef> getNames() const {
1008+
std::vector<StringRef> getNames() const {
10091009
std::vector<StringRef> AllNames;
10101010
forEachName([&AllNames](StringRef Name) {
10111011
AllNames.push_back(Name);
@@ -1427,17 +1427,15 @@ class BinaryFunction {
14271427

14281428
const CallSitesType &getColdCallSites() const { return ColdCallSites; }
14291429

1430-
const ArrayRef<uint8_t> getLSDAActionTable() const { return LSDAActionTable; }
1430+
ArrayRef<uint8_t> getLSDAActionTable() const { return LSDAActionTable; }
14311431

14321432
const LSDATypeTableTy &getLSDATypeTable() const { return LSDATypeTable; }
14331433

14341434
const LSDATypeTableTy &getLSDATypeAddressTable() const {
14351435
return LSDATypeAddressTable;
14361436
}
14371437

1438-
const ArrayRef<uint8_t> getLSDATypeIndexTable() const {
1439-
return LSDATypeIndexTable;
1440-
}
1438+
ArrayRef<uint8_t> getLSDATypeIndexTable() const { return LSDATypeIndexTable; }
14411439

14421440
const LabelsMapType &getLabels() const { return Labels; }
14431441

@@ -1652,7 +1650,6 @@ class BinaryFunction {
16521650
}
16531651
OffsetToCFI.emplace(Offset, FrameInstructions.size());
16541652
FrameInstructions.emplace_back(std::forward<MCCFIInstruction>(Inst));
1655-
return;
16561653
}
16571654

16581655
BinaryBasicBlock::iterator addCFIInstruction(BinaryBasicBlock *BB,

bolt/include/bolt/Core/DebugData.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -226,22 +226,22 @@ class DebugRangeListsSectionWriter : public DebugRangesSectionWriter {
226226
static void setAddressWriter(DebugAddrWriter *AddrW) { AddrWriter = AddrW; }
227227

228228
/// Add ranges with caching.
229-
virtual uint64_t addRanges(
229+
uint64_t addRanges(
230230
DebugAddressRangesVector &&Ranges,
231231
std::map<DebugAddressRangesVector, uint64_t> &CachedRanges) override;
232232

233233
/// Add ranges and return offset into section.
234-
virtual uint64_t addRanges(const DebugAddressRangesVector &Ranges) override;
234+
uint64_t addRanges(const DebugAddressRangesVector &Ranges) override;
235235

236-
virtual std::unique_ptr<DebugBufferVector> releaseBuffer() override {
236+
std::unique_ptr<DebugBufferVector> releaseBuffer() override {
237237
return std::move(RangesBuffer);
238238
}
239239

240240
/// Needs to be invoked before each \p CU is processed.
241-
void virtual initSection(DWARFUnit &CU) override;
241+
void initSection(DWARFUnit &CU) override;
242242

243243
/// Writes out range lists for a current CU being processed.
244-
void virtual finalizeSection() override;
244+
void finalizeSection() override;
245245

246246
// Returns true if section is empty.
247247
bool empty() { return RangesBuffer->empty(); }
@@ -391,15 +391,15 @@ class DebugAddrWriterDwarf5 : public DebugAddrWriter {
391391
DebugAddrWriterDwarf5(BinaryContext *BC) : DebugAddrWriter(BC) {}
392392

393393
/// Creates consolidated .debug_addr section, and builds DWOID to offset map.
394-
virtual AddressSectionBuffer finalize() override;
394+
AddressSectionBuffer finalize() override;
395395
/// Given DWARFUnit \p Unit returns offset of this CU in to .debug_addr
396396
/// section.
397-
virtual uint64_t getOffset(DWARFUnit &Unit) override;
397+
uint64_t getOffset(DWARFUnit &Unit) override;
398398

399399
protected:
400400
/// Given DWARFUnit \p Unit returns either DWO ID or it's offset within
401401
/// .debug_info.
402-
virtual uint64_t getCUID(DWARFUnit &Unit) override {
402+
uint64_t getCUID(DWARFUnit &Unit) override {
403403
if (Unit.isDWOUnit()) {
404404
DWARFUnit *SkeletonCU = Unit.getLinkedUnit();
405405
return SkeletonCU->getOffset();
@@ -561,9 +561,9 @@ class DebugLoclistWriter : public DebugLocWriter {
561561
static void setAddressWriter(DebugAddrWriter *AddrW) { AddrWriter = AddrW; }
562562

563563
/// Stores location lists internally to be written out during finalize phase.
564-
virtual void addList(AttrInfo &AttrVal, DebugLocationsVector &LocList,
565-
DebugInfoBinaryPatcher &DebugInfoPatcher,
566-
DebugAbbrevWriter &AbbrevWriter) override;
564+
void addList(AttrInfo &AttrVal, DebugLocationsVector &LocList,
565+
DebugInfoBinaryPatcher &DebugInfoPatcher,
566+
DebugAbbrevWriter &AbbrevWriter) override;
567567

568568
/// Writes out locations in to a local buffer and applies debug info patches.
569569
void finalize(DebugInfoBinaryPatcher &DebugInfoPatcher,
@@ -685,7 +685,7 @@ class SimpleBinaryPatcher : public BinaryPatcher {
685685

686686
/// This function takes in \p BinaryContents, applies patches to it and
687687
/// returns an updated string.
688-
virtual std::string patchBinary(StringRef BinaryContents) override;
688+
std::string patchBinary(StringRef BinaryContents) override;
689689
};
690690

691691
class DebugInfoBinaryPatcher : public SimpleBinaryPatcher {
@@ -843,7 +843,7 @@ class DebugInfoBinaryPatcher : public SimpleBinaryPatcher {
843843
std::string Value;
844844
};
845845

846-
virtual PatcherKind getKind() const override {
846+
PatcherKind getKind() const override {
847847
return PatcherKind::DebugInfoBinaryPatcher;
848848
}
849849

@@ -853,23 +853,23 @@ class DebugInfoBinaryPatcher : public SimpleBinaryPatcher {
853853

854854
/// This function takes in \p BinaryContents, and re-writes it with new
855855
/// patches inserted into it. It returns an updated string.
856-
virtual std::string patchBinary(StringRef BinaryContents) override;
856+
std::string patchBinary(StringRef BinaryContents) override;
857857

858858
/// Adds a patch to put the integer \p NewValue encoded as a 64-bit
859859
/// little-endian value at offset \p Offset.
860-
virtual void addLE64Patch(uint64_t Offset, uint64_t NewValue) override;
860+
void addLE64Patch(uint64_t Offset, uint64_t NewValue) override;
861861

862862
/// Adds a patch to put the integer \p NewValue encoded as a 32-bit
863863
/// little-endian value at offset \p Offset.
864864
/// The \p OldValueSize is the size of the old value that will be replaced.
865-
virtual void addLE32Patch(uint64_t Offset, uint32_t NewValue,
866-
uint32_t OldValueSize = 4) override;
865+
void addLE32Patch(uint64_t Offset, uint32_t NewValue,
866+
uint32_t OldValueSize = 4) override;
867867

868868
/// Add a patch at \p Offset with \p Value using unsigned LEB128 encoding with
869869
/// size \p OldValueSize.
870870
/// The \p OldValueSize is the size of the old value that will be replaced.
871-
virtual void addUDataPatch(uint64_t Offset, uint64_t Value,
872-
uint32_t OldValueSize) override;
871+
void addUDataPatch(uint64_t Offset, uint64_t Value,
872+
uint32_t OldValueSize) override;
873873

874874
/// Adds a label \p Offset for DWARF UNit.
875875
/// Used to recompute relative references.

0 commit comments

Comments
 (0)