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

[AutoBump] Merge with ea050ab1 (Oct 30) (3) #459

Open
wants to merge 426 commits into
base: bump_to_b91ce7bc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
426 commits
Select commit Hold shift + click to select a range
40363d5
[RISCV] Add cost model tests for fp rounding ops for bf16. NFC
lukel97 Oct 28, 2024
c9f01f6
[SLP][AArch64][NFC] Add more tests for SLP vectorization of div (#113…
sushgokh Oct 28, 2024
3ac75ee
Revert "[runtimes] Allow building against an installed LLVM tree" (#1…
philnik777 Oct 28, 2024
7d1e98c
[AIX][SystemZ][z/OS] Disable test for AIX, z/OS due to missing DWARF …
abhina-sree Oct 28, 2024
53f7f8e
[Clang][AArch64] Fix Pure Scalables Types argument passing and return…
momchil-velikov Oct 28, 2024
b27aceb
[AMDGPU][True16][test] update VOPC/VOPCX test for true16/fake16 (#112…
broxigarchen Oct 28, 2024
670512b
[AArch64] Regenerate srem-lkk.ll to add missing asm comments
RKSimon Oct 28, 2024
5ac3f3c
[RISCV] Add DestEEW = EEW1 to VMADC. (#113013)
topperc Oct 28, 2024
eb53d08
[llvm-exegesis] Add Pfm Counters for SapphireRapids (#113847)
boomanaiden154 Oct 28, 2024
80f38fb
[clang] [NFC] Deduplicate the logic between StringMapEntry.first() an…
bricknerb Oct 28, 2024
7a71011
[MLIR][Vector] Remove unused and unimplemented Vector_WarpExecuteOnLa…
kurapov-peter Oct 28, 2024
1062595
[AArch64]Add convert and multiply-add SIMD&FP assembly/disassembly in…
CarolineConcatto Oct 28, 2024
ab5d3c9
[RISCV] Assign different scheduling classes for VMADC/VMSBC (#113009)
mshockwave Oct 28, 2024
92412c1
[llvm-objdump] Handle -M for --macho
MaskRay Oct 28, 2024
6ab26ea
Check hasOptSize() in shouldOptimizeForSize() (#112626)
ellishg Oct 28, 2024
6827a00
[lld][InstrProf] Do not use cstring offset hashes in function order f…
SharonXSharon Oct 28, 2024
af7c58b
Remove support for RenderScript (#112916)
AaronBallman Oct 28, 2024
f147437
Add the ability to break on call-site locations, improve inline stepp…
jimingham Oct 28, 2024
e517cfc
[InstrPGO] Support cold function coverage instrumentation (#109837)
wlei-llvm Oct 28, 2024
98e3075
[HLSL][SPIRV] Add convergence tokens to entry point wrapper (#112757)
s-perron Oct 28, 2024
97fb21a
[rtsan] Intercept aligned_alloc on all versions of OSX if available o…
cjappl Oct 28, 2024
31a6dbe
[LLD][COFF] Add Support for ARM64EC pseudo relocations (#113832)
cjacek Oct 28, 2024
4cf1285
[NFC][AMDGPU] Use C++17 structured bindings as much as possible (#113…
shiltian Oct 28, 2024
f23bdbb
Add DILabel functions for LLVM-C (#112840)
tf2spi Oct 28, 2024
19c0a74
[lldb] Fix lldb windows build breakage from https://github.com/llvm/l…
ZequanWu Oct 28, 2024
da1a16a
[clang][modules] Preserve the module map that allowed inferring (#113…
jansvoboda11 Oct 28, 2024
cafd3e1
[BOLT][test] Fix NFC check with pre-aggregated-perf.test (#113944)
aaupov Oct 28, 2024
e0a02fd
[NFC][Clang][TableGen] Use StringRef in FlattenedSpelling (#113809)
jurahul Oct 28, 2024
6c6351e
[clang][modules] Optimize construction and usage of the submodule ind…
jansvoboda11 Oct 28, 2024
5a5b78a
[AArch64][GlobalISel] Lower aarch64.neon.smull/umull intrinsics.
davemgreen Oct 28, 2024
b54bc10
Revert "Add the ability to break on call-site locations, improve inli…
jimingham Oct 28, 2024
8274be5
[AArch64] Remove header dependencies of AArch64ISelLowering.h. NFC
davemgreen Oct 28, 2024
66bbbf2
[clang][dataflow] Cache accessors returning pointers in bugprone-unch…
jvoung Oct 28, 2024
0d0abb3
[VPlan] Use ResumePhi to create reduction resume phis. (#110004)
fhahn Oct 28, 2024
ad5b944
[rtsan][asan] NFC Fix hyperlink to CMake doc (#113931)
cjappl Oct 28, 2024
19131c7
[clang][modules][lldb] Fix build after #113391
jansvoboda11 Oct 28, 2024
67bcce2
[CFI][LowerTypeTests] Fix indirect call with alias (#106185)
igorkudrin Oct 28, 2024
7bd8a16
[X86] Don't allow '+f' as an inline asm constraint. (#113871)
topperc Oct 28, 2024
481bce0
Adding splitdouble HLSL function (#109331)
joaosaffran Oct 28, 2024
abc49cc
[libc] remove #include <fcntl.h> and add proxy or type (#113836)
Oct 28, 2024
9d9b1ba
[ORC] Fix JITLinkRedirectableSymbolManager construction to avoid cras…
redstar Oct 28, 2024
70d61f6
[flang][cuda] Adding runtime call to CUFRegisterVariable (#113952)
Renaud-K Oct 28, 2024
7131569
[clang] Warn about memset/memcpy to NonTriviallyCopyable types (#111434)
serge-sans-paille Oct 28, 2024
03dcefe
[libc] Fix leftover `LIBC_NAMESPACE` after porting it (#113960)
jhuber6 Oct 28, 2024
39303e2
[clang][deps] Improve timing output (#113726)
jansvoboda11 Oct 28, 2024
5ea6948
[SandboxVec][Legality] Check opcodes and types (#113741)
vporpo Oct 28, 2024
09a4bcf
[flang][OpenMP] Update handling of DEPEND clause (#113620)
kparzysz Oct 28, 2024
c5edecb
[X86] Regenerate scmp/ucmp test checks with vpternlog comments
RKSimon Oct 28, 2024
7b663bd
[libc] Fix the remaining fcntl.h proxy header includes. (#113961)
Oct 28, 2024
82cb22e
[MLIR] Add missing MLIRLLVMDialect dep to MLIRMathToLibm (#113563)
RoboTux Oct 28, 2024
7db4cac
[MLIR] Add missing MLIRLLVMDialect dep to MLIRLinalgToStandard (#113561)
RoboTux Oct 28, 2024
474234a
[debugserver] Mark ASAN memory regions as "heap" (#113968)
felipepiovezan Oct 28, 2024
9f69da3
[NFC][compiler-rt] Add missing header include (#113951)
Prabhuk Oct 28, 2024
bf4b31a
[SandboxVec][Legality] Check Fastmath flags (#113967)
vporpo Oct 28, 2024
e873b41
[libc] add the rest of the hdr/fcntl_macro.h headers (#113972)
Oct 28, 2024
0eb5c9d
[flang][cuda] Copying device globals in the gpu module (#113955)
Renaud-K Oct 28, 2024
36c1194
Remove optimization flags from clang codegen tests (#113714)
MatzeB Oct 28, 2024
5903c6a
InstCombine: Fold shufflevector(select) and shufflevector(phi) (#113746)
MatzeB Oct 28, 2024
034cae4
[clang] Add clang/docs/FunctionEffectAnalysis.rst. (#109855)
dougsonos Oct 28, 2024
902acde
[InstCombine] Optimize away certain additions using modular arithmetic
majnemer Oct 28, 2024
757d0e4
Revert "[CFI][LowerTypeTests] Fix indirect call with alias" (#113978)
igorkudrin Oct 28, 2024
8e6856e
[Clang][TableGen] Use StringRef::str() instead of std::string() cast …
jurahul Oct 28, 2024
7c55426
Revert "[rtsan] Intercept aligned_alloc on all versions of OSX if ava…
cjappl Oct 28, 2024
b46a048
[clang][bytecode] Implement __builtin_arithmetic_fence (#113937)
tbaederr Oct 28, 2024
1549a0c
[mlir][SCF] Remove `scf-bufferize` pass (#113840)
matthias-springer Oct 29, 2024
6233346
[GenericCycle] Add a Cache for getExitBlocks in GenericCycle (#112290)
Chengjunp Oct 29, 2024
61353cc
[compiler-rt] Fix invalid escape sequences in python files (#94030)
e-kwsm Oct 29, 2024
1ceccbb
VirtRegRewriter: Add implicit register defs for live out undef lanes …
arsenm Oct 29, 2024
a461869
[SandboxIR][Pass] Implement Analyses class (#113962)
vporpo Oct 29, 2024
6128ff6
[JITLink][MachO] Add convenience functions for default text/data sect…
lhames Oct 23, 2024
0c1c37b
[TLI] Add support for the `tgamma` libcall. (#113791)
c8ef Oct 29, 2024
1831109
[InstCombine] Do not fold `shufflevector(select)` if the select condi…
dtcxzyw Oct 29, 2024
635c344
[X86] Add vector_compress patterns with a zero vector passthru. (#113…
topperc Oct 29, 2024
00ca207
[TableGen] [NFC] Remove unused includes in TableGen BE (#113725)
jerryyiransun Oct 29, 2024
6588073
[mlir][func] Fix incorrect API usage in `FuncOpConversion` (#113977)
matthias-springer Oct 29, 2024
828467a
Fix warnings introduced in #111434 [-Wnontrivial-memaccess]
chapuni Oct 29, 2024
d3b9855
Add exception guard for constructor vector(n, x, a) (#113086)
winner245 Oct 29, 2024
3f4468f
[RISCV] Teach expandRV32ZdinxStore to handle memoperand not being pre…
topperc Oct 29, 2024
48adfaf
doc: remove trailing whitespaces
sylvestre Oct 29, 2024
59085e9
Fix more lld warnings introduced in #111434 [-Wnontrivial-memaccess]
chapuni Oct 29, 2024
66fc81c
fix missing include for `abort` in `FuzzedDataProvider.h` (#113872)
atetubou Oct 29, 2024
335e68d
[Clang][RISCV] Support -fcf-protection=return for RISC-V (#112477)
jaidTw Oct 29, 2024
7544d3a
[RISCV] Mark RVB23U64 and RVB23S64 as non-experimental (#113918)
asb Oct 29, 2024
d4197f3
[LLVM][AArch64] Add assembly/disassembly for MUL/BFMUL SME instructio…
CarolineConcatto Oct 29, 2024
8d38fbf
[LLVM][AArch64] Add assembly/disassembly for SVE Integer Unary Arithm…
CarolineConcatto Oct 29, 2024
05b6c2e
[Clang] fix range calculation for conditionals with throw expressions…
a-tarasyuk Oct 29, 2024
dfb60bb
Adding more vector calls for -fveclib=AMDLIBM (#109662)
rohitaggarwal007 Oct 29, 2024
a393c92
[PS5][Driver] Update default linking options when `-r` omitted. (#113…
playstation-edd Oct 29, 2024
a8398bd
[llvm][docs] Update list of llvm-lit options
DavidSpickett Oct 29, 2024
7395ef5
[libc][math][c23] Add cospif16 function (#113001)
wldfngrs Oct 29, 2024
c3260c6
[IR] Add `llvm.sincos` intrinsic (#109825)
MacDue Oct 29, 2024
32aa782
[PowerPC] copysignl.ll - regenerate to reduce the diff in #111269
RKSimon Oct 29, 2024
f537792
[X86] Refactor the SSE intrinsics constexpr tests to simplify future …
RKSimon Oct 29, 2024
98c8d64
[AArch64] Add assembly/dissasembly for BFSCALE instructions (#113538)
Lukacma Oct 29, 2024
06664fd
[FuncSpec] Enable SpecializeLiteralConstant by default (#113442)
hazzlim Oct 29, 2024
46944d1
[flang][OpenMP] Extract OMP version hint into helper functions, NFC (…
kparzysz Oct 29, 2024
2443549
[IR] Remove some uses of StructType::setBody. NFC. (#113685)
jayfoad Oct 29, 2024
ec427df
[AArch64] Add assembly/disassembly for FMOP4{A,S} (non-widening) half…
momchil-velikov Oct 29, 2024
e19a5fc
[FuncSpec] Improve accounting of specialization codesize growth (#113…
hazzlim Oct 29, 2024
c0cba25
[mlir][Transforms] Dialect conversion: Hardening `replaceOp` (#109540)
matthias-springer Oct 29, 2024
8239ea3
[flang][debug] Support IndexType. (#113921)
abidh Oct 29, 2024
d48c849
[flang][OpenMP] Parsing support for iterator in DEPEND clause (#113622)
kparzysz Oct 29, 2024
3c2d771
[AARCH64] Add assembly/disassembly for FMMLA instructions (#113313)
Lukacma Oct 29, 2024
f7adacf
Nominate Vlad Serebrennikov for C++ DRs (#114040)
AaronBallman Oct 29, 2024
88e23eb
DAG: Fix legalization of vector addrspacecasts (#113964)
arsenm Oct 29, 2024
183b38e
[libclc] Split off library build system into helpers
frasercrmck Sep 23, 2024
b2bdd8b
[libclc] Create an internal 'clc' builtins library
frasercrmck Sep 24, 2024
667deb6
[PS4/PS5][Driver] Apply clang-format to PS4CPU.cpp (NFC) (#114038)
playstation-edd Oct 29, 2024
d732c0b
[clang][AArch64] Add getHostCPUFeatures to query for enabled features…
neildhickey Oct 29, 2024
4b44639
Nominate Erich Keane for OpenACC (#114041)
AaronBallman Oct 29, 2024
ec871cf
[clang][bytecode][NFC] Remove Pointer::elem() (#114046)
tbaederr Oct 29, 2024
c370869
[mlir][NFC] Avoid a warning (#114052)
pfusik Oct 29, 2024
f490697
[clang] [NFC] Fix a couple of typos: assuments and assingment
bricknerb Oct 29, 2024
87b6ec3
[clang][bytecode] Diagnose placement-new construction to inactive fie…
tbaederr Oct 29, 2024
b937691
[clang] [NFC] Fix assingments typo
bricknerb Oct 29, 2024
340cd4e
[Bazel] fix for abc49cc19463970d5523d7d3332e4c1f83bc2ef7
Oct 29, 2024
f257e9b
[clang][x86] Update AVX/AVX512 setzero constexpr tests to use the TES…
RKSimon Oct 29, 2024
e281d96
[clang][x86] Add constexpr support for _mm_add_epi32/64 and _mm_sub_e…
RKSimon Oct 29, 2024
872981b
[Bazel] Fix layering for libc
Oct 29, 2024
b6a84e7
[AArch64] Add assembly/disassembly for FMOP4A (widening, 4-way) instr…
momchil-velikov Oct 29, 2024
a388df7
[XRay] Remove reliance on default PIC behavior in DSO tests (#113892)
sebastiankreutzer Oct 29, 2024
2e612f8
[MLIR][Arith] Improve accuracy of `inferDivU` (#113789)
goldsteinn Oct 29, 2024
80a0973
Revert "[clang][AArch64] Add getHostCPUFeatures to query for enabled …
ElvinaYakubova Oct 29, 2024
c9d9dc9
[libc++] Remove _LIBCPP_ENABLE_ASSERTIONS, which had been deprecated …
ldionne Oct 29, 2024
e268398
[NFC][AMDGPU] Use `!foreach` to replace explicit list of registers (#…
shiltian Oct 29, 2024
75e7ba8
[HLSL] Re-implement countbits with the correct return type (#113189)
spall Oct 29, 2024
a156362
[AMDGPU] Fix machine verification failure after SIFoldOperandsImpl::t…
jayfoad Oct 29, 2024
1e991b1
Nominate Corentin Jabot for lambdas (#114043)
AaronBallman Oct 29, 2024
d43e4ce
Revert "[gn] port b1be21394e9c"
nico Oct 29, 2024
f906d76
[gn build] Port 5ea694816b56
llvmgnsyncbot Oct 29, 2024
af44976
[gn build] Port 6128ff663076
llvmgnsyncbot Oct 29, 2024
bf6c483
[clang][x86] Add constexpr support for SSE2 _mm_set*_epi* intrinsics
RKSimon Oct 29, 2024
a9c417c
[MLIR][SCF] Fix LoopPeelOp documentation (NFC) (#113179)
nujaa Oct 29, 2024
4df71ab
[SandboxIR] Add callbacks for instruction insert/remove/move ops (#11…
slackito Oct 29, 2024
318bdd0
[StackSafetyAnalysis] Bail out when calling ifunc
MaskRay Oct 29, 2024
2ab98df
[lldb] Update link to GreenDragon in the docs
JDevlieghere Oct 29, 2024
2a9dd8a
[AArch64] Add assembly/disassembly for zeroing SVE FCVT{X} and BFCVT …
SpencerAbson Oct 29, 2024
39ad84e
[mlir][linalg] Split GenericPadOpVectorizationPattern into two patter…
banach-space Oct 29, 2024
12a8f50
[SandboxIR] Use the proper gmock public header in unit tests.
slackito Oct 29, 2024
0b700f2
[flang][cuda] Add entry point to launch global function with cluster_…
clementval Oct 29, 2024
b05fec9
[flang][cuda] Convert gpu.launch_func to CUFLaunchClusterKernel when …
clementval Oct 29, 2024
a1f2fb6
[MLIR][OpenMP] Prevent composite omp.simd related crashes (#113680)
skatrak Oct 29, 2024
f53889f
[RISCV] Allow crypto features to imply dependents (#112659)
workingjubilee Oct 29, 2024
b1d0fe0
[RISCV] Remove trailing whitespace. NFC
topperc Oct 29, 2024
f964514
Nominate Shafik Yaghmour and Vlad Serebrennikov for C++ conformance (…
AaronBallman Oct 29, 2024
9a5b3a1
[DXIL] Add GroupMemoryBarrierWithGroupSync intrinsic (#111884)
adam-yang Oct 29, 2024
d661aea
[OpenMP] Add support for custom callback in AMDGPUStream (#112785)
jhuber6 Oct 29, 2024
4e1b9d3
[mir-strip-debug] Fix debug location info strip for bundled instructi…
ivafanas Oct 29, 2024
b510cdb
[ADT] Add TrieRawHashMap (#69528)
cachemeifyoucan Oct 29, 2024
950ee75
[RISC-V] Fix check of minimum vlen. (#114055)
hvdijk Oct 29, 2024
4abc357
Nominate Sirraide for AST visitors and Sema (#114092)
AaronBallman Oct 29, 2024
639a7ac
[Clang][AST] Store injected template arguments in TemplateParameterLi…
sdkrystian Oct 29, 2024
449523f
Nominate Vassil Vassilev for Modules and Plugins (#114058)
AaronBallman Oct 29, 2024
528e975
[AMDGPU][test]added unique and sort options for update_mc_test_check …
broxigarchen Oct 29, 2024
ba65710
[RISCV] Avoid redundant SchedRead on _TIED VPseudos (#113940)
mshockwave Oct 29, 2024
6f66530
[mlir] Fix a warning
kazutakahirata Oct 29, 2024
b0dd368
[gn build] Port b510cdb895b9
llvmgnsyncbot Oct 29, 2024
6563ed3
[libc++][NFC] Remove trailing whitespace in the modulemap
ldionne Oct 29, 2024
cdacc9b
[TableGen] [NFC] Refine TableGen code to comply with `clang-tidy` che…
jerryyiransun Oct 29, 2024
f22c9dd
[ORC] Single-symbol convenience method does not need to be virtual.
lhames Oct 29, 2024
9e37cbb
[ORC] Add some missing FIXMEs, move a temporary Error into an if cond…
lhames Oct 29, 2024
8e14c6c
[flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (#113215)
kkwli Oct 29, 2024
efc6d33
[lldb] Fix write only file action to truncate the file (#112657)
kusmour Oct 29, 2024
b4e1af0
[lldb-dap] Always pass disableASLR to the DAP executable (#113891)
Michael137 Oct 29, 2024
b9978f8
[flang][cuda] Adding variable registration in constructor (#113976)
Renaud-K Oct 29, 2024
c79827c
[SandboxIR] Fix a warning
kazutakahirata Oct 29, 2024
9cc5a4b
Remove llvm::shouldOptForSize() from Utils.h (#112630)
ellishg Oct 29, 2024
a18af41
[LLVM] Change error messages to start with lower case (#113748)
jurahul Oct 29, 2024
3754fc1
[hwasan] Flush stderr/stdout in tests (#114083)
thurstond Oct 29, 2024
3a1228a
[SPIRV] Add GroupMemoryBarrierWithGroupSync intrinsic (#111888)
adam-yang Oct 29, 2024
e205929
[asan] Flush stderr in test (#114084)
thurstond Oct 29, 2024
8a0cb9a
[PowerPC] Add custom lowering for ssubo (#111748)
maryammo Oct 29, 2024
27ef549
[clang-tidy] Fix crash in modernize-use-designated-initializers check…
z1nke Oct 29, 2024
5c12434
[X86] Emit comments explaining the immediate in vfpclass
majnemer Oct 29, 2024
ba8d9ce
[ADT] Fix unused variable from #69528 (#114114)
cachemeifyoucan Oct 29, 2024
ccd73ee
[LinkerWrapper] Remove in-house handling of LTO (#113715)
jhuber6 Oct 29, 2024
70af40b
[hwasan] Fix forward '[hwasan] Flush stderr/stdout in tests (#114083)'
thurstond Oct 29, 2024
8193832
[lldb] Search main function with lldb::eFunctionNameTypeFull when get…
ZequanWu Oct 29, 2024
a78861f
[NvlinkWrapper] Add support for `--undefined` (#113934)
jhuber6 Oct 29, 2024
41baa69
[BOLT] Fix warnings (#114116)
kazutakahirata Oct 29, 2024
94e7d9c
[RISCV] Remove Zvk* dependency checks from RISCVISAInfo::checkDepende…
topperc Oct 29, 2024
83ae171
[AArch64] Add ComputeNumSignBits for VASHR. (#113957)
davemgreen Oct 29, 2024
680901e
[VPlan] Implement VPHeaderPHIRecipe::computeCost.
fhahn Oct 29, 2024
4a96081
[clang-linker-wrapper] Fix a warning
kazutakahirata Oct 29, 2024
a325c53
[lldb] Fix lldb windows build breakage from https://github.com/llvm/l…
ZequanWu Oct 29, 2024
5cfb07a
Revert "[ADT] Use std::string_view inside StringRef (#113775)" (#114133)
kazutakahirata Oct 29, 2024
8b55162
[RISCV] Add cost model tests for scalable FP reductions. NFC
lukel97 Oct 29, 2024
ca998b0
[SandboxVec][Legality] Check wrap flags (#113975)
vporpo Oct 29, 2024
2c5eea0
[mlir][Vector] Fix vector.insert folder for scalar to 0-d inserts (#1…
Groverkss Oct 29, 2024
d90a0d1
Remove spurious includes from sinpif_test.cpp
vonosmas Oct 29, 2024
f71ea0e
[libc++][test] Augment `test_alloc` in `deallocate_size.pass.cpp` (#1…
frederick-vs-ja Oct 29, 2024
0f8dbb2
[libc++] Constrain additional overloads of `pow` for `complex` harder…
frederick-vs-ja Oct 29, 2024
75b37c3
[DWARF] Fix arity of DW_OP_bra (#114136)
JDevlieghere Oct 29, 2024
50dd922
Revert "[asan] Flush stderr in test (#114084)"
thurstond Oct 29, 2024
0fa2fb3
[flang][cuda] Add conversion pattern for cuf.kernel_launch op (#114129)
clementval Oct 30, 2024
255e441
X86: Do not return invalid cost for fp16 conversion (#114128)
MatzeB Oct 30, 2024
13a3c4f
[RISCV] Add OperandType to frmarg and rtzarg. (#114142)
topperc Oct 30, 2024
d926828
[RISCV] Add sha and supm to checks in riscv-profiles.c (#114123)
topperc Oct 30, 2024
8800b73
[RISCV] Refactor FP, SP and RA in RISCVFrameLowering.cpp. NFC (#113818)
4vtomat Oct 30, 2024
63eb40e
[libc++] Deprecate and remove meaningless `<cxxx>` headers (#111615)
frederick-vs-ja Oct 30, 2024
facdae6
[MCInstPrinter] Make printRegName non-const
MaskRay Oct 30, 2024
9e8219a
IR: Fix verifier missing addrspace mismatch in vector GEPs (#114091)
arsenm Oct 30, 2024
c62130f
[RISCV] Add OperandType to loadfpimm. (#114150)
topperc Oct 30, 2024
2c31325
[MLIR] VectorEmulateNarrowType to support loading of unaligned vector…
lialan Oct 30, 2024
29bff4a
[llvm-objdump] Fix coloring with nested WithMarkup
MaskRay Oct 30, 2024
3c02fea
[LV][NFC] Remove stray semicolons (#114057)
pfusik Oct 30, 2024
ef455e6
[TableGen] Replace all lingering uses of getName with getEnumName
jrtc27 Oct 30, 2024
e8b7f53
[TableGen] Remove a pointless check for iPTRAny
jrtc27 Oct 30, 2024
9467645
[CodeGen] Rename MVT::iPTRAny to MVT::pAny
jrtc27 Oct 30, 2024
0d94c7b
[flang][cuda][NFC] Make pattern names homogenous (#114156)
clementval Oct 30, 2024
cb04d33
Improve namespace lookup using .debug_names parent chain (#110062)
jeffreytan81 Oct 30, 2024
3de5dbb
[AMDGPU][Attributor] Check the validity of a dependent AA before usin…
shiltian Oct 30, 2024
cc60c46
specify clang --target to fix breakage on AIX (#114127)
wlei-llvm Oct 30, 2024
8420dbf
[VPlan] Refine the constructor of VPWidenIntrinsicRecipe. nfc (#113890)
Mel-Chen Oct 30, 2024
f672cc1
[RISCV] Add OperandType for condition code arguments used by select a…
topperc Oct 30, 2024
922a0d3
[NFC][AMDGPU][Attributor] Exit earlier if entry CC (#114177)
shiltian Oct 30, 2024
9a7519f
Revert "[NFC][AMDGPU][Attributor] Exit earlier if entry CC (#114177)"
shiltian Oct 30, 2024
bb39151
[MemProf] Support for random hotness when writing profile (#113998)
teresajohnson Oct 30, 2024
6d9fc1b
AMDGPU: Fix producing invalid IR on vector typed getelementptr (#114113)
arsenm Oct 30, 2024
62ff85f
[lldb-dap] Fix for missing 'raw_string_ostream::flush' removal in Pro…
santhoshe447 Oct 30, 2024
e7262c1
[RISCV] Add OperandType for sew and vecpolicy operands. (#114168)
topperc Oct 30, 2024
f1467b3
[SDAG][NFC] Convert `SDNodeFlags` into an enumeration (#114167)
dtcxzyw Oct 30, 2024
df0d249
[mlir] [linalg] fix side effect of linalg op (#114045)
cxy-1993 Oct 30, 2024
b47e231
[alpha.webkit.UncountedLocalVarsChecker] Warn the use of a raw pointe…
rniwa Oct 30, 2024
44d0e95
[CodeGen][NewPM] Port TailDuplicate pass to NPM (#113293)
optimisan Oct 30, 2024
cad0940
[sema] enhance error handling for compound stmt body in `StmtExpr` (#…
HerrCai0907 Oct 30, 2024
5df84a7
[NFC] clean space in clang release note (#114188)
HerrCai0907 Oct 30, 2024
dc56a86
[clang] Fix 71315698c9 in presence of incomplete types (#114095)
serge-sans-paille Oct 30, 2024
362273d
[clang-format] Fix path expansion inside git-clang-format.bat (#114078)
MathiasMagnus Oct 30, 2024
9c8dab0
[clang] Update the lifetimebound example with up-to-date expected war…
bricknerb Oct 30, 2024
f358422
[Attributor] Add nofpclass test for phi+select recurrences. NFC
davemgreen Oct 30, 2024
e61a7dc
[X86][AVX512] Use comx for compare (#113567)
mahesh-attarde Oct 30, 2024
259eaa6
[C++20] [Modules] Fix the duplicated static initializer problem (#114…
ChuanqiXu9 Oct 30, 2024
e8b95a0
[AMDGPU][MC][NFC] Add more VIMAGE encoding tests (#114054)
mbrkusanin Oct 30, 2024
652988b
[flang][debug] Support TupleType. (#113917)
abidh Oct 30, 2024
0394888
Fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC
RKSimon Oct 30, 2024
f7b5f0c
[DAG] Fold (and X, (rot (not Y), Z)) -> (and X, (not (rot Y, Z)))
RKSimon Oct 30, 2024
0fb76ba
Reapply "[libc++] Simplify the implementation of std::sort a bit (#10…
philnik777 Oct 30, 2024
f447cf1
[CSKY] Fix some typos in CPU feature descriptions (NFC) (#105774)
alexrp Oct 30, 2024
092a819
[Flang][OpenMP] Add frontend support for directives involving master …
kiranchandramohan Oct 30, 2024
2de1fc8
[PhaseOrdering][X86] Add additional test coverage for #49736
RKSimon Oct 30, 2024
fcfd643
[lld][ELF] Fix typo in help text for plugin-opt=opt-remarks-with-hotn…
Enna1 Oct 30, 2024
5dac2db
[FMV][AArch64] Remove features which can be expressed as a combinatio…
labrinea Oct 30, 2024
bc999ee
[PhaseOrdering][X86] Add test coverage for #94546
RKSimon Oct 30, 2024
cea9dd8
[CodeGen] Change MachineInstr::isConstantValuePHI to return Register.…
jayfoad Oct 30, 2024
55e4e3f
[Flang][OpenMP] Access full list of entry block syms and vars (NFC) (…
skatrak Oct 30, 2024
85f3d5c
[AArch64] Add assembly/disassembly for SVE COMPACT (b/h) and EXPAND (…
SpencerAbson Oct 30, 2024
15f63ec
[AARCH64] Add assembly/disassmbly for FIRST,LASTP instr. (#114049)
Lukacma Oct 30, 2024
ea050ab
[mlir][Transforms][NFC] Dialect conversion: Reformat materialization …
matthias-springer Oct 30, 2024
1353852
[AutoBump] Merge with ea050ab1 (Oct 30)
jorickert Jan 31, 2025
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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions bolt/lib/Core/BinaryFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2577,6 +2577,7 @@ struct CFISnapshot {
case MCCFIInstruction::OpAdjustCfaOffset:
case MCCFIInstruction::OpWindowSave:
case MCCFIInstruction::OpNegateRAState:
case MCCFIInstruction::OpNegateRAStateWithPC:
case MCCFIInstruction::OpLLVMDefAspaceCfa:
case MCCFIInstruction::OpLabel:
llvm_unreachable("unsupported CFI opcode");
Expand Down Expand Up @@ -2715,6 +2716,7 @@ struct CFISnapshotDiff : public CFISnapshot {
case MCCFIInstruction::OpAdjustCfaOffset:
case MCCFIInstruction::OpWindowSave:
case MCCFIInstruction::OpNegateRAState:
case MCCFIInstruction::OpNegateRAStateWithPC:
case MCCFIInstruction::OpLLVMDefAspaceCfa:
case MCCFIInstruction::OpLabel:
llvm_unreachable("unsupported CFI opcode");
Expand Down Expand Up @@ -2864,6 +2866,7 @@ BinaryFunction::unwindCFIState(int32_t FromState, int32_t ToState,
case MCCFIInstruction::OpAdjustCfaOffset:
case MCCFIInstruction::OpWindowSave:
case MCCFIInstruction::OpNegateRAState:
case MCCFIInstruction::OpNegateRAStateWithPC:
case MCCFIInstruction::OpLLVMDefAspaceCfa:
case MCCFIInstruction::OpLabel:
llvm_unreachable("unsupported CFI opcode");
Expand Down
2 changes: 2 additions & 0 deletions bolt/test/X86/pre-aggregated-perf.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ REQUIRES: system-linux

RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
RUN: perf2bolt %t.exe -o %t --pa -p %p/Inputs/pre-aggregated.txt -w %t.new \
RUN: --show-density \
RUN: --profile-density-threshold=9 --profile-density-cutoff-hot=970000 \
RUN: --profile-use-dfs | FileCheck %s --check-prefix=CHECK-P2B

CHECK-P2B: BOLT-INFO: 4 out of 7 functions in the binary (57.1%) have non-empty execution profile
CHECK-P2B: BOLT-INFO: Functions with density >= 21.7 account for 97.00% total sample counts.

RUN: perf2bolt %t.exe -o %t --pa -p %p/Inputs/pre-aggregated.txt -w %t.new \
RUN: --show-density \
RUN: --profile-density-cutoff-hot=970000 \
RUN: --profile-use-dfs 2>&1 | FileCheck %s --check-prefix=CHECK-WARNING

Expand Down
3 changes: 3 additions & 0 deletions clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "MultipleStatementMacroCheck.h"
#include "NoEscapeCheck.h"
#include "NonZeroEnumToBoolConversionCheck.h"
#include "NondeterministicPointerIterationOrderCheck.h"
#include "NotNullTerminatedResultCheck.h"
#include "OptionalValueConversionCheck.h"
#include "ParentVirtualCallCheck.h"
Expand Down Expand Up @@ -174,6 +175,8 @@ class BugproneModule : public ClangTidyModule {
"bugprone-multiple-new-in-one-expression");
CheckFactories.registerCheck<MultipleStatementMacroCheck>(
"bugprone-multiple-statement-macro");
CheckFactories.registerCheck<NondeterministicPointerIterationOrderCheck>(
"bugprone-nondeterministic-pointer-iteration-order");
CheckFactories.registerCheck<OptionalValueConversionCheck>(
"bugprone-optional-value-conversion");
CheckFactories.registerCheck<PointerArithmeticOnPolymorphicObjectCheck>(
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ add_clang_library(clangTidyBugproneModule STATIC
MultipleNewInOneExpressionCheck.cpp
MultipleStatementMacroCheck.cpp
NoEscapeCheck.cpp
NondeterministicPointerIterationOrderCheck.cpp
NonZeroEnumToBoolConversionCheck.cpp
NotNullTerminatedResultCheck.cpp
OptionalValueConversionCheck.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
//===----- NondeterministicPointerIterationOrderCheck.cpp - clang-tidy ----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "NondeterministicPointerIterationOrderCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/Lex/Lexer.h"

using namespace clang::ast_matchers;

namespace clang::tidy::bugprone {

void NondeterministicPointerIterationOrderCheck::registerMatchers(
MatchFinder *Finder) {

auto LoopVariable = varDecl(hasType(
qualType(hasCanonicalType(anyOf(referenceType(), pointerType())))));

auto RangeInit = declRefExpr(to(varDecl(
hasType(recordDecl(hasAnyName("std::unordered_set", "std::unordered_map",
"std::unordered_multiset",
"std::unordered_multimap"))
.bind("recorddecl")))));

Finder->addMatcher(cxxForRangeStmt(hasLoopVariable(LoopVariable),
hasRangeInit(RangeInit.bind("rangeinit")))
.bind("cxxForRangeStmt"),
this);

auto SortFuncM = callee(functionDecl(hasAnyName(
"std::is_sorted", "std::nth_element", "std::sort", "std::partial_sort",
"std::partition", "std::stable_partition", "std::stable_sort")));

auto IteratesPointerEltsM = hasArgument(
0,
cxxMemberCallExpr(on(hasType(cxxRecordDecl(has(fieldDecl(hasType(qualType(
hasCanonicalType(pointsTo(hasCanonicalType(pointerType()))))))))))));

Finder->addMatcher(
callExpr(allOf(SortFuncM, IteratesPointerEltsM)).bind("sortsemantic"),
this);
}

void NondeterministicPointerIterationOrderCheck::check(
const MatchFinder::MatchResult &Result) {
const auto *ForRangePointers =
Result.Nodes.getNodeAs<CXXForRangeStmt>("cxxForRangeStmt");

if ((ForRangePointers) && !(ForRangePointers->getBeginLoc().isMacroID())) {
const auto *RangeInit = Result.Nodes.getNodeAs<Stmt>("rangeinit");
if (const auto *ClassTemplate =
Result.Nodes.getNodeAs<ClassTemplateSpecializationDecl>(
"recorddecl")) {
const TemplateArgumentList &TemplateArgs =
ClassTemplate->getTemplateArgs();
const bool IsAlgoArgPointer =
TemplateArgs[0].getAsType()->isPointerType();

if (IsAlgoArgPointer) {
SourceRange R = RangeInit->getSourceRange();
diag(R.getBegin(), "iteration of pointers is nondeterministic") << R;
}
}
return;
}
const auto *SortPointers = Result.Nodes.getNodeAs<Stmt>("sortsemantic");

if ((SortPointers) && !(SortPointers->getBeginLoc().isMacroID())) {
SourceRange R = SortPointers->getSourceRange();
diag(R.getBegin(), "sorting pointers is nondeterministic") << R;
}
}

} // namespace clang::tidy::bugprone
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//=== NondeterministicPointerIterationOrderCheck.h - clang-tidy -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_NONDETERMINISTIC_POINTER_ITERATION_ORDER_CHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_NONDETERMINISTIC_POINTER_ITERATION_ORDER_CHECK_H

#include "../ClangTidyCheck.h"

namespace clang::tidy::bugprone {

/// Finds nondeterministic usages of pointers in unordered containers. The
/// check also finds calls to sorting-like algorithms on a container of
/// pointers.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/bugprone/nondeterministic-pointer-iteration-order.html
class NondeterministicPointerIterationOrderCheck : public ClangTidyCheck {
public:
NondeterministicPointerIterationOrderCheck(StringRef Name,
ClangTidyContext *Context)
: ClangTidyCheck(Name, Context) {}
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
return LangOpts.CPlusPlus;
}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
std::optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}
};

} // namespace clang::tidy::bugprone

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_NONDETERMINISTIC_POINTER_ITERATION_ORDER_CHECK_H
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ unsigned getNumberOfDesignated(const InitListExpr *SyntacticInitList) {
});
}

AST_MATCHER(CXXRecordDecl, isAggregate) { return Node.isAggregate(); }
AST_MATCHER(CXXRecordDecl, isAggregate) {
return Node.hasDefinition() && Node.isAggregate();
}

AST_MATCHER(CXXRecordDecl, isPOD) { return Node.isPOD(); }
AST_MATCHER(CXXRecordDecl, isPOD) {
return Node.hasDefinition() && Node.isPOD();
}

AST_MATCHER(InitListExpr, isFullyDesignated) {
if (const InitListExpr *SyntacticForm =
Expand Down
24 changes: 16 additions & 8 deletions clang-tools-extra/clang-tidy/readability/EnumInitialValueCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ AST_MATCHER(EnumDecl, hasSequentialInitialValues) {
return !AllEnumeratorsArePowersOfTwo;
}

std::string getName(const EnumDecl *Decl) {
if (!Decl->getDeclName())
return "<unnamed>";

return Decl->getQualifiedNameAsString();
}

} // namespace

EnumInitialValueCheck::EnumInitialValueCheck(StringRef Name,
Expand Down Expand Up @@ -160,10 +167,11 @@ void EnumInitialValueCheck::registerMatchers(MatchFinder *Finder) {
void EnumInitialValueCheck::check(const MatchFinder::MatchResult &Result) {
if (const auto *Enum = Result.Nodes.getNodeAs<EnumDecl>("inconsistent")) {
DiagnosticBuilder Diag =
diag(Enum->getBeginLoc(),
"initial values in enum %0 are not consistent, consider explicit "
"initialization of all, none or only the first enumerator")
<< Enum;
diag(
Enum->getBeginLoc(),
"initial values in enum '%0' are not consistent, consider explicit "
"initialization of all, none or only the first enumerator")
<< getName(Enum);
for (const EnumConstantDecl *ECD : Enum->enumerators())
if (ECD->getInitExpr() == nullptr) {
const SourceLocation EndLoc = Lexer::getLocForEndOfToken(
Expand All @@ -183,16 +191,16 @@ void EnumInitialValueCheck::check(const MatchFinder::MatchResult &Result) {
if (Loc.isInvalid() || Loc.isMacroID())
return;
DiagnosticBuilder Diag = diag(Loc, "zero initial value for the first "
"enumerator in %0 can be disregarded")
<< Enum;
"enumerator in '%0' can be disregarded")
<< getName(Enum);
cleanInitialValue(Diag, ECD, *Result.SourceManager, getLangOpts());
return;
}
if (const auto *Enum = Result.Nodes.getNodeAs<EnumDecl>("sequential")) {
DiagnosticBuilder Diag =
diag(Enum->getBeginLoc(),
"sequential initial value in %0 can be ignored")
<< Enum;
"sequential initial value in '%0' can be ignored")
<< getName(Enum);
for (const EnumConstantDecl *ECD : llvm::drop_begin(Enum->enumerators()))
cleanInitialValue(Diag, ECD, *Result.SourceManager, getLangOpts());
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "../utils/FixItHintUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/FixIt.h"
#include <queue>
Expand All @@ -26,6 +27,8 @@ AST_MATCHER(Stmt, isMacroExpansion) {
return SM.isMacroBodyExpansion(Loc) || SM.isMacroArgExpansion(Loc);
}

AST_MATCHER(Stmt, isC23) { return Finder->getASTContext().getLangOpts().C23; }

bool isNULLMacroExpansion(const Stmt *Statement, ASTContext &Context) {
SourceManager &SM = Context.getSourceManager();
const LangOptions &LO = Context.getLangOpts();
Expand Down Expand Up @@ -298,6 +301,11 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) {
hasCastKind(CK_FloatingToBoolean),
hasCastKind(CK_PointerToBoolean),
hasCastKind(CK_MemberPointerToBoolean)),
// Exclude cases of C23 comparison result.
unless(allOf(isC23(),
hasSourceExpression(ignoringParens(
binaryOperator(hasAnyOperatorName(
">", ">=", "==", "!=", "<", "<=")))))),
// Exclude case of using if or while statements with variable
// declaration, e.g.:
// if (int var = functionCall()) {}
Expand Down
16 changes: 14 additions & 2 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ New checks
Warns about code that tries to cast between pointers by means of
``std::bit_cast`` or ``memcpy``.

- New :doc:`bugprone-nondeterministic-pointer-iteration-order
<clang-tidy/checks/bugprone/nondeterministic-pointer-iteration-order>`
check.

Finds nondeterministic usages of pointers in unordered containers.

- New :doc:`bugprone-tagged-union-member-count
<clang-tidy/checks/bugprone/tagged-union-member-count>` check.

Expand Down Expand Up @@ -210,6 +216,10 @@ Changes in existing checks
a false positive when only an implicit conversion happened inside an
initializer list.

- Improved :doc:`modernize-use-designated-initializers
<clang-tidy/checks/modernize/use-designated-initializers>` check to fix a
crash when a class is declared but not defined.

- 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.
Expand Down Expand Up @@ -243,13 +253,15 @@ Changes in existing checks

- Improved :doc:`readability-enum-initial-value
<clang-tidy/checks/readability/enum-initial-value>` check by only issuing
diagnostics for the definition of an ``enum``, and by fixing a typo in the
diagnostics for the definition of an ``enum``, by not emitting a redundant
file path for anonymous enums in the diagnostic, and by fixing a typo in the
diagnostic.

- Improved :doc:`readability-implicit-bool-conversion
<clang-tidy/checks/readability/implicit-bool-conversion>` check
by adding the option `UseUpperCaseLiteralSuffix` to select the
case of the literal suffix in fixes.
case of the literal suffix in fixes and fixing false positive for implicit
conversion of comparison result in C23.

- Improved :doc:`readability-redundant-smartptr-get
<clang-tidy/checks/readability/redundant-smartptr-get>` check to
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.. title:: clang-tidy - bugprone-nondeterministic-pointer-iteration-order

bugprone-nondeterministic-pointer-iteration-order
=================================================

Finds nondeterministic usages of pointers in unordered containers.

One canonical example is iteration across a container of pointers.

.. code-block:: c++

{
int a = 1, b = 2;
std::unordered_set<int *> UnorderedPtrSet = {&a, &b};
for (auto i : UnorderedPtrSet)
f(i);
}

Another such example is sorting a container of pointers.

.. code-block:: c++

{
int a = 1, b = 2;
std::vector<int *> VectorOfPtr = {&a, &b};
std::sort(VectorOfPtr.begin(), VectorOfPtr.end());
}

Iteration of a containers of pointers may present the order of different
pointers differently across different runs of a program. In some cases this
may be acceptable behavior, in others this may be unexpected behavior. This
check is advisory for this reason.

This check only detects range-based for loops over unordered sets and maps. It
also detects calls sorting-like algorithms on containers holding pointers.
Other similar usages will not be found and are false negatives.

Limitations:

* This check currently does not check if a nondeterministic iteration order is
likely to be a mistake, and instead marks all such iterations as bugprone.
* std::reference_wrapper is not considered yet.
* Only for loops are considered, other iterators can be included in
improvements.
1 change: 1 addition & 0 deletions clang-tools-extra/docs/clang-tidy/checks/list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Clang-Tidy Checks
:doc:`bugprone-multiple-new-in-one-expression <bugprone/multiple-new-in-one-expression>`,
:doc:`bugprone-multiple-statement-macro <bugprone/multiple-statement-macro>`,
:doc:`bugprone-no-escape <bugprone/no-escape>`,
:doc:`bugprone-nondeterministic-pointer-iteration-order <bugprone/nondeterministic-pointer-iteration-order>`,
:doc:`bugprone-non-zero-enum-to-bool-conversion <bugprone/non-zero-enum-to-bool-conversion>`,
:doc:`bugprone-not-null-terminated-result <bugprone/not-null-terminated-result>`, "Yes"
:doc:`bugprone-optional-value-conversion <bugprone/optional-value-conversion>`, "Yes"
Expand Down
7 changes: 3 additions & 4 deletions clang-tools-extra/modularize/CoverageChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,9 @@ bool CoverageChecker::collectModuleHeaders(const Module &Mod) {
return false;
}

for (auto &HeaderKind : Mod.Headers)
for (auto &Header : HeaderKind)
ModuleMapHeadersSet.insert(
ModularizeUtilities::getCanonicalPath(Header.Entry.getName()));
for (const auto &Header : Mod.getAllHeaders())
ModuleMapHeadersSet.insert(
ModularizeUtilities::getCanonicalPath(Header.Entry.getName()));

for (auto *Submodule : Mod.submodules())
collectModuleHeaders(*Submodule);
Expand Down
Loading