Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
b1e4656
[NFC][analyzer] Make `invalidateRegions` accept `Stmt` instead of `Ex…
pskrgag Sep 24, 2024
3fbf6f8
[LV] Remove more references of unrolled parts after 57f5d8f2fe.
fhahn Sep 24, 2024
8b5e841
[MLIR][XeGPU] Updates XeGPU TensorDescAttr and Refine Gather/Scatter …
chencha3 Sep 24, 2024
3675761
[NVVM] Upgrade nvvm.ptr.* intrinics to addrspace cast (#109710)
AlexMaclean Sep 24, 2024
bcbdf7a
[RISCV][TTI/SLP] Add test coverage for select of constants costing
preames Sep 24, 2024
31ac400
[LV] Remove another reference of unrolled parts after 57f5d8f2fe.
fhahn Sep 24, 2024
fa17977
[libc][bazel] Remove specializations from libc_math_function. (#109802)
lntue Sep 24, 2024
99ade15
Revert "[compiler-rt] prctl interception update, SECCOMP_MODE_FILTER …
nico Sep 24, 2024
fda0143
[Rewrite] Use SmallSetVector (NFC) (#109746)
kazutakahirata Sep 24, 2024
36dce50
[CodeLayout][NFC] Format and minor refactoring of MBP (#109729)
spupyrev Sep 24, 2024
f12d72d
[PtrInfo] Use plain pointer over 'PointerIntPair<Instruction *, 1, bo…
davemgreen Sep 24, 2024
d075deb
[AMDGPU] Fix chain handling when lowering barrier intrinsics (#109799)
jayfoad Sep 24, 2024
d4a38c8
[DFAJumpThreading] Handle select unfolding when user phi is not a dir…
UsmanNadeem Sep 24, 2024
679c971
[clang][bytecode] Fix vector shifts on big-endian systems (#109800)
tbaederr Sep 24, 2024
2064087
[lldb][NFC] Add a missing setter method for UnwindPlans (#109751)
jasonmolenda Sep 24, 2024
7773243
[SLP] Move more X86 tests to common directory (#109821)
ElvinaYakubova Sep 24, 2024
fe6a3d4
[libc] Implement the 'rename' function on the GPU (#109814)
jhuber6 Sep 24, 2024
8e68a51
[X86] Add test coverage for #109790
RKSimon Sep 24, 2024
01be025
[X86] combinePMULH - simplify pattern matching with SDPatternMatch. NFC.
RKSimon Sep 24, 2024
9e60a6a
[X86] combinePMULH - pull out repeated IsTruncateFree helper. NFC.
RKSimon Sep 24, 2024
406a212
[X86] combinePMULH - we can treat constant vectors as freely truncata…
RKSimon Sep 24, 2024
e64673d
[RISCV] Treat insert_subvector into undef with index==0 as legal. (#1…
topperc Sep 24, 2024
c6bf59f
[X86] Add test coverage for #109272
RKSimon Sep 24, 2024
04b443e
Add the ability to define custom completers to the parsed_cmd templat…
jimingham Sep 24, 2024
0907552
[rtsan] Refactor initialization state to prevent hangs (#109830)
cjappl Sep 24, 2024
f404207
[SandboxIR] Implement a few Instruction member functions (#109820)
Sep 24, 2024
234193b
[mlir][linalg] Vectorization support for convolution of i1 type (#109…
nirvedhmeshram Sep 24, 2024
26029d7
[DirectX] Add atan2 intrinsic and expand for DXIL backend (p1) (#108865)
tex3d Sep 24, 2024
12285cc
[DWARF] Use ULEB128 and not just one byte for directory indices (#109…
drodriguez Sep 24, 2024
6dfeea3
Revert "[DirectX] Add atan2 intrinsic and expand for DXIL backend (p1…
farzonl Sep 24, 2024
312f737
[lld][WebAssembly] Don't report relocation error when linking with -r…
sbc100 Sep 24, 2024
a977b94
Reapply [compiler-rt] prctl interception update, SECCOMP_MODE_FILTER …
devnexen Sep 24, 2024
6d3d5f3
[SLP][REVEC] getWidenedType should be used instead of FixedVectorType…
HanKuanChen Sep 24, 2024
71ca9fc
llvm-reduce: Don't print verifier failed machine functions (#109673)
arsenm Sep 24, 2024
a6bdf3f
[asan][windows][tests] support MSVC compiler-id in asan tests (#109706)
Sep 24, 2024
c95583f
[VPlan] Add createPtrAdd helper (NFC).
fhahn Sep 24, 2024
9830156
[AMDGPU][True16][MC] add true16 and fake16 test file for vop3 instruc…
broxigarchen Sep 24, 2024
ec31f76
[NFC] Fix line endings for OptionStrCmp.h and .td test files (#109806)
jurahul Sep 24, 2024
38371a1
[rtsan][NFC] Make Uninitialzed state explicit (#109856)
cjappl Sep 24, 2024
4911235
[ctx_prof] Automatically convert available external linkage to local …
mtrofin Sep 24, 2024
cf9fc5e
[CMake] enable CMP0147 policy if available (#109150)
c8ef Sep 24, 2024
b4130be
Fix libFuzzer not building with pthreads on Windows (#109525)
Zentrik Sep 24, 2024
538dbb9
[SLP][NFC]Add a test with the operand reordering and bad reused value…
alexey-bataev Sep 24, 2024
b9bd8ca
[LLD][COFF] Adds `/includeglob` flag (#109721)
mayanez Sep 24, 2024
d7dd31e
[SLP]Better analysis of the repeated instructions during operands reo…
alexey-bataev Sep 24, 2024
cace986
Export empty vt_gen target (for standalone builds) (#109817)
etcwilde Sep 24, 2024
df4f828
[lldb][NFC] Replace lldb's DWARFFormValue::ValueType with llvm's (#10…
ZequanWu Sep 24, 2024
5d88fd3
attempt to bump actions runner bot version so I can build a new image
EricWF Sep 24, 2024
aeb18eb
[libc] Add MSAN unpoison annotations to recv funcs (#109844)
michaelrj-google Sep 24, 2024
7bd4f1a
[memprof] Use BLAKE for FrameId (#109501)
kazutakahirata Sep 24, 2024
ce1f01b
[lldb][NFC] Add the UnwindPlan method for the header update
jasonmolenda Sep 24, 2024
ab0bd34
[compiler-rt] Fix #109834 for Android (#109876)
devnexen Sep 24, 2024
98260a1
[RISCV] Add reversed select testcase for canSplatOperand [nfc]
preames Sep 24, 2024
6c7134b
[RISCV] Don't create MachineMemOperand in foldMemoryOperandImpl. (#10…
topperc Sep 24, 2024
1f9ca89
[RISCV] Don't create insert/extract subreg during lowering. (#109754)
topperc Sep 24, 2024
4c4fb6a
[BPF] Do atomic_fetch_*() pattern matching with memory ordering (#107…
yonghong-song Sep 24, 2024
4a9da96
[clang] Add cc1 --output-asm-variant= to set output syntax
MaskRay Sep 24, 2024
02d6aad
[MemProf] Reduce unnecessary context id computation (NFC) (#109857)
teresajohnson Sep 24, 2024
cd53c84
[RISCV] Fix a warning
kazutakahirata Sep 24, 2024
96eff99
[llvm-reduce] Avoid repeated hash lookups (NFC) (#109747)
kazutakahirata Sep 24, 2024
9a99e55
[gold-plugin] Avoid repeated hash lookups (NFC) (#109748)
kazutakahirata Sep 24, 2024
2f9c9ff
[llvm-extract] Avoid repeated hash lookups (NFC) (#109749)
kazutakahirata Sep 24, 2024
4c3fccd
[llvm-ifs] Avoid repeated map lookups (NFC) (#109750)
kazutakahirata Sep 24, 2024
3cfd0c0
[SPIRV][RFC] Rework / extend support for memory scopes (#106429)
AlexVlx Sep 24, 2024
4494c54
[lldb] Fix typos in various help messages. (#109851)
rjmansfield Sep 24, 2024
bde2357
[LLVM][TableGen] Rename Option emitter files (#109216)
jurahul Sep 24, 2024
b62075e
[WebAssembly] Allow AsmTypeCheck detect multiple errors in function (…
aheejin Sep 24, 2024
b15bd3f
[flang][cuda] Add global constructor for allocators registration (#10…
clementval Sep 25, 2024
9ef9acb
[rtsan] Introduce halt_on_error flag (#109832)
cjappl Sep 25, 2024
4a2d24e
[gn] Reformat build files
nico Sep 25, 2024
e33e087
[MachineSink] Update register dependency correctly (#109763)
ruiling Sep 25, 2024
2495130
[compiler-rt] Add missing carry to 128x128->256 wide multiply (#97257)
beetrees Sep 25, 2024
4fc08b6
Revert "[AMDGPU][GlobalIsel] Use isRegisterClassType for G_FREEZE and…
chapuni Sep 25, 2024
642bfd8
[Clang][compiler-rt][UBSan] Improve `__ubsan_handle_invalid_builtin` …
dtcxzyw Sep 25, 2024
3da5e82
[NVPTX] Fix NVPTXLowerUnreachable::isLoweredToTrap logic (#109730)
duk-37 Sep 25, 2024
0a42c7c
[clang] fix assert in ADL finding entity in the implicit global modul…
mizvekov Sep 25, 2024
7a086e1
[clang][CodeGen] Zero init unspecified fields in initializers in C (#…
yabinc Sep 25, 2024
489acb2
[NVPTX][NFC] Refactor utilities to use std::optional (#109883)
AlexMaclean Sep 25, 2024
4ca4460
[hwasan] Add "-hwasan-with-frame-record" (#109620)
vitalybuka Sep 23, 2024
fa627d9
[flang][cuda] Add entry point for alloc/free and simple copy (#109867)
clementval Sep 25, 2024
18b9d49
lldb: get lldb API tests working with newer Android NDKs
andrurogerz Sep 25, 2024
d50eaac
Revert "[clang][CodeGen] Zero init unspecified fields in initializers…
efriedma-quic Sep 25, 2024
81dac7d
[Flang][OpenMP] Add Semantic Checks for Atomic Capture Construct (#10…
harishch4 Sep 25, 2024
cfe1adc
Reland: [DirectX] Add atan2 intrinsic and expand for DXIL backend (p1…
tex3d Sep 25, 2024
b218048
[hwasan] Consider order of mapping copts (#109621)
vitalybuka Sep 25, 2024
3b8c78a
[RISCV] Enable f16 vget/vset/vcreate/vlmul_ext/vlmul_trunc/vundefined…
topperc Sep 25, 2024
d0878f1
[RISCV] Use RVVBitsPerBlock in assignRVVStackObjectOffsets and adjust…
topperc Sep 25, 2024
74d9f7c
[llvm] Use std::optional::value_or (NFC) (#109890)
kazutakahirata Sep 25, 2024
c92137e
[NFC][TableGen] Adopt scaled indent in PredicateExpander (#109801)
jurahul Sep 25, 2024
614aeda
[RISCV] Mark Zacas as non-experimental (#109651)
asb Sep 25, 2024
f586b1e
[MLIR] Make `OneShotModuleBufferize` use `OpInterface` (#107295)
Sep 25, 2024
470e5af
[bazel] Port f586b1e3f42788025aa6f55be70c5e361cc8b529 (#109908)
keith Sep 25, 2024
e1365ce
[clang][bytecode][NFC] Add type assertions to ArrayElem{,Pop} (#109829)
tbaederr Sep 25, 2024
915fe84
[ctx_prof] Simplify ingestContext (NFC) (#109902)
kazutakahirata Sep 25, 2024
fa824dc
[LLVM][IR] Add constant range support for floating-point types (#86483)
dtcxzyw Sep 25, 2024
d8f555d
[UBSan] Diagnose assumption violation (#104741)
dtcxzyw Sep 25, 2024
4bd3a62
[clang][bytecode] Fix diagnosing std::construct_at with wrong type (#…
tbaederr Sep 25, 2024
416f101
[clang] Use std::optional::value_or (NFC) (#109894)
kazutakahirata Sep 25, 2024
c2fd3b7
[ASan][test] XFAIL stack overflow tests on Linux/sparc64 (#109773)
rorth Sep 25, 2024
1cb12fa
[GlobalISel] Combine unmerge(unmerge()) if the result is legal. (#109…
davemgreen Sep 25, 2024
1cdcec5
[clang][bytecode] Handle vector comma op (#109827)
yronglin Sep 25, 2024
832297c
Fix compatibility version in test (#97128)
zygoloid Sep 25, 2024
c08a437
[GlobalISel] Fix a warning
kazutakahirata Sep 25, 2024
a6ea0b0
[compiler-rt] intercept macOs's freadlink call. (#83679)
devnexen Sep 25, 2024
df6822f
[lldb] Fix error reporting in SBTarget::ReadMemory (#109764)
labath Sep 25, 2024
7c825f0
[gn build] Port fa824dc0dd96
llvmgnsyncbot Sep 25, 2024
d7c6e94
[AMDGPU][StructurizeCFG] pre-commit tests: maintain branch_weights me…
jmmartinez Sep 25, 2024
90c1474
[SDAG] Honor signed arguments in floating point libcalls (#109134)
tpearson-ssc Sep 25, 2024
ae7b454
Revert "[MLIR] Make `OneShotModuleBufferize` use `OpInterface`" (#109…
matthias-springer Sep 25, 2024
2ccac07
[C++20][Modules] Fix crash when function and lambda inside loaded fro…
dmpolukhin Sep 25, 2024
0259f92
[mlir][memref] Add builder that infers `reinterpret_cast` result type…
matthias-springer Sep 25, 2024
b7b945b
LiveRangeCalc: Pass output stream to verify
arsenm Sep 25, 2024
8e3cde0
[LoongArch][test] Add float-point atomic load/store tests. NFC
heiher Sep 25, 2024
4f90e75
[AMDGPU] Do not count implicit VGPRs in SIInsertWaitcnts (#109049)
rampitec Sep 25, 2024
cda0cb3
[NFC][LoopVectorize] Remove unused argument from fixupIVUsers (#109789)
david-arm Sep 25, 2024
b8d1bae
[CmpInstAnalysis] Return decomposed bit test as struct (NFC) (#109819)
nikic Sep 25, 2024
c58e51a
[ConstantFPRange] Suppress unused result warnings. NFC. (#109921)
dtcxzyw Sep 25, 2024
99cd4cb
[LLD][MINGW] Add `--undefined-glob` flag support (#109866)
mayanez Sep 25, 2024
ba3d174
[FuzzMutate] Avoid repeated hash lookups (NFC) (#109903)
kazutakahirata Sep 25, 2024
ec60030
[DWARFLinker] Avoid repeated hash lookups (NFC) (#109904)
kazutakahirata Sep 25, 2024
c3fc763
[MCA] Avoid repeated hash lookups (NFC) (#109905)
kazutakahirata Sep 25, 2024
a36aca5
[sancov] Avoid repeated map lookups (NFC) (#109906)
kazutakahirata Sep 25, 2024
850ee79
[Bazel] Port fa824dc0dd960214865b03d8f56b18bb93e4a88b
Sep 25, 2024
d853ade
[MIR] Fix return value when computed properties conflict with given p…
gargaroff Sep 25, 2024
53907ed
[clang][codegen] Don't mark "int" TBAA on FP libcalls with indirect a…
MacDue Sep 25, 2024
445d8b2
[Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (#97755)
CarolineConcatto Sep 25, 2024
5a191e3
[RISCV][test] Correct +experimental-ztso attr to +ztso in test
asb Sep 25, 2024
f1bbabd
[ARM] Lower arm_neon_vbsl to ARMISD::VBSP and fold (vbsl x, y, y) to …
davemgreen Sep 25, 2024
bbb3679
[SPIRV] Fix compilation error 'use of parameter from containing funct…
VyacheslavLevytskyy Sep 25, 2024
706821b
[lldb][test] Skip TestConcurrentVFork on all Linux
DavidSpickett Sep 25, 2024
c93e294
[lldb] fix vFile:open, vFile:unlink error codes (#106950)
dlav-sc Sep 25, 2024
4d45913
[llvm][docs] Update the project and runtimes lists (#109788)
DavidSpickett Sep 25, 2024
b7ea264
[llvm][docs] Fix RISCVUsage docs build error
DavidSpickett Sep 25, 2024
02f46d7
Revert "[Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instructi…
CarolineConcatto Sep 25, 2024
5ee2dea
[lldb][AArch64][Linux] Add Floating Point Mode Register (#106695)
DavidSpickett Sep 25, 2024
5a03823
[llvm][cmake] Error when a runtime is in LLVM_ENABLE_PROJECTS and LLV…
DavidSpickett Sep 25, 2024
c71b212
ProfDataUtils: Avoid dyn_extract + assert (NFC)
arsenm Sep 25, 2024
0ef24aa
Fix for logic in combineExtract() (#108208)
JonPsson1 Sep 25, 2024
0c31ea5
[Clang][SME2] Use tuple result of SME builtins directly. (#109423)
paulwalker-arm Sep 25, 2024
ce6c236
[ADT][NFC] Simplify SmallSet (#109412)
vhscampos Sep 25, 2024
e4688b9
[SimplifyCFG] Avoid increasing too many phi entries when removing emp…
Chengjunp Sep 25, 2024
de70b95
[AMDGPU] Fix typo in promoteUniformOpToI32 (#109942)
Pierre-vh Sep 25, 2024
8ea0dba
[mlir] Remove spurious CMake dependencies for convert-vector-to-llvm …
joker-eph Sep 25, 2024
63b534b
[RISCV] Fold vmv.x.s into load from stack (#109774)
lukel97 Sep 25, 2024
f43ad88
[RISCV] Handle zvfhmin and zvfbfmin promotion to f32 in half arith co…
lukel97 Sep 25, 2024
4f95150
Reland "[AMDGPU][GlobalIsel] Use isRegisterClassType for G_FREEZE and…
sstipano Sep 25, 2024
dc2d0d5
[Xtensa] Add basic support for inline asm constraints. (#108986)
andreisfr Sep 25, 2024
f5838cc
[clang-tools-extra] Don't flush llvm::raw_string_ostream (NFC)
JOE1994 Sep 25, 2024
b40ff5a
[AMDGPU][StructurizeCFG] Maintain branch MD_prof metadata (#109813)
jmmartinez Sep 25, 2024
9583215
[RISCV] Add splat tests for zvfbfmin and without zfhmin/zfbfmin. NFC
lukel97 Sep 25, 2024
2a29d24
[ADT] Use perfect forwarding in SmallSet::insert() (#108590)
vhscampos Sep 25, 2024
786dc5a
[lldb-dap] Simplify `readMemory` (#109485)
vogelsgesang Sep 25, 2024
1c984b8
[LLVM][TableGen] Adopt !listflatten for Intrinsic type signature (#10…
jurahul Sep 25, 2024
fe06a6d
Reland: [clang] Diagnose dangling issues for the "Container<GSLPointe…
hokein Sep 25, 2024
59693ea
[ConstantFPRange] Remove `ConstantFPRange::toKnownFPClass` (#109960)
dtcxzyw Sep 25, 2024
1e67e4b
[SystemZ][z/OS] z/OS does not support nanosleep, use usleep instead (…
abhina-sree Sep 25, 2024
5ef02a3
[InstCombine] Fall through to computeKnownBits() for sdiv by -1
nikic Sep 25, 2024
60ed236
[LV][EVL]Explicitly model AVL as sub, original TC, EVL_PHI.
alexey-bataev Sep 25, 2024
ab0e8d0
[AMDGPU] Fix failing test after #109958 (#109964)
sstipano Sep 25, 2024
8e9011b
[LV][NFC]Fix formatting
alexey-bataev Sep 25, 2024
fd88121
[rtsan] Link in proper CXX ABI library (#109715)
cjappl Sep 25, 2024
4be1c19
[VPlan] Adjust AnyOf after creating ComputeReductionResult (NFC).
fhahn Sep 25, 2024
3f37c51
[NFC] Switch a number of DenseMaps to SmallDenseMaps for speedup (#10…
jmorse Sep 25, 2024
817e742
Revert "[NFC] Switch a number of DenseMaps to SmallDenseMaps for spee…
jmorse Sep 25, 2024
02c138f
[AArch64] Implement intrinsics for SME2 FSCALE (#100128)
Lukacma Sep 25, 2024
35ae7ee
Remove spurious ; in ElimAvailExtern.cpp
mtrofin Sep 25, 2024
22829f7
[PS4,PS5][Driver] Fix typo in comment (NFC) (#109980)
playstation-edd Sep 25, 2024
cd6f4cc
[LLD][COFF][NFC] Use CHPE version 2 in tests (#109872)
cjacek Sep 25, 2024
3477eb7
[rtsan][NFC] Move away from system include style for local headers (#…
cjappl Sep 25, 2024
e9cb440
[X86][GlobalISel] Enable scalar versions of G_UITOFP and G_FPTOUI (#1…
e-kud Sep 25, 2024
aea0668
[lldb][test] Use tools from llvm instead of compiler tools (#109961)
dzhidzhoev Sep 25, 2024
3469db8
[SLP]Add subvector vectorization for non-load nodes
alexey-bataev Sep 25, 2024
d288574
[TTI][RISCV] Model cost of loading constants arms of selects and comp…
preames Sep 25, 2024
26e0b50
[lldb][lldb-dap] Fix compilation error on 32 bit platforms
DavidSpickett Sep 25, 2024
ac802a3
[libc][math] Implement issignaling macro. (#109615)
Sh0g0-1758 Sep 25, 2024
a514457
Mark tests as unsupported when targeting z/OS (#107916)
perry-ca Sep 25, 2024
6b109a3
[SLP]Initial support for non-power-of-2 (but still whole register) nu…
alexey-bataev Sep 25, 2024
6fae8b8
[rtsan][NFC] Rename RTSAN_LINK_LIBS to RTSAN_DYNAMIC_LIBS (#109991)
cjappl Sep 25, 2024
3be8e3a
[flang] translate pure and elemental attribute in FIR (#109954)
jeanPerier Sep 25, 2024
a024a0c
[clang][bytecode] Override InConstantContext flag for immediate calls…
tbaederr Sep 25, 2024
74dcf0b
[SystemZ][z/OS] Open text files in text mode (#109972)
abhina-sree Sep 25, 2024
9a0e281
Revert "[NVVM] Upgrade nvvm.ptr.* intrinics to addrspace cast (#109710)"
Sep 25, 2024
4cb61c2
Revert "[NVPTX] deprecate nvvm.rotate.* intrinsics, cleanup funnel-sh…
Sep 25, 2024
9718949
The real option name and not the alias used is displayed in msgs when…
perry-ca Sep 25, 2024
11c423f
[clang-tidy] Add support for bsl::optional (#101450)
ccotter Sep 25, 2024
88945db
[AMDGPU][SIPreEmitPeephole] pre-commit tests: mustRetainExeczBranch: …
jmmartinez Sep 25, 2024
808c498
Revert "[libc][math] Implement issignaling macro." (#109992)
lntue Sep 25, 2024
556ec4a
[SLP] Pass operand info to getCmpSelInstrInfo (#109998)
preames Sep 25, 2024
aae7ac6
[VPlan] Remove VPIteration, update to use directly VPLane instead (NFC)
fhahn Sep 25, 2024
fff03b0
Fix "[AArch64] Implement intrinsics for SME2 FSCALE" (#109999)
Lukacma Sep 25, 2024
d01e336
[Driver] Enable ASan on Solaris/SPARC (#107403)
rorth Sep 25, 2024
cebb7c0
[clang-tidy] modernize-use-nullptr matches "NULL" in templates (#109169)
tkoeppe Sep 25, 2024
78c6506
[libc++] Disable the clang-tidy checks to get CI back (#109989)
ldionne Sep 25, 2024
1c1bb77
[libc++abi] Fix issue when building the demangler in C++11
ldionne Sep 25, 2024
660ddb3
[PS4,PS5][Driver] Pass `-L<sdk>/target/lib -L.` to linker (#109796)
playstation-edd Sep 25, 2024
a280275
[compiler-rt] Fix #83679 for macos sdk < 13.0 (#109946)
devnexen Sep 25, 2024
b3b6141
[lldb] Fix two formatv issues in LDB_LOG (NFC)
JDevlieghere Sep 25, 2024
72307ba
[ELF] Pass Ctx & to Driver
MaskRay Sep 25, 2024
3c348bf
[RISCV] Fold (fmv_x_h/w (load)) to an integer load. (#109900)
topperc Sep 25, 2024
abe0dd1
[llvm-objdump] Print ... even if a data mapping symbol is active
MaskRay Sep 25, 2024
b1aea98
[clang] Make deprecations of some `FileManager` APIs formal (#110014)
jansvoboda11 Sep 25, 2024
394f59c
[NVPTX] Add Read/Write/SideEffect attributes to atomic instructions (…
LewisCrawford Sep 25, 2024
eba21ac
[SandboxIR][Utils] Implement getMemoryLocation() (#109724)
Sep 25, 2024
f172c31
[RISCV] Lower memory ops and VP splat for zvfhmin and zvfbfmin (#109387)
lukel97 Sep 25, 2024
c71bfc5
[clang] Fix FileManagerTest
jansvoboda11 Sep 25, 2024
0f52193
LLVMContext: add getSyncScopeName() to lookup individual scope name (…
gonzalobg Sep 25, 2024
c3334da
[rtsan] Add exit statistics (#109885)
cjappl Sep 25, 2024
c59ecbe
[rtsan] Only print out unique stack traces
cjappl Sep 23, 2024
0328607
[PR] fmayer - Add comment about UNLIKELY
cjappl Sep 25, 2024
9a41bf7
[PR] fmayer - fast unwind on fatal
cjappl Sep 25, 2024
31d6232
[PR] fmayer - CHECK for counting instead of wc
cjappl Sep 25, 2024
831e036
[PR] ilovepi - CHECK-COUNT
cjappl Sep 26, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-move/tool/ClangMove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int main(int argc, const char **argv) {
for (auto I = Files.begin(), E = Files.end(); I != E; ++I) {
OS << " {\n";
OS << " \"FilePath\": \"" << *I << "\",\n";
const auto Entry = FileMgr.getFile(*I);
const auto Entry = FileMgr.getOptionalFileRef(*I);
auto ID = SM.translateFile(*Entry);
std::string Content;
llvm::raw_string_ostream ContentStream(Content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ static std::string getNameOfNamespace(const CXXRecordDecl *Decl) {
std::string Ns;
llvm::raw_string_ostream OStream(Ns);
NsDecl->printQualifiedName(OStream);
OStream.flush();
return Ns.empty() ? "(global)" : Ns;
}

Expand Down
12 changes: 11 additions & 1 deletion clang-tools-extra/clang-tidy/modernize/UseNullptrCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,20 @@ AST_MATCHER(Type, sugaredNullptrType) {
/// to null within.
/// Finding sequences of explicit casts is necessary so that an entire sequence
/// can be replaced instead of just the inner-most implicit cast.
///
/// TODO/NOTE: The second "anyOf" below discards matches on a substituted type,
/// since we don't know if that would _always_ be a pointer type for all other
/// specializations, unless the expression was "__null", in which case we assume
/// that all specializations are expected to be for pointer types. Ideally this
/// would check for the "NULL" macro instead, but that'd be harder to express.
/// In practice, "NULL" is often defined as "__null", and this is a useful
/// condition.
StatementMatcher makeCastSequenceMatcher(llvm::ArrayRef<StringRef> NameList) {
auto ImplicitCastToNull = implicitCastExpr(
anyOf(hasCastKind(CK_NullToPointer), hasCastKind(CK_NullToMemberPointer)),
unless(hasImplicitDestinationType(qualType(substTemplateTypeParmType()))),
anyOf(hasSourceExpression(gnuNullExpr()),
unless(hasImplicitDestinationType(
qualType(substTemplateTypeParmType())))),
unless(hasSourceExpression(hasType(sugaredNullptrType()))),
unless(hasImplicitDestinationType(
qualType(matchers::matchesAnyListedTypeName(NameList)))));
Expand Down
5 changes: 0 additions & 5 deletions clang-tools-extra/clangd/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ std::string printQualifiedName(const NamedDecl &ND) {
// In clangd, context is usually available and paths are mostly noise.
Policy.AnonymousTagLocations = false;
ND.printQualifiedName(OS, Policy);
OS.flush();
assert(!StringRef(QName).starts_with("::"));
return QName;
}
Expand Down Expand Up @@ -270,7 +269,6 @@ std::string printTemplateSpecializationArgs(const NamedDecl &ND) {
// location information.
printTemplateArgumentList(OS, Cls->getTemplateArgs().asArray(), Policy);
}
OS.flush();
return TemplateArgs;
}

Expand Down Expand Up @@ -303,7 +301,6 @@ std::string printObjCMethod(const ObjCMethodDecl &Method) {
OS << ", ...";

OS << ']';
OS.flush();
return Name;
}

Expand All @@ -314,15 +311,13 @@ std::string printObjCContainer(const ObjCContainerDecl &C) {
const ObjCInterfaceDecl *Class = Category->getClassInterface();
OS << getNameOrErrForObjCInterface(Class) << '(' << Category->getName()
<< ')';
OS.flush();
return Name;
}
if (const ObjCCategoryImplDecl *CID = dyn_cast<ObjCCategoryImplDecl>(&C)) {
std::string Name;
llvm::raw_string_ostream OS(Name);
const ObjCInterfaceDecl *Class = CID->getClassInterface();
OS << getNameOrErrForObjCInterface(Class) << '(' << CID->getName() << ')';
OS.flush();
return Name;
}
return C.getNameAsString();
Expand Down
2 changes: 0 additions & 2 deletions clang-tools-extra/clangd/Diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ std::string mainMessage(const Diag &D, const ClangdDiagnosticOptions &Opts) {
OS << "\n\n";
printDiag(OS, Note);
}
OS.flush();
return capitalize(std::move(Result));
}

Expand All @@ -335,7 +334,6 @@ std::string noteMessage(const Diag &Main, const DiagBase &Note,
OS << "\n\n";
printDiag(OS, Main);
}
OS.flush();
return capitalize(std::move(Result));
}

Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/FindSymbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ std::string getSymbolName(ASTContext &Ctx, const NamedDecl &ND) {
OS << (Method->isInstanceMethod() ? '-' : '+');
Method->getSelector().print(OS);

OS.flush();
return Name;
}
return printName(Ctx, ND);
Expand Down
4 changes: 0 additions & 4 deletions clang-tools-extra/clangd/Hover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ std::string printDefinition(const Decl *D, PrintingPolicy PP,
std::string Definition;
llvm::raw_string_ostream OS(Definition);
D->print(OS, PP);
OS.flush();
return Definition;
}

Expand Down Expand Up @@ -179,7 +178,6 @@ HoverInfo::PrintedType printType(QualType QT, ASTContext &ASTCtx,
OS << TT->getDecl()->getKindName() << " ";
}
QT.print(OS, PP);
OS.flush();

const Config &Cfg = Config::current();
if (!QT.isNull() && Cfg.Hover.ShowAKA) {
Expand Down Expand Up @@ -229,7 +227,6 @@ HoverInfo::PrintedType printType(const TemplateTemplateParmDecl *TTP,
// FIXME: TemplateTemplateParameter doesn't store the info on whether this
// param was a "typename" or "class".
OS << "> class";
OS.flush();
return Result;
}

Expand Down Expand Up @@ -821,7 +818,6 @@ std::string typeAsDefinition(const HoverInfo::PrintedType &PType) {
OS << PType.Type;
if (PType.AKA)
OS << " // aka: " << *PType.AKA;
OS.flush();
return Result;
}

Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/Preamble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ PreamblePatch PreamblePatch::create(llvm::StringRef FileName,
PP.PatchedMarks = std::move(ModifiedScan->Marks);
PP.PatchedMacros = std::move(ModifiedScan->Macros);
dlog("Created preamble patch: {0}", Patch.str());
Patch.flush();
return PP;
}

Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/Quality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ std::string sortText(float Score, llvm::StringRef Name) {
llvm::write_hex(OS, encodeFloat(-Score), llvm::HexPrintStyle::Lower,
/*Width=*/2 * sizeof(Score));
OS << Name;
OS.flush();
return S;
}

Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/SourceCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ llvm::SmallVector<llvm::StringRef> ancestorNamespaces(llvm::StringRef NS) {

// Checks whether \p FileName is a valid spelling of main file.
bool isMainFile(llvm::StringRef FileName, const SourceManager &SM) {
auto FE = SM.getFileManager().getFile(FileName);
return FE && *FE == SM.getFileEntryForID(SM.getMainFileID());
auto FE = SM.getFileManager().getOptionalFileRef(FileName);
return FE && FE == SM.getFileEntryRefForID(SM.getMainFileID());
}

} // namespace
Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/SystemIncludeExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ std::string convertGlobToRegex(llvm::StringRef Glob) {
}
}
RegStream << '$';
RegStream.flush();
return RegText;
}

Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/index/StdLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ std::string buildUmbrella(llvm::StringLiteral Mandatory,
"#endif\n",
Header);
}
OS.flush();
return Result;
}

Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ TEST(ParsedASTTest, PatchesAdditionalIncludes) {
auto &FM = SM.getFileManager();
// Copy so that we can use operator[] to get the children.
IncludeStructure Includes = PatchedAST->getIncludeStructure();
auto MainFE = FM.getFile(testPath("foo.cpp"));
auto MainFE = FM.getOptionalFileRef(testPath("foo.cpp"));
ASSERT_TRUE(MainFE);
auto MainID = Includes.getID(*MainFE);
auto AuxFE = FM.getFile(testPath("sub/aux.h"));
auto AuxFE = FM.getOptionalFileRef(testPath("sub/aux.h"));
ASSERT_TRUE(AuxFE);
auto AuxID = Includes.getID(*AuxFE);
EXPECT_THAT(Includes.IncludeChildren[*MainID], Contains(*AuxID));
Expand Down
1 change: 0 additions & 1 deletion clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ const NamedDecl &findDeclWithTemplateArgs(ParsedAST &AST,
// Use getNameForDiagnostic() which includes the template
// arguments in the printed name.
ND.getNameForDiagnostic(OS, Policy, /*Qualified=*/true);
OS.flush();
return QName == Query;
});
}
Expand Down
9 changes: 9 additions & 0 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ Changes in existing checks
usages of ``sizeof()``, ``alignof()``, and ``offsetof()`` when adding or
subtracting from a pointer.

- Improved :doc:`bugprone-unchecked-optional-access
<clang-tidy/checks/bugprone/unchecked-optional-access>` to support
`bsl::optional` and `bdlb::NullableValue` from
<https://github.com/bloomberg/bde>_.

- Improved :doc:`cert-flp30-c <clang-tidy/checks/cert/flp30-c>` check to
fix false positive that floating point variable is only used in increment
expression.
Expand Down Expand Up @@ -161,6 +166,10 @@ Changes in existing checks
a false positive when only an implicit conversion happened inside an
initializer list.

- Improved :doc:`modernize-use-nullptr
<clang-tidy/checks/modernize/use-nullptr>` check to also recognize
``NULL``/``__null`` (but not ``0``) when used with a templated type.

- Improved :doc:`modernize-use-std-print
<clang-tidy/checks/modernize/use-std-print>` check to support replacing
member function calls too.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ results. Therefore, it may be more resource intensive (RAM, CPU) than the
average clang-tidy check.

This check identifies unsafe accesses to values contained in
``std::optional<T>``, ``absl::optional<T>``, ``base::Optional<T>``, or
``folly::Optional<T>`` objects. Below we will refer to all these types
collectively as ``optional<T>``.
``std::optional<T>``, ``absl::optional<T>``, ``base::Optional<T>``,
``folly::Optional<T>``, ``bsl::optional``, or
``BloombergLP::bdlb::NullableValue`` objects. Below we will refer to all these
types collectively as ``optional<T>``.

An access to the value of an ``optional<T>`` occurs when one of its ``value``,
``operator*``, or ``operator->`` member functions is invoked. To align with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FindHeadersTest : public testing::Test {
llvm::SmallVector<Hinted<Header>> findHeaders(llvm::StringRef FileName) {
return include_cleaner::findHeaders(
AST->sourceManager().translateFileLineCol(
AST->fileManager().getFile(FileName).get(),
*AST->fileManager().getOptionalFileRef(FileName),
/*Line=*/1, /*Col=*/1),
AST->sourceManager(), &PI);
}
Expand Down
Loading