Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
619 commits
Select commit Hold shift + click to select a range
f81f32a
[X86] lowerBuildVectorAsBroadcast - remove repeated hasAVX() check. NFC.
RKSimon May 30, 2023
9e7c203
Merge from 'sycl' to 'sycl-web' (3 commits)
May 30, 2023
9109de3
Merge from 'main' to 'sycl-web' (52 commits)
May 30, 2023
96a14f3
Revert "[FuncSpec] Replace LoopInfo with BlockFrequencyInfo"
nikic May 30, 2023
c8319cf
[gn build] Port 96a14f388b1a
llvmgnsyncbot May 30, 2023
9ec5227
[mlir][linalg] FuseIntoContainingOp: Always set newContainingOp
matthias-springer May 30, 2023
2d73190
[mlir][linalg] Fix bug in FuseIntoContainingOp implementation
matthias-springer May 30, 2023
baefd66
[mlir] clarify transform.foreach_match documentation
ftynse May 30, 2023
9d6f2b1
[X86] Fix SunnyCove ROB/MicroOpBufferSize
RKSimon May 30, 2023
8378f1f
[InstCombine] Remove adjustMinMax() fold (PR62088)
nikic May 30, 2023
6042a1a
[mlir] fix mis-merge
ftynse May 30, 2023
d70573b
[RISCV][NFC] Make Reduction scheduler resources SEW aware
michaelmaitland May 25, 2023
891fad0
[mlir] [NFC] Add a newline to debug message at inserting of InterfaceMap
sott0n May 30, 2023
544a240
[RISCV] Use v(f)slide1up for shuffle+insert idiom
preames May 30, 2023
206b853
[flang] add hlfir.all intrinsic
jacob-crawley May 22, 2023
9e7699a
[flang] lower all intrinsic to hlfir.all operation
jacob-crawley May 22, 2023
8a6dada
[flang][hlfir] lower hlfir.all into runtime call
jacob-crawley May 24, 2023
1a28b9b
[VPlan] Handle invariant GEPs in isUniformAfterVectorization.
fhahn May 30, 2023
f64f760
[NFC][CLANG] Fix nullptr dereference issue in Type::getSveEltType()
smanna12 May 30, 2023
68ae0d7
[mlir] add initial chapters of the transform dialect tutorial
ftynse May 25, 2023
0e4c4c7
[clang] Extend __is_trivially_equality_comparable to check for hidden…
philnik777 May 30, 2023
8098f25
[LV] Use Legal::isUniform to detect uniform pointers.
fhahn May 30, 2023
5e7ac25
[mlir][transform] Add op for adding attributes to payload IR
qedawkins May 30, 2023
2582b2e
[mlir][llvm] Add LLVM TargetExtType
sommerlukas May 30, 2023
7cdb875
[mlir] silence msvc warning
ftynse May 30, 2023
18fb96e
Revert "[Driver] Remove unused declaration AddStaticDeviceLibsPostLin…
premanandrao May 30, 2023
0da99ff
[clang][analyzer][NFC] Remove unnecessary casts around Allocate funct…
gribozavr May 30, 2023
daa95c7
[clang][analyzer][NFC] Remove unnecessary FALLTHROUGH markers
gribozavr May 30, 2023
40a81d3
[CodeGen] Refactor IR generation functions to use IRBuilder in Comple…
igogo-x86 Apr 19, 2023
d6e1909
Mark header as textual
adrian-prantl May 30, 2023
0ec79f4
[X86] Regenerate sqrt-fastmath-mir.ll
RKSimon May 30, 2023
0989ce9
[clang][analyzer][NFC] Move dyn_cast's into if statements for readabi…
gribozavr May 30, 2023
8a40f89
[clang][analyzer][NFC] Replace dyn_cast with cast in MemRegion::getMe…
gribozavr May 30, 2023
d951c6a
[libc++][CI] Installs libomp.
mordante May 25, 2023
5e98dbf
[AArch64] Add i1 insert/extract cost tests. NFC
davemgreen May 30, 2023
93f8554
[RISCV] Correct capitalization of SiFive in a comment. NFC
topperc May 30, 2023
8c5ad4a
Fix "[compiler-rt] Refactor memintrinsic interceptors"
melver May 30, 2023
66c7388
[libc++] Deprecate the classes in strstream.
mordante May 25, 2023
0ee73de
[libc++][format] Fixes year formatter on Windows.
mordante May 27, 2023
ab70b63
[MLIR][CAPI] Move `DenseMapInfo<MlirTypeID>`
makslevental May 30, 2023
86821b5
[RISCV] Add copyright header to IntrinsicsRISCVXTHead.td and Intrinsi…
topperc May 30, 2023
5c000df
[flang] [NFC] Remove an unneeded include.
psteinfeld May 30, 2023
85670ac
[Format/ObjC] Support NS_ASSUME_NONNULL_BEGIN and FOUNDATION_EXPORT i…
bhamiltoncx May 26, 2023
d829190
[Headers][doc] Add add/sub/mul intrinsic descriptions to avx2intrin.h
pogo59 May 30, 2023
24172de
[RISCV] Add tests for vslide1down shuffle/insert idiom
preames May 30, 2023
0bb23c5
[RISCV] Rename vslide1down tests (should have been part of 24172de)
preames May 30, 2023
2922e7c
Re-enable MLIR test-contraction.mlir integration test after LLVM back…
joker-eph May 30, 2023
6cdc07a
[CUDA] correctly install cuda_wrappers/bits/shared_ptr_base.h
Artem-B May 25, 2023
6219b7c
[clang-tidy] Do not emit bugprone-exception-escape warnings from coro…
denizevrenci May 30, 2023
b07d08b
[RISCV] Add additional vslide1up test coverage
preames May 30, 2023
b75f9ce
[FLANG] Support all arrays for LoopVersioning
Leporacanthicus May 22, 2023
bd9940a
[Driver][test] Properly test -mdefault-visibility-export-mapping=
MaskRay May 30, 2023
06ff977
[clang][ExtractAPI] Refactor serializer to the CRTP
evelez7 May 30, 2023
520362b
[gn build] Port 06ff9770477d
llvmgnsyncbot May 30, 2023
e557b8a
[libc][RISCV] Add log, log2, log1p, log10 for RISC-V64 entrypoints.
lntue May 30, 2023
a2a5144
[compiler-rt][bultins] Fix libatomic standalone build
abrachet May 30, 2023
fbea5aa
[Driver] Add ClangFlags::TargetSpecific to simplify err_drv_unsupport…
MaskRay May 30, 2023
54d45dd
[clang-tidy][docs] Fix link to libc style guide
abrachet May 30, 2023
627d5e1
[BOLT][CMake] Use LLVM macros for install targets
petrhosek May 26, 2023
99a1aee
Revert "[BOLT][CMake] Use LLVM macros for install targets"
petrhosek May 30, 2023
d81ce04
[Driver] Report error for unsupported -mlarge-endian/-mlittle-endian
MaskRay May 30, 2023
28b26b1
[clang] [test] Narrow down an MSVC specific behaviour to only not cov…
mstorsjo May 29, 2023
02bf5e3
[ConstraintElim] Add additional tests for and implication handling.
fhahn May 30, 2023
19ef02e
[libc++][ci] Use ccache in the jobs that build Clang
ldionne May 18, 2023
8e0001e
[lldb][NFCI] Refactor Language::GetFormatterPrefixSuffix
bulbazord May 27, 2023
692f305
[Driver] Remove unused class ForceSuccessCommand
kazutakahirata May 30, 2023
db7f639
[mlir][sparse] fix a crash when generating sparse convolution with nc…
May 30, 2023
f46638b
[lldb][NFCI] Change type of SBDebugger::m_instance_name
bulbazord May 26, 2023
af8e386
[RISCV][GlobalISel] Add lowerFormalArguments for calling convention
nitinjohnraj May 30, 2023
9e8a412
[lldb][NFCI] Remove use of ConstString from StructuredDataDarwinLog s…
bulbazord May 26, 2023
769d282
[clang][lex] NFCI: Use FileEntryRef in ModuleMap::{load,lookup}Module…
jansvoboda11 May 25, 2023
95279d7
[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFramework…
jansvoboda11 May 25, 2023
d574e91
[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::parseModuleMap…
jansvoboda11 May 25, 2023
32d6f3c
[clang] NFCI: Use DirectoryEntryRef in Module::Directory
jansvoboda11 May 25, 2023
b1e5b28
[clang][lex] NFCI: Use FileEntryRef in Sema::CodeCompleteIncludedFile
jansvoboda11 May 25, 2023
e19f352
[clang][lex] NFCI: Use DirectoryEntryRef in Preprocessor::MainFileDir
jansvoboda11 May 25, 2023
e348dbc
[lldb] Fix build after Clang API change
jansvoboda11 May 30, 2023
43bec33
Remove HAVE_STRERROR
MaskRay May 30, 2023
087b67c
[AMDGPU][LoadStoreVectorizer] Pre-commit test for addrspace 7 crash
krzysz00 May 30, 2023
a79b0f9
[lldb] Fix build after Clang API change at rev 769d282d7292
slackito May 30, 2023
e3fbede
[HIP] Add missing __hip_atomic_fetch_sub support
ldrumm May 30, 2023
6b4b63a
Lowering for 'tosa.scatter'
rafaelubalmw May 30, 2023
463f50b
[RISCV] Add RISCVISD::VFWMUL_VL. Use it to replace isel patterns with…
topperc May 30, 2023
1721e72
[AMDGPU][IGLP] Parameterize the SchedGroup processing / linking order…
jrbyrnes Apr 27, 2023
5da248c
[LLVM Utils] Update Certifi to 2023.5.7
May 30, 2023
48e5f70
[lld-macho] Remove linking bitcode support
keith May 16, 2023
cce3782
Merge from 'sycl' to 'sycl-web'
May 30, 2023
bf63b15
[libc++][PSTL] Implement std::merge
philnik777 May 30, 2023
4541633
[RISCV] Allow FWMUL formation for an FP extend used twice by the same…
topperc May 30, 2023
57154a6
[lldb] Introduce FileSpec::GetComponents
bulbazord May 25, 2023
510f416
[RISCV] Add some tail undisturbed vwmacc tests. NFC
topperc May 30, 2023
76647fc
[mlir][sparse] Combining `dimOrdering`+`higherOrdering` fields into `…
wrengr May 30, 2023
c03e651
[BOLT] Add skip-non-simple for boltdiff
aaupov May 30, 2023
135ce2f
[clang][ExtractAPI] Modify declaration fragment methods to add a new …
Ruturaj4 May 21, 2023
92180da
[clang][ExtractAPI] Modify declaration fragment methods to add a new …
Ruturaj4 May 27, 2023
397f2e9
Remove llvm::Optional
kazutakahirata May 30, 2023
c7eb1b0
[lldb] Consult summary provider before printing children of root refe…
kastiglione May 30, 2023
48a12ae
Fix a few bugs with Mach-O corefile loading, plus perf
jasonmolenda May 30, 2023
061a839
[lldb] Prevent dwim-print from showing kNoResult error
kastiglione May 24, 2023
540d5e0
[mlir][sparse] Updating STEA parser/printer to use the name "dimSlices"
wrengr May 30, 2023
9d3b4cf
Merge from 'main' to 'sycl-web' (156 commits)
againull May 30, 2023
af2bec7
[mlir][sparse] Adding new STEA::{with,without}DimSlices factories
wrengr May 30, 2023
f58e67d
[mlir][sparse] Removing unused helper function
wrengr May 30, 2023
af4da3d
[CMake] Remove BOLT from Fuchsia toolchain
petrhosek May 19, 2023
8148fc5
[llvm-debuginfod][NFC] Switch to OptTable
May 30, 2023
68ef0e9
[mlir][tosa] Implement lowering for tosa.rfft2d
sabauma May 30, 2023
749aeea
[clang][ExtractAPI] Fix -Wpessimizing-move in DeclarationFragments.h …
DamonFool May 30, 2023
d54b2d1
[ExtractAPI] clang-format DeclarationFragments::insert
kazutakahirata May 30, 2023
0016141
[gn] port 48e5f704c55f (no more LLVM_HAVE_LIBXAR in ld64.lld)
nico May 30, 2023
79fadde
[gn build] Port bf63b15bd4bf
llvmgnsyncbot May 30, 2023
aaa33b6
Fix assert "DeclRefExpr for Decl not entered in LocalDeclMap?"
jyu2-git May 30, 2023
91adbc1
Merge from 'main' to 'sycl-web' (28 commits)
againull May 30, 2023
1418677
Fix SBValue::FindValue for file static variables
jimingham May 31, 2023
be9b79f
[lldb] Remove commented out code/logging in BreakpointSiteList (NFC)
JDevlieghere May 30, 2023
7a1077b
[mlir][sparse] Improving SparseTensorDimSliceAttr methods
wrengr May 30, 2023
fef23e8
[libc++] Include "bits/alltypes.h" to provide mbstate_t when using mu…
pzhengqc May 30, 2023
bce889c
[BOLT] Align BranchInfo and FuncBranchData in DataAggregator::recordT…
aaupov May 31, 2023
7bf8125
Merge from 'main' to 'sycl-web' (10 commits)
againull May 31, 2023
8ac0847
[NFC][ASAN] Remove redundant fields of AsanThread
vitalybuka May 8, 2023
d146fc8
add missing dependency for TosaToLinalg
yijia1212 May 31, 2023
0c05128
[NFC][CLANG] Fix nullptr dereference issue in Type::getRVVEltType()
smanna12 May 31, 2023
62307f6
[RISCV] Fix selection for some unmasked vp SDNode.
jacquesguan May 30, 2023
cf236a0
[NFC][CLANG] Fix nullptr dereference issue in DeduceTemplateArguments…
smanna12 May 31, 2023
a04f1d2
[MachO] Add the relocation types for auth pointers (chained fixups).
May 31, 2023
afb73f7
Revert "[NFC][ASAN] Remove redundant fields of AsanThread"
vitalybuka May 31, 2023
319d5d9
[NFC][OpenMP] Remove unused variable `new_iv_saved` in `openmp/runtim…
shiltian May 31, 2023
6114579
[NFC][sanitizer] Extend ArrayRef
vitalybuka May 31, 2023
5f2ce19
[MachO] Add comments to explain the semantics of chained fixups struc…
May 31, 2023
7e99d31
[MachineScheduler] Disable default copy ctor and copy assignment oper…
yubingex007-a11y May 31, 2023
d5001e4
[MC] Disable default copy ctor and copy assignment operator for CodeV…
yubingex007-a11y May 31, 2023
0442d08
[clang][Sema] Improve diagnostics for auto return type
yxsamliu May 9, 2023
0454c36
Revert "Remove llvm::Optional"
againull May 31, 2023
e6830b6
[clang][modules] NFCI: Extract optionality out of `Module::{Header,Di…
jansvoboda11 May 31, 2023
0a4ba48
[RISCV] Strengthen some SDTypeProfiles to reduce isel table size.
topperc May 31, 2023
9bd3ff8
Fix -u option in dsymutil, to not emit an extra DW_LNE_set_address if…
rastogishubham May 26, 2023
3473f72
[clang][lex] NFCI: Use DirectoryEntryRef in HeaderSearch::LookupFile
jansvoboda11 May 31, 2023
a5bf486
print user provide value in tabstop diagnostic
csmoe May 31, 2023
1e26c6a
Revert "Fix -u option in dsymutil, to not emit an extra DW_LNE_set_ad…
rastogishubham May 31, 2023
e517c5a
[clang] Add test for -ftabstop diagnostics
jansvoboda11 May 31, 2023
f63155a
[clang] Show line numbers in diagnostic code snippets
tbaederr May 17, 2023
a33099f
[mlir] Add the missing non-member operator decl in the same namesapce…
darkbuck May 31, 2023
0706a53
[NFC][sanitizer] Change ArrayRef constructor
vitalybuka May 31, 2023
ac1df22
[RISCV] Merge emitDirectiveOptionArchPlus and emitDirectiveOptionArch…
topperc May 31, 2023
4de9936
[libc++][CI] Escape quoting.
mordante May 31, 2023
f28ed7f
[NFC][HWASAN] make variables names for callback functions more consis…
Enna1 May 31, 2023
5265ff2
[VLIWMachineScheduler] Disable default copy ctor and copy assignment …
yubingex007-a11y May 31, 2023
35a0079
[RISCV] Add Zvfhmin extension for clang.
jacquesguan May 25, 2023
8e9baa9
[mlir][llvm] Add alias and access group info to call.
gysit May 31, 2023
606c74d
Fix resolution after "[MemProf] Clean up MemProf instrumentation pass…
againull May 31, 2023
39f4bd2
[clang][Interp][NFC] Simplify dump() indentation
tbaederr May 31, 2023
ddff70c
[clang][Interp][NFC] Make InterpFrame::describe() more const-correct
tbaederr May 31, 2023
a0ea9f6
[clang] Fix 39f4bd214f1be248283fb7e35bc2610c19169252 on win builders
tbaederr May 31, 2023
238f158
[clang] Add test for CWG873
Endilll May 31, 2023
548fa1d
[RISCV] Add special case for (select cc, 1.0, 0.0) to lowerSELECT
ChunyuLiao May 31, 2023
b7e5cb1
[clang][NFC] Refactor emitSnippet()
tbaederr May 17, 2023
6614d36
[libc++][spaceship] Additional tests for `operator<=>` `map` and `mul…
Zingam May 23, 2023
ce954e1
[mlir][Transforms] GreedyPatternRewriteDriver: Worklist randomizer
matthias-springer May 31, 2023
49843c5
[clang][Diagnostics] Simplify emitSnippet()
tbaederr May 22, 2023
1c76548
[clang][Diagnostics] Use llvm::raw_ostream::indent()
tbaederr May 22, 2023
c113cbb
[clang][Diagnostic][NFC] Simplify emitDiagnosticLoc
tbaederr May 22, 2023
b0bab14
[clang-tidy] Add check bugprone-unique-ptr-array-mismatch.
balazske May 31, 2023
bb6c036
[clang][Diagnostics][NFC] Use getFileID() directly
tbaederr May 22, 2023
50f0b8d
[clang][Diagnostics][NFC] Merge byte/column mapping functions into one.
tbaederr May 22, 2023
9146e89
[gn build] Port b0bab14b8b53
llvmgnsyncbot May 31, 2023
6118cb4
[mlir][Bazel] Adapt Bazel BUILD for ce954e1cda5c9b55325903d51285cd742…
akuegel May 31, 2023
543c929
[clang][Diagnostics][NFC] Remove unused Indentation parameter
tbaederr May 22, 2023
e494bcd
[mlir] small cleanup of transform dialect docs
ftynse May 31, 2023
96816a1
[mlir][bazel] Follow-up fix for ce954e1cda5c9b55325903d51285cd742152a…
bchetioui May 31, 2023
0157815
[clang][Diagnostics][NFC] Don't create oversized CaretLine
tbaederr May 24, 2023
3184fb9
[clang][Diagnostics] Print empty lines in multiline snippets
tbaederr May 24, 2023
a806b3f
[clang][Diagnostics][NFC] Remove unnecessary StringRef
tbaederr May 24, 2023
b5c7892
[clang][Diagnostics][NFC] Move Buf{Start,End} out of the loop
tbaederr May 24, 2023
1379127
[MemoryBuiltins] Handle phi nodes without operands (PR63013)
nikic May 31, 2023
895b555
[clang][Diagnostics][NFC] Move variable decl into if statement
tbaederr May 24, 2023
d8c18e4
[mlir] fix documentation includes
ftynse May 31, 2023
8d7e90c
[mlir] drop debug tags after TransformInterpreterPassBase
ftynse May 31, 2023
dc81e69
[IndVars] Check expansion safety in makeIVComparisonInvariant() (PR62…
nikic May 31, 2023
6e1f5ea
[LangRef] fix the function result attributes location explanation and…
khei4 May 31, 2023
2bca692
Fix link in transform example README.md
ftynse May 31, 2023
40c26ec
[clang][Interp] Fix diagnosing uninitialized ctor record arrays
tbaederr Feb 5, 2023
ac5c996
[clang] Mark keywords that have their own parsing rules
rsandifo-arm Apr 4, 2023
301eb6b
[clang] Add support for “regular” keyword attributes
rsandifo-arm Apr 19, 2023
33ee5c4
[clang] Add Parse and Sema support for RegularKeyword attributes
rsandifo-arm Apr 4, 2023
e614d56
[compiler-rt] Avoid memintrinsic calls inserted by the compiler
melver May 30, 2023
a2e3b6f
[gn] Port e614d5667f6c
nico May 31, 2023
da836b3
[clang][Interp] Track frame depth
tbaederr Apr 17, 2023
f40e8f1
[Assignment Tracking] Ignore stores to a negative offset from an alloca
OCHyams May 25, 2023
26bda9e
Revert "[compiler-rt] Avoid memintrinsic calls inserted by the compiler"
melver May 31, 2023
3b3912e
Reapply [SelectionDAG] Handle NSW for ADD/SUB in computeKnownBits()
dc03 May 17, 2023
722fc7e
[clang][Interp] Add missing static_assert messages
tbaederr May 31, 2023
b2f4e75
[bazel] Port for 301eb6b68f30074ee3a90e2dfbd11dfd87076323
hokein May 31, 2023
81522a0
[clang][Interp] Optionally cast comparison result to non-bool
tbaederr May 2, 2023
2e676fa
Revert "[clang][Interp] Optionally cast comparison result to non-bool"
tbaederr May 31, 2023
b85f42a
[X86] Replace X32 test check prefixes with X86
RKSimon May 31, 2023
65dce67
[X86] getTargetConstantBitsFromNode - ensure we truncate broadcasts f…
RKSimon May 31, 2023
f1a4230
[X86] printConstant - fix asm comment issue when broadcasting from a …
RKSimon May 31, 2023
253e3e2
[Test] Add test showing miscompilation in LoopStrengthReduce on min/m…
d-makogon May 31, 2023
981766a
[mlir][bazel] Disable Transform/test-repro-dump.mlir test in bazel bu…
bchetioui May 31, 2023
6432658
[X86] Replace X32 test check prefixes with X86
RKSimon May 31, 2023
7030c01
[X86] Replace X32 test check prefix with X86
RKSimon May 31, 2023
c76a3e7
[libc][NFC] Fixing various typos
gchatelet May 31, 2023
64bd5bb
[mlir] Avoid tensor canonicalizer crash on negative dimensions
rikhuijzer May 31, 2023
344e91a
[gn] port 301eb6b68f3 (AttrTokenKinds.inc)
nico May 31, 2023
dd2fea9
[GlobalIsel][X86] Legalize G_CTLZ and G_CTPOP for 32-bit
tschuett May 25, 2023
0b42ee4
[gn build] Port 26bda9e95a9d
llvmgnsyncbot May 31, 2023
9169803
Merge from 'sycl' to 'sycl-web'
May 31, 2023
ce97312
Implement BufferOverlap check for sprint/snprintf
ArnaudBienner May 31, 2023
4d64ffa
[GVN] Add test for PR63019 (NFC)
nikic May 31, 2023
97f0e7b
[AA] Fix comparison of AliasResults (PR63019)
nikic May 31, 2023
6bcbb3a
[ConstraintElim] Move logic to remove stack entry to helper (NFC).
fhahn May 31, 2023
0a3dc73
[Test] Move LoopStrengthReduce/pr62563.ll to X86 specific test folder…
d-makogon May 31, 2023
e5399f1
[Headers][doc] Add shuffle-like intrinsic descriptions to avx2intrin.h
pogo59 May 30, 2023
f6a631d
[MLIR] Remove dependency on omp dialect in LLVM dialect.
jsjodin May 30, 2023
5437056
[Headers][doc] Fix typo in avx2intrin.h doc
pogo59 May 31, 2023
408f419
[flang] use greedy mlir driver for stack arrays pass
tblah May 17, 2023
8634b43
[ELF][RISCV] --wrap=foo: Correctly update st_value(foo)
MaskRay May 31, 2023
f9b523e
[Analysis] Remove unused class LegacyAARGetter
kazutakahirata May 31, 2023
5442264
[InstCombine] Name instructions in test (NFC)
nikic May 31, 2023
e693181
[RISCV] Use v(f)slide1down for shuffle+insert idiom
preames May 31, 2023
26d7b7b
[TableGen] Add !getdagarg and !getdagname
darkbuck May 26, 2023
4369de7
[compiler-rt] Avoid memintrinsic calls inserted by the compiler
melver May 30, 2023
572cfa3
[LV] Use SCEV for uniformity analysis across VF
fhahn May 31, 2023
e0df106
[Flang] Move several definitions to IntrinsicCall header for code cle…
pscoro May 30, 2023
cb463c3
[lldb] Take StringRef name in GetChildMemberWithName (NFC)
kastiglione May 27, 2023
3825910
[gn] port 4369de7af466
nico May 31, 2023
42e98c6
[APInt] Support zero-width extract in extractBitsAsZExtValue()
nikic May 31, 2023
7578672
[lldb] Override GetVariable in ValueObjectSynthetic (NFC)
kastiglione May 20, 2023
ac7d60f
[libc++] Fixes use-after move diagnostic.
mordante May 23, 2023
5d4281d
[libc++] Gives ignore external linkage.
mordante May 25, 2023
cf64668
[libc++][test] Prefers the newer clang-tidy version.
mordante Apr 28, 2023
f29f1c7
[libc++]{CI] Bumps clang-tidy version used.
mordante May 28, 2023
d6a3661
[X86] X86FixupVectorConstantsPass - use VBROADCASTSS/VBROADCASTSD for…
RKSimon May 31, 2023
6eef8d9
[RISCV] Fix an unused variable warning
kazutakahirata May 31, 2023
660e453
[KnownBits] Also test 1-bit values in exhaustive tests (NFC)
nikic May 31, 2023
71d5a94
[flang] Don't fold SIZE()/SHAPE() into expression referencing optiona…
klausler May 25, 2023
fc8acb5
[Clang][SVE2.1] Add clang support for builtins using svcount_t
CarolineConcatto May 31, 2023
8e728ad
Revert "[compiler-rt] Avoid memintrinsic calls inserted by the compiler"
melver May 31, 2023
a88f496
[Sema] Remove unused function getFloat128Identifier
kazutakahirata May 31, 2023
6532d2e
Merge from 'main' to 'sycl-web' (82 commits)
againull May 31, 2023
182ec5b
Merge from 'sycl' to 'sycl-web' (6 commits)
May 31, 2023
d9a9f60
Merge from 'main' to 'sycl-web' (54 commits)
againull May 31, 2023
e4ad410
Merge remote-tracking branch 'origin/sycl-web' into llvmspirv_pulldown
sys-ce-bb Jun 1, 2023
23a3ea0
Relax consumer checks for checksum info (#2011)
MrSidims May 28, 2023
353f349
Skip spirv decoration metadata with --spirv-preserve-auxdata (#2013)
sarnex May 30, 2023
1bae4b7
Use clang to generate compile_commands (#2031)
svenvh May 31, 2023
f874ec8
Fix 2 sycl tests: SemaSYCL/loop_fusion.cpp, SemaSYCL/fpga_pipes.cpp
Jun 2, 2023
35171b3
Finish fixing 2nd SemaSYCl test due to diag change.
Jun 2, 2023
0ae900a
[SYCL] Fix kernel-bundle-merge-options-env.cpp test
againull Jun 6, 2023
0ca2be5
Disable Basic/stream/stream.cpp test for HIP until it is fixed
kchusha Jun 6, 2023
074276b
Merge remote-tracking branch 'origin/sycl' into llvmspirv_pulldown
againull Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ f84bac329ba6c9f0c022bcf77237e912362e247a
dd3c26a045c081620375a878159f536758baba6e
7bfaa0f09d0564f315ea778023b34b8a113ec740
f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c
2238dcc39358353cac21df75c3c3286ab20b8f53
f9008e6366c2496b1ca1785b891d5578174ad63e
10 changes: 5 additions & 5 deletions .github/workflows/version-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@


def get_version_from_tag(tag):
m = re.match('llvmorg-([0-9]+)\.([0-9]+)\.([0-9]+)(-rc[0-9]+)?$', tag)
m = re.match("llvmorg-([0-9]+)\.([0-9]+)\.([0-9]+)(-rc[0-9]+)?$", tag)
if m:
if m.lastindex == 4:
# We have an rc tag.
return m.group(1,2,3)
return m.group(1, 2, 3)
# We have a final release tag.
return (m.group(1), m.group(2), str(int(m.group(3)) + 1))

m = re.match('llvmorg-([0-9]+)-init', tag)
m = re.match("llvmorg-([0-9]+)-init", tag)
if m:
return (m.group(1), "0", "0")

Expand All @@ -25,8 +25,8 @@ def get_version_from_tag(tag):

repo = Repo()

tag = repo.git.describe(tags = True, abbrev=0)
expected_version = '.'.join(get_version_from_tag(tag))
tag = repo.git.describe(tags=True, abbrev=0)
expected_version = ".".join(get_version_from_tag(tag))

if version != expected_version:
print("error: Expected version", expected_version, "but found version", version)
Expand Down
8 changes: 4 additions & 4 deletions bolt/include/bolt/Profile/DataAggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ class DataAggregator : public DataReader {
/// execution order.
///
/// Return true if the trace is valid, false otherwise.
bool recordTrace(
BinaryFunction &BF, const LBREntry &First, const LBREntry &Second,
uint64_t Count = 1,
SmallVector<std::pair<uint64_t, uint64_t>, 16> *Branches = nullptr) const;
bool
recordTrace(BinaryFunction &BF, const LBREntry &First, const LBREntry &Second,
uint64_t Count,
SmallVector<std::pair<uint64_t, uint64_t>, 16> &Branches) const;

/// Return a vector of offsets corresponding to a trace in a function
/// (see recordTrace() above).
Expand Down
37 changes: 19 additions & 18 deletions bolt/lib/Profile/DataAggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,11 +838,9 @@ bool DataAggregator::doTrace(const LBREntry &First, const LBREntry &Second,
}

bool DataAggregator::recordTrace(
BinaryFunction &BF,
const LBREntry &FirstLBR,
const LBREntry &SecondLBR,
BinaryFunction &BF, const LBREntry &FirstLBR, const LBREntry &SecondLBR,
uint64_t Count,
SmallVector<std::pair<uint64_t, uint64_t>, 16> *Branches) const {
SmallVector<std::pair<uint64_t, uint64_t>, 16> &Branches) const {
BinaryContext &BC = BF.getBinaryContext();

if (!BF.isSimple())
Expand Down Expand Up @@ -902,24 +900,27 @@ bool DataAggregator::recordTrace(
return false;
}

// Record fall-through jumps
BinaryBasicBlock::BinaryBranchInfo &BI = BB->getBranchInfo(*NextBB);
BI.Count += Count;

if (Branches) {
const MCInst *Instr = BB->getLastNonPseudoInstr();
uint64_t Offset = 0;
if (Instr)
Offset = BC.MIB->getOffsetWithDefault(*Instr, 0);
else
Offset = BB->getOffset();
const MCInst *Instr = BB->getLastNonPseudoInstr();
uint64_t Offset = 0;
if (Instr)
Offset = BC.MIB->getOffsetWithDefault(*Instr, 0);
else
Offset = BB->getOffset();

Branches->emplace_back(Offset, NextBB->getOffset());
}
Branches.emplace_back(Offset, NextBB->getOffset());

BB = NextBB;
}

// Record fall-through jumps
for (const auto &[FromOffset, ToOffset] : Branches) {
BinaryBasicBlock *FromBB = BF.getBasicBlockContainingOffset(FromOffset);
BinaryBasicBlock *ToBB = BF.getBasicBlockAtOffset(ToOffset);
assert(FromBB && ToBB);
BinaryBasicBlock::BinaryBranchInfo &BI = FromBB->getBranchInfo(*ToBB);
BI.Count += Count;
}

return true;
}

Expand All @@ -930,7 +931,7 @@ DataAggregator::getFallthroughsInTrace(BinaryFunction &BF,
uint64_t Count) const {
SmallVector<std::pair<uint64_t, uint64_t>, 16> Res;

if (!recordTrace(BF, FirstLBR, SecondLBR, Count, &Res))
if (!recordTrace(BF, FirstLBR, SecondLBR, Count, Res))
return std::nullopt;

return Res;
Expand Down
18 changes: 15 additions & 3 deletions bolt/lib/Rewrite/BoltDiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ static cl::opt<bool> NormalizeByBin1(
"collection time and sampling rate for this to make sense"),
cl::cat(BoltDiffCategory));

static cl::opt<bool>
SkipNonSimple("skip-non-simple",
cl::desc("skip non-simple functions in reporting"),
cl::ReallyHidden, cl::cat(BoltDiffCategory));

} // end namespace opts

namespace llvm {
Expand Down Expand Up @@ -428,8 +433,10 @@ class RewriteInstanceDiff {
llvm::make_second_range(llvm::reverse(LargestDiffs))) {
const double Score2 = getNormalizedScore(*BB2, RI2);
const double Score1 = getNormalizedScore(*BBMap[BB2], RI1);
outs() << "BB " << BB2->getName() << " from "
<< BBToFuncMap[BB2]->getDemangledName()
const BinaryFunction *Func = BBToFuncMap[BB2];
if (opts::SkipNonSimple && !Func->isSimple())
continue;
outs() << "BB " << BB2->getName() << " from " << Func->getDemangledName()
<< "\n\tScore bin1 = " << format("%.4f", Score1 * 100.0)
<< "%\n\tScore bin2 = " << format("%.4f", Score2 * 100.0);
outs() << "%\t(Difference: ";
Expand Down Expand Up @@ -460,9 +467,12 @@ class RewriteInstanceDiff {
EdgeTy &Edge1 = EI.second;
const double Score2 = std::get<2>(Edge2);
const double Score1 = std::get<2>(Edge1);
const BinaryFunction *Func = BBToFuncMap[std::get<0>(Edge2)];
if (opts::SkipNonSimple && !Func->isSimple())
continue;
outs() << "Edge (" << std::get<0>(Edge2)->getName() << " -> "
<< std::get<1>(Edge2)->getName() << ") in "
<< BBToFuncMap[std::get<0>(Edge2)]->getDemangledName()
<< Func->getDemangledName()
<< "\n\tScore bin1 = " << format("%.4f", Score1 * 100.0)
<< "%\n\tScore bin2 = " << format("%.4f", Score2 * 100.0);
outs() << "%\t(Difference: ";
Expand Down Expand Up @@ -537,6 +547,8 @@ class RewriteInstanceDiff {
Score2 = LTOAggregatedScore2[Iter2->second];
if (Score1 == 0.0 || Score2 == 0.0)
continue;
if (opts::SkipNonSimple && !Func1->isSimple() && !Func2->isSimple())
continue;
LargestDiffs.insert(
std::make_pair<>(std::abs(Score1 - Score2), MapEntry));
ScoreMap[Func2] = std::make_pair<>(Score1, Score2);
Expand Down
2 changes: 1 addition & 1 deletion bolt/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13.4)
cmake_minimum_required(VERSION 3.20.0)
include(CheckIncludeFiles)
include(GNUInstallDirs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include "UndelegatedConstructorCheck.h"
#include "UnhandledExceptionAtNewCheck.h"
#include "UnhandledSelfAssignmentCheck.h"
#include "UniquePtrArrayMismatchCheck.h"
#include "UnsafeFunctionsCheck.h"
#include "UnusedRaiiCheck.h"
#include "UnusedReturnValueCheck.h"
Expand Down Expand Up @@ -207,6 +208,8 @@ class BugproneModule : public ClangTidyModule {
"bugprone-unhandled-self-assignment");
CheckFactories.registerCheck<UnhandledExceptionAtNewCheck>(
"bugprone-unhandled-exception-at-new");
CheckFactories.registerCheck<UniquePtrArrayMismatchCheck>(
"bugprone-unique-ptr-array-mismatch");
CheckFactories.registerCheck<UnsafeFunctionsCheck>(
"bugprone-unsafe-functions");
CheckFactories.registerCheck<UnusedRaiiCheck>("bugprone-unused-raii");
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 @@ -69,6 +69,7 @@ add_clang_library(clangTidyBugproneModule
UndelegatedConstructorCheck.cpp
UnhandledExceptionAtNewCheck.cpp
UnhandledSelfAssignmentCheck.cpp
UniquePtrArrayMismatchCheck.cpp
UnsafeFunctionsCheck.cpp
UnusedRaiiCheck.cpp
UnusedReturnValueCheck.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//===--- UniquePtrArrayMismatchCheck.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 "UniquePtrArrayMismatchCheck.h"

using namespace clang::ast_matchers;

namespace clang::tidy::bugprone {

UniquePtrArrayMismatchCheck::UniquePtrArrayMismatchCheck(
StringRef Name, ClangTidyContext *Context)
: SmartPtrArrayMismatchCheck(Name, Context, "unique") {}

UniquePtrArrayMismatchCheck::SmartPtrClassMatcher
UniquePtrArrayMismatchCheck::getSmartPointerClassMatcher() const {
auto DeleterDecl = classTemplateSpecializationDecl(
hasName("::std::default_delete"), templateArgumentCountIs(1),
hasTemplateArgument(0, templateArgument(refersToType(
qualType(equalsBoundNode(PointerTypeN))))));
return classTemplateSpecializationDecl(
hasName("::std::unique_ptr"), templateArgumentCountIs(2),
hasTemplateArgument(
0, templateArgument(refersToType(qualType().bind(PointerTypeN)))),
hasTemplateArgument(1, templateArgument(refersToType(
qualType(hasDeclaration(DeleterDecl))))));
}

} // namespace clang::tidy::bugprone
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//===--- UniquePtrArrayMismatchCheck.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_UNIQUEPTRARRAYMISMATCHCHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_UNIQUEPTRARRAYMISMATCHCHECK_H

#include "SmartPtrArrayMismatchCheck.h"

namespace clang::tidy::bugprone {

/// Finds initializations of C++ unique pointers to non-array type that are
/// initialized with an array.
///
/// Example:
///
/// \code
/// std::unique_ptr<int> PtrArr{new int[10]};
/// \endcode
class UniquePtrArrayMismatchCheck : public SmartPtrArrayMismatchCheck {
public:
UniquePtrArrayMismatchCheck(StringRef Name, ClangTidyContext *Context);

protected:
SmartPtrClassMatcher getSmartPointerClassMatcher() const override;
};

} // namespace clang::tidy::bugprone

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_UNIQUEPTRARRAYMISMATCHCHECK_H
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//

#include "UnusedReturnValueCheck.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
Expand All @@ -27,7 +28,6 @@ AST_MATCHER_P(FunctionDecl, isInstantiatedFrom, Matcher<FunctionDecl>,
return InnerMatcher.matches(InstantiatedFrom ? *InstantiatedFrom : Node,
Finder, Builder);
}

} // namespace

UnusedReturnValueCheck::UnusedReturnValueCheck(llvm::StringRef Name,
Expand Down Expand Up @@ -124,19 +124,31 @@ UnusedReturnValueCheck::UnusedReturnValueCheck(llvm::StringRef Name,
"::sigismember;"
"::strcasecmp;"
"::strsignal;"
"::ttyname")) {}
"::ttyname")),
CheckedReturnTypes(utils::options::parseStringList(
Options.get("CheckedReturnTypes", "::std::error_code;"
"::std::error_condition;"
"::std::errc;"
"::std::expected;"
"::boost::system::error_code"))) {}

void UnusedReturnValueCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
Options.store(Opts, "CheckedFunctions", CheckedFunctions);
Options.store(Opts, "CheckedReturnTypes",
utils::options::serializeStringList(CheckedReturnTypes));
}

void UnusedReturnValueCheck::registerMatchers(MatchFinder *Finder) {
auto FunVec = utils::options::parseStringList(CheckedFunctions);

auto MatchedCallExpr = expr(ignoringImplicit(ignoringParenImpCasts(
callExpr(callee(functionDecl(
// Don't match void overloads of checked functions.
unless(returns(voidType())),
isInstantiatedFrom(hasAnyName(FunVec)))))
anyOf(isInstantiatedFrom(hasAnyName(FunVec)),
returns(hasCanonicalType(hasDeclaration(
namedDecl(matchers::matchesAnyListedName(
CheckedReturnTypes)))))))))
.bind("match"))));

auto UnusedInCompoundStmt =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class UnusedReturnValueCheck : public ClangTidyCheck {

private:
std::string CheckedFunctions;
const std::vector<StringRef> CheckedReturnTypes;
};

} // namespace clang::tidy::bugprone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace clang::tidy::llvm_libc {
/// are tagged with the LIBC_INLINE macro.
///
/// For more information about the LIBC_INLINE macro, see
/// https://libc.llvm.org/code_style.html.
/// https://libc.llvm.org/dev/code_style.html.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/llvmlibc/inline-function-decl-check.html
Expand Down
Loading