Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW14-15) #3488

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

Merged
merged 802 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
802 commits
Select commit Hold shift + click to select a range
6225004
[scudo][NFC] Make tests runs with --gtest_repeat=2
vitalybuka Apr 1, 2021
17095dc
[libc++][NFC] Increase readability of typeinfo comparison of ARM64
ldionne Mar 2, 2021
76d9bc7
Reland "Add support to -Wa,--version in clang""
jcai19 Apr 1, 2021
17800f9
[tests] Add tests for forthcoming funcattrs nosync inference improvement
preames Apr 1, 2021
766d27d
[RISCV] Add isel patterns to handle vrsub intrinsic with 2 vector ope…
topperc Apr 1, 2021
6fe7de9
[Driver] -nostdinc -nostdinc++: don't warn for -Wunused-command-line-…
MaskRay Apr 1, 2021
b23a314
[funcattrs] Respect nofree attribute on callsites (not just callee)
preames Apr 1, 2021
43ceb74
llvm-shlib: Create object libraries for each component and link again…
tstellar Apr 1, 2021
5f6c5c6
[flang] Implement numeric intrinsic functions in runtime
klausler Apr 1, 2021
cba4222
[OpenMP51] Accept `primary` as proc bind affinity policy in Clang
chichunchen Apr 1, 2021
287c93c
[flang] Fix unit test failure on POWER
klausler Apr 1, 2021
51a0718
Setup OpBuilder to support detached block in loopUnrollByFactor (NFC)
joker-eph Apr 1, 2021
d222a07
[OpenMP, test] Fix uses of undef S*VAR FileCheck var
Apr 1, 2021
58e4589
[OpenMP, test] Fix use of undef DECL FileCheck var
Apr 1, 2021
2c3db73
[OpenMP, test] Fix use of undef VAR_PRIV FileCheck var
Apr 1, 2021
3a016e3
[globalisel][unittests] Rename setUp() to avoid potential mix up with…
dsandersllvm Mar 31, 2021
42a84d2
Revert "[globalisel][unittests] Rename setUp() to avoid potential mix…
dsandersllvm Apr 1, 2021
5379f1c
[MIPS, test] Fix use of undef FileCheck var
Apr 1, 2021
2734162
[flang] Disable some new unit tests (non-portable results)
klausler Apr 1, 2021
0187c3a
[RISCV] Add nxvXi64 test cases to the RV32 Zvamo intrinsic test files…
topperc Apr 1, 2021
813e724
[builtins] Build for arm64_32 for watchOS (Darwin)
drodriguez Apr 2, 2021
f5c9db9
[TextAPI] Add support for arm64_32
drodriguez Apr 2, 2021
7af9b03
[NFC][scudo] Use TYPED_TEST to split large test
vitalybuka Apr 2, 2021
f6ad045
[lld][MachO] Make emitEndFunStab independent from .subsections_via_sy…
Apr 2, 2021
91790c6
[indvars[ Fix pr49802 by checking for SCEVCouldNotCompute
preames Apr 2, 2021
4c70f56
[NFC][AMDGPU] Add product names for gfx908 and gfx10 processors
t-tye Mar 26, 2021
a0c5b7e
[mlir][sparse] support for very narrow index and pointer types
aartbik Apr 1, 2021
f026e1f
[debug-info][XCOFF] set `-gno-column-info` by default for DBX
Apr 1, 2021
88a1529
[NFC][scudo] Move globals into related test
vitalybuka Apr 2, 2021
bc6001c
[X86] Fix -Wunused-function warning (NFC)
nullptr-cpp Apr 2, 2021
78a1412
Handle all standalone combinations of LC_NOTEs w/ & w/o addr & uuid
jasonmolenda Apr 2, 2021
cf51bf7
[lldb] Account for objc_debug_class_getNameRaw returning NULL
JDevlieghere Apr 2, 2021
062d4dd
[lld] Add missing header guard (NFC)
nullptr-cpp Apr 2, 2021
83dc218
[NFC][scudo] Move some shared stuff into ScudoCombinedTest
vitalybuka Apr 2, 2021
b0d286b
[CMake] Use append instead of set with the list
petrhosek Apr 2, 2021
c664769
[AssumeBundles] offset should be added to correctly calculate align
aqjune Apr 2, 2021
d441dee
[lld][MachO] Fix -Wsign-compare warning (NFC)
nullptr-cpp Apr 2, 2021
5a9a8c7
[RISCV] Add more nxvi64 vector intrinsic tests for RV32. NFC
topperc Apr 2, 2021
56fa1b4
[llvm-reduce] Add header guards and fix clang-tidy warnings
saeubank Apr 2, 2021
438b6dd
[RISCV] Add missing nxvXf64 intrinsics tests cases for floating-point…
topperc Apr 2, 2021
c560585
[CSSPGO] Skip dangling probe value when computing profile summary
WenleiHe Apr 2, 2021
7959d59
[libcxx] adds concepts `std::totally_ordered` and `std::totally_order…
cjdb Mar 31, 2021
0889181
Tweak SimpleFastHash
nopsledder Apr 2, 2021
2ec7f63
[clang-cl] [Sema] Do not prefer integral conversion over floating-to-…
mkurdej Apr 2, 2021
5d7c832
[mlir] add memref dialect as dependent of lower-affine pass
ftynse Apr 1, 2021
a89fb29
[clang][ItaniumMangle] Check SizeExpr for DependentSizedArrayType
oToToT Apr 1, 2021
f8013a3
[libcxx] [test] Make the condvar wait_for tests a bit more understand…
mstorsjo Apr 1, 2021
28ea218
[libcxx] [test] Fix invocable tests on Windows
mstorsjo Mar 31, 2021
f343a73
[NFC][scudo] Convert ScudoPrimaryTest into TYPED_TEST
vitalybuka Apr 2, 2021
bb1e539
[NFC][scudo] Inline some functions into ScudoPrimaryTest
vitalybuka Apr 2, 2021
a26f1bf
[PassManager] Run additional LICM before LoopRotate
LebedevRI Apr 2, 2021
2388aae
[NARY-REASSOCIATE] Support reassociation of min/max
Mar 2, 2021
49e5a89
[libc++] Fix build on macOS older than 10.15.
mkurdej Apr 2, 2021
a4ac847
[RISCV] Add some tests showing vsetvli cleanup opportunities
frasercrmck Apr 1, 2021
3b48d84
[RISCV] Optimize more redundant VSETVLIs
frasercrmck Apr 1, 2021
0f32303
[SLP] Better estimate cost of no-op extracts on target vectors.
fhahn Apr 2, 2021
0f7bbbc
Always emit error for wrong interfaces to scalable vectors, unless cm…
sdesmalen-arm Mar 17, 2021
b0c3219
[gn build] Port 0f7bbbc481e2
llvmgnsyncbot Apr 2, 2021
500969f
[X86][SSE] isHorizontalBinOp - use getTargetShuffleInputs helper
RKSimon Apr 2, 2021
4559731
[LLDB] Skip TestLoadUsingLazyBind.py on arm/linux
omjavaid Apr 2, 2021
411673e
[RISCV] Test llvm.experimental.vector.insert intrinsics on RV32
frasercrmck Mar 31, 2021
b82b305
[InstCombine] Fix out-of-bounds ashr(shl) optimization
dobbelaj-snps Apr 2, 2021
6dd07fa
[mlir][spirv] Add utilities for push constant value
antiagainst Apr 2, 2021
ab3c5fb
[NFC][SVE] Use SVE_4_Op_Imm_Pat for sve_intx_dot_by_indexed_elem
junparser Mar 31, 2021
274ac9d
[AArch64][SVE] Lowering sve.dot to DOT node
junparser Apr 1, 2021
2dfa2c0
[NFC][SVE] update sve-intrinsics-int-arith.ll under update_llc_test_c…
junparser Apr 2, 2021
d3b74dc
Restore 8954fd436c7 after c06a8f9caa51c
nico Apr 2, 2021
7f7f5e2
[TableGen] [Docs] Add lldb-tblgen to command guide; add 4 guide stubs
Mar 30, 2021
fa0aff6
Revert "[X86][SSE] isHorizontalBinOp - use getTargetShuffleInputs hel…
nico Apr 2, 2021
5fcb07a
[SLP]Fix a bug in min/max reduction, number of condition uses.
alexey-bataev Apr 1, 2021
ef1f90b
[SLP]Added a test for min/max reductions with the key store inside, NFC.
alexey-bataev Apr 2, 2021
9313509
[CVP] Add test for !range on intrinsic (NFC)
nikic Apr 2, 2021
4a3e006
[LVI] Use range metadata on intrinsics
nikic Apr 2, 2021
09a8827
[GlobalISel] Allow different types for G_SBFX and G_UBFX operands
bcahoon Mar 30, 2021
dd43e13
[flang] Fix MSVC build breakage
klausler Apr 2, 2021
3ebfa36
Remove attribute handling code for simple attributes; NFC
AaronBallman Apr 2, 2021
d01653f
[rs4gc] add tests for existing code stripping attributes from functio…
preames Apr 2, 2021
a505801
[rs4gc] Strip nofree and nosync attributes when lowering from abstrac…
preames Apr 2, 2021
3f8c6f4
[lld-macho][NFC] Remove redundant member from class Defined
gkmhub Apr 2, 2021
2c4548e
[rs4gc] Use loops instead of straightline code for attribute strippin…
preames Apr 2, 2021
8867fc6
[LV] Hoist mapping of IR operands to VPValues (NFC).
fhahn Apr 2, 2021
55978f9
[gn build] add build file for tsan runtime
nico Apr 2, 2021
6abb92f
[SCCP] Avoid modifying AdditionalUsers while iterating over it
DimitryAndric Mar 14, 2021
47ebf77
[GVNSink] auto-generate test checks; NFC
rotateright Apr 1, 2021
6643132
[InstCombine] add tests for not+or+neg; NFC
rotateright Apr 2, 2021
412fc74
[InstCombine] fold not+or+neg
rotateright Apr 2, 2021
f6790be
[RISCV] Add missing CHECK-EXPAND line to one case in rv64i-aliases-va…
topperc Apr 2, 2021
d7ffa82
[RISCV] Improve 64-bit integer constant materialization for more cases.
topperc Apr 2, 2021
78a39d2
[flang] TRANSFER() intrinsic function
klausler Apr 2, 2021
262f487
[Hexagon, test] Fix use of undef FileCheck var
Apr 1, 2021
b001d57
[RISCV] Add IR intrinsic for Zbr extension
LevyHsu Apr 2, 2021
15ec0ad
[ms] [llvm-ml] Fix case-sensitivity for variables and textmacros
ericastor Apr 2, 2021
8e5f3d0
[SLPVectorizer] Fix divide-by-zero after D99719
MaskRay Apr 2, 2021
1808194
[RISCV] Add IR intrinsic for Zbb extension
topperc Apr 2, 2021
3a223cd
[TextAPI] run clang-format on violating sections, NFC
cyndyishida Apr 2, 2021
1f0b309
Revert "[RISCV] Add IR intrinsic for Zbb extension"
topperc Apr 2, 2021
944adbf
Recommit "[RISCV] Add IR intrinsic for Zbb extension"
LevyHsu Apr 2, 2021
12c3bca
[mlir] Rename linalg.pooling operations to have a FOp postfix for flo…
rsuderman Apr 1, 2021
f78d932
[RISCV] Add IR intrinsics for Zbc extension
LevyHsu Apr 2, 2021
0499a9d
[ms] [llvm-ml] Accept /WX to signal that warnings should be fatal.
ericastor Apr 2, 2021
1bd4986
[Sema] Fix Windows build after b001d574d7d9
jrtc27 Apr 2, 2021
5311abc
[RISCV] Try using toupper instead of std::toupper to make the build b…
topperc Apr 2, 2021
be7358d
Revert "[RISCV] Try using toupper instead of std::toupper to make the…
topperc Apr 2, 2021
2165c0d
[OPENMP][DOCS]Update status of the supported constructs, NFC.
mikerice1969 Apr 2, 2021
942cf22
[nfc] [llvm] Make DWARFListTableBase::findList const
jankratochvil Apr 2, 2021
109305e
[mlir] Emit errors when creating unregistered attributes/types when n…
River707 Apr 2, 2021
cb424fe
[OPENMP5.1]Initial support for novariants clause.
jyu2-git Mar 31, 2021
f02c698
[NFC][scudo] Split ScudoCombinedTest.BasicCombined
vitalybuka Apr 2, 2021
4be8a26
Use tablegen to diagnose mutually exclusive attributes
AaronBallman Apr 2, 2021
223dcdc
[mlir] Add optional TypeConverter for materializations.
silvasean Apr 2, 2021
4ea5475
[KnownBits] Add KnownBits::haveNoCommonBitsSet helper. NFCI.
RKSimon Apr 2, 2021
0fe8af9
Fix build bot problem with missing OMPC_novariants in switch.
jyu2-git Apr 2, 2021
eb1b55c
[mlir][tosa] Add tosa.reduce_any and tosa.reduce_all linalg lowering
rsuderman Apr 2, 2021
4c58f33
[NFC][scudo] Add test header int CMake file
vitalybuka Apr 2, 2021
46f2fdb
[NFC][scudo] Move macro into a shared header
vitalybuka Apr 2, 2021
c115c28
[flang] Address more MSVC build issues with reductions
klausler Apr 2, 2021
d302e33
[LLDB] Sleep for 5 second TestVSCode_launch test_progress_events
omjavaid Apr 2, 2021
1d54aa2
[CSSPGO][Test] XFAIL profile-context-tracker-debug.ll on AIX
Apr 2, 2021
f176803
Revert "[sanitizer] Simplify GetTls with dl_iterate_phdr"
nico Apr 2, 2021
8156d89
[gn build] (manually) port 4c58f333f141
nico Apr 2, 2021
817d98d
[lld-macho][nfc] Refactor in preparation for 32-bit support
int3 Apr 2, 2021
03c4119
[gn build] hook up tsan on macOS too
nico Apr 2, 2021
a0e611c
[RISCV] Add signext attribute to i32 orc.b test for RV64 to match oth…
topperc Apr 2, 2021
c318746
[lld-macho] Fix -Wsuggest-override after D99633. NFC
MaskRay Apr 3, 2021
bac74a5
[clang] NFC: remove trailing white spaces from some tests
mizvekov Apr 3, 2021
2458aa0
Add missing override to clang tblgen AttrEmitter
dwblaikie Apr 3, 2021
b4f2e80
[RISCV] Refactor conversion of B extensions to IR intrinsics a little…
topperc Apr 3, 2021
95f448a
[PGO, test] Fix typo in FileCheck var
Apr 2, 2021
17b4e5d
[BasicAA] Don't pass through AA metadata (NFCI)
nikic Oct 24, 2020
9d20eaf
[BasicAA] Don't store AATags in cache key (NFC)
nikic Apr 3, 2021
b552e16
[Loads] Forward constant vector store to load of first element
nikic Mar 6, 2021
d66f9c4
Fix build rules for LLVM_WITH_Z3 after D95727
bjope Apr 3, 2021
7c17f1e
[X86][SSE] isHorizontalBinOp - use getTargetShuffleInputs helper (REA…
RKSimon Apr 3, 2021
34ec749
[X86] Add PR47603 test case
RKSimon Apr 3, 2021
89afec3
[X86] Fold xor(truncate(xor(x,c1)),c2) -> xor(truncate(x),xor(truncat…
RKSimon Apr 3, 2021
1470f94
[InstCombine] Add load/store forwarding test with odd size (NFC)
nikic Apr 3, 2021
3bcb6a3
Silence `-Wunused-private-field` warning on isIsolatedFromAbove.
chsigg Apr 1, 2021
6650658
[FastISel] Remove kill tracking
nikic Mar 9, 2021
a78fa73
Revert "[lld-link] Enable addrsig table in COFF lto"
nico Apr 3, 2021
c04e1c8
[lld-macho] Fix build on 32-bit systems
int3 Apr 3, 2021
bd115d0
[lld-macho] Another attempt at fixing 32-bit builds
int3 Apr 3, 2021
8c95f99
Speculative attempt to stablize a test
preames Apr 3, 2021
122c0e6
[TableGen] Use StringRef instead of std::string to split up a string …
topperc Apr 3, 2021
7727cc2
[NFC][X86] Split VPMOV* AVX2 instructions into their own sched class
LebedevRI Apr 3, 2021
b32e76c
[mlgo] fix build rules
mtrofin Apr 3, 2021
2554f99
Opaque pointers: Migrate examples to use load with explicit type
dwblaikie Apr 3, 2021
499571e
Add workaround for false positive in -Wfree-nonheap-object
dwblaikie Apr 3, 2021
9f6649d
Add void cast to suppress -Wunused-member-variable on assert-only member
dwblaikie Apr 3, 2021
30df6d5
Preprocessor conditionalize some assert-only functions to suppress -W…
dwblaikie Apr 3, 2021
1cc9d94
[C++20, test] Fix use of undef FileCheck variable
Apr 3, 2021
f1d4af4
[InstCombine] Reapply update_test_checks.py to unsigned-multiply-over…
aqjune Apr 4, 2021
732a90d
[InstCombine] precommit pr49688.ll (NFC)
aqjune Apr 4, 2021
6147501
[InstSimplify] Add a test for folding comparison with a undef vector …
aqjune Apr 4, 2021
5207cde
[InstCombine] Conditionally fold select i1 into and/or
aqjune Apr 4, 2021
1b4800c
[clang][parser] Set source ranges for GNU-style attributes
tbaederr Mar 25, 2021
a2ea003
[RISCV] Don't convert fshr/fshl to target specific FSL/FSR node if sh…
topperc Apr 4, 2021
c4c5113
[NFC][scudo] Restore !UseQuarantine check in tests
vitalybuka Apr 4, 2021
602ab18
Revert "Add support for fetching signed values from tagged pointers."
jasonmolenda Apr 4, 2021
3ac2541
[CVP] Add test for and of min (NFC)
nikic Apr 4, 2021
72e0846
[LVI] Don't bail on overdefined value in select
nikic Apr 4, 2021
6e96de8
[mlir][NFC] Fully spell mlir types names in LoopLikeOpInterface, so i…
Apr 3, 2021
6fbbb09
Don't check that std::pair is trivially copyable on FreeBSD
DimitryAndric Apr 3, 2021
64a52e1
[llvm-exegesis] Don't erroneously refuse to measure POPCNT instruction
LebedevRI Apr 4, 2021
fd73e4d
[CVP] Add more tests for select with overdefined operand (NFC)
nikic Apr 4, 2021
d094f3c
[llvm-exegesis] SnippetFile: do create source manager in MCContext
LebedevRI Apr 4, 2021
241d42c
Speculative fix for failing build bot.
AaronBallman Apr 4, 2021
cb44439
[SimplifyCFG] Make test more robust (NFC)
nikic Apr 4, 2021
7ca168d
[SimplifyCFG] Add switch-to-select test with two equal cases (NFC)
nikic Apr 4, 2021
9bad7de
[SimplifyCFG] Handle two equal cases in switch to select
nikic Apr 4, 2021
f18efb7
[InstCombine] add tests for ctpop of power-of-2; NFC
rotateright Apr 4, 2021
c0645f1
[InstCombine] fold popcount of exactly one bit to shift
rotateright Apr 4, 2021
f619783
[libcxx] [test] Link against msvcprt as C++ ABI library in tests
mstorsjo Mar 24, 2021
e92d2b8
[Driver] Detect libstdc++ include paths for native gcc (-m32 and -m64…
MaskRay Apr 4, 2021
c2c68a5
[libc++] Improve generate_feature_test_macro_components.py.
mordante Mar 30, 2021
a41b510
[HIP-Clang, test] Fix use of undef FileCheck var
Apr 3, 2021
292726b
[HIP, test] Fix use of undef FileCheck var
Apr 3, 2021
98d5db3
[RISCV] Lower orc.b intrinsic to RISCVISD::GORCI.
topperc Apr 4, 2021
5352490
[NFC][InstCombine] Add test for PR49778
LebedevRI Apr 4, 2021
dceb3e5
[NFC][InstCombine] Extract canTryToConstantAddTwoShiftAmounts() as he…
LebedevRI Apr 4, 2021
2760a80
[InstCombine] dropRedundantMaskingOfLeftShiftInput(): check that addi…
LebedevRI Apr 4, 2021
27e5bff
[libc++] Fix the header guard from _LIBCPP_STEAMBUF to _LIBCPP_STREAM…
Quuxplusone Apr 4, 2021
9abff04
[libc++] Fix test_macros.h in the same way as commit 49e5a896 fixed _…
Quuxplusone Apr 4, 2021
ec575e3
[sanitizer] Simplify GetTls with dl_iterate_phdr on Linux
MaskRay Apr 4, 2021
4708a05
[RISCV] Use gorciw for i32 orc.b intrinsic when Zbp is enabled.
topperc Apr 4, 2021
10ed479
[lldb] Import ObjectiveC module instead of Foundation in test
kastiglione Apr 4, 2021
d1a1798
[lldb] Replace unneeded use of Foundation with ObjectiveC in tests (NFC)
kastiglione Apr 4, 2021
907af84
[CUDA][HIP] rename -fcuda-flush-denormals-to-zero
yxsamliu Mar 31, 2021
a91628c
[Test] Add tests for various scenarios of PRE of a loop load
xortator Apr 5, 2021
1a21858
[Test] Split out new and old PM tests
xortator Apr 5, 2021
67133ee
[Test] Auto-update checks in a test
xortator Apr 5, 2021
1628486
ignore -flto= options recognized by GCC
sylvestre Apr 5, 2021
5c25ff8
[OCaml] Fix unsafe uses of Store_field
jberdine Mar 27, 2021
58bb922
[OCaml] Minor optimizations by avoiding double initialization
jberdine Mar 27, 2021
e5b7fed
[OCaml] Code simplification using option allocation functions
jberdine Mar 27, 2021
2c82ea1
[OCaml] Code simplification using string allocation functions
jberdine Mar 27, 2021
d9bbd98
[OCaml] Omit unnecessary GC root registrations
jberdine Mar 28, 2021
8e4fc55
[NFC][OCaml] Remove vestigial CAMLprim declarations
jberdine Mar 28, 2021
f4d156a
[NFC][OCaml] Reformat to clean up following CAMLprim removal
jberdine Mar 28, 2021
65585fa
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Apr 5, 2021
4dd3e0f
[DebugInfo, CallSites, test] Fix use of undef FileCheck var
Apr 3, 2021
2523fe8
[X86] Add second PR47603 test case
RKSimon Apr 5, 2021
36d4f6d
[X86] Fold xor(zext(xor(x,c1)),c2) -> xor(zext(x),xor(zext(c1),c2))
RKSimon Apr 5, 2021
0d0514d
[RISCV] Add a test showing incorrect codegen
frasercrmck Jan 20, 2021
5f57793
* NFC. Refactored DIPrinter for better support of new print styles.
orlov-alex Apr 5, 2021
13a84f2
[TableGen] [docs] Correct a couple of mistakes; use 'true' and 'false…
Apr 2, 2021
00a84f9
[SLP]Improve vectorization of the CmpInst instructions.
alexey-bataev Apr 1, 2021
2aebb7c
[OpenMP] Fix incorrect KMP_STRLEN() macro
jpeyton52 Feb 25, 2021
660c4e5
[PowerPC] Fix issue where binary uses a .got but is missing a .TOC.
stefanp-synopsys Apr 5, 2021
f99b211
Add support for SPV_KHR_linkonce_odr
Fznamznon Mar 30, 2021
ffc6876
Fix emission of SPIR-V friendly IR for vload/vload_half/vload_halfn/v…
aratajew Mar 29, 2021
770dc9e
Remove unnecessary addCapability calls for decorations
MrSidims Apr 1, 2021
c4a3cee
Fix SPIR-V friendly IR for OpGroupAsyncCopy and OpGroupWaitEvents
Fznamznon Apr 2, 2021
803b792
[SemaObjC] Fix a -Wbridge-cast false-positive
epilk Apr 5, 2021
3f0df4d
[RISCV] Expand scalable-vector truncstores and extloads
frasercrmck Mar 31, 2021
62a94b7
[M68k] Mark public functions with the LLVM_EXTERNAL_VISIBILITY macro
glaubitz Apr 5, 2021
c0b0da4
[InstCombine] add test for miscompile from select value equivalence; NFC
rotateright Apr 5, 2021
c590a98
[InstCombine] fix potential miscompile in select value equivalence
rotateright Apr 5, 2021
af3a839
[RISCV] Add support for bitcasts between scalars and fixed-length vec…
frasercrmck Mar 31, 2021
7416e8a
[flang][driver] Add options for -Werror
Apr 5, 2021
df64f47
[analyzer] DynamicSize: Store the dynamic size
Apr 5, 2021
6a82ace
[LoopFusion] Bails out if only the second candidate is guarded (PR48060)
TaWeiTu Apr 5, 2021
31ad5c1
[flang][driver] Modify the existing test cases that use -Mstandard in…
Apr 5, 2021
89d210f
[analyzer] DynamicSize: Debug facility
Apr 5, 2021
9b3df78
[analyzer] DynamicSize: Rename 'size' to 'extent'
Apr 5, 2021
5abc725
[gn build] Port 9b3df78b4c2a
llvmgnsyncbot Apr 5, 2021
0116d04
[TextAPI] move source code files out of subdirectory, NFC
cyndyishida Apr 5, 2021
982396d
Revert "Fix build rules for LLVM_WITH_Z3 after D95727"
tstellar Apr 5, 2021
e07e08f
Revert "llvm-shlib: Create object libraries for each component and li…
tstellar Apr 5, 2021
6103f3f
[gn build] (manually) port 0116d04d04f2
nico Apr 5, 2021
dc1a08c
[lld][WebAssembly] Rewrite exports test in assembly. NFC
sbc100 Apr 5, 2021
ea069ae
[mlir][Linalg] NFC: Move populatePatterns* method into linalg namespace.
Apr 5, 2021
7078ef4
[OPENMP51]Initial support for nocontext clause.
jyu2-git Apr 3, 2021
4db18d6
[M68k] Add support for Motorola literal syntax to AsmParser
ricky26 Jan 26, 2021
7edda69
[RISCV] Move VSLIDE1UP_VX pattern out of a loop that includes FP types.
topperc Apr 5, 2021
be11bd1
[tests] Precommmit tests for reasoning about equality of recurrences
preames Apr 5, 2021
b0e59dd
Extract a helper for figuring out if an operator is invertible [nfc]
preames Apr 5, 2021
1d4c742
Fix copy paste errors in tests from be11bd1e
preames Apr 5, 2021
af28376
[RISCV] Split RISCVISD::VMV_S_XF_VL into separate integer and FP.
topperc Apr 5, 2021
780a472
[RISCV] Add SDTCisInt to the SDTRVVSlide1 since it is only used for v…
topperc Apr 5, 2021
828ec9e
[OpenCL, test] Fix use of undef FileCheck var
Apr 4, 2021
78e5cf6
[InstSimplify] add test for vector select with operand replacement; NFC
rotateright Apr 5, 2021
e2a0f51
[InstSimplify] fix potential miscompile in select value equivalence
rotateright Apr 5, 2021
740e349
[libcxx] [ci] Add a Windows CI buildkite configuration
mstorsjo Mar 17, 2021
a46f59a
[mlir][sparse] move new test to right directory structure
aartbik Apr 5, 2021
9711118
Rework the way statement attributes are processed; NFC
AaronBallman Apr 5, 2021
534bc41
Merge from 'sycl' to 'sycl-web'
Apr 5, 2021
746dd89
Merge from 'main' to 'sycl-web' (#2)
Apr 6, 2021
ea699ff
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Apr 6, 2021
3197c99
Disable SPV_KHR_linkonce_odr in llvm-spirv
Fznamznon Apr 6, 2021
bfdd4de
Merge commit '9e41f823ddc4bc57c5e47b6b854862384cff5c68' into llvmspir…
vmaksimo Apr 6, 2021
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ void BracesAroundStatementsCheck::storeOptions(
}

void BracesAroundStatementsCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
ifStmt(unless(allOf(isConstexpr(), isInTemplateInstantiation())))
.bind("if"),
this);
Finder->addMatcher(ifStmt().bind("if"), this);
Finder->addMatcher(whileStmt().bind("while"), this);
Finder->addMatcher(doStmt().bind("do"), this);
Finder->addMatcher(forStmt().bind("for"), this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class BracesAroundStatementsCheck : public ClangTidyCheck {
template <typename IfOrWhileStmt>
SourceLocation findRParenLoc(const IfOrWhileStmt *S, const SourceManager &SM,
const ASTContext *Context);
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
std::set<const Stmt *> ForceBracesStmts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ void ElseAfterReturnCheck::registerPPCallbacks(const SourceManager &SM,
void ElseAfterReturnCheck::registerMatchers(MatchFinder *Finder) {
const auto InterruptsControlFlow = stmt(anyOf(
returnStmt().bind(InterruptingStr), continueStmt().bind(InterruptingStr),
breakStmt().bind(InterruptingStr),
expr(ignoringImplicit(cxxThrowExpr().bind(InterruptingStr)))));
breakStmt().bind(InterruptingStr), cxxThrowExpr().bind(InterruptingStr)));
Finder->addMatcher(
compoundStmt(
forEach(ifStmt(unless(isConstexpr()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class ElseAfterReturnCheck : public ClangTidyCheck {
Preprocessor *ModuleExpanderPP) override;
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

using ConditionalBranchMap =
llvm::DenseMap<FileID, SmallVector<SourceRange, 1>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ void InconsistentDeclarationParameterNameCheck::storeOptions(

void InconsistentDeclarationParameterNameCheck::registerMatchers(
MatchFinder *Finder) {
Finder->addMatcher(functionDecl(unless(isImplicit()), hasOtherDeclarations())
.bind("functionDecl"),
Finder->addMatcher(functionDecl(hasOtherDeclarations()).bind("functionDecl"),
this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class InconsistentDeclarationParameterNameCheck : public ClangTidyCheck {
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
void markRedeclarationsAsVisited(const FunctionDecl *FunctionDeclaration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ void MisleadingIndentationCheck::missingBracesCheck(const SourceManager &SM,
}

void MisleadingIndentationCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
ifStmt(allOf(hasElse(stmt()),
unless(allOf(isConstexpr(), isInTemplateInstantiation()))))
.bind("if"),
this);
Finder->addMatcher(ifStmt(hasElse(stmt())).bind("if"), this);
Finder->addMatcher(
compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt()))))
.bind("compound"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class MisleadingIndentationCheck : public ClangTidyCheck {
: ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
void danglingElseCheck(const SourceManager &SM, ASTContext *Context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,14 @@ namespace tidy {
namespace readability {

void NamedParameterCheck::registerMatchers(ast_matchers::MatchFinder *Finder) {
Finder->addMatcher(functionDecl(unless(isInstantiated())).bind("decl"), this);
Finder->addMatcher(functionDecl().bind("decl"), this);
}

void NamedParameterCheck::check(const MatchFinder::MatchResult &Result) {
const SourceManager &SM = *Result.SourceManager;
const auto *Function = Result.Nodes.getNodeAs<FunctionDecl>("decl");
SmallVector<std::pair<const FunctionDecl *, unsigned>, 4> UnnamedParams;

// Ignore implicitly generated members.
if (Function->isImplicit())
return;

// Ignore declarations without a definition if we're not dealing with an
// overriden method.
const FunctionDecl *Definition = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class NamedParameterCheck : public ClangTidyCheck {
: ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}
};

} // namespace readability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace readability {

void NonConstParameterCheck::registerMatchers(MatchFinder *Finder) {
// Add parameters to Parameters.
Finder->addMatcher(parmVarDecl(unless(isInstantiated())).bind("Parm"), this);
Finder->addMatcher(parmVarDecl().bind("Parm"), this);

// C++ constructor.
Finder->addMatcher(cxxConstructorDecl().bind("Ctor"), this);
Expand All @@ -28,13 +28,11 @@ void NonConstParameterCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(declRefExpr().bind("Ref"), this);

// Analyse parameter usage in function.
Finder->addMatcher(
traverse(TK_AsIs,
stmt(anyOf(unaryOperator(hasAnyOperatorName("++", "--")),
binaryOperator(), callExpr(), returnStmt(),
cxxConstructExpr()))
.bind("Mark")),
this);
Finder->addMatcher(stmt(anyOf(unaryOperator(hasAnyOperatorName("++", "--")),
binaryOperator(), callExpr(), returnStmt(),
cxxConstructExpr()))
.bind("Mark"),
this);
Finder->addMatcher(varDecl(hasInitializer(anything())).bind("Mark"), this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class NonConstParameterCheck : public ClangTidyCheck {
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
void onEndOfTranslationUnit() override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
/// Parameter info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ bool isLocationInMacroExpansion(const SourceManager &SM, SourceLocation Loc) {

void RedundantControlFlowCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
functionDecl(
isDefinition(), returns(voidType()),
has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr())))))
.bind("return"))),
functionDecl(isDefinition(), returns(voidType()),
hasBody(compoundStmt(hasAnySubstatement(
returnStmt(unless(has(expr())))))
.bind("return"))),
this);
Finder->addMatcher(
mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class RedundantControlFlowCheck : public ClangTidyCheck {
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;

llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
void
checkRedundantReturn(const ast_matchers::MatchFinder::MatchResult &Result,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ void SimplifySubscriptExprCheck::registerMatchers(MatchFinder *Finder) {
llvm::SmallVector<StringRef, 8>(Types.begin(), Types.end()))))));

Finder->addMatcher(
arraySubscriptExpr(hasBase(ignoringParenImpCasts(
arraySubscriptExpr(hasBase(
cxxMemberCallExpr(
has(memberExpr().bind("member")),
on(hasType(qualType(
unless(anyOf(substTemplateTypeParmType(),
hasDescendant(substTemplateTypeParmType()))),
anyOf(TypesMatcher, pointerType(pointee(TypesMatcher)))))),
callee(namedDecl(hasName("data"))))
.bind("call")))),
.bind("call"))),
this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class SimplifySubscriptExprCheck : public ClangTidyCheck {
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
void storeOptions(ClangTidyOptions::OptionMap& Opts) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
const std::vector<std::string> Types;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ void StaticAccessedThroughInstanceCheck::storeOptions(
void StaticAccessedThroughInstanceCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
memberExpr(hasDeclaration(anyOf(cxxMethodDecl(isStaticStorageClass()),
varDecl(hasStaticStorageDuration()))),
unless(isInTemplateInstantiation()))
varDecl(hasStaticStorageDuration()))))
.bind("memberExpression"),
this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class StaticAccessedThroughInstanceCheck : public ClangTidyCheck {
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
const unsigned NameSpecifierNestingThreshold;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@ void UniqueptrDeleteReleaseCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
cxxDeleteExpr(
unless(isInTemplateInstantiation()),
has(expr(ignoringParenImpCasts(
cxxMemberCallExpr(
callee(
memberExpr(hasObjectExpression(allOf(
unless(isTypeDependent()),
anyOf(hasType(UniquePtrWithDefaultDelete),
hasType(pointsTo(
UniquePtrWithDefaultDelete))))),
member(cxxMethodDecl(hasName("release"))))
.bind("release_expr")))
.bind("release_call")))))
has(cxxMemberCallExpr(
callee(memberExpr(hasObjectExpression(anyOf(
hasType(UniquePtrWithDefaultDelete),
hasType(pointsTo(
UniquePtrWithDefaultDelete)))),
member(cxxMethodDecl(hasName("release"))))
.bind("release_expr")))
.bind("release_call")))
.bind("delete"),
this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class UniqueptrDeleteReleaseCheck : public ClangTidyCheck {
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
const bool PreferResetCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,11 @@ void UppercaseLiteralSuffixCheck::registerMatchers(MatchFinder *Finder) {
// Sadly, we can't check whether the literal has suffix or not.
// E.g. i32 suffix still results in 'BuiltinType::Kind::Int'.
// And such an info is not stored in the *Literal itself.
Finder->addMatcher(traverse(TK_AsIs,
Finder->addMatcher(
stmt(eachOf(integerLiteral().bind(IntegerLiteralCheck::Name),
floatLiteral().bind(FloatingLiteralCheck::Name)),
unless(anyOf(hasParent(userDefinedLiteral()),
hasAncestor(isImplicit()),
hasAncestor(substNonTypeTemplateParmExpr()))))),
hasAncestor(substNonTypeTemplateParmExpr())))),
this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class UppercaseLiteralSuffixCheck : public ClangTidyCheck {
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
llvm::Optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}

private:
template <typename LiteralType>
Expand Down
5 changes: 3 additions & 2 deletions clang-tools-extra/clangd/index/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ class SymbolIndex {

/// Returns function which checks if the specified file was used to build this
/// index or not. The function must only be called while the index is alive.
virtual llvm::unique_function<IndexContents(llvm::StringRef) const>
indexedFiles() const = 0;
using IndexedFiles =
llvm::unique_function<IndexContents(llvm::StringRef) const>;
virtual IndexedFiles indexedFiles() const = 0;

/// Returns estimated size of index (in bytes).
virtual size_t estimateMemoryUsage() const = 0;
Expand Down
Loading