Skip to content

Commit ed795e8

Browse files
authored
Merge branch 'main' into hlsl-spirv-group-index
2 parents d3321a2 + cc2a86a commit ed795e8

File tree

4,754 files changed

+337856
-284182
lines changed

Some content is hidden

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

4,754 files changed

+337856
-284182
lines changed

.ci/metrics/metrics.py

Lines changed: 375 additions & 140 deletions
Large diffs are not rendered by default.

.ci/metrics/requirements.lock.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,18 @@ pynacl==1.5.0 \
247247
--hash=sha256:a422368fc821589c228f4c49438a368831cb5bbc0eab5ebe1d7fac9dded6567b \
248248
--hash=sha256:e46dae94e34b085175f8abb3b0aaa7da40767865ac82c928eeb9e57e1ea8a543
249249
# via pygithub
250+
python-dateutil==2.9.0.post0 \
251+
--hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
252+
--hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
253+
# via -r ./requirements.txt
250254
requests==2.32.3 \
251255
--hash=sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760 \
252256
--hash=sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6
253257
# via pygithub
258+
six==1.17.0 \
259+
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
260+
--hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81
261+
# via python-dateutil
254262
typing-extensions==4.12.2 \
255263
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
256264
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8

.ci/metrics/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pygithub==2.5.0
2+
python-dateutil==2.9.0.post0

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fetch-depth: 1
6666
- name: Get subprojects that have doc changes
6767
id: docs-changed-subprojects
68-
uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8 # v45.0.7
68+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
6969
with:
7070
files_yaml: |
7171
llvm:

.github/workflows/pr-code-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Get changed files
3434
id: changed-files
35-
uses: tj-actions/changed-files@fea790cb660e33aef4bdf07304e28fedd77dfa13 # v39.2.4
35+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
3636
with:
3737
separator: ","
3838
skip_initial_fetch: true

.github/workflows/release-asset-audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _get_uploaders(release_version):
2424
return set(
2525
[
2626
"DimitryAndric",
27-
"stefanp-ibm",
27+
"stefanp-synopsys",
2828
"lei137",
2929
"omjavaid",
3030
"nicolerabjohn",

bolt/include/bolt/Core/BinaryContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ class BinaryContext {
12951295
void foldFunction(BinaryFunction &ChildBF, BinaryFunction &ParentBF);
12961296

12971297
/// Add a Section relocation at a given \p Address.
1298-
void addRelocation(uint64_t Address, MCSymbol *Symbol, uint64_t Type,
1298+
void addRelocation(uint64_t Address, MCSymbol *Symbol, uint32_t Type,
12991299
uint64_t Addend = 0, uint64_t Value = 0);
13001300

13011301
/// Return a relocation registered at a given \p Address, or nullptr if there
@@ -1308,7 +1308,7 @@ class BinaryContext {
13081308
}
13091309

13101310
/// Register dynamic relocation at \p Address.
1311-
void addDynamicRelocation(uint64_t Address, MCSymbol *Symbol, uint64_t Type,
1311+
void addDynamicRelocation(uint64_t Address, MCSymbol *Symbol, uint32_t Type,
13121312
uint64_t Addend, uint64_t Value = 0);
13131313

13141314
/// Return a dynamic relocation registered at a given \p Address, or nullptr

bolt/include/bolt/Core/BinaryFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ class BinaryFunction {
12601260
/// Register relocation type \p RelType at a given \p Address in the function
12611261
/// against \p Symbol.
12621262
/// Assert if the \p Address is not inside this function.
1263-
void addRelocation(uint64_t Address, MCSymbol *Symbol, uint64_t RelType,
1263+
void addRelocation(uint64_t Address, MCSymbol *Symbol, uint32_t RelType,
12641264
uint64_t Addend, uint64_t Value);
12651265

12661266
/// Return the name of the section this function originated from.

bolt/include/bolt/Core/BinarySection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ class BinarySection {
358358
void clearRelocations();
359359

360360
/// Add a new relocation at the given /p Offset.
361-
void addRelocation(uint64_t Offset, MCSymbol *Symbol, uint64_t Type,
361+
void addRelocation(uint64_t Offset, MCSymbol *Symbol, uint32_t Type,
362362
uint64_t Addend, uint64_t Value = 0) {
363363
assert(Offset < getSize() && "offset not within section bounds");
364364
Relocations.emplace(Relocation{Offset, Symbol, Type, Addend, Value});
365365
}
366366

367367
/// Add a dynamic relocation at the given /p Offset.
368-
void addDynamicRelocation(uint64_t Offset, MCSymbol *Symbol, uint64_t Type,
368+
void addDynamicRelocation(uint64_t Offset, MCSymbol *Symbol, uint32_t Type,
369369
uint64_t Addend, uint64_t Value = 0) {
370370
addDynamicRelocation(Relocation{Offset, Symbol, Type, Addend, Value});
371371
}

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class MCPlusBuilder {
473473
///
474474
/// For X86, they might be used in scanExternalRefs when we want to skip
475475
/// a function but still patch references inside it.
476-
virtual bool shouldRecordCodeRelocation(uint64_t RelType) const {
476+
virtual bool shouldRecordCodeRelocation(uint32_t RelType) const {
477477
llvm_unreachable("not implemented");
478478
return false;
479479
}
@@ -637,6 +637,16 @@ class MCPlusBuilder {
637637
return false;
638638
}
639639

640+
virtual bool isAddXri(const MCInst &Inst) const {
641+
llvm_unreachable("not implemented");
642+
return false;
643+
}
644+
645+
virtual bool isMOVW(const MCInst &Inst) const {
646+
llvm_unreachable("not implemented");
647+
return false;
648+
}
649+
640650
virtual bool isMoveMem2Reg(const MCInst &Inst) const { return false; }
641651

642652
virtual bool mayLoad(const MCInst &Inst) const {
@@ -1074,15 +1084,15 @@ class MCPlusBuilder {
10741084
/// MCExpr referencing \p Symbol + \p Addend.
10751085
virtual bool setOperandToSymbolRef(MCInst &Inst, int OpNum,
10761086
const MCSymbol *Symbol, int64_t Addend,
1077-
MCContext *Ctx, uint64_t RelType) const;
1087+
MCContext *Ctx, uint32_t RelType) const;
10781088

10791089
/// Replace an immediate operand in the instruction \p Inst with a reference
10801090
/// of the passed \p Symbol plus \p Addend. If the instruction does not have
10811091
/// an immediate operand or has more than one - then return false. Otherwise
10821092
/// return true.
10831093
virtual bool replaceImmWithSymbolRef(MCInst &Inst, const MCSymbol *Symbol,
10841094
int64_t Addend, MCContext *Ctx,
1085-
int64_t &Value, uint64_t RelType) const {
1095+
int64_t &Value, uint32_t RelType) const {
10861096
llvm_unreachable("not implemented");
10871097
return false;
10881098
}
@@ -1287,7 +1297,7 @@ class MCPlusBuilder {
12871297
/// Return the MCExpr used for absolute references in this target
12881298
virtual const MCExpr *getTargetExprFor(MCInst &Inst, const MCExpr *Expr,
12891299
MCContext &Ctx,
1290-
uint64_t RelType) const {
1300+
uint32_t RelType) const {
12911301
return Expr;
12921302
}
12931303

0 commit comments

Comments
 (0)