Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/merge upstream 20240417 #312

Merged
merged 2,316 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2316 commits
Select commit Hold shift + click to select a range
c303945
[gn] port e356f68 more
nico Apr 15, 2024
a855eea
[lldb] Fix the standalone Xcode build after #88317
JDevlieghere Apr 15, 2024
21d1770
[NFC] Refactor looping over recomputeLiveIns into function (#88040)
redstar Apr 15, 2024
67571ff
[test][sanitizer] Compile .c file as C
vitalybuka Apr 15, 2024
a1ed652
[test][sanitizer] Temporarily disable test
vitalybuka Apr 15, 2024
6331024
[clang/DependencyScanning/ModuleDepCollector] Refactor part of `makeC…
akyrtzi Apr 15, 2024
6d23463
[docs][mlir] Fix broken links in 'llvm' dialects. (#88704)
Fr4nk1inCs Apr 15, 2024
206acf7
[gn] port 8a7846fe86f95 (C++23 for libcxx, libcxxabi)
nico Apr 15, 2024
466017c
Work around test failure due to new aslr default
adrian-prantl Apr 15, 2024
9cb755c
[Test][JITLink] Save rbx in ExecutionEngine/JITLink/x86-64/ELF_vtune.…
yingcong-wu Apr 15, 2024
c50f7e9
[InstCombine] Remove mul of SPF abs fold (#88675)
nikic Apr 16, 2024
2b06ff5
[RISCV] Expand mul to shNadd x, (slli x, c) in DAGCombine (#88524)
preames Apr 16, 2024
40bbdb6
Revert "[DAG] Fold extract_subvector(insert_subvector(x,y,c1),c2) -->…
alinas Apr 16, 2024
694c444
[gn] port 311ff3917827 more
nico Apr 16, 2024
2ac562a
[Sema] Mark alias/ifunc targets used and consider mangled names
MaskRay Apr 16, 2024
8aa7e37
[InterleavedAccessPass] Get round the unsupported large scalarize vec…
vfdff Apr 16, 2024
d23a850
InstCombine: Increase threadlocal.address alignment if pointee is mor…
MatzeB Apr 16, 2024
2e26ee9
[DWARF] Clarify a variable name. NFC (#88814)
MaskRay Apr 16, 2024
f3a8112
[RISCV][TTI] Scale the cost of ICmp with LMUL (#88235)
arcbbb Apr 16, 2024
dfe12b3
[C API] Support uinc_wrap/udec_wrap in atomicrmw when accessing the b…
Benjins Apr 16, 2024
5b9af38
[RISCV] Provide a more efficient lowering for experimental.cttz.elts.…
topperc Apr 16, 2024
4b22a92
[IndVars] Mark truncs as nuw/nsw (#88686)
nikic Apr 16, 2024
5f68072
[Clang][Sema] Fix issue on requires expression with templated base cl…
jcsxky Apr 16, 2024
568368a
[Support] Make readNext default to unaligned (#88808)
kazutakahirata Apr 16, 2024
b4cf63d
[X86] Remove obsolete tablegen rules for near data in small static co…
aeubanks Apr 16, 2024
82f479b
Add asan tests for libsanitizers. (#88349)
usama54321 Apr 16, 2024
00ae4b7
Revert "[X86] Remove obsolete tablegen rules for near data in small s…
aeubanks Apr 16, 2024
8ee7d97
[flang][cuda] Add fir.cuda_allocate operation (#88586)
clementval Apr 16, 2024
fe48bf6
[lldb][lit] Guard MallocNanoZone envvar in shell tests (#88824)
chelcassanova Apr 16, 2024
65b0cc6
[RISCV] Add FeatureStdExtI to all CPUs in RISCVProcessors.td. NFC (#8…
topperc Apr 16, 2024
4e2d11f
[RISCV] Remove unnecessary NoHasStdExtZicfiss Predicate from cmop.1 a…
topperc Apr 16, 2024
edb0708
[InstCombine] Implement `fcmp (fadd x, 0.0), y` => `fcmp x, y` optimi…
vmishelcs Apr 16, 2024
39016e3
[C++20] [Modules] Don't import non-inline function bodies even if it …
ChuanqiXu9 Apr 16, 2024
f14146f
[RISCV] Correct the spelling of the Zcmop mnemonics. (#88826)
topperc Apr 16, 2024
17d6bf0
[RISCV] Change how MMO is rebuilt in lowerFixedLengthVectorLoadToRVV/…
topperc Apr 16, 2024
6da1966
[RISCV] Add scheduling information for SiFive VCIX (#86093)
michalt Apr 16, 2024
e2c9109
[GlobalISel] Handle more commutable instructions in `commute_constant…
darkbuck Apr 16, 2024
3c6f91e
[clang][dataflow] Fix result object location for builtin `<=>`. (#88726)
martinboehme Apr 16, 2024
7e49b0d
[lldb] Fix nullptr dereference on running x86 binary with x86-disable…
kovdan01 Apr 16, 2024
89071f3
[clang] Drop unaligned from calls to readNext (NFC) (#88842)
kazutakahirata Apr 16, 2024
a169d4c
[LLD] [COFF] Error out if the runtime pseudo relocation function is m…
mstorsjo Apr 16, 2024
dbaa189
[RISCV] Generate more W instructons
wangpc-pp Apr 16, 2024
d26dd58
[StmtProfile] Don't profile the body of lambda expressions
ChuanqiXu9 Apr 16, 2024
a29e85d
[llvm-exegesis] Change preprocessor directives for getCurrentTID
boomanaiden154 Apr 16, 2024
d34a2c2
[RISCV] Make more vector pseudos commutable
wangpc-pp Apr 16, 2024
5b81156
[libc++] Rename __cpu_traits functions (#88741)
ldionne Apr 16, 2024
66cf995
[IPSCCP] Variable not visible at Og: (#77901)
CarlosAlbertoEnciso Apr 16, 2024
d6d84b5
[analyzer] Handle builtin functions in MallocChecker (#88416)
NagyDonat Apr 16, 2024
40dd3aa
[mlir][Interfaces] `Variable` abstraction for `ValueBoundsOpInterface…
matthias-springer Apr 16, 2024
5a46123
Fix missing dtor in function calls accepting trivial ABI structs (#88…
usx95 Apr 16, 2024
9141e1c
[clang][Interp] Gracefully handle bitcasts to non-primitive types
tbaederr Apr 12, 2024
4fc0a99
[AMDGPU] Fix implicit operands of VOPD cndmask instructions (#87788)
jayfoad Apr 16, 2024
f4f772c
[AMDGPU] Stop reserving $vcc_hi in wave32 mode (#87783)
jayfoad Apr 16, 2024
485d556
[clang][Interp][NFC] Add Block::dump()
tbaederr Apr 13, 2024
80fce05
[InstCombine] Fold `minmax (X & NegPow2C, Y & NegPow2C) -> minmax(X, …
dtcxzyw Apr 16, 2024
cce026b
[mlir][test] Fix -Wsign-compare in TestDialect.cpp (NFC)
DamonFool Apr 16, 2024
58b49ce
[clang][Interp] Support __builtin_vectorelements
tbaederr Apr 13, 2024
70fe6ad
[MLIR][OpenMP] Make omp.distribute into a loop wrapper (#87239)
skatrak Apr 16, 2024
668a58b
[flang][runtime] Add ACCESS library procedure (#88517)
tblah Apr 16, 2024
76782e2
[Flang][OpenMP] NFC: Remove old reduction lowering code (#88798)
kiranchandramohan Apr 16, 2024
61717c1
[Verifier] Reject va_start in non-variadic function (#88809)
JonChesterfield Apr 16, 2024
1ca6b44
[mlir][scf] `scf.while` uplifting: optimize op matching (#88813)
Hardcode84 Apr 16, 2024
aae08f4
[MLIR][OpenMP] Make omp.taskloop into a loop wrapper (#87253)
skatrak Apr 16, 2024
ca4cf97
[clang][Interp][NFC] Fix Pointer::isZero() for block pointers
tbaederr Apr 15, 2024
422bf13
[AMDGPU] In VectorLegalizer::Expand, if UnrollVectorOp returns Load, …
choikwa Apr 16, 2024
4dd5180
[Flang][OpenMP][Lower] Split MLIR codegen for clauses and constructs …
skatrak Apr 16, 2024
31424be
[clang][Interp][NFC] Compare std::optionals directly
tbaederr Apr 15, 2024
a831c54
[clang][Interp] Avoid calling invalid functions
tbaederr Apr 15, 2024
b0194d2
[SEH] Ignore async exception flag when the environment is not MSVC (#…
phoebewang Apr 16, 2024
f4960da
Revert "[Verifier] Reject va_start in non-variadic function (#88809)"
JonChesterfield Apr 16, 2024
01f7989
[LoongArch] Use R_LARCH_ALIGN with section symbol (#84741)
MQ-mengqing Apr 16, 2024
c09384e
[clang][Interp] Support MemberExprs pointing to VarDecls
tbaederr Apr 15, 2024
1120d8e
[clang][CodeGen] Add AS for Globals to SPIR & SPIRV datalayouts (#88455)
AlexVlx Apr 16, 2024
36b3c26
[JumpThreading] Thread over BB with only an unconditional branch (#86…
XChy Apr 16, 2024
32b74ca
[clang][Interp] Load value from MemberExpr if required
tbaederr Apr 15, 2024
92e96c7
[X86][GISel] Add DU chain lookups for LOAD & STORE (#87453)
MalaySanghi Apr 16, 2024
ac6b4c6
Reapply "[Verifier] Reject va_start in non-variadic function (#88809)"
JonChesterfield Apr 16, 2024
09e7d75
[clang][Interp] Don't add 'in call to' diagnostics for builtin frames
tbaederr Apr 16, 2024
a8de3ee
[clang][Interp][NFC] Fix some build warnings
tbaederr Apr 16, 2024
c18a3b6
[DAG] Fold extract_subvector(insert_subvector(x,y,c1),c2) --> extract…
RKSimon Apr 16, 2024
71b9f66
[clang][Index] Use canonical function parameter types in USRs (#68222)
sdkrystian Apr 16, 2024
dadcaf8
[mlir][ArmSME] Support decomposing constant splats into ArmSME tiles …
MacDue Apr 16, 2024
711df7b
[vector][mlir] Restrict vector.shuffle to fixed-width vectors (#88733)
banach-space Apr 16, 2024
75244a1
[clang][Interp] Implement align builtins
tbaederr Apr 16, 2024
91dd844
Recommit [RISCV] RISCV vector calling convention (2/2) (#79096) (#87736)
4vtomat Apr 16, 2024
ac1f2de
[MLIR][docs] Mention declarePromisedInterface in Interfaces doc (#88689)
frederik-h Apr 16, 2024
1c076b4
[mlir][tosa] Implement dynamic shape support for tosa.max_pool2d lowe…
sabauma Apr 16, 2024
d4602a9
[gn] port fe48bf672e1ab2
nico Apr 16, 2024
c309dc6
[Clang][Sema] placement new initializes typedef array with correct si…
mahtohappy Apr 16, 2024
34013e7
[X86] Add shuffle tests for BLEND(PERMUTE(X),PERMUTE(Y)) patterns
RKSimon Apr 16, 2024
b73476c
[SLP] Make sure MinVF is a power-of-2 by using PowerOf2Ceil.
fhahn Apr 16, 2024
e272c37
clang; Try to get windows-seh-async-verify.cpp to pass on mac
nico Apr 16, 2024
f69ded0
[clang] Introduce `SemaOpenMP` (#88642)
Endilll Apr 16, 2024
9e7aab9
[CUDA] Rename SM_32 to SM_32_ to work around AIX headers (#88779)
jhuber6 Apr 16, 2024
e7fb49c
Switch release notes links to using markup for github issues; NFC
AaronBallman Apr 16, 2024
9d8be24
Revert "[codegen] Emit missing cleanups for stmt-expr and coro suspen…
usx95 Apr 16, 2024
9ce74d6
[AMDGPU][CodeGen] Improve handling of memcpy for -Os/-Oz compilations…
shiltian Apr 16, 2024
6ab5927
[SLP][NFC]Add a test with the incorrect vectorization of smax with un…
alexey-bataev Apr 16, 2024
26ebe16
[SLP]Fix PR88834: check if unsigned arg can be trunced, being used in…
alexey-bataev Apr 16, 2024
e185978
[VectorCombine][X86] Regenerate shuffle.ll + shuffle-of-casts.ll
RKSimon Apr 16, 2024
e84b2fb
[LV][NFCI]Use integer for cost/trip count calculations instead of dou…
alexey-bataev Apr 16, 2024
254df2e
[VectorCombine][X86] shuffle-of-binops.ll - split off foldShuffleOfBi…
RKSimon Apr 16, 2024
6133878
[OpenACC] Implement `self` clause for compute constructs (#88760)
erichkeane Apr 16, 2024
ac79188
[bazel] Add missing dependency for 1c076b43c294c7d29d99dd50f6853b33a5…
d0k Apr 16, 2024
a0f8191
[libclc] Give built bytecode objects a .bc extension. NFC
frasercrmck Apr 16, 2024
3d118f9
[libclc] Fix dependencies between targets
frasercrmck Apr 16, 2024
60de56c
[ValueTracking] Restore isKnownNonZero parameter order. (#88873)
hvdijk Apr 16, 2024
5a34ff1
fix Polynomial.td doc filename (#88900)
j2kun Apr 16, 2024
b632476
[AST][RecoveryExpr] Fix a crash on c89/c90 invalid InitListExpr (#880…
danix800 Apr 16, 2024
d2d4a1b
Revert "[JumpThreading] Thread over BB with only an unconditional bra…
XChy Apr 16, 2024
22629bb
[libc++] Use availability to rely on key functions for bad_expected_a…
ldionne Apr 16, 2024
9ddedf0
[libc++] Deprecate the C++20 synchronization library before C++20 (#8…
ldionne Apr 16, 2024
bd28889
[RISCV] Add coverage for strength reduction of mul 2^N +/- 3/5/9
preames Apr 16, 2024
1334c03
[flang] Fix test after 4078afc6d23e25df6baedad61b224ef86a94d42f
kparzysz Apr 16, 2024
bf1ad1d
[VectorCombine][X86] Add initial shuffle-of-shuffles.ll test cover fo…
RKSimon Apr 16, 2024
f8e2ec1
Revert "Add asan tests for libsanitizers. (#88349)"
adrian-prantl Apr 16, 2024
8cee94e
[RISCV] Fix obvious copy paste error.
hvdijk Apr 16, 2024
51b42b7
Revert "[Sema] Mark alias/ifunc targets used and consider mangled nam…
joker-eph Apr 16, 2024
9d11128
[libclc] Improve clarity of CMake foreach. NFC.
frasercrmck Apr 16, 2024
2704eba
[flang][runtime] Create CUDA PTX OBJECT library target for F18 runtim…
vzakhari Apr 16, 2024
a79783d
[libc][fenv] Use proxy header (#88787)
robincaloudis Apr 16, 2024
38895e6
[libc][fenv] Remove unnecessary dependencies (#88788)
robincaloudis Apr 16, 2024
1c6b0f7
[RemoveDI] Add support for debug records to debugify (#87383)
SLTozer Apr 16, 2024
45eabd1
[flang,test] Add -resource-dir option to msvc-dependent-lib-flags.f90…
wzssyqa Apr 16, 2024
22e6bf7
[unused-includes][Serialization] Remove unused includes. NFC. (#88790)
vsapsai Apr 16, 2024
b566810
[unused-includes] PCHContainerOperations uses MemoryBufferRef, not Me…
vsapsai Apr 16, 2024
454d449
[OpenMP] Use a memory fence before incrementing the dispatch buffer i…
xingxue-ibm Apr 16, 2024
22bba85
[OpenMP][test][AIX] Make 64 the max number of threads for capacity te…
xingxue-ibm Apr 16, 2024
8137bd9
[memprof] Use CSId to construct MemProfRecord (#88362)
kazutakahirata Apr 16, 2024
8cd8ebe
[MLGO] Use double comparison facilities for reg alloc scoring tests (…
boomanaiden154 Apr 16, 2024
7505452
[clang][Interp] Implement VectorSplat casts
tbaederr Apr 16, 2024
184ba03
[RISCV] Avoid matching 3/5/9 * 2^N as 2^N + 2/4/8 (e.g. 24) (#88937)
preames Apr 16, 2024
4082a75
Improve stack usage to increase recursive initialization depth (#88546)
AaronBallman Apr 16, 2024
aefff77
[clang] Migrate DR tests to `static_assert` (#88611)
Endilll Apr 16, 2024
6b83fe5
[RISCV] Strength reduce mul by 2^n + 2/4/8 + 1 (#88911)
preames Apr 16, 2024
1c2afba
[CodeGen,test] Test llvm-libc style alias attribute with UsingShadowDecl
MaskRay Apr 16, 2024
5462b27
[NFC][libc++][TZDB] Refactors argument order. (#85781)
mordante Apr 16, 2024
a75c9d0
[NFC][libc++] Moves ios_base's forward declaration. (#88027)
mordante Apr 16, 2024
9cd3e92
[libc++][modules] Removes some validation quirks. (#88031)
mordante Apr 16, 2024
41a8305
[libc++] Removes deprecated _LIBCPP_ENABLE_<VERSION>_REMOVED_FEATURES…
mordante Apr 16, 2024
388da6a
[libc++][test] Removes Clang 16 validation. (#88558)
mordante Apr 16, 2024
8e0a4a8
[libc++][doc] Documents -DLIBCXX_INSTALL_MODULES=ON. (#88547)
mordante Apr 16, 2024
002297b
[gn] port 22629bb22a1b
nico Apr 16, 2024
8debcf0
[mlir][sparse] introduce sparse_tensor.iterate operation (#88807)
Apr 16, 2024
b955653
Revert "[mlir][sparse] introduce sparse_tensor.iterate operation" (#8…
Apr 16, 2024
481bd5d
[mlir][sparse] introduce `sparse_tensor.extract_iteration_space` oper…
Apr 16, 2024
edb711d
[InstCombine] Update `vector_reduce_and` tests to actually use `llvm.…
goldsteinn Apr 16, 2024
5c6af60
[Clang][Sema] placement new initializes typedef array with correct si…
mahtohappy Apr 16, 2024
b01879e
[MLIR][XeGPU] Add XeGPU scattered ops (#86594)
chencha3 Apr 16, 2024
9ec8c96
[clang][dataflow] Expose getReferencedDecls and relocate free functio…
bazuzi Apr 16, 2024
bbd64c4
[RISCV] Add coverage for strength reduction of mul as 2^N - 2^M
preames Apr 16, 2024
8885813
[libc++][chrono] Disables a test.
mordante Apr 16, 2024
0665669
[Sema] Mark alias/ifunc targets used and consider mangled names
MaskRay Apr 16, 2024
5422eb0
[memprof] Add another constructor to MemProfReader (#88952)
kazutakahirata Apr 16, 2024
c7657cf
[SLP]Keep externally used GEPs as GEPs, if possible instead of extrac…
alexey-bataev Apr 16, 2024
7d4e8c1
[SLP]Attempt to vectorize long stores, if short one failed.
alexey-bataev Apr 16, 2024
3eff86f
[gn build] Port 9ec8c961664d
llvmgnsyncbot Apr 16, 2024
b0ddbfb
[clang][SPIR-V] Set AS for the SPIR-V logical triple (#88939)
bogner Apr 16, 2024
c9731a3
[mlir] Fix a warning about an extraneous semicolon
kazutakahirata Apr 16, 2024
0a789ea
Fix test from #83124 and #88902
erichkeane Apr 16, 2024
9a0a28f
[Libomptarget] Rework Record & Replay to be a plugin member (#88928)
jhuber6 Apr 16, 2024
ed7038e
specify dialect in polynomial docs (#88933)
j2kun Apr 16, 2024
13ea36d
Fix UPCAddressofArraySubscriptGadget::getClaimedVarUseSites() (#88406)
juanvazquez Apr 16, 2024
f430e37
[llvm] Drop unaligned from calls to readNext (NFC) (#88841)
kazutakahirata Apr 16, 2024
281d716
[X86] Change how we treat functions with explicit sections as small/l…
aeubanks Apr 16, 2024
191be2a
update_test_checks: pre-commit a new test
nhaehnle Apr 8, 2024
e770249
update_test_checks: add new test
nhaehnle Apr 3, 2024
377a276
update_test_checks: remove an unused function
nhaehnle Apr 3, 2024
9ec6c5d
[flang][cuda] Add fir.deallocate operation (#88839)
clementval Apr 16, 2024
34777c2
[VPlan] Don't mark VPBlendRecipe as phi-like.
fhahn Apr 16, 2024
b6bd41d
[InstCombine] Add canonicalization of `sitofp` -> `uitofp nneg`
goldsteinn Mar 21, 2024
885b8d9
[RISCV] Enable mul strength reduction for XTheadBa
preames Apr 16, 2024
c6e0162
Revert "Reapply "[LV] Improve AnyOf reduction codegen. (#78304)""
aeubanks Apr 16, 2024
266b2a2
[ValueTracking] Add tests for `computeKnownFPClass` of `llvm.vector.r…
goldsteinn Apr 10, 2024
9eeae44
[ValueTracking] Implement `computeKnownFPClass` for `llvm.vector.redu…
goldsteinn Apr 10, 2024
d19bd05
Clang Release Notes: Fix reST formatting
hubert-reinterpretcast Apr 16, 2024
3074060
[memprof] Use SizeIs (NFC) (#88984)
kazutakahirata Apr 16, 2024
b1385db
[libc][NFC] fix typo in fenv type proxy headers (#88982)
michaelrj-google Apr 16, 2024
8aa061f
[mlir][sparse][NFC] switching to using `let argments/results` in td f…
Apr 16, 2024
9067070
[RISCV] Re-separate unaligned scalar and vector memory features in th…
topperc Apr 16, 2024
988ffd0
Add asan tests for libsanitizers. (#88349) (#88962)
usama54321 Apr 16, 2024
50a3717
[X86] Fix instr desc of CFCMOV's 'mr' variants
darkbuck Apr 16, 2024
1bc0921
[bazel] Add support for lldb-server (#88989)
keith Apr 16, 2024
be50a25
Update foldFMulReassoc to respect absent fast-math flags (#88589)
Apr 16, 2024
ce5381e
[mlir][vector] Determine vector sizes from the result shape in the ca…
pashu123 Apr 17, 2024
8c9f45e
[ARM64EC] Fix arm_neon.h on ARM64EC. (#88572)
efriedma-quic Apr 17, 2024
8c9d814
[mlir][complex] Fastmath flag for complex angle (#88658)
Lewuathe Apr 17, 2024
efd6055
Revert "[SLP]Attempt to vectorize long stores, if short one failed."
nikic Apr 17, 2024
7c26889
[Sparc] Fix instr desc of special register stores
darkbuck Apr 16, 2024
62853a2
[TableGen][InstrInfoEmitter] Count sub-operands on def operands
darkbuck Apr 16, 2024
d0f718e
Revert "Improve stack usage to increase recursive initialization dept…
vitalybuka Apr 17, 2024
1f35e72
[clang][builtin] Implement __builtin_allow_runtime_check (#87568)
vitalybuka Apr 17, 2024
52a4d81
[BOLT][NFC] Remove unused function (#89009)
maksfb Apr 17, 2024
0af8cae
[BOLT][NFC] Remove another unused function (#89011)
maksfb Apr 17, 2024
f40f4fc
[clang analysis] ExprMutationAnalyzer support recursive forwarding re…
HerrCai0907 Apr 17, 2024
3204f3e
[RISCV] Convert VTYPE operand check to assert in RISCVInsertVSETVLI. NFC
lukel97 Apr 17, 2024
c81e5fa
[RISCV] Add CFI information for vector callee-saved registers (#86811)
4vtomat Apr 17, 2024
e6ecff8
[C++20] [Modules] Add Release Notes and Documents for Reduced BMI
ChuanqiXu9 Apr 17, 2024
eafd515
[clang][deps] Support single-file mode for all formats (#88764)
jansvoboda11 Apr 17, 2024
6a4eaf9
[clang][deps] Add `-o` flag to specify output path (#88767)
jansvoboda11 Apr 17, 2024
f71e25b
[memprof] Simplify IndexedMemProfRecord::operator== (NFC) (#88986)
kazutakahirata Apr 17, 2024
fca2a49
[RISCV] Simplify FindRegWithEncoding in copyPhysRegVector. NFC (#89001)
topperc Apr 17, 2024
a6fcbcc
[libc++][TZDB] Improves time zone format specifiers. (#85797)
mordante Apr 17, 2024
e096c14
[analyzer] Fix a security.cert.env.InvalidPtr crash
steakhal Apr 17, 2024
024281d
[analyzer] Harden security.cert.env.InvalidPtr checker fn matching
steakhal Apr 17, 2024
b851c7f
[clang][dataflow] Support `StmtExpr` in `PropagateResultObject()`. (#…
martinboehme Apr 17, 2024
4714883
[mlir][python] Add `walk` method to PyOperationBase (#87962)
uenoku Apr 17, 2024
1bccbe1
[clang][dataflow] Treat `BuiltinBitCastExpr` correctly in `PropagateR…
martinboehme Apr 17, 2024
64c6495
[clang][NFC] Move `Sema::SkipBodyInfo` into namespace scope
Endilll Apr 17, 2024
16f1887
CompilerRT: Normalize COMPILER_RT_DEFAULT_TARGET_TRIPLE (#88835)
wzssyqa Apr 17, 2024
b090569
[RISCV] Support Zama16b1p0 (#88474)
jaidTw Apr 17, 2024
d35a643
Revert "Fix test from #83124 and #88902"
metaflow Apr 17, 2024
dbda478
Revert "[Clang][Sema] placement new initializes typedef array with co…
metaflow Apr 17, 2024
dd84d23
Revert "[Clang][Sema] placement new initializes typedef array with co…
metaflow Apr 17, 2024
bc3620d
AMDGPU: Move libcall simplify into PeepholeEP (#88853)
arsenm Apr 17, 2024
e11b17a
[clang][NFC] Refactor `Sema::CheckedConversionKind`
Endilll Apr 17, 2024
49b209d
Revert "[Libomptarget] Rework Record & Replay to be a plugin member" …
jplehr Apr 17, 2024
9f3334e
[mlir][SparseTensor] Add missing dependent dialect to pass (#88870)
matthias-springer Apr 17, 2024
889dfd4
[libc][msan] Fix "non-constexpr function '__msan_unpoison' cannot be …
gchatelet Apr 17, 2024
17b86d5
[X86][NFC] Add test cases for pr88958
phoebewang Apr 17, 2024
d1a69e4
Move gfni for bitreverse check out of SSSE3. (#88938)
shamithoke Apr 17, 2024
a16bb07
[lldb][test] Improve invalid compiler error message
DavidSpickett Apr 17, 2024
d9a5aa8
[PatternMatch] Do not accept undef elements in m_AllOnes() and friend…
nikic Apr 17, 2024
971237d
[flang] Retain internal and BIND(C) host procedure link in FIR (#87796)
jeanPerier Apr 17, 2024
b512df6
[SPIR-V] Improve Tablegen instruction selection and account for a poi…
VyacheslavLevytskyy Apr 17, 2024
42d801d
[SPIR-V] Account for zext in a llvm intrinsic call (#88903)
VyacheslavLevytskyy Apr 17, 2024
fa61f06
Fix threadprivate variable scope inside BLOCK construct. (#88921)
harishch4 Apr 17, 2024
cbe148b
[LV][NFC] Remove the declaration of function `fixReduction`. (#88491)
Mel-Chen Apr 17, 2024
a9bafe9
[VPlan] Split VPWidenMemoryInstructionRecipe (NFCI). (#87411)
fhahn Apr 17, 2024
f4737a2
update_test_checks: keep names stable with generated functions (#87988)
nhaehnle Apr 17, 2024
3eb0ba3
[MLIR][Flang][OpenMP] Make omp.simdloop into a loop wrapper (#87365)
skatrak Apr 17, 2024
16b0be6
[MLIR][OpenMP] NFC: Remove LoopControl parsing/printing code (#88909)
skatrak Apr 17, 2024
a020199
[RISCV] Assert only valid AVLs in doLocalPostpass are X0 or virtual r…
lukel97 Apr 17, 2024
a634f3e
[RemoveDIs] Update update_test_checks script to recognize dbg_records…
SLTozer Apr 17, 2024
792d437
[clang-tidy NFC] Fix a typo in docs for sizeof-expression (#88912)
NagyDonat Apr 17, 2024
5f3e106
[lldb/linux] Make sure the process continues running after a detach (…
labath Apr 17, 2024
c8dca5b
[Flang][OpenMP][Lower] Refactor lowering of compound constructs (#87070)
skatrak Apr 17, 2024
06eedff
[analyzer] Use explicit call description mode in iterator checkers (#…
NagyDonat Apr 17, 2024
631c5e8
[mlir] fix intNEQValue summary (#89029)
MbjYjbpivj Apr 17, 2024
d57907d
[libc++] Add missing iterator requirement checks in the PSTL (#88127)
ldionne Apr 17, 2024
6c78530
[X86] vector-shuffle-combining-sse41.ll - add missing AVX1/2/512 chec…
RKSimon Apr 17, 2024
37b26bf
[mlir] transform.apply_patterns support more config options (#88484)
ftynse Apr 17, 2024
4536ad4
[RISCV] Fix clang-tidy warning about else after return. NFC
lukel97 Apr 17, 2024
86a7828
[TailDuplicator] Add maximum predecessors and successors to consider …
DianQK Apr 17, 2024
915c84b
[lldb] Fix evaluation of expressions with static initializers (#89063)
labath Apr 17, 2024
79726ef
[VP] Correct lowering of predicated fma and faddmul to avoid strictfp…
kpneal Apr 17, 2024
7b8625e
[AMDGPU][Docs] Fix broken link to HRF memory model reference (#88696)
ritter-x2a Apr 17, 2024
971ec1f
[Inline] Regenerate inline-switch-default-2.ll (NFC)
DianQK Apr 17, 2024
73140da
[mlir] expose transform dialect symbol merge to python (#87690)
ftynse Apr 17, 2024
3b3e047
Merge commit '73140daebbf522dbb14dc4b2f3c67dc0aa1a62dd' into feature/…
kaz7 Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .ci/monolithic-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o pipefail

MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
rm -rf ${BUILD_DIR}
rm -rf "${BUILD_DIR}"

ccache --zero-stats

Expand All @@ -37,8 +37,8 @@ projects="${1}"
targets="${2}"

echo "--- cmake"
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
Expand Down
6 changes: 3 additions & 3 deletions .ci/monolithic-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o pipefail
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}"
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"

rm -rf ${BUILD_DIR}
rm -rf "${BUILD_DIR}"

if [[ -n "${CLEAR_CACHE:-}" ]]; then
echo "clearing sccache"
Expand All @@ -37,14 +37,14 @@ projects="${1}"
targets="${2}"

echo "--- cmake"
pip install -q -r ${MONOREPO_ROOT}/mlir/python/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt

# The CMAKE_*_LINKER_FLAGS to disable the manifest come from research
# on fixing a build reliability issue on the build server, please
# see https://github.com/llvm/llvm-project/pull/82393 and
# https://discourse.llvm.org/t/rfc-future-of-windows-pre-commit-ci/76840/40
# for further information.
cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
Expand Down
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ clang/test/AST/Interp/ @tbaederr
/mlir/**/LLVMIR/**/BasicPtxBuilderInterface* @grypp
/mlir/**/NVVM*/ @grypp

# MLIR Python Bindings
/mlir/test/python/ @makslevental @stellaraccident
/mlir/python/ @makslevental @stellaraccident

# BOLT
/bolt/ @aaupov @maksfb @rafaelauler @ayermolo @dcci

Expand All @@ -125,3 +129,6 @@ clang/test/AST/Interp/ @tbaederr
/llvm/**/TextAPI/ @cyndyishida
/clang/**/InstallAPI/ @cyndyishida
/clang/tools/clang-installapi/ @cyndyishida

# ExtractAPI
/clang/**/ExtractAPI @daniel-grumberg
32 changes: 17 additions & 15 deletions .github/workflows/email-check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Check for private emails used in PRs"

on:
pull_request_target:
pull_request:
types:
- opened

Expand All @@ -10,8 +10,6 @@ permissions:

jobs:
validate_email:
permissions:
pull-requests: write
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
Expand All @@ -25,20 +23,24 @@ jobs:
run: |
git log -1
echo "EMAIL=$(git show -s --format='%ae' HEAD~0)" >> $GITHUB_OUTPUT
# Create empty comment file
echo "[]" > comments

- name: Validate author email
if: ${{ endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') }}
uses: actions/github-script@v7
env:
EMAIL: ${{ steps.author.outputs.EMAIL }}
COMMENT: >-
⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.<br/>
Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account.<br/>
See [LLVM Discourse](https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it) for more information.
run: |
cat << EOF > comments
[{"body" : "$COMMENT"}]
EOF

- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
if: always()
with:
script: |
const { EMAIL } = process.env
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account.
See [LLVM Discourse](https://discourse.llvm.org/t/hidden-emails-on-github-should-we-do-something-about-it) for more information.
`})
name: workflow-args
path: |
comments
15 changes: 13 additions & 2 deletions .github/workflows/issue-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Comment on an issue

on:
workflow_run:
workflows: ["Check code formatting"]
workflows:
- "Check code formatting"
- "Check for private emails used in PRs"
types:
- completed

Expand Down Expand Up @@ -31,7 +33,7 @@ jobs:
script: |
var fs = require('fs');
const comments = JSON.parse(fs.readFileSync('./comments'));
if (!comments) {
if (!comments || comments.length == 0) {
return;
}

Expand Down Expand Up @@ -77,6 +79,15 @@ jobs:
}
const gql_result = await github.graphql(gql_query, gql_variables);
console.log(gql_result);
// If the branch for the PR was deleted before this job has a chance
// to run, then the ref will be null. This can happen if someone:
// 1. Rebase the PR, which triggers some workflow.
// 2. Immediately merges the PR and deletes the branch.
// 3. The workflow finishes and triggers this job.
if (!gql_result.repository.ref) {
console.log("Ref has been deleted");
return;
}
console.log(gql_result.repository.ref.associatedPullRequests.nodes);

var pr_number = 0;
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/libcxx-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ env:
# LLVM POST-BRANCH bump version
# LLVM POST-BRANCH add compiler test for ToT - 1, e.g. "Clang 17"
# LLVM RELEASE bump remove compiler ToT - 3, e.g. "Clang 15"
LLVM_HEAD_VERSION: "18" # Used compiler, update POST-BRANCH.
LLVM_PREVIOUS_VERSION: "17"
LLVM_OLDEST_VERSION: "16"
LLVM_HEAD_VERSION: "19" # Used compiler, update POST-BRANCH.
LLVM_PREVIOUS_VERSION: "18"
LLVM_OLDEST_VERSION: "17"
GCC_STABLE_VERSION: "13"
LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-18"
LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-19"
CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"


Expand All @@ -59,8 +59,8 @@ jobs:
'generic-cxx26',
'generic-modules'
]
cc: [ 'clang-18' ]
cxx: [ 'clang++-18' ]
cc: [ 'clang-19' ]
cxx: [ 'clang++-19' ]
clang_tidy: [ 'ON' ]
include:
- config: 'generic-gcc'
Expand Down Expand Up @@ -100,22 +100,22 @@ jobs:
'generic-cxx20',
'generic-cxx23'
]
cc: [ 'clang-18' ]
cxx: [ 'clang++-18' ]
cc: [ 'clang-19' ]
cxx: [ 'clang++-19' ]
clang_tidy: [ 'ON' ]
include:
- config: 'generic-gcc-cxx11'
cc: 'gcc-13'
cxx: 'g++-13'
clang_tidy: 'OFF'
- config: 'generic-cxx23'
cc: 'clang-16'
cxx: 'clang++-16'
clang_tidy: 'OFF'
- config: 'generic-cxx23'
cc: 'clang-17'
cxx: 'clang++-17'
clang_tidy: 'OFF'
- config: 'generic-cxx26'
cc: 'clang-18'
cxx: 'clang++-18'
clang_tidy: 'ON'
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.config }}
Expand Down Expand Up @@ -186,8 +186,8 @@ jobs:
- name: ${{ matrix.config }}
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
env:
CC: clang-18
CXX: clang++-18
CC: clang-19
CXX: clang++-19
ENABLE_CLANG_TIDY: "OFF"
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
if: always()
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-code-format.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: "Check code formatting"

permissions:
contents: read

on:
pull_request:
branches:
Expand Down Expand Up @@ -33,7 +37,7 @@ jobs:
- name: Fetch code formatting utils
uses: actions/[email protected]
with:
reository: ${{ github.repository }}
repository: ${{ github.repository }}
ref: ${{ github.base_ref }}
sparse-checkout: |
llvm/utils/git/requirements_formatting.txt
Expand Down Expand Up @@ -73,7 +77,9 @@ jobs:
# to take advantage of the new --diff_from_common_commit option
# explicitly in code-format-helper.py and not have to diff starting at
# the merge base.
# Create an empty comments file so the pr-write job doesn't fail.
run: |
echo "[]" > comments &&
python ./code-format-tools/llvm/utils/git/code-format-helper.py \
--write-comment-to-file \
--token ${{ secrets.GITHUB_TOKEN }} \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-lit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
cd llvm/utils/lit
# Remove 'dev' suffix from lit version.
sed -i 's/ + "dev"//g' lit/__init__.py
python3 setup.py sdist
python3 setup.py sdist bdist_wheel
- name: Upload lit to test.pypi.org
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
62 changes: 37 additions & 25 deletions bolt/docs/BAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ and [BoltAddressTranslation.cpp](/bolt/lib/Profile/BoltAddressTranslation.cpp).
### Layout
The general layout is as follows:
```
Hot functions table header
|------------------|
| Function entry |
| |--------------| |
| | OutOff InOff | |
| |--------------| |
~~~~~~~~~~~~~~~~~~~~
Hot functions table
Cold functions table

Cold functions table header
Functions table:
|------------------|
| Function entry |
| |--------------| |
| | OutOff InOff | |
| |--------------| |
~~~~~~~~~~~~~~~~~~~~
| |
| Address |
| translation |
| table |
| |
| Secondary entry |
| points |
|------------------|

```

### Functions table
Expand All @@ -74,19 +74,21 @@ internal offsets, and between hot and cold fragments, to better spread deltas
and save space.

Hot indices are delta encoded, implicitly starting at zero.
| Entry | Encoding | Description |
| ------ | ------| ----------- |
| `Address` | Continuous, Delta, ULEB128 | Function address in the output binary |
| `HotIndex` | Delta, ULEB128 | Cold functions only: index of corresponding hot function in hot functions table |
| `FuncHash` | 8b | Hot functions only: function hash for input function |
| `NumBlocks` | ULEB128 | Hot functions only: number of basic blocks in the original function |
| `NumEntries` | ULEB128 | Number of address translation entries for a function |
| `EqualElems` | ULEB128 | Hot functions only: number of equal offsets in the beginning of a function |
| `BranchEntries` | Bitmask, `alignTo(EqualElems, 8)` bits | Hot functions only: if `EqualElems` is non-zero, bitmask denoting entries with `BRANCHENTRY` bit |

Function header is followed by `EqualElems` offsets (hot functions only) and
`NumEntries-EqualElems` (`NumEntries` for cold functions) pairs of offsets for
current function.
| Entry | Encoding | Description | Hot/Cold |
| ------ | ------| ----------- | ------ |
| `Address` | Continuous, Delta, ULEB128 | Function address in the output binary | Both |
| `HotIndex` | Delta, ULEB128 | Index of corresponding hot function in hot functions table | Cold |
| `FuncHash` | 8b | Function hash for input function | Hot |
| `NumBlocks` | ULEB128 | Number of basic blocks in the original function | Hot |
| `NumSecEntryPoints` | ULEB128 | Number of secondary entry points in the original function | Hot |
| `ColdInputSkew` | ULEB128 | Skew to apply to all input offsets | Cold |
| `NumEntries` | ULEB128 | Number of address translation entries for a function | Both |
| `EqualElems` | ULEB128 | Number of equal offsets in the beginning of a function | Both |
| `BranchEntries` | Bitmask, `alignTo(EqualElems, 8)` bits | If `EqualElems` is non-zero, bitmask denoting entries with `BRANCHENTRY` bit | Both |

Function header is followed by *Address Translation Table* with `NumEntries`
total entries, and *Secondary Entry Points* table with `NumSecEntryPoints`
entries (hot functions only).

### Address translation table
Delta encoding means that only the difference with the previous corresponding
Expand All @@ -98,8 +100,18 @@ entry is encoded. Input offsets implicitly start at zero.
| `BBHash` | Optional, 8b | Basic block hash in input binary | BB |
| `BBIdx` | Optional, Delta, ULEB128 | Basic block index in input binary | BB |

The table omits the first `EqualElems` input offsets where the input offset
equals output offset.

`BRANCHENTRY` bit denotes whether a given offset pair is a control flow source
(branch or call instruction). If not set, it signifies a control flow target
(basic block offset).
`InputAddr` is omitted for equal offsets in input and output function. In this
case, `BRANCHENTRY` bits are encoded separately in a `BranchEntries` bitvector.

### Secondary Entry Points table
The table is emitted for hot fragments only. It contains `NumSecEntryPoints`
offsets denoting secondary entry points, delta encoded, implicitly starting at zero.
| Entry | Encoding | Description |
| ----- | -------- | ----------- |
| `SecEntryPoint` | Delta, ULEB128 | Secondary entry point offset |
1 change: 0 additions & 1 deletion bolt/include/bolt/Core/AddressMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef BOLT_CORE_ADDRESS_MAP_H
#define BOLT_CORE_ADDRESS_MAP_H

#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCSymbol.h"

#include <optional>
Expand Down
3 changes: 2 additions & 1 deletion bolt/include/bolt/Core/BinaryContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ class BinaryContext {

public:
static Expected<std::unique_ptr<BinaryContext>>
createBinaryContext(const ObjectFile *File, bool IsPIC,
createBinaryContext(Triple TheTriple, StringRef InputFileName,
SubtargetFeatures *Features, bool IsPIC,
std::unique_ptr<DWARFContext> DwCtx,
JournalingStreams Logger);

Expand Down
2 changes: 0 additions & 2 deletions bolt/include/bolt/Core/BinaryData.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <string>
#include <vector>

Expand Down Expand Up @@ -108,7 +107,6 @@ class BinaryData {
std::vector<MCSymbol *> &getSymbols() { return Symbols; }

bool hasName(StringRef Name) const;
bool hasNameRegex(StringRef Name) const;
bool nameStartsWith(StringRef Prefix) const;

bool hasSymbol(const MCSymbol *Symbol) const {
Expand Down
1 change: 0 additions & 1 deletion bolt/include/bolt/Core/BinaryDomTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "bolt/Core/BinaryBasicBlock.h"
#include "llvm/IR/Dominators.h"
#include "llvm/Support/GenericDomTreeConstruction.h"

namespace llvm {
namespace bolt {
Expand Down
Loading