Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
425 commits
Select commit Hold shift + click to select a range
aad6997
[RISCV] Fold PseudoVMV_V_V with undef passthru, handling policy (#106…
lukel97 Sep 5, 2024
ad89e61
[MLIR][Python] Fix detached operation coming from `IfOp` constructor …
matth2k Sep 5, 2024
41c11ea
[HLSL] Remove variables that are used only in assert (#107299)
hekota Sep 5, 2024
abbcfff
Revert "[flang][cuda] Add c_devptr and bypass output semantic check" …
clementval Sep 5, 2024
1465e23
[RISCV][llvm] Handle `ptr` element type in `lowerDeinterleaveIntrinsi…
4vtomat Sep 5, 2024
da8fb7f
[clang][RISCV] Fix typo of vector crypto in SemaRISCV.cpp. NFC (#106485)
4vtomat Sep 5, 2024
845d8d9
[RISCV][TTI] Add cost of typebased cast VPIntrinsics with functionalO…
ElvisWang123 Sep 5, 2024
76be3a0
[DirectX] Fix crash in DXILOpBuilder for vector types (#107334)
bogner Sep 5, 2024
787fc81
[DirectX] Clean up trailing whitespace. NFC (#107335)
bogner Sep 5, 2024
d18ca27
Reapply "[llvm-lit] Add precommit test to verify current behavior of …
Harini0924 Sep 5, 2024
16cda01
[AMDGPU] V_SET_INACTIVE optimizations (#98864)
perlfu Sep 5, 2024
96a5aab
[NFC][sanitizer] Thread safety annotation for Symbolizer
vitalybuka Sep 5, 2024
aafaa69
[Target] Use templated MachineFunction::getSubtarget in *CallingConv.…
topperc Sep 5, 2024
0c1500e
[RISCV] Fix another RV32 Zdinx load/store addressing corner case.
topperc Sep 5, 2024
77f0488
[AArch64] Combine zext of deinterleaving shuffle. (#107201)
davemgreen Sep 5, 2024
a7697c8
[ARM] Do not assume alignment in vld1xN and vst1xN intrinsics (#106984)
nikic Sep 5, 2024
3d72957
[RISCV] Model dest EEW and fix peepholes not checking EEW (#105945)
lukel97 Sep 5, 2024
f006246
[CodeGen] Add generic INIT_UNDEF pseudo (#106744)
nikic Sep 5, 2024
f1ac334
[Clang][SemaCXX] Preserve qualifiers in derived-to-base cast in defau…
MitalAshok Sep 5, 2024
cf1ad28
[clang][ExtractAPI] Handle AttributedType fragments transparently (#1…
daniel-grumberg Sep 5, 2024
4137309
[Clang] Warn with -Wpre-c23-compat instead of -Wpre-c++17-compat for …
MitalAshok Sep 5, 2024
3e47883
Recover performance loss after PagedVector introduction (#67972)
ktf Sep 5, 2024
b206bf0
Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake (#106407)
kwk Sep 5, 2024
3413f95
[AArch64] Add a few extra two-step zext shuffle tests. NFC
davemgreen Sep 5, 2024
a95b212
[DWARF] Don't search scope chain to find DISubprogram for prologues (…
jmorse Sep 5, 2024
03d5b7c
[MemorySanitizer] Don't create types pointers (NFC)
nikic Sep 5, 2024
071606a
[RISCV] Remove RV32 FIXMEs completed in #107290. NFC
lukel97 Sep 5, 2024
5ee7395
[AMDGPU] Add image_atomic_fmin/fmax as aliases for GFX12 (#107242)
jayfoad Sep 5, 2024
d0278cf
[RISCV] Remove some more completed FIXMEs from tests. NFC
lukel97 Sep 5, 2024
3299bc8
[DWARF] Identify prologue_end by instruction rather than DILocation (…
jmorse Sep 5, 2024
95684af
[IR][ARM64EC][NFC] Clean up and document ARM64EC mangling helpers. (#…
cjacek Sep 5, 2024
87b4b64
Fix a typo in CheckExprLifetime.cpp, NFC
hokein Sep 5, 2024
3e07090
Fix llvm-else-after-return clang-tidy warning in CheckExprLifetime.cp…
hokein Sep 5, 2024
07bef02
[OpenMPOpt] Initialize OpenMPIRBuilderConfig::IsGPU flag (#104456)
skatrak Sep 5, 2024
1424336
[OpenMP][Flang] Fix dynamic-extent array mapping (#107247)
TIFitis Sep 5, 2024
b44d9e5
VPlanTransforms: fix style after cursory reading (NFC) (#105827)
artagnon Sep 5, 2024
fa38527
[libc++] Add ABI tests for unordered_{map,set} (#107200)
philnik777 Sep 5, 2024
1104056
[X86] preferABDSToABSWithNSW - use ABDS for i32/i64 if we have CMOV
RKSimon Sep 5, 2024
84cf3a5
[Clang] CWG2749: relational operators involving pointers to void (#93…
MitalAshok Sep 5, 2024
d6832a6
[libc++][modules] Modularize <cstddef> (#107254)
ldionne Sep 5, 2024
485d191
[gn build] Port d6832a611a7c
llvmgnsyncbot Sep 5, 2024
2a07509
[Clang] Add __builtin_is_within_lifetime to implement P2641R4's std::…
MitalAshok Sep 5, 2024
e4fdbcc
[libc++] Add miscellaneous missing includes
ldionne Sep 4, 2024
2c3da17
LIR: strip unused LAA header dependency (NFC) (#107382)
artagnon Sep 5, 2024
3d01f0a
[mlir][gpu] Add 'cluster_stride' attribute to gpu.subgroup_reduce (#1…
andfau-amd Sep 5, 2024
7d1a681
[SystemZ] Use APInt::getAllOnes()
nikic Sep 5, 2024
67e19e5
[flang] Set isSigned=true for negative constant (NFC)
nikic Sep 5, 2024
9e9971b
[PatternMatchTest] Use APInt::getAllOnes() (NFC)
nikic Sep 5, 2024
eae1d61
[X86] Add test coverage for #107289
RKSimon Sep 5, 2024
1a12647
[libc++][math] Add `constexpr` for `std::signbit()` (#105946)
robincaloudis Sep 5, 2024
7f0c5b0
[AArch64]Fix invalid use of ld1/st1 in stack alloc (#105518)
Lukacma Sep 5, 2024
80cd214
[mlir][llvm] Add `externally_initialized` support to GlobalOp
Sep 5, 2024
0ba7818
[X86] LowerSelect - generalize "select icmp(x,0), lhs, rhs" folding p…
RKSimon Sep 5, 2024
233ed51
[LLD][COFF][NFC] Use is64Bit in Baserel::getDefaultType. (#107378)
cjacek Sep 5, 2024
9707b98
[ConstantRange] Perform increment on APInt (NFC)
nikic Sep 5, 2024
9e85efb
[ConstantRangeTest] Set APInt signed flags where needed (NFC)
nikic Sep 5, 2024
5024dff
[libc++][ci] Add a test configuration with an incomplete sysroot (#10…
mstorsjo Sep 5, 2024
16dc65b
[mlgo] Fix test post - #106744
mtrofin Sep 5, 2024
bded3b3
[llvm][AArch64] Improve the cost model for i128 div's (#107306)
jroelofs Sep 5, 2024
63e8a1b
[SLP] Enable reordering for non-power-of-two vectors (#106638)
preames Sep 5, 2024
3b19e48
[flang] Warn when F128 is unsupported (#102147) (#106957)
tblah Sep 5, 2024
e80f489
[SCEV] BECount to zero if `((-C + (C smax %x)) /u %x), C > 0` holds
antoniofrighetto Sep 5, 2024
7eca38c
Reland "[clang] Add nuw attribute to GEPs (#105496)" (#107257)
hazzlim Sep 5, 2024
122874c
[X86] Fold scalar_to_vector(shift(x,imm)) -> vshift(scalar_to_vector(…
RKSimon Sep 5, 2024
0c8d6df
Fix handling of FP-classify where the last arg fails to convert
erichkeane Sep 5, 2024
aea3b0f
[ARM] Avoid repeated hash lookups (NFC) (#107356)
kazutakahirata Sep 5, 2024
abfb340
[Analysis] Avoid repeated hash lookups (NFC) (#107357)
kazutakahirata Sep 5, 2024
0593b95
[CGOpenMPRuntime] Avoid repeated hash lookups (NFC) (#107358)
kazutakahirata Sep 5, 2024
be427df
[Clang][Parser] Accept P2741R3 (static_assert with user-generated mes…
MitalAshok Sep 5, 2024
13013bd
[RISCV] Don't cost Fmv for Zfinx in isFPImmLegal. (#107361)
topperc Sep 5, 2024
56b2be4
[X86] Fold scalar_to_vector(funnel(x,y,imm)) -> funnel(scalar_to_vect…
RKSimon Sep 5, 2024
2f6e4ed
[IR] Check parameters of target extension types on construction (#107…
jayfoad Sep 5, 2024
fc3e6a8
DAG: Handle lowering unordered compare with inf (#100378)
arsenm Sep 5, 2024
c2018fa
[NFC][Support] Refactor FormatVariadic code. (#106610)
jurahul Sep 5, 2024
be1958f
[LLVM][CodeGen][SVE] Implement nxvbf16 fpextend to nxvf32/nxvf64. (#1…
paulwalker-arm Sep 5, 2024
62e6c1e
[lld/mac] Allow -segprot having stricter initprot than maxprot on mac…
nico Sep 5, 2024
ce36480
[RISCV] Update V0Defs after moving Src in peepholes (#107359)
lukel97 Sep 5, 2024
8e28f04
[libc] Correct the entrypoints list for ARM/darwin (#107331)
michaelrj-google Sep 5, 2024
2ed510d
[LLDB][Minidump] Extend the minidump x86_64 registers to include fs_b…
Jlalond Sep 5, 2024
953af0e
[libc++][NFC] Increase consistency for namespace closing comments
ldionne Sep 5, 2024
eee2f02
[libc++][modules] Get rid of <cstddef> dependency in __datasizeof (#1…
ldionne Sep 5, 2024
5edede2
[DXIL] Add sign intrinsic part 2 (#101988)
tgymnich Sep 5, 2024
0818c28
[WebAssembly] Simplify a switch-case in CFGStackify (NFC) (#107360)
aheejin Sep 5, 2024
18ad98e
[lldb] Fix a format string in ClangASTSource (#107325)
bulbazord Sep 5, 2024
91a3c6f
[AArch64] Remove redundant COPY from loadRegFromStackSlot (#107396)
sdesmalen-arm Sep 5, 2024
54194e1
[RISCV][SiFive7] Change `Latency` of VCIX to the default (#106497)
michalt Sep 5, 2024
cf2ecc7
[LV] Remove over-aggressive assert from 3fe6a064f15c.
fhahn Sep 5, 2024
311ac63
[NFC][SystemZ][z/OS] Rename autoconversion-related functions to be le…
abhina-sree Sep 5, 2024
5e25291
[SandboxIR][Bench] Initial patch for performance tracking (#107296)
Sep 5, 2024
3815f47
[mlir][Transforms] Dialect conversion: Make materializations optional…
matthias-springer Sep 5, 2024
ebc7f55
[llvm][SystemZ] Fix parsing of `.cfi_undefined` with percent-less reg…
alexrp Sep 5, 2024
bedac64
[llvm][SystemZ] Recognize `@GOTENT` modifier in assembler. (#107038)
alexrp Sep 5, 2024
797f011
[flang][OpenMP] Make lastprivate work with reallocated variables (#10…
luporl Sep 5, 2024
4d819da
[compiler-rt] Simplify definition of uptr
arichardson Sep 5, 2024
b2dbcf4
[Presburger] Avoid repeated hash lookups (NFC) (#107426)
kazutakahirata Sep 5, 2024
7cf18ff
[LLVMIR] Avoid repeated hash lookups (NFC) (#107428)
kazutakahirata Sep 5, 2024
92e75c0
Reland [flang][cuda] Add c_devptr and bypass output semantic check (#…
clementval Sep 5, 2024
d219c63
[Clang] Fix crash with `source_location` in lambda declarators. (#107…
cor3ntin Sep 5, 2024
1892666
[MLIR][SCF] Loop pipelining fails on failed predication (no assert) (…
sjw36 Sep 5, 2024
3f1d0e1
[flang] Silence warning in module file (#107421)
klausler Sep 5, 2024
5e1e6a6
[TableGen] Avoid repeated hash lookups (NFC) (#107429)
kazutakahirata Sep 5, 2024
a0dd90e
[lldb] Make conversions from llvm::Error explicit with Status::FromEr…
adrian-prantl Sep 5, 2024
9df592f
[AArch64] Fold away zext of extract of uzp. (#107367)
davemgreen Sep 5, 2024
362da64
[SandboxIR][Bench] Test RAUW (#107440)
Sep 5, 2024
f32e5bd
[NFC] Rename the `Nr` abbreviation to `Num` (#107151)
mtrofin Sep 5, 2024
9de972e
[clang] Fix FnInfoOpts::operator&= and FnInfoOpts::operator|= not upd…
mylai-mtk Sep 5, 2024
5515b08
Factor Process::ExecutionResultAsCString() into a global function (NFC)
adrian-prantl Sep 5, 2024
53d5ffe
[clang] Check inline defs when emitting speculative vtable (#100785)
pzfl Sep 5, 2024
b798f4b
[lldb] Make deep copies of Status explicit (NFC) (#107170)
adrian-prantl Sep 5, 2024
7b76089
[lldb] Convert NativeProcessLinux to new Status API (NFC)
adrian-prantl Sep 5, 2024
54b1055
[OpenMP] LIBOMPTARGET_DEVICE_ARCHITECTURES requires semicolons (#107454)
jdenny-ornl Sep 5, 2024
3b426a8
[lldb] Convert NativeProcessLinux to new Status API (NFC)
adrian-prantl Sep 5, 2024
3726f9c
[Attributor][NFC] Pre-commits for #107439 (#107457)
jdoerfert Sep 5, 2024
4ce8808
[AMDGPU] Common up default value of -amdgpu-nsa-threshold. NFC.
jayfoad Sep 5, 2024
e6dece9
[Attributor][FIX] Mark "may" accesses through call sites as such (#10…
jdoerfert Sep 5, 2024
08533a3
[Offload][NFC] Reorganize `utils::` and make Device/Host/Shared clear…
jdoerfert Sep 5, 2024
84bf0da
[Attributor][FIX] Ensure to always translate call site arguments (#10…
jdoerfert Sep 5, 2024
52dca6f
[SandboxVec] Boilerplate (#107431)
Sep 5, 2024
4634a48
[scudo] Add a method to use a hard-coded page size (#106646)
cferris1000 Sep 5, 2024
247d3ea
[SLP] Expand non-power-of-two bailout in TryToFindDuplicates
preames Sep 5, 2024
24684bb
[sanitizer] Delay sanitizer args parsing (#107280)
eugenis Sep 5, 2024
3836d4a
[lldb] Convert ConnectionGenericFileWindows.cpp to new Status API (NFC)
adrian-prantl Sep 5, 2024
f00c946
[lldb] Convert MainLoopWindows.cpp to new Status API (NFC)
adrian-prantl Sep 5, 2024
64498c5
[LTO][ELF][lld] Use unique string saver in ELF bitcode symbol parsing…
mingmingl-llvm Sep 5, 2024
50be455
[TableGen] Add check for number of intrinsic return values (#107326)
jurahul Sep 5, 2024
3380dae
[lld][InstrProf] Refactor BPSectionOrderer.cpp (#107347)
ellishg Sep 5, 2024
7ea9f0d
[SandboxVec][NFC] Remove unused header files
Sep 5, 2024
73514f6
[libc] Add proxy header for __sighandler_t type (#107354)
wldfngrs Sep 5, 2024
e44a675
AMDGPU: Add a few unsupported checks for llvm.fptrunc.round intrinsic…
changpeng Sep 5, 2024
1e98aa4
[lldb] Convert ConnectionGenericFileWindows.cpp to new Status API (NFC)
adrian-prantl Sep 5, 2024
bd840a4
[AMDGPU] Add target intrinsic for s_prefetch_data (#107133)
rampitec Sep 5, 2024
c1c4251
[SandboxVec] Early return checks (#107465)
Sep 5, 2024
169d453
[ADT] Declare replaceAllocation in SmallVector.cpp (NFC) (#107469)
kazutakahirata Sep 5, 2024
6d37259
[clang-tidy][NFC] remove autosar link in documents (#107412)
HerrCai0907 Sep 5, 2024
c883452
[TOSA] Move CreateOpAndInfer into ConversionUtils.h (#106122)
Tai78641 Sep 5, 2024
67fb8d1
[lldb] Convert ProcessDebugger.cpp to new Status API (NFC)
adrian-prantl Sep 5, 2024
e0a93d3
[lldb] Convert ProcessWindows.cpp to new Status API (NFC)
adrian-prantl Sep 5, 2024
1be9a80
[mlir][affine] Fix the crash due to the simultaneous replacement stor…
Lewuathe Sep 5, 2024
d175616
[lld-macho][arm64] Enhance safe ICF with thunk-based deduplication (#…
alx32 Sep 5, 2024
b525ead
[SandboxIR] Add bazel support (#107486)
Sterling-Augustine Sep 5, 2024
d7dd2c4
Re-land "[-Wunsafe-buffer-usage] Warning Libc functions (#101583)"
ziqingluo-90 Sep 5, 2024
a84baef
[gn build] Port 52dca6ffae08
nico Sep 6, 2024
2949720
[RISCV] Move vmerge same mask peephole to RISCVVectorPeephole (#106108)
lukel97 Sep 6, 2024
11084c5
[lldb] Convert DebuggerThread.cpp to new Status API (NFC)
adrian-prantl Sep 6, 2024
16df489
[TableGen] Add const variants of accessors for backend (#106658)
jurahul Sep 6, 2024
616a8ce
[clang-format] Correctly annotate braces in macro definition (#107352)
owenca Sep 6, 2024
c02fd17
[mlir] [scf] fix crash when conversion from scf to control flow (#107…
cxy-1993 Sep 6, 2024
33ceb2d
[clang-tidy] Avoid repeated hash lookups (NFC) (#107490)
kazutakahirata Sep 6, 2024
144314e
[SLPVectorizer] Avoid repeated hash lookups (NFC) (#107491)
kazutakahirata Sep 6, 2024
5acd9d1
[clang][scan] Report module dependencies in topological order (#107474)
jansvoboda11 Sep 6, 2024
ede40da
[mlir][tensor] Add check for indices of `tensor.gather` (#106894)
CoTinker Sep 6, 2024
8e35c86
[HLSL] Apply resource attributes to the resource type rather than the…
hekota Sep 6, 2024
77f1b48
DAG: Lower single infinity is.fpclass tests to fcmp (#100380)
arsenm Sep 6, 2024
093b8bf
[RISCV] Separate the calling convention handlers into their own file.…
topperc Sep 6, 2024
dcfa147
[gn build] Port 093b8bfe6b64
llvmgnsyncbot Sep 6, 2024
24267a7
AMDGPU: Add f64 to f32 support for llvm.fptrunc.round (#107481)
changpeng Sep 6, 2024
ddf40e0
[lldb] Correctly reconstruct simplified names for type units (#107240)
labath Sep 6, 2024
9c72a30
[clang][ASTImporter] New fix for default template parameter values. (…
balazske Sep 6, 2024
6fb39e4
[AVR][NFC] Reformat MC tests (#107068)
Patryk27 Sep 6, 2024
30a9cac
[clang][ASTImporter] Fix -Wpessimizing-move in ASTImporter.cpp (NFC)
DamonFool Sep 6, 2024
62fec3d
[NFCI] [ClangScanDeps] [P1689] Use PreprocessorOnly Action for P1689
ChuanqiXu9 Sep 6, 2024
4b2c950
[test][LoongArch] Pre-commit test for optimize CTPOP. NFC
wangleiat Sep 6, 2024
df93327
[LoongArch] Legalize ISD::CTPOP for GRLenVT type with LSX
wangleiat Sep 6, 2024
2ee7183
[LoongArch] Add TTI support for cpop with LSX
wangleiat Sep 6, 2024
5602bd5
[gn build] Bump macOS target to 12 and make it configurable (#107492)
BertalanD Sep 6, 2024
861caf9
[SCCP] Remove LoadInst if it loaded from Constant GlobalVariable (#1…
ParkHanbum Sep 6, 2024
310b0a1
[llvm-ml] Adds /quiet flag to llvm-ml (#107308)
MattBolitho Sep 6, 2024
77b388c
[lldb][Docs] Fix broken link to qemu testing page
DavidSpickett Sep 6, 2024
c2e53b2
[mlir][Transforms][NFC] Dialect conversion: Fix typo and improve docs…
matthias-springer Sep 6, 2024
458c91d
[AArch64][NEON] Lower fixed-width add partial reductions to dot produ…
SamTebbs33 Sep 6, 2024
725fab9
[lldb][NFC] Separated GDBRemoteCommunication::GetDebugserverPath() (#…
slydiman Sep 6, 2024
691e3c6
[lld-macho] Fix `Defined` size increase with `-mms-bitfields` (#107545)
BertalanD Sep 6, 2024
66a0329
[libc] Implement branchless head-tail comparison for bcmp (#107540)
goldvitaly Sep 6, 2024
78e1e6a
[LV] Check for vector-to-scalar casts in legalizer (#106244)
ErikHogeman Sep 6, 2024
12c4d26
[Flang][OpenMP] NFC: DataSharingProcessor cleanup (#107391)
skatrak Sep 6, 2024
c5de661
[Flang][OpenMP] NFC: Flang OpenMP passes cleanup (#107386)
skatrak Sep 6, 2024
e40c5b4
[lsp] Fix format string in Reply (#107480)
AmaranthineCodices Sep 6, 2024
d4e320e
[lldb][NFC] Fix -Wparentheses warning.
chsigg Sep 6, 2024
50be4f1
[AMDGPU] Skip lowerNonKernelLDSAccesses if function is declaration. (…
skc7 Sep 6, 2024
a918fa1
[clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is co…
hokein Sep 6, 2024
b11a703
[lldb] Fixed a typo in #107388
slydiman Sep 6, 2024
8af0860
AffineExpr: Fix result of d0 + (d0 // -c) * c. (#107530)
jreiffers Sep 6, 2024
704da91
[DebugInfo][AIX] XFAIL debug-ranges-duplication.ll (#107525)
jakeegan Sep 6, 2024
cdd2c06
[clang-tidy] fix misc-unconventional-assign-operator false positive f…
HerrCai0907 Sep 6, 2024
222d3b0
[TBAA] Fix the case where a subobject gets accessed at a non-zero off…
kosarev Sep 6, 2024
c9bdc25
[X86][MC] Cont. update for AVX10.2-BF16 (#107529)
FreddyLeaf Sep 6, 2024
775f7f1
[flang] lower SPACING f16/bf16 to new runtime APIs (#107541)
jeanPerier Sep 6, 2024
5d2b337
[lldb][NFC] Used shared_fd_t (#107553)
slydiman Sep 6, 2024
1f70fce
[Clang][AArch64] Add customisable immediate range checking to NEON (#…
SpencerAbson Sep 6, 2024
6ec889e
[DAG] Add support for neg(abd(x,y)) patterns.
RKSimon Sep 6, 2024
67f9183
[clang][bytecode] Implement comparsion operators for vector type (#10…
yronglin Sep 6, 2024
5cf3677
[clang] Pass -c to clang in test/Driver/Ofast.c
nico Sep 6, 2024
9d12d93
[gn] port 1f70fcefa981e6e2b
nico Sep 6, 2024
fb6c10d
[MC] Emit a jump table size section (#101962)
omern1 Sep 6, 2024
c782d54
[bazel] port 1f70fcefa981e6e2b
d0k Sep 6, 2024
c64dac2
[clang] Fix noisy -Wcovered-switch-default warning after 1f70fcefa9 /…
nico Sep 6, 2024
a67b6e1
Fix typo in test.
TIFitis Sep 6, 2024
71a0eb3
[X86] LowerSelect - generalize "select icmp(x,0), lhs, rhs" folding p…
RKSimon Sep 6, 2024
52fac60
[InstCombine] Fold `[l|a]shr iN (X-1)&~X, N-1 -> [z|s]ext(X==0)` (#1…
dtcxzyw Sep 6, 2024
b0ae93e
[AArch64] Add more type combinations to vector fp conversion cost tests.
fhahn Sep 6, 2024
bf57ecf
[AArch64] Prevent generating tbl instruction instead of smull (#106375)
igogo-x86 Sep 6, 2024
e4bb68b
[analyzer] Model constructor initializer for an array member (#107537)
necto Sep 6, 2024
6ab5829
[MLIR][LLVM][NFC] Remove dead interface and add namespace qualifiers …
definelicht Sep 6, 2024
a9daad8
AMDGPU: Update live intervals in convertToThreeAddress (#104610)
arsenm Sep 6, 2024
383057e
[Clang][AArch64] Fix -Wcovered-switch-default warning (SemaARM)
SpencerAbson Sep 6, 2024
100d9b8
Reapply "AtomicExpand: Allow incrementally legalizing atomicrmw" (#10…
arsenm Sep 6, 2024
9528bcd
[IRSim] Avoid repeated hash lookups (NFC) (#107510)
kazutakahirata Sep 6, 2024
bd15595
[IndVars] Avoid repeated hash lookups (NFC) (#107513)
kazutakahirata Sep 6, 2024
2461bc1
[Convergence] Avoid repeated hash lookups (NFC) (#107515)
kazutakahirata Sep 6, 2024
b8d6885
[NFC] Add explicit #include llvm-config.h where its macros are used, …
dfukalov Sep 6, 2024
56b2907
[mlir] Avoid repeated hash lookups (NFC) (#107518)
kazutakahirata Sep 6, 2024
a37f7ae
[clang-tidy] Add type annotations to add_new_check.py, fix minor bug …
nicovank Sep 6, 2024
01eb071
[mlir] Avoid repeated hash lookups (NFC) (#107519)
kazutakahirata Sep 6, 2024
109cd11
[Attributor] Skip AS specialization for volatile memory instructions …
shiltian Sep 6, 2024
4af249f
Add usub_cond and usub_sat operations to atomicrmw (#105568)
anjenner Sep 6, 2024
61ba60c
[orc] Avoid pathological propogation order (#107488)
benlangmuir Sep 6, 2024
2cb4d1b
[LSR] Do not create duplicated PHI nodes while preserving LCSSA form …
skachkov-sc Sep 6, 2024
00e40c9
[LV] Support binary and unary operations with EVL-vectorization (#93854)
nikolaypanchenko Sep 6, 2024
3edd21b
[bazel] Add missing dependencies for b8d6885ff67efbc3142a2b49506ed0cc…
d0k Sep 6, 2024
80cf21d
[libc] Fix unit test compile flags propagation. (#106128)
lntue Sep 6, 2024
deba134
[Minidump] Support multiple exceptions in a minidump (#107319)
Jlalond Sep 6, 2024
d4d4e77
[LLDB] Reappply SBSaveCore AddMemoryList (#107159)
Jlalond Sep 6, 2024
eb0f121
[libc++][modules] Tweak a few includes (#107467)
ldionne Sep 6, 2024
f8350f1
[libc++][modules] Introduce a forward-declaration for std::byte (#107…
ldionne Sep 6, 2024
ce192b8
[Vectorize] Fix a warning
kazutakahirata Sep 6, 2024
37086ea
[libc++] Decouple iterator_traits test from precise Clang diagnostics…
ldionne Sep 6, 2024
cfc0951
[flang][cuda] Do not check assignment semantic in cuf kernel (#107512)
clementval Sep 6, 2024
ce91e21
[lld][InstrProf] Sort startup functions for compression (#107348)
ellishg Sep 6, 2024
62180df
[RISCV] Reduce the interface to RISCVCCAssignFn. NFC (#107503)
topperc Sep 6, 2024
e1fdaaa
[AMDGPU] Work around a warning
kazutakahirata Sep 6, 2024
1accedc
[X86] setcc-lowering.ll - add nounwind to remove cfi noise. NFC.
RKSimon Sep 6, 2024
c1f78d3
[X86] LowerSELECTWithCmpZero - add missing description of fold and cl…
RKSimon Sep 6, 2024
ce2e386
[Attributor] Add support for atomic operations in `AAAddressSpace` (#…
shiltian Sep 6, 2024
c08f80e
[X86] select.ll - add ADD/SUB identity select test cases
RKSimon Sep 6, 2024
fd13cc0
[RISCV] Use Subtarget variable instaed of TLI.getSubtarget(). NFC
topperc Sep 6, 2024
a291fe5
clang/AMDGPU: Update test message order
arsenm Sep 6, 2024
0ffa377
[ThinLTO] Shrink GlobalValueSummary by 8 bytes (#107342)
kazutakahirata Sep 6, 2024
2e9b331
[compiler-rt][rtsan] Introduce RTSAN_OPTIONS and flags (#107174)
cjappl Sep 6, 2024
df13862
AMDGPU: Remove unnecessary pointer bitcast
arsenm Sep 6, 2024
a657779
LV: fix style after cursory reading (NFC) (#105830)
artagnon Sep 6, 2024
fb14941
[clang][rtsan] Add realtime_sanitizer to Features.def (#106650)
cjappl Sep 6, 2024
59f8796
Initial changes for llvm shared library build using explicit visibili…
fsfod Sep 6, 2024
c014db4
[ADT] Remove the const variant of LookupBucketFor in DenseMap (#107608)
kazutakahirata Sep 6, 2024
fc1aad5
[compiler-rt][rtsan] Introduce rtsan_interface.h and ScopedDisabler
cjappl Aug 30, 2024
bed7e12
Add rtsan_enabled define
cjappl Aug 30, 2024
5f91c56
Tweaked name of macro
cjappl Aug 30, 2024
218b520
[PR] david - get rid of scoped enabler, macro, simplify interface
cjappl Sep 2, 2024
ec20696
Improve docs of rtsan enable/disable
cjappl Sep 2, 2024
50f3672
[PR] vitalybuka - nested disabler test
cjappl Sep 6, 2024
aac11a1
[PR] vitalybuka - adjusted interface, deleted constructors and remove…
cjappl Sep 6, 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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/workflows/libcxx-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ jobs:
- { config: mingw-dll, mingw: true }
- { config: mingw-static, mingw: true }
- { config: mingw-dll-i686, mingw: true }
- { config: mingw-incomplete-sysroot, mingw: true }
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand All @@ -260,6 +261,12 @@ jobs:
del llvm-mingw*.zip
mv llvm-mingw* c:\llvm-mingw
echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
- name: Simulate a from-scratch build of llvm-mingw
if: ${{ matrix.config == 'mingw-incomplete-sysroot' }}
run: |
rm -r c:\llvm-mingw\include\c++
rm -r c:\llvm-mingw\*-w64-mingw32\lib\libc++*
rm -r c:\llvm-mingw\*-w64-mingw32\lib\libunwind*
- name: Add Git Bash to the path
run: |
echo "c:\Program Files\Git\usr\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
Expand Down
91 changes: 53 additions & 38 deletions clang-tools-extra/clang-tidy/add_new_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#
# ===-----------------------------------------------------------------------===#

from __future__ import print_function
from __future__ import unicode_literals

import argparse
import io
import itertools
Expand All @@ -19,10 +16,13 @@
import sys
import textwrap

# FIXME Python 3.9: Replace typing.Tuple with builtins.tuple.
from typing import Optional, Tuple


# Adapts the module's CMakelist file. Returns 'True' if it could add a new
# entry and 'False' if the entry already existed.
def adapt_cmake(module_path, check_name_camel):
def adapt_cmake(module_path: str, check_name_camel: str) -> bool:
filename = os.path.join(module_path, "CMakeLists.txt")

# The documentation files are encoded using UTF-8, however on Windows the
Expand Down Expand Up @@ -57,14 +57,14 @@ def adapt_cmake(module_path, check_name_camel):

# Adds a header for the new check.
def write_header(
module_path,
module,
namespace,
check_name,
check_name_camel,
description,
lang_restrict,
):
module_path: str,
module: str,
namespace: str,
check_name: str,
check_name_camel: str,
description: str,
lang_restrict: str,
) -> None:
wrapped_desc = "\n".join(
textwrap.wrap(
description, width=80, initial_indent="/// ", subsequent_indent="/// "
Expand Down Expand Up @@ -139,7 +139,9 @@ class %(check_name_camel)s : public ClangTidyCheck {


# Adds the implementation of the new check.
def write_implementation(module_path, module, namespace, check_name_camel):
def write_implementation(
module_path: str, module: str, namespace: str, check_name_camel: str
) -> None:
filename = os.path.join(module_path, check_name_camel) + ".cpp"
print("Creating %s..." % filename)
with io.open(filename, "w", encoding="utf8", newline="\n") as f:
Expand Down Expand Up @@ -187,7 +189,7 @@ def write_implementation(module_path, module, namespace, check_name_camel):


# Returns the source filename that implements the module.
def get_module_filename(module_path, module):
def get_module_filename(module_path: str, module: str) -> str:
modulecpp = list(
filter(
lambda p: p.lower() == module.lower() + "tidymodule.cpp",
Expand All @@ -198,7 +200,9 @@ def get_module_filename(module_path, module):


# Modifies the module to include the new check.
def adapt_module(module_path, module, check_name, check_name_camel):
def adapt_module(
module_path: str, module: str, check_name: str, check_name_camel: str
) -> None:
filename = get_module_filename(module_path, module)
with io.open(filename, "r", encoding="utf8") as f:
lines = f.readlines()
Expand All @@ -217,10 +221,10 @@ def adapt_module(module_path, module, check_name, check_name_camel):
+ '");\n'
)

lines = iter(lines)
lines_iter = iter(lines)
try:
while True:
line = next(lines)
line = next(lines_iter)
if not header_added:
match = re.search('#include "(.*)"', line)
if match:
Expand All @@ -247,10 +251,11 @@ def adapt_module(module_path, module, check_name, check_name_camel):
# If we didn't find the check name on this line, look on the
# next one.
prev_line = line
line = next(lines)
line = next(lines_iter)
match = re.search(' *"([^"]*)"', line)
if match:
current_check_name = match.group(1)
assert current_check_name
if current_check_name > check_fq_name:
check_added = True
f.write(check_decl)
Expand All @@ -262,7 +267,9 @@ def adapt_module(module_path, module, check_name, check_name_camel):


# Adds a release notes entry.
def add_release_notes(module_path, module, check_name, description):
def add_release_notes(
module_path: str, module: str, check_name: str, description: str
) -> None:
wrapped_desc = "\n".join(
textwrap.wrap(
description, width=80, initial_indent=" ", subsequent_indent=" "
Expand Down Expand Up @@ -324,9 +331,14 @@ def add_release_notes(module_path, module, check_name, description):


# Adds a test for the check.
def write_test(module_path, module, check_name, test_extension, test_standard):
if test_standard:
test_standard = f"-std={test_standard}-or-later "
def write_test(
module_path: str,
module: str,
check_name: str,
test_extension: str,
test_standard: Optional[str],
) -> None:
test_standard = f"-std={test_standard}-or-later " if test_standard else ""
check_name_dashes = module + "-" + check_name
filename = os.path.normpath(
os.path.join(
Expand Down Expand Up @@ -362,7 +374,7 @@ def write_test(module_path, module, check_name, test_extension, test_standard):
)


def get_actual_filename(dirname, filename):
def get_actual_filename(dirname: str, filename: str) -> str:
if not os.path.isdir(dirname):
return ""
name = os.path.join(dirname, filename)
Expand All @@ -376,7 +388,7 @@ def get_actual_filename(dirname, filename):


# Recreates the list of checks in the docs/clang-tidy/checks directory.
def update_checks_list(clang_tidy_path):
def update_checks_list(clang_tidy_path: str) -> None:
docs_dir = os.path.join(clang_tidy_path, "../docs/clang-tidy/checks")
filename = os.path.normpath(os.path.join(docs_dir, "list.rst"))
# Read the content of the current list.rst file
Expand All @@ -390,12 +402,12 @@ def update_checks_list(clang_tidy_path):
for file in filter(
lambda s: s.endswith(".rst"), os.listdir(os.path.join(docs_dir, subdir))
):
doc_files.append([subdir, file])
doc_files.append((subdir, file))
doc_files.sort()

# We couldn't find the source file from the check name, so try to find the
# class name that corresponds to the check in the module file.
def filename_from_module(module_name, check_name):
def filename_from_module(module_name: str, check_name: str) -> str:
module_path = os.path.join(clang_tidy_path, module_name)
if not os.path.isdir(module_path):
return ""
Expand Down Expand Up @@ -433,7 +445,7 @@ def filename_from_module(module_name, check_name):
return ""

# Examine code looking for a c'tor definition to get the base class name.
def get_base_class(code, check_file):
def get_base_class(code: str, check_file: str) -> str:
check_class_name = os.path.splitext(os.path.basename(check_file))[0]
ctor_pattern = check_class_name + r"\([^:]*\)\s*:\s*([A-Z][A-Za-z0-9]*Check)\("
matches = re.search(r"\s+" + check_class_name + "::" + ctor_pattern, code)
Expand All @@ -452,7 +464,7 @@ def get_base_class(code, check_file):
return ""

# Some simple heuristics to figure out if a check has an autofix or not.
def has_fixits(code):
def has_fixits(code: str) -> bool:
for needle in [
"FixItHint",
"ReplacementText",
Expand All @@ -464,7 +476,7 @@ def has_fixits(code):
return False

# Try to figure out of the check supports fixits.
def has_auto_fix(check_name):
def has_auto_fix(check_name: str) -> str:
dirname, _, check_name = check_name.partition("-")

check_file = get_actual_filename(
Expand Down Expand Up @@ -499,7 +511,7 @@ def has_auto_fix(check_name):

return ""

def process_doc(doc_file):
def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]:
check_name = doc_file[0] + "-" + doc_file[1].replace(".rst", "")

with io.open(os.path.join(docs_dir, *doc_file), "r", encoding="utf8") as doc:
Expand All @@ -508,13 +520,13 @@ def process_doc(doc_file):

if match:
# Orphan page, don't list it.
return "", ""
return "", None

match = re.search(r".*:http-equiv=refresh: \d+;URL=(.*).html(.*)", content)
# Is it a redirect?
return check_name, match

def format_link(doc_file):
def format_link(doc_file: Tuple[str, str]) -> str:
check_name, match = process_doc(doc_file)
if not match and check_name and not check_name.startswith("clang-analyzer-"):
return " :doc:`%(check_name)s <%(module)s/%(check)s>`,%(autofix)s\n" % {
Expand All @@ -526,7 +538,7 @@ def format_link(doc_file):
else:
return ""

def format_link_alias(doc_file):
def format_link_alias(doc_file: Tuple[str, str]) -> str:
check_name, match = process_doc(doc_file)
if (match or (check_name.startswith("clang-analyzer-"))) and check_name:
module = doc_file[0]
Expand All @@ -543,6 +555,7 @@ def format_link_alias(doc_file):
ref_end = "_"
else:
redirect_parts = re.search(r"^\.\./([^/]*)/([^/]*)$", match.group(1))
assert redirect_parts
title = redirect_parts[1] + "-" + redirect_parts[2]
target = redirect_parts[1] + "/" + redirect_parts[2]
autofix = has_auto_fix(title)
Expand Down Expand Up @@ -599,7 +612,7 @@ def format_link_alias(doc_file):


# Adds a documentation for the check.
def write_docs(module_path, module, check_name):
def write_docs(module_path: str, module: str, check_name: str) -> None:
check_name_dashes = module + "-" + check_name
filename = os.path.normpath(
os.path.join(
Expand All @@ -623,15 +636,15 @@ def write_docs(module_path, module, check_name):
)


def get_camel_name(check_name):
def get_camel_name(check_name: str) -> str:
return "".join(map(lambda elem: elem.capitalize(), check_name.split("-")))


def get_camel_check_name(check_name):
def get_camel_check_name(check_name: str) -> str:
return get_camel_name(check_name) + "Check"


def main():
def main() -> None:
language_to_extension = {
"c": "c",
"c++": "cpp",
Expand Down Expand Up @@ -756,6 +769,8 @@ def main():
)
elif language in ["objc", "objc++"]:
language_restrict = "%(lang)s.ObjC"
else:
raise ValueError(f"Unsupported language '{language}' was specified")

write_header(
module_path,
Expand All @@ -769,7 +784,7 @@ def main():
write_implementation(module_path, module, namespace, check_name_camel)
adapt_module(module_path, module, check_name, check_name_camel)
add_release_notes(module_path, module, check_name, description)
test_extension = language_to_extension.get(language)
test_extension = language_to_extension[language]
write_test(module_path, module, check_name, test_extension, args.standard)
write_docs(module_path, module, check_name)
update_checks_list(clang_tidy_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ void CastingThroughVoidCheck::check(const MatchFinder::MatchResult &Result) {
const auto ST = *Result.Nodes.getNodeAs<QualType>("source_type");
const auto VT = *Result.Nodes.getNodeAs<QualType>("void_type");
const auto *CE = Result.Nodes.getNodeAs<ExplicitCastExpr>("cast");
diag(CE->getExprLoc(), "do not cast %0 to %1 through %2") << ST << TT << VT;
diag(CE->getExprLoc(),
"do not cast %0 to %1 through %2; use reinterpret_cast instead")
<< ST << TT << VT;
}

} // namespace clang::tidy::bugprone
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ static bool canAdvanceAssignment(AssignedLevel Level) {
static void updateAssignmentLevel(
const FieldDecl *Field, const Expr *Init, const CXXConstructorDecl *Ctor,
llvm::DenseMap<const FieldDecl *, AssignedLevel> &AssignedFields) {
auto It = AssignedFields.find(Field);
if (It == AssignedFields.end())
It = AssignedFields.insert({Field, AssignedLevel::None}).first;
auto It = AssignedFields.try_emplace(Field, AssignedLevel::None).first;

if (!canAdvanceAssignment(It->second))
// fast path for already decided field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ using namespace clang::ast_matchers;

namespace clang::tidy::misc {

namespace {

AST_MATCHER_P(CXXMethodDecl, firstParameter,
ast_matchers::internal::Matcher<ParmVarDecl>, InnerMatcher) {
unsigned N = Node.isExplicitObjectMemberFunction() ? 1 : 0;
return (N < Node.parameters().size() &&
InnerMatcher.matches(*Node.parameters()[N], Finder, Builder));
}
} // namespace

void UnconventionalAssignOperatorCheck::registerMatchers(
ast_matchers::MatchFinder *Finder) {
const auto HasGoodReturnType =
Expand All @@ -29,7 +39,7 @@ void UnconventionalAssignOperatorCheck::registerMatchers(
hasName("operator="), ofClass(recordDecl().bind("class")))
.bind("method");
const auto IsSelfAssign =
cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf))))
cxxMethodDecl(IsAssign, firstParameter(parmVarDecl(hasType(IsSelf))))
.bind("method");

Finder->addMatcher(
Expand All @@ -41,8 +51,7 @@ void UnconventionalAssignOperatorCheck::registerMatchers(
rValueReferenceType(pointee(isConstQualified()))))));

Finder->addMatcher(
cxxMethodDecl(IsSelfAssign,
hasParameter(0, parmVarDecl(hasType(BadSelf))))
cxxMethodDecl(IsSelfAssign, firstParameter(parmVarDecl(hasType(BadSelf))))
.bind("ArgumentType"),
this);

Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/Feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "Feature.h"
#include "clang/Basic/Version.h"
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
#include "llvm/Support/Compiler.h"
#include "llvm/TargetParser/Host.h"

Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/unittests/ClangdTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/unittests/SerializationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "support/Logger.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
#include "llvm/Support/Compression.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ScopedPrinter.h"
Expand Down
Loading