Skip to content

Commit 7d39aa3

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.8-beta.1 [skip ci]
2 parents 00806fe + 497d648 commit 7d39aa3

File tree

456 files changed

+117393
-14224
lines changed

Some content is hidden

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

456 files changed

+117393
-14224
lines changed

.github/new-prs-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,12 @@ mlgo:
722722
- llvm/include/llvm/Analysis/IR2Vec.h
723723
- llvm/lib/Analysis/IR2Vec.cpp
724724
- llvm/lib/Analysis/models/**
725+
- llvm/include/llvm/CodeGen/MIR2Vec.h
726+
- llvm/lib/CodeGen/MIR2Vec.cpp
725727
- llvm/test/Analysis/IR2Vec/**
728+
- llvm/test/CodeGen/MIR2Vec/**
729+
- llvm/unittests/Analysis/IR2VecTest.cpp
730+
- llvm/unittests/CodeGen/MIR2VecTest.cpp
726731
- llvm/tools/llvm-ir2vec/**
727732
- llvm/docs/CommandGuide/llvm-ir2vec.rst
728733

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def _get_uploaders(release_version):
5454
"tru",
5555
"tstellar",
5656
"github-actions[bot]",
57+
"c-rhodes",
58+
"dyung",
5759
]
5860
)
5961

bolt/lib/Passes/MarkRAStates.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ Error MarkRAStates::runOnFunctions(BinaryContext &BC) {
131131
return !BF.containedNegateRAState() || BF.isIgnored();
132132
};
133133

134-
int Total = llvm::count_if(
135-
BC.getBinaryFunctions(),
136-
[&](std::pair<const unsigned long, BinaryFunction> &P) {
137-
return P.second.containedNegateRAState() && !P.second.isIgnored();
138-
});
134+
int Total = llvm::count_if(BC.getBinaryFunctions(), [&](auto &P) {
135+
return P.second.containedNegateRAState() && !P.second.isIgnored();
136+
});
139137

140138
ParallelUtilities::runOnEachFunction(
141139
BC, ParallelUtilities::SchedulingPolicy::SP_INST_LINEAR, WorkFun,

bolt/test/perf2bolt/AArch64/perf2bolt-spe.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ RUN: %clang %cflags %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.e
66

77
RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe 2> /dev/null
88

9-
RUN: (perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe 2> /dev/null; exit 0) | FileCheck %s --check-prefix=CHECK-SPE-LBR
9+
RUN: perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe | FileCheck %s --check-prefix=CHECK-SPE-LBR
1010

1111
CHECK-SPE-LBR: PERF2BOLT: parse SPE branch events in LBR-format
12-

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ Changes in existing checks
318318

319319
- ``for`` loops are supported.
320320

321+
- Improved :doc:`misc-const-correctness
322+
<clang-tidy/checks/misc/const-correctness>` check to avoid false
323+
positives when pointers is tranferred to non-const references.
324+
321325
- Improved :doc:`misc-header-include-cycle
322326
<clang-tidy/checks/misc/header-include-cycle>` check performance.
323327

clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,18 @@ void ignore_const_alias() {
4848
p_local0 = &a[1];
4949
}
5050

51+
void takeNonConstRef(int *&r);
52+
53+
void ignoreNonConstRefOps() {
54+
// init with non-const ref
55+
int* p0 {nullptr};
56+
int*& r1 = p0;
57+
58+
// non-const ref param
59+
int* p1 {nullptr};
60+
takeNonConstRef(p1);
61+
62+
// cast
63+
int* p2 {nullptr};
64+
int*& r2 = (int*&)p2;
65+
}

clang/docs/OpenMPSupport.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,9 @@ implementation.
548548
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
549549
| Increment between places for OMP_PLACES | :none:`unclaimed` | :none:`unclaimed` | |
550550
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
551-
| OMP_AVAILABLE_DEVICES envirable | :none:`unclaimed` | :none:`unclaimed` | |
551+
| OMP_AVAILABLE_DEVICES envirable | :none:`unclaimed` | :none:`unclaimed` | (should wait for "Traits for default device envirable" being done) |
552552
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
553-
| Traits for default device envirable | :none:`unclaimed` | :none:`unclaimed` | |
553+
| Traits for default device envirable | :part:`in progress` | :none:`unclaimed` | ro-i |
554554
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
555555
| Optionally omit array length expression | :good:`done` | :none:`unclaimed` | (Parse) https://github.com/llvm/llvm-project/pull/148048, |
556556
| | | | (Sema) https://github.com/llvm/llvm-project/pull/152786 |

clang/include/clang/AST/HLSLResource.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ struct ResourceBindingAttrs {
6969
assert(hasImplicitOrderID());
7070
return RegBinding->getImplicitBindingOrderID();
7171
}
72+
73+
void setImplicitOrderID(unsigned Value) const {
74+
assert(hasBinding() && !isExplicit() && !hasImplicitOrderID());
75+
RegBinding->setImplicitBindingOrderID(Value);
76+
}
7277
};
7378

7479
} // namespace hlsl

clang/include/clang/Basic/BuiltinsX86.td

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,16 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
123123
def Op#d128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Vector<4, int>)">;
124124
}
125125

126-
def pmaddubsw128 : X86Builtin<"_Vector<8, short>(_Vector<16, char>, _Vector<16, char>)">;
127126
def pmulhrsw128 : X86Builtin<"_Vector<8, short>(_Vector<8, short>, _Vector<8, short>)">;
128127
def pshufb128 : X86Builtin<"_Vector<16, char>(_Vector<16, char>, _Vector<16, char>)">;
129128
def psignb128 : X86Builtin<"_Vector<16, char>(_Vector<16, char>, _Vector<16, char>)">;
130129
def psignw128 : X86Builtin<"_Vector<8, short>(_Vector<8, short>, _Vector<8, short>)">;
131130
def psignd128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Vector<4, int>)">;
132131
}
132+
133+
let Features = "ssse3", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128>] in {
134+
def pmaddubsw128 : X86Builtin<"_Vector<8, short>(_Vector<16, char>, _Vector<16, char>)">;
135+
}
133136
}
134137

135138
// AVX
@@ -278,13 +281,14 @@ let Features = "sse2", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] i
278281
def psllw128 : X86Builtin<"_Vector<8, short>(_Vector<8, short>, _Vector<8, short>)">;
279282
def pslld128 : X86Builtin<"_Vector<4, int>(_Vector<4, int>, _Vector<4, int>)">;
280283
def psllq128 : X86Builtin<"_Vector<2, long long int>(_Vector<2, long long int>, _Vector<2, long long int>)">;
281-
def pmaddwd128 : X86Builtin<"_Vector<4, int>(_Vector<8, short>, _Vector<8, short>)">;
282284
def pslldqi128_byteshift : X86Builtin<"_Vector<16, char>(_Vector<16, char>, _Constant int)">;
283285
def psrldqi128_byteshift : X86Builtin<"_Vector<16, char>(_Vector<16, char>, _Constant int)">;
284286
}
285287

286288
let Features = "sse2",
287289
Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<128>] in {
290+
def pmaddwd128 : X86Builtin<"_Vector<4, int>(_Vector<8, short>, _Vector<8, short>)">;
291+
288292
def pmuludq128 : X86Builtin<"_Vector<2, long long int>(_Vector<4, int>, _Vector<4, int>)">;
289293

290294
def psllwi128 : X86Builtin<"_Vector<8, short>(_Vector<8, short>, int)">;
@@ -581,8 +585,6 @@ let Features = "avx2", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] i
581585
def phsubw256 : X86Builtin<"_Vector<16, short>(_Vector<16, short>, _Vector<16, short>)">;
582586
def phsubd256 : X86Builtin<"_Vector<8, int>(_Vector<8, int>, _Vector<8, int>)">;
583587
def phsubsw256 : X86Builtin<"_Vector<16, short>(_Vector<16, short>, _Vector<16, short>)">;
584-
def pmaddubsw256 : X86Builtin<"_Vector<16, short>(_Vector<32, char>, _Vector<32, char>)">;
585-
def pmaddwd256 : X86Builtin<"_Vector<8, int>(_Vector<16, short>, _Vector<16, short>)">;
586588
def pmovmskb256 : X86Builtin<"int(_Vector<32, char>)">;
587589
def pmulhrsw256 : X86Builtin<"_Vector<16, short>(_Vector<16, short>, _Vector<16, short>)">;
588590
def psadbw256 : X86Builtin<"_Vector<4, long long int>(_Vector<32, char>, _Vector<32, char>)">;
@@ -619,6 +621,9 @@ let Features = "avx2", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWi
619621

620622
def pblendvb256 : X86Builtin<"_Vector<32, char>(_Vector<32, char>, _Vector<32, char>, _Vector<32, char>)">;
621623

624+
def pmaddubsw256 : X86Builtin<"_Vector<16, short>(_Vector<32, char>, _Vector<32, char>)">;
625+
def pmaddwd256 : X86Builtin<"_Vector<8, int>(_Vector<16, short>, _Vector<16, short>)">;
626+
622627
def pmuldq256 : X86Builtin<"_Vector<4, long long int>(_Vector<8, int>, _Vector<8, int>)">;
623628
def pmuludq256 : X86Builtin<"_Vector<4, long long int>(_Vector<8, int>, _Vector<8, int>)">;
624629

@@ -1378,10 +1383,6 @@ let Features = "avx512f", Attributes = [NoThrow, Const, RequiredVectorWidth<512>
13781383
def subps512 : X86Builtin<"_Vector<16, float>(_Vector<16, float>, _Vector<16, float>, _Constant int)">;
13791384
}
13801385

1381-
let Features = "avx512bw", Attributes = [NoThrow, Const, RequiredVectorWidth<512>] in {
1382-
def pmaddubsw512 : X86Builtin<"_Vector<32, short>(_Vector<64, char>, _Vector<64, char>)">;
1383-
def pmaddwd512 : X86Builtin<"_Vector<16, int>(_Vector<32, short>, _Vector<32, short>)">;
1384-
}
13851386

13861387
let Features = "avx512f", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
13871388
def addss_round_mask : X86Builtin<"_Vector<4, float>(_Vector<4, float>, _Vector<4, float>, _Vector<4, float>, unsigned char, _Constant int)">;
@@ -1999,6 +2000,8 @@ let Features = "avx512bw", Attributes = [NoThrow, Const, RequiredVectorWidth<512
19992000
}
20002001

20012002
let Features = "avx512bw", Attributes = [NoThrow, Const, Constexpr, RequiredVectorWidth<512>] in {
2003+
def pmaddubsw512 : X86Builtin<"_Vector<32, short>(_Vector<64, char>, _Vector<64, char>)">;
2004+
def pmaddwd512 : X86Builtin<"_Vector<16, int>(_Vector<32, short>, _Vector<32, short>)">;
20022005
def psllv32hi : X86Builtin<"_Vector<32, short>(_Vector<32, short>, _Vector<32, short>)">;
20032006
def pshufhw512 : X86Builtin<"_Vector<32, short>(_Vector<32, short>, _Constant int)">;
20042007
def pshuflw512 : X86Builtin<"_Vector<32, short>(_Vector<32, short>, _Constant int)">;

clang/include/clang/Basic/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ clang_tablegen(arm_mve_builtin_aliases.inc -gen-arm-mve-builtin-aliases
159159
clang_tablegen(arm_sve_builtins.inc -gen-arm-sve-builtins
160160
SOURCE arm_sve.td
161161
TARGET ClangARMSveBuiltins)
162+
clang_tablegen(arm_sve_builtins.json -gen-arm-sve-builtins-json
163+
SOURCE arm_sve.td
164+
TARGET ClangARMSveBuiltinsJSON)
162165
clang_tablegen(arm_sve_builtin_cg.inc -gen-arm-sve-builtin-codegen
163166
SOURCE arm_sve.td
164167
TARGET ClangARMSveBuiltinCG)
@@ -174,6 +177,9 @@ clang_tablegen(arm_sve_streaming_attrs.inc -gen-arm-sve-streaming-attrs
174177
clang_tablegen(arm_sme_builtins.inc -gen-arm-sme-builtins
175178
SOURCE arm_sme.td
176179
TARGET ClangARMSmeBuiltins)
180+
clang_tablegen(arm_sme_builtins.json -gen-arm-sme-builtins-json
181+
SOURCE arm_sme.td
182+
TARGET ClangARMSmeBuiltinsJSON)
177183
clang_tablegen(arm_sme_builtin_cg.inc -gen-arm-sme-builtin-codegen
178184
SOURCE arm_sme.td
179185
TARGET ClangARMSmeBuiltinCG)

0 commit comments

Comments
 (0)