Skip to content

Merge master into plaidml/plaidml-v1 #7

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 3,211 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3211 commits
Select commit Hold shift + click to select a range
91ef7cb
[IR] Trivial cleanups in Use. NFC.
jayfoad May 15, 2020
330b749
[X86] Remove some duplicate ConstantSDNode casts. NFC.
RKSimon May 15, 2020
9de4ee3
[MLIR] Allow unreachable blocks to violate dominance property.
stephenneuendorffer May 14, 2020
f89f7da
[IR] Convert null-pointer-is-valid into an enum attribute
nikic Apr 25, 2020
2c81508
Fixed arm build bot failure after ab699d78a26f
SouraVX May 15, 2020
62efd1e
[WebAssembly] Fixed debugloc in DebugFixup pass
aardappel May 15, 2020
8b78c50
[mlir] Fix incorrect indexing of subview in DimOp folding.
May 15, 2020
c702d4b
[WebAssembly] Update latest implemented SIMD instructions
tlively May 15, 2020
93e8164
[libc++] Remove workaround for DYLD_LIBRARY_PATH being passed to the …
ldionne May 15, 2020
a760553
Fixed arm build bot failure after 4042ada1c1fe
SouraVX May 15, 2020
b1c688d
[mlir] [VectorOps] Implement vector.create_mask lowering to LLVM IR
aartbik May 14, 2020
e36223c
[ELF] Enforce two dashes for Flag options not supported by GNU ld (i.…
MaskRay May 15, 2020
32a22a4
[libc] Consolidate floating point utils into a single utils library.
May 8, 2020
ddacd37
[libc++] Do not set the runtime library path with DYLD_LIBRARY_PATH
ldionne May 15, 2020
4a39a33
[libc] Add implementation of fabs and fabsf.
May 9, 2020
16f5ce5
[libc++] Remove -ftemplate-depth when running tests
ldionne May 15, 2020
853b5cb
[compiler-rt][CMAKE] Only add cmake link flags in standalone build
May 15, 2020
558db27
[NFC] Whitespace fix inside OptParserEmitter
daniel-grumberg May 15, 2020
adda9c0
IR: Remove extra name mangling from llvm.ptrmask
arsenm May 15, 2020
015e297
[SVE] Restore broken LLVM-C ABI compatability
christetreault-llvm May 15, 2020
a1ce88b
[AArch64][SVE] Implement AArch64ISD::SETCC_PRED
efriedma-quic May 15, 2020
90af55d
[LLD][ELF] Use offset in thin archives to disambiguate thinLTO members
htyu May 12, 2020
40af481
[WebAssembly] Optimize splats of bitcasted vectors
tlively May 15, 2020
03c44c7
[NFC] Deduplicate comment in PromoteMemoryToRegister.cpp
slinder1 May 15, 2020
18a855d
[clang][slh] Add test for SLH feature checking macro
zbrid May 13, 2020
11aa370
StoreInst should store Align, not MaybeAlign
efriedma-quic May 14, 2020
08e2386
Revert "Revert "[llvm][NFC] Cleanup uses of std::function in Inlining…
mtrofin May 15, 2020
0d5d5a7
[SVE] Remove usages of VectorType::getNumElements() from PowerPC
christetreault-llvm May 15, 2020
96d8572
[libc] Move implementations of expf and exp2f from the AOR to src/math.
Apr 27, 2020
245679b
[SVE] Remove usages of VectorType::getNumElements() from ARM
christetreault-llvm May 15, 2020
e8ea35e
[clang-format] [PR44345] Long namespace closing comment is duplicated…
mydeveloperday May 15, 2020
0eba9de
[lldb/Dataformatter] Add support to CF{Dictionary,Set}Ref types
medismailben May 7, 2020
4e9e048
[lldb/Commands] Add ability to run shell command on the host.
medismailben May 9, 2020
d5e9b76
[gn build] Put HAVE_LIBZ and HAVE_ZLIB_H behind llvm_enable_zlib too.
nico May 15, 2020
6512cc7
[NFC,StackSafety] Rename local function
vitalybuka May 15, 2020
a63eedd
[CMake] -gen-dag-isel: add -omit-comments if neither Debug nor RelWit…
MaskRay Apr 26, 2020
1cff8e8
[MLIR] LinalgToStandard: use LINK_LIBS rather than target_link_librar…
stephenneuendorffer May 15, 2020
15f0f82
[tests][Driver] Set `--sysroot=""` to allow `DEFAULT_SYSROOT` build
hubert-reinterpretcast May 15, 2020
3f5fc73
[test][ARM][CMSE] Use clang_cc1 in arm_cmse.h tests
hubert-reinterpretcast May 15, 2020
e3e0367
[CMake][AIX] Add `-bcdtors:mbr` option when building with IBM XL
hubert-reinterpretcast May 15, 2020
802b427
[MLIR] Update intrinsic test, because ptrmask changed.
stephenneuendorffer May 15, 2020
eb623ae
[MLIR] Continue renaming of "SideEffects"
stephenneuendorffer May 13, 2020
444720c
[MLIR][cmake] refactor lib/Interfaces/CMakeLists.txt
stephenneuendorffer May 13, 2020
ec44e08
[MLIR] Move JitRunner to live with ExecutionEngine
stephenneuendorffer May 13, 2020
b31cb3a
unwind: fix unwind build without heap
compnerd May 15, 2020
675d554
[ARM] Change more triples to arm-none-none-eabi. NFC
davemgreen May 15, 2020
1a6e4a2
Fix polly tests after D79968.
efriedma-quic May 15, 2020
634a0ac
Cleanup some test issues:
CaseyCarter May 15, 2020
b1ae13b
Fix flang build after mlir SideEffects.h -> SideEffectInterfaces.h ch…
echristo May 15, 2020
0c2c6fc
[test] Improve FileCheck's numeric-expression.txt
May 12, 2020
6c68f75
Prevent register coalescing in functions whith setjmp
May 15, 2020
80af39e
Fix go bindings after FixedVectorType -> VectorType change.
echristo May 15, 2020
7af0c85
[clang-tidy] Transformer checks now store IncludeStyle option
njames93 May 16, 2020
3809554
[flang] Constraint checks C751 to C760
psteinfeld May 12, 2020
a065a01
[AMDGPU] Allow use of StackPtrOffsetReg when building spills
perlfu May 16, 2020
bca3475
[WebAssembly] Handle exception specifications
aheejin May 8, 2020
945ad14
Revert "[WebAssembly] Handle exception specifications"
aheejin May 16, 2020
e32f8e5
[Windows EH] Fix the order of Nested try-catches in $tryMap$ table
tentzen May 16, 2020
45c7b3f
[LegalizeVectorTypes] Remove non-constnat INSERT_SUBVECTOR handling. NFC
topperc May 15, 2020
13d44b2
[LegalizeDAG] Use getMemBasePlusOffset to simplify some code. Use oth…
topperc May 16, 2020
3f66bb2
[libcxx testing] Remove ALLOW_RETRIES from last futures test
davezarzycki May 16, 2020
d86fff6
[ValueTracking] Fix computeKnownBits() with bitwidth-changing ptrtoint
nikic May 1, 2020
0dc91bf
[mlir][spirv] Handle debuginfo for control flow ops.
May 16, 2020
42a9ca0
[ARM] Extra VQMOVN/VQSHRN tests. NFC
davemgreen May 16, 2020
be6847b
Fix -Wdocumentation warning. NFC.
RKSimon May 16, 2020
43bf2be
LLParser.cpp - remove headers explicitly included in LLParser.h. NFC.
RKSimon May 16, 2020
2565633
AggressiveAntiDepBreaker.cpp - remove headers explicitly included in …
RKSimon May 16, 2020
2289137
DIEHash.cpp - remove headers explicitly included in DIEHash.h. NFC.
RKSimon May 16, 2020
2e1fbf8
[ARM] MVE saturating truncates
davemgreen May 16, 2020
72f1fb2
[ARM] Combines for VMOVN
davemgreen May 16, 2020
5be37cb
[x86][CGP] try to hoist funnel shift above select-of-splats
rotateright May 15, 2020
9a05547
[AArch64] Precommit tests for D77316
jayfoad May 16, 2020
6211830
[VectorCombine] add reduction-like patterns; NFC
rotateright May 16, 2020
2123bb8
[ARM] Patterns for VQSHRN
davemgreen May 16, 2020
604f449
[InstCombine] Clean up alignment handling (NFC)
nikic May 16, 2020
43017ce
[PhaseOrdering] add vector reduction tests; NFC
rotateright May 16, 2020
81e9ede
[VectorCombine] forward walk through instructions to improve chaining…
rotateright May 16, 2020
49c9a68
The release notes for ObjCBreakBeforeNestedBlockParam was placed betw…
mydeveloperday May 16, 2020
32870a8
Expose IRGen API to add the default IR attributes to a function defin…
rjmccall May 16, 2020
0ee46e8
[nfc] test commit
faisalv May 16, 2020
accd9af
Revert "[nfc] test commit"
faisalv May 16, 2020
0ec5f50
Harden IR and bitcode parsers against infinite size types.
efriedma-quic May 16, 2020
135b877
[X86] Replace selectScalarSSELoad ComplexPattern with PatFrags to han…
topperc May 16, 2020
4f04db4
AllocaInst should store Align instead of MaybeAlign.
efriedma-quic May 15, 2020
796ae8c
[LegalizeDAG] Use MachinePointerInfo::getUnknownStack in place of Mac…
topperc May 16, 2020
bc98dc1
Try to heal bots after https://reviews.llvm.org/D79655
nico May 17, 2020
3735505
Fix a few doc typos to cycle bots.
nico May 17, 2020
2fe66bd
[Compiler-rt] Emit error if builtins library cannot be found
kongy May 16, 2020
8092c8f
[NFC] Run clang-format on ISDOpcodes.h
aeubanks May 15, 2020
3dbbbcc
[llvm-xray] consumeError when trying big-endian
MaskRay May 17, 2020
efa7084
[MLIR][cmake] use LINK_LIBS PUBLIC for MLIRStandardOpsTransforms
stephenneuendorffer May 17, 2020
3841ed4
[Driver] Render -T for Gnu.cpp
MaskRay May 17, 2020
1420f4e
[AVR] Fix I/O instructions on XMEGA
dylanmckay May 17, 2020
1335737
[LLVM][AVR] Support for R_AVR_6 fixup
dylanmckay May 17, 2020
f93a6aa
[Inliner][NFC] silence gcc 'overloaded-virtual' warning on hiding of …
May 17, 2020
d23131a
[OpenMP] Fix race condition in the completion/freeing of detached tasks
jprotze May 17, 2020
7c4e711
[AMDGPU] Enable base pointer.
cdevadas Apr 21, 2020
9e2a99e
[LoopUnroll] Precommit test for PR459393.
fhahn May 17, 2020
b54a663
[LoopUnroll] Extend test case with additional loop with larger TC.
fhahn May 17, 2020
bfd5121
[InstCombine] improve analysis of FP->int->FP to eliminate fpextend
rotateright May 17, 2020
9aca5b6
[X86] getTargetConstantBitsFromNode - remove unnecessary X86ISD::VBRO…
RKSimon May 17, 2020
6f02633
[X86] Add getTargetConstantFromBasePtr helper. NFC.
RKSimon May 17, 2020
1d6eb09
[mlir] NFC - VectorTransforms use OpBuilder where relevant
May 17, 2020
ede6005
[AVR] Explicitly set the address of the data section when invoking th…
dylanmckay May 17, 2020
42011fb
[ObjectYAML][DWARF] Take into account other debug sections in DWARFYA…
higuoxing May 17, 2020
130a235
[InstCombine] add tests for FP cast of cast; NFC
rotateright May 17, 2020
57c3fe7
[x86] favor vector constant load to avoid GPR to XMM transfer
rotateright May 17, 2020
02cdbc3
[XRay] Migrate xray_naive_log=true tests to xray_mode=xray-basic
MaskRay May 17, 2020
897e926
ImmutableGraph.h - remove unused raw_ostream.h include. NFC
RKSimon May 17, 2020
ca18ce1
GlobPattern.h - remove unnecessary BitVector.h/StringRef.h includes. NFC
RKSimon May 17, 2020
090cf45
Revert rGca18ce1a00cd8b7cb7ce0e130440f5ae1ffe86ee "GlobPattern.h - re…
RKSimon May 17, 2020
8120562
test commit
jaykang10 May 17, 2020
74bcb00
[ASTMatchers] Added BinaryOperator hasOperands matcher
njames93 May 16, 2020
a39faac
Add missing include Host.h in llvm-mc-* fuzzers. NFC.
May 17, 2020
39beeef
[LVI] Don't use dominator tree in isValidAssumeForContext()
nikic Mar 25, 2020
a055e38
DebugInfo: Reduce long-distance dependence on what will/won't emit a …
dwblaikie May 17, 2020
fde8eb0
[InstCombine] visitMaskedMerge(): when unfolding, sanitize undef cons…
LebedevRI May 17, 2020
52e98f6
[Alignment] Remove unnecessary getValueOrABITypeAlignment calls (NFC)
nikic May 17, 2020
f88c7fe
[MLIR][cmake][NFC] Update linkage checker for mlir-opt
stephenneuendorffer May 17, 2020
37ce8d6
[MLIR] Fix linkage for libMLIR.so
stephenneuendorffer May 17, 2020
5f65fae
ValueMapper does not preserve inline assembly dialect when remapping …
topperc May 17, 2020
051452b
Remove spurious semicolon after function definition (NFC)
joker-eph May 17, 2020
ffc6e59
Replace dyn_cast with isa when the result isn't used (NFC)
joker-eph May 17, 2020
8697d44
Fix warning "defined but not used" for debug function (NFC)
joker-eph May 17, 2020
d6b3b8a
[MLIR][cmake] Fix unittest/Tablegen by special casing LLVMMLIRTableGen
stephenneuendorffer May 17, 2020
455ccde
[PowerPC] add more high latency opcodes for machinecombiner - NFC
May 18, 2020
a7abe8d
[llvm-objcopy][MachO] Fix code formatting
May 18, 2020
7ee479a
[RISCV] Fix passing two floating-point values in complex separately b…
tclin914 May 18, 2020
521b216
[TargetLibraryInfo] memcpy and memset have optimized codegen.
legrosbuffle Apr 27, 2020
54a8524
[compiler-rt] Don't error out on missing builtins when builting built…
mstorsjo May 18, 2020
709c52b
[DebugInfo][DWARF] Emit a single location instead of a location list
OCHyams May 18, 2020
4f0cc10
[NFC][clang-tidy] use hasOperands in place of hasEitherOperand
njames93 May 18, 2020
525a591
Revert 76c5f277f2 "Re-land [Debug][CodeView] Emit fully qualified nam…
zmodem May 18, 2020
a2a4e5a
[Test] Opportunity for sinking to unreachable in InstCombine
xortator May 18, 2020
968d293
[clang-tidy] NFC: Cleanup Python scripts
kirillbobyrev May 18, 2020
f997370
[AMDGPU][MC] Corrected branch relocation handling to detect undefined…
dpreobra May 18, 2020
a6a237f
[OpenCL] Added addrspace_cast operator in C++ mode.
May 18, 2020
e47c101
[InstCombine][NFC] Simplify check in sinking
xortator May 18, 2020
87b235d
Turn -Wmax-tokens off by default
zmodem May 15, 2020
a675c1d
[libcxx testing] Remove ALLOW_RETRIES from lock_guard tests
davezarzycki May 18, 2020
c579ab9
[libcxx][type_traits] Add C++20 changes to common_type
miscco May 18, 2020
ab1fb38
Reorder Type fields to make various isa< > check more concise
May 12, 2020
57d8b8d
[openmp] Fixed hang if detached task was serialized.
AndreyChurbanov May 18, 2020
79f059c
[mlir] NFC - Fix OperationSupport.cpp::findNamedAttr
May 18, 2020
03092f2
[mlir] Add BoolArrayAttr in Tablegen + Builder support
May 18, 2020
5b0502d
[pstl] A fix for move placement-new (and destroy) allocated objects f…
MikeDvorskiy Mar 10, 2020
22d40cc
[Analyzer][StreamChecker] Changed representation of stream error stat…
balazske May 18, 2020
1907f28
[Analyzer][StreamChecker] Fixed compile error - NFC.
balazske May 18, 2020
10e2e7d
[WebAssembly] iterate stack in DebugFixup from the top.
aardappel May 15, 2020
364c595
[SVE] Ignore scalable vectors in InterleavedLoadCombinePass
david-arm May 6, 2020
36cdc17
[mlir][Vector] Make minor identity permutation map optional in transf…
May 18, 2020
1870e78
[mlir][Vector] Add an optional "masked" boolean array attribute to ve…
May 18, 2020
681a161
AMDGPU: Remove outdated comment
arsenm May 17, 2020
4c70074
AMDGPU/GlobalISel: Fix splitting wide VALU, non-vector loads
arsenm May 17, 2020
d1866f8
[MLIR] [Linalg] Add option to use the partial view after promotion.
poechsel May 18, 2020
a4cb9be
[mlir] Support optional attributes in assembly formats
May 18, 2020
23dc948
[MLIR] Use `MLIR_INCLUDE_TESTS` to conditionally compile tests.
May 18, 2020
623b254
[Local] Do not ignore zexts in salvageDebugInfo, PR45923
vedantk May 15, 2020
2084330
[lldb/Reproducers] Add skipIfReproducer to more tests
JDevlieghere May 18, 2020
691980e
[llvm][NFC] Fixed non-compliant style in InlineAdvisor.h
mtrofin May 18, 2020
31ecef7
[SystemZ] Don't create PERMUTE nodes with an undef operand.
JonPsson May 18, 2020
bdd8c11
[IR] Revert r2694 in BasicBlock::removePredecessor
jayfoad May 18, 2020
a7cc275
Add verifier check that musttail and preallocated are not used together
aeubanks May 18, 2020
b7924d6
[dsymutil] Make sure the --help output and man page are consistent
JDevlieghere May 18, 2020
3c4ef74
Fixed a typo in the comment for allocateBuffer()
May 18, 2020
736db2f
[Loads] Require Align in isSafeToLoadUnconditionally() (NFC)
nikic May 18, 2020
63081dc
LoadStoreVectorizer: Match nested adds to prove vectorization is safe
May 18, 2020
bf527a1
AMDGPU/GlobalISel: Fix f64 G_FDIV lowering
arsenm May 18, 2020
715b7d8
[mlir][vulkan-runner] Add back accidentially removed header include
antiagainst May 17, 2020
ef649e8
Revert "[CUDA][HIP] Workaround for resolving host device function aga…
Artem-B May 18, 2020
b27a538
AMDGPU: Fix illegally constant folding from V_MOV_B32_sdwa
arsenm May 16, 2020
cd12e79
[x86] Propagate memory operands during ISel DAG postprocessing
May 18, 2020
3f5f8f3
[compiler-rt][CMake] Fix PowerPC runtime build
May 18, 2020
47a0e9f
[Sanitizers] Use getParamByValType() (NFC)
nikic May 18, 2020
b783f70
[lldb/DataFormatter] Check for overflow when finding NSDate epoch
vedantk Apr 21, 2020
c9f6329
Fix several places that were calling verifyFunction or verifyModule w…
topperc May 18, 2020
d19265b
[clangd] Avoid wasteful data structures in RefSlab::Builder
sam-mccall May 14, 2020
3e31569
DAG: Use correct pointer size for llvm.ptrmask
arsenm May 18, 2020
50f3bb1
[AMDGPU] Fixed selection error for 64 bit extract_subvector
rampitec May 18, 2020
9d7838d
[x86] add tests for disguised horizontal ops; NFC
rotateright May 18, 2020
b95a542
[x86] add tests for heroic horizontal ops; NFC
rotateright May 18, 2020
1784202
[GlobalISel] Add support for using vector values in memset inlining.
aemerson May 18, 2020
01f9d8c
[llvm][SVE] IR intrinscs for matrix multiplication instructions.
May 6, 2020
e2cc12e
[SveEmitter] Builtins for SVE matrix multiply `mmla`.
May 6, 2020
b572d9b
[llvm][sve] Intrinsics for SVE sudot and usdot instructions.
May 8, 2020
ae98939
GlobalISel: Fold G_MUL x, 0, and G_*DIV 0, x
arsenm May 18, 2020
9d69072
[analyzer][NFC] Introduce CXXDeallocatorCall, deploy it in MallocChecker
Szelethus Mar 1, 2020
a81f8fb
[gn build] Port 9d69072fb80
llvmgnsyncbot May 18, 2020
682e739
[LV] Fix FoldTail under user VF and UF
azaks May 17, 2020
8290440
Map -O to -O1 instead of -O2
MaskRay May 14, 2020
fff3a84
[lldb/test] Relax NSDate mock test for non-Apple platforms
vedantk May 18, 2020
b593bfd
[clang][SveEmitter] SVE builtins for `svusdot` and `svsudot` ACLE.
May 11, 2020
665da59
[AArch64][GlobalISel] Add legalizer & selector support for G_FREEZE.
aemerson May 18, 2020
e3e1583
[clangd] Tidy up SelectionTree dumps with newlines
sam-mccall May 18, 2020
e3aa4cd
[lldb/test] Disable NSDate format check under _WIN32
vedantk May 18, 2020
47cc6db
Re-land [Debug][CodeView] Emit fully qualified names for globals
rnk May 18, 2020
ddff979
[BPF] Prevent disassembly segfault for NOP insn
yonghong-song May 18, 2020
4a69eda
[PowerPC][MachineCombiner] add testcase for reassociating FMA - NFC
May 19, 2020
ddcb3cf
[TargetInstrInfo] add override function setSpecialOperandAttr - NFC
May 19, 2020
9971839
fix build failure due to commit rGddcb3cf213e8
May 19, 2020
82093e8
[lldb/Driver] Fix handling on positional arguments
JDevlieghere May 19, 2020
8e8f1bd
[BPF] Return fail if disassembled insn registers out of range
yonghong-song May 16, 2020
27b4e69
[NFC] Replace MaybeAlign with Align in TargetTransformInfo.
efriedma-quic May 19, 2020
e7e84ff
Add cet.h for writing CET-enabled assembly code
xiangzh1 May 19, 2020
a204f22
[gn build] Port e7e84ff24a5
llvmgnsyncbot May 19, 2020
a6be4d1
[PowerPC-QPX] adjust operands order of qpx fma instructions.
May 19, 2020
6c84884
[LoopSimplify] don't separate nested loops with convergent calls
ssahasra May 19, 2020
62a9eca
Test asm-cet.S fail for window clang
xiangzh1 May 19, 2020
0af4012
[gn build] Port 62a9eca859d
llvmgnsyncbot May 19, 2020
eec7588
[BPF] fix an asan issue when disassemble an illegal instruction
yonghong-song May 19, 2020
ad4f196
[NFC] [PowerPC] Refresh fma-mutate.ll using script
ecnelises May 19, 2020
2bb16f9
[lldb/Test] Skip TestPositionalArgs with lldb-repro
JDevlieghere May 19, 2020
bcc0c89
Add cet.h for writing CET-enabled assembly code
xiangzh1 May 19, 2020
a60baa3
[gn build] Port bcc0c894f38
llvmgnsyncbot May 19, 2020
dbb0349
Add support of the next Ubuntu (Ubuntu 20.10 - Groovy Gorilla)
sylvestre May 19, 2020
04e0050
[DebugInfo] Remove an outdated test.
igorkudrin May 19, 2020
69dfa07
[DebugInfo] Dump fields in .debug_aranges according to the DWARF form…
igorkudrin May 19, 2020
f92a554
[DebugInfo] Dump form values according to the DWARF format (2/8).
igorkudrin May 19, 2020
0db1684
[DebugInfo] Dump length of CUs and TUs according to the DWARF format …
igorkudrin May 19, 2020
c9122b8
[DebugInfo] Dump length in .debug_line according to the DWARF format …
igorkudrin May 19, 2020
2094c5d
[DebugInfo] Dump values in .debug_loclists and .debug_rnglists accord…
igorkudrin May 19, 2020
7e9a740
[DebugInfo] Dump values in .debug_pubnames and .debug_pubtypes accord…
igorkudrin May 19, 2020
e94382e
[DebugInfo] Dump offsets in .debug_str_offsets according to the DWARF…
igorkudrin May 19, 2020
61f8597
[DebugInfo] Add a test for dumping DWARF64 CIEs and FDEs (8/8).
igorkudrin May 19, 2020
4c09289
[clang] Add an API to retrieve implicit constructor arguments.
martinboehme May 19, 2020
b3bd0c3
[SystemZ] Eliminate the need to create a zero vector by reusing the V…
JonPsson May 13, 2020
51bb212
[Analyzer][VLASizeChecker] Check for VLA size overflow.
balazske May 19, 2020
d94bacb
[WebAssembly] Handle exception specifications
aheejin May 8, 2020
cdafe59
TargetLoweringObjectFile.h - remove unnecessary includes. NFCI.
RKSimon May 18, 2020
e215cb7
TargetIntrinsicInfo.h - remove unnecessary Compiler.h include. NFC.
RKSimon May 18, 2020
1d579f5
[AST] Fix recovery-AST crash: dependent overloaded call exprs are now…
sam-mccall May 18, 2020
48aa781
[Tooling] Drop leading/trailing whitespace from compile_flags.txt lines
sam-mccall May 18, 2020
e408b54
[clangd] Fix gcc compiler warning by removing extra ";" [NFC]
mikaelholmen May 19, 2020
e2b134b
[yaml2obj] - Stop using square brackets for unique suffixes.
May 18, 2020
56079e1
[Analyzer][VLASizeChecker] Try to fix vla.c test problems.
balazske May 19, 2020
69c8f85
GlobPattern.h - remove unnecessary StringRef.h include. NFC
RKSimon May 19, 2020
eeece6d
[AMDGPU] Add more VMEM to SALU WAR hazard tests. NFC
perlfu May 19, 2020
fa8fc9f
[MLIR, OpenMP] Support for flush operation, and translating the same …
kiranktp May 19, 2020
032727f
[clangd] Complete filenames after < / ".
sam-mccall May 5, 2020
9b88a19
[clangd] Add CSV export for trace metrics
sam-mccall May 9, 2020
5afd86b
[MLIR] Add helper functions for common integer types
frgossen May 18, 2020
61559d0
[clangd] Squash GCC error with StringRef + gtest MatchesRegex()
sam-mccall May 19, 2020
62adfed
Unrank mcuMemHostRegister tensor argument.
chsigg May 18, 2020
2e5e42d
[analyzer][MallocChecker] When modeling realloc-like functions, don't…
Szelethus May 5, 2020
8e64c09
GlobalVariable.h - remove unused PointerUnion.h include. NFC
RKSimon May 19, 2020
0fc1f2b
ObjectCache.h - replace unnecessary MemoryBuffer.h include with forwa…
RKSimon May 19, 2020
6e99199
Fix "not all control paths return a value" warning on MSVC builds.
RKSimon May 19, 2020
c1ae72d
[IR] Revert r119493
jayfoad May 19, 2020
2e499ee
[OPENMP50]Add initial support for 'affinity' clause.
alexey-bataev May 18, 2020
88d73ce
Merge commit '2e499eee5884456f3dd068662ee1785f24bd88cc' into flaub-ll…
May 20, 2020
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: 1 addition & 1 deletion .arclint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"linters": {
"clang-format": {
"type": "script-and-regex",
"script-and-regex.script": "utils/arcanist/clang-format.sh",
"script-and-regex.script": "bash utils/arcanist/clang-format.sh",
"script-and-regex.regex": "/^(?P<severity>[[:alpha:]]+)\n(?P<message>[^\n]+)\n(====|(?P<line>\\d),(?P<char>\\d)\n(?P<original>.*)>>>>\n(?P<replacement>.*)<<<<\n)$/s",
"include": [
"(\\.(cc|cpp|h)$)"
Expand Down
21 changes: 8 additions & 13 deletions clang-tools-extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@ namespace abseil {
// `FactoryName`, return `None`.
static llvm::Optional<DurationScale>
getScaleForFactory(llvm::StringRef FactoryName) {
static const std::unordered_map<std::string, DurationScale> ScaleMap(
{{"Nanoseconds", DurationScale::Nanoseconds},
{"Microseconds", DurationScale::Microseconds},
{"Milliseconds", DurationScale::Milliseconds},
{"Seconds", DurationScale::Seconds},
{"Minutes", DurationScale::Minutes},
{"Hours", DurationScale::Hours}});

auto ScaleIter = ScaleMap.find(std::string(FactoryName));
if (ScaleIter == ScaleMap.end())
return llvm::None;

return ScaleIter->second;
return llvm::StringSwitch<llvm::Optional<DurationScale>>(FactoryName)
.Case("Nanoseconds", DurationScale::Nanoseconds)
.Case("Microseconds", DurationScale::Microseconds)
.Case("Milliseconds", DurationScale::Milliseconds)
.Case("Seconds", DurationScale::Seconds)
.Case("Minutes", DurationScale::Minutes)
.Case("Hours", DurationScale::Hours)
.Default(llvm::None);
}

// Given either an integer or float literal, return its value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void StringFindStartswithCheck::registerMatchers(MatchFinder *Finder) {
// Match [=!]= with a zero on one side and a string.find on the other.
binaryOperator(
hasAnyOperatorName("==", "!="),
hasEitherOperand(ignoringParenImpCasts(ZeroLiteral)),
hasEitherOperand(ignoringParenImpCasts(StringFind.bind("findexpr"))))
hasOperands(ignoringParenImpCasts(ZeroLiteral),
ignoringParenImpCasts(StringFind.bind("findexpr"))))
.bind("expr"),
this);
}
Expand Down
15 changes: 7 additions & 8 deletions clang-tools-extra/clang-tidy/add_new_check.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python
#
#===- add_new_check.py - clang-tidy check generator ----------*- python -*--===#
#===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
#
# 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
#
#===------------------------------------------------------------------------===#
#===-----------------------------------------------------------------------===#

from __future__ import print_function

Expand All @@ -15,8 +15,9 @@
import re
import sys

# Adapts the module's CMakelist file. Returns 'True' if it could add a new entry
# and 'False' if the entry already existed.

# Adapts the module's CMakelist file. Returns 'True' if it could add a new
# entry and 'False' if the entry already existed.
def adapt_cmake(module_path, check_name_camel):
filename = os.path.join(module_path, 'CMakeLists.txt')
with open(filename, 'r') as f:
Expand Down Expand Up @@ -172,7 +173,7 @@ def adapt_module(module_path, module, check_name, check_name_camel):
lines = iter(lines)
try:
while True:
line = lines.next()
line = next(lines)
if not header_added:
match = re.search('#include "(.*)"', line)
if match:
Expand All @@ -197,7 +198,7 @@ def adapt_module(module_path, module, check_name, check_name_camel):
# If we didn't find the check name on this line, look on the
# next one.
prev_line = line
line = lines.next()
line = next(lines)
match = re.search(' *"([^"]*)"', line)
if match:
current_check_name = match.group(1)
Expand Down Expand Up @@ -227,7 +228,6 @@ def add_release_notes(module_path, module, check_name):
with open(filename, 'w') as f:
note_added = False
header_found = False
next_header_found = False
add_note_here = False

for line in lines:
Expand All @@ -241,7 +241,6 @@ def add_release_notes(module_path, module, check_name):
add_note_here = True

if match_next:
next_header_found = True
add_note_here = True

if match:
Expand Down
19 changes: 17 additions & 2 deletions clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ using namespace clang::ast_matchers;
namespace clang {
namespace tidy {
namespace bugprone {
namespace {
AST_MATCHER(Decl, isFromStdNamespace) {
if (const auto *D = Node.getDeclContext()->getEnclosingNamespaceContext())
return D->isStdNamespace();
return false;
}
} // namespace

ArgumentCommentCheck::ArgumentCommentCheck(StringRef Name,
ClangTidyContext *Context)
Expand Down Expand Up @@ -54,10 +61,18 @@ void ArgumentCommentCheck::registerMatchers(MatchFinder *Finder) {
// don't check them against NewCallback's parameter names.
// FIXME: Make this configurable.
unless(hasDeclaration(functionDecl(
hasAnyName("NewCallback", "NewPermanentCallback")))))
hasAnyName("NewCallback", "NewPermanentCallback")))),
// Ignore APIs from the standard library, since their names are
// not specified by the standard, and standard library
// implementations in practice have to use reserved names to
// avoid conflicts with same-named macros.
unless(hasDeclaration(isFromStdNamespace())))
.bind("expr"),
this);
Finder->addMatcher(
cxxConstructExpr(unless(hasDeclaration(isFromStdNamespace())))
.bind("expr"),
this);
Finder->addMatcher(cxxConstructExpr().bind("expr"), this);
}

static std::vector<std::pair<SourceLocation, StringRef>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static std::string getExprAsString(const clang::Expr &E,
Text.erase(
llvm::remove_if(
Text,
[](char C) { return std::isspace(static_cast<unsigned char>(C)); }),
[](char C) { return llvm::isSpace(static_cast<unsigned char>(C)); }),
Text.end());
return Text;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ ReservedIdentifierCheck::ReservedIdentifierCheck(StringRef Name,
Options.get("AllowedIdentifiers", ""))) {}

void ReservedIdentifierCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
RenamerClangTidyCheck::storeOptions(Opts);
Options.store(Opts, "Invert", Invert);
Options.store(Opts, "AllowedIdentifiers",
utils::options::serializeStringList(AllowedIdentifiers));
Expand Down
57 changes: 43 additions & 14 deletions clang-tools-extra/clang-tidy/bugprone/SignedCharMisuseCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ static Matcher<TypedefDecl> hasAnyListedName(const std::string &Names) {
SignedCharMisuseCheck::SignedCharMisuseCheck(StringRef Name,
ClangTidyContext *Context)
: ClangTidyCheck(Name, Context),
CharTypdefsToIgnoreList(Options.get("CharTypdefsToIgnore", "")) {}
CharTypdefsToIgnoreList(Options.get("CharTypdefsToIgnore", "")),
DiagnoseSignedUnsignedCharComparisons(
Options.get("DiagnoseSignedUnsignedCharComparisons", true)) {}

void SignedCharMisuseCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
Options.store(Opts, "CharTypdefsToIgnore", CharTypdefsToIgnoreList);
Options.store(Opts, "DiagnoseSignedUnsignedCharComparisons",
DiagnoseSignedUnsignedCharComparisons);
}

// Create a matcher for char -> integer cast.
Expand Down Expand Up @@ -92,21 +96,43 @@ void SignedCharMisuseCheck::registerMatchers(MatchFinder *Finder) {

Finder->addMatcher(Declaration, this);

// Catch signed char/unsigned char comparison.
const auto CompareOperator =
expr(binaryOperator(hasAnyOperatorName("==", "!="),
anyOf(allOf(hasLHS(SignedCharCastExpr),
hasRHS(UnSignedCharCastExpr)),
allOf(hasLHS(UnSignedCharCastExpr),
hasRHS(SignedCharCastExpr)))))
.bind("comparison");
if (DiagnoseSignedUnsignedCharComparisons) {
// Catch signed char/unsigned char comparison.
const auto CompareOperator =
expr(binaryOperator(hasAnyOperatorName("==", "!="),
anyOf(allOf(hasLHS(SignedCharCastExpr),
hasRHS(UnSignedCharCastExpr)),
allOf(hasLHS(UnSignedCharCastExpr),
hasRHS(SignedCharCastExpr)))))
.bind("comparison");

Finder->addMatcher(CompareOperator, this);
}

// Catch array subscripts with signed char -> integer conversion.
// Matcher for C arrays.
const auto CArraySubscript =
arraySubscriptExpr(hasIndex(SignedCharCastExpr)).bind("arraySubscript");

Finder->addMatcher(CArraySubscript, this);

Finder->addMatcher(CompareOperator, this);
// Matcher for std arrays.
const auto STDArraySubscript =
cxxOperatorCallExpr(
hasOverloadedOperatorName("[]"),
hasArgument(0, hasType(cxxRecordDecl(hasName("::std::array")))),
hasArgument(1, SignedCharCastExpr))
.bind("arraySubscript");

Finder->addMatcher(STDArraySubscript, this);
}

void SignedCharMisuseCheck::check(const MatchFinder::MatchResult &Result) {
const auto *SignedCastExpression =
Result.Nodes.getNodeAs<ImplicitCastExpr>("signedCastExpression");
const auto *IntegerType = Result.Nodes.getNodeAs<QualType>("integerType");
assert(SignedCastExpression);
assert(IntegerType);

// Ignore the match if we know that the signed char's value is not negative.
// The potential misinterpretation happens for negative values only.
Expand Down Expand Up @@ -135,14 +161,17 @@ void SignedCharMisuseCheck::check(const MatchFinder::MatchResult &Result) {

diag(Comparison->getBeginLoc(),
"comparison between 'signed char' and 'unsigned char'");
} else if (const auto *IntegerType =
Result.Nodes.getNodeAs<QualType>("integerType")) {
} else if (Result.Nodes.getNodeAs<Expr>("arraySubscript")) {
diag(SignedCastExpression->getBeginLoc(),
"'signed char' to %0 conversion in array subscript; "
"consider casting to 'unsigned char' first.")
<< *IntegerType;
} else {
diag(SignedCastExpression->getBeginLoc(),
"'signed char' to %0 conversion; "
"consider casting to 'unsigned char' first.")
<< *IntegerType;
} else
llvm_unreachable("Unexpected match");
}
}

} // namespace bugprone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SignedCharMisuseCheck : public ClangTidyCheck {
const std::string &CastBindName) const;

const std::string CharTypdefsToIgnoreList;
const bool DiagnoseSignedUnsignedCharComparisons;
};

} // namespace bugprone
Expand Down
29 changes: 15 additions & 14 deletions clang-tools-extra/clang-tidy/bugprone/SizeofExpressionCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ void SizeofExpressionCheck::registerMatchers(MatchFinder *Finder) {
if (WarnOnSizeOfCompareToConstant) {
Finder->addMatcher(
binaryOperator(matchers::isRelationalOperator(),
hasEitherOperand(ignoringParenImpCasts(SizeOfExpr)),
hasEitherOperand(ignoringParenImpCasts(
anyOf(integerLiteral(equals(0)),
integerLiteral(isBiggerThan(0x80000))))))
hasOperands(ignoringParenImpCasts(SizeOfExpr),
ignoringParenImpCasts(anyOf(
integerLiteral(equals(0)),
integerLiteral(isBiggerThan(0x80000))))))
.bind("sizeof-compare-constant"),
this);
}
Expand Down Expand Up @@ -205,10 +205,11 @@ void SizeofExpressionCheck::registerMatchers(MatchFinder *Finder) {

Finder->addMatcher(
binaryOperator(hasOperatorName("*"),
hasEitherOperand(ignoringParenImpCasts(SizeOfExpr)),
hasEitherOperand(ignoringParenImpCasts(binaryOperator(
hasOperatorName("*"),
hasEitherOperand(ignoringParenImpCasts(SizeOfExpr))))))
hasOperands(ignoringParenImpCasts(SizeOfExpr),
ignoringParenImpCasts(binaryOperator(
hasOperatorName("*"),
hasEitherOperand(
ignoringParenImpCasts(SizeOfExpr))))))
.bind("sizeof-multiply-sizeof"),
this);

Expand All @@ -232,12 +233,12 @@ void SizeofExpressionCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(
binaryOperator(
hasAnyOperatorName("==", "!=", "<", "<=", ">", ">=", "+", "-"),
hasEitherOperand(expr(anyOf(
ignoringParenImpCasts(SizeOfExpr),
ignoringParenImpCasts(binaryOperator(
hasOperatorName("*"),
hasEitherOperand(ignoringParenImpCasts(SizeOfExpr))))))),
hasEitherOperand(ignoringParenImpCasts(PtrDiffExpr)))
hasOperands(expr(anyOf(ignoringParenImpCasts(SizeOfExpr),
ignoringParenImpCasts(binaryOperator(
hasOperatorName("*"),
hasEitherOperand(
ignoringParenImpCasts(SizeOfExpr)))))),
ignoringParenImpCasts(PtrDiffExpr)))
.bind("sizeof-in-ptr-arithmetic-mul"),
this);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ void SuspiciousEnumUsageCheck::registerMatchers(MatchFinder *Finder) {
this);

Finder->addMatcher(
binaryOperator(hasAnyOperatorName("+", "|"),
hasEitherOperand(
expr(hasType(isInteger()), unless(enumExpr("", "")))),
hasEitherOperand(enumExpr("enumExpr", "enumDecl"))),
binaryOperator(
hasAnyOperatorName("+", "|"),
hasOperands(expr(hasType(isInteger()), unless(enumExpr("", ""))),
enumExpr("enumExpr", "enumDecl"))),
this);

Finder->addMatcher(binaryOperator(hasAnyOperatorName("|=", "+="),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ void SuspiciousStringCompareCheck::registerMatchers(MatchFinder *Finder) {
has(ignoringParenImpCasts(integerLiteral(unless(equals(0)))))),
characterLiteral(), cxxBoolLiteral()));

Finder->addMatcher(binaryOperator(isComparisonOperator(),
hasEitherOperand(StringCompareCallExpr),
hasEitherOperand(InvalidLiteral))
.bind("invalid-comparison"),
this);
Finder->addMatcher(
binaryOperator(isComparisonOperator(),
hasOperands(StringCompareCallExpr, InvalidLiteral))
.bind("invalid-comparison"),
this);
}

void SuspiciousStringCompareCheck::check(
Expand Down
5 changes: 5 additions & 0 deletions clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "../ClangTidyModuleRegistry.h"
#include "../bugprone/BadSignalToKillThreadCheck.h"
#include "../bugprone/ReservedIdentifierCheck.h"
#include "../bugprone/SignedCharMisuseCheck.h"
#include "../bugprone/SpuriouslyWakeUpFunctionsCheck.h"
#include "../bugprone/UnhandledSelfAssignmentCheck.h"
#include "../google/UnnamedNamespaceInHeaderCheck.h"
Expand Down Expand Up @@ -108,13 +109,17 @@ class CERTModule : public ClangTidyModule {
// POS
CheckFactories.registerCheck<bugprone::BadSignalToKillThreadCheck>(
"cert-pos44-c");
// STR
CheckFactories.registerCheck<bugprone::SignedCharMisuseCheck>(
"cert-str34-c");
}

ClangTidyOptions getModuleOptions() override {
ClangTidyOptions Options;
ClangTidyOptions::OptionMap &Opts = Options.CheckOptions;
Opts["cert-dcl16-c.NewSuffixes"] = "L;LL;LU;LLU";
Opts["cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField"] = "0";
Opts["cert-str34-c.DiagnoseSignedUnsignedCharComparisons"] = "0";
return Options;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void ProTypeMemberInitCheck::checkMissingMemberInitializer(
// Don't suggest fixes for bitfields because in-class initialization is not
// possible until C++2a.
if (F->getType()->isEnumeralType() ||
(!getLangOpts().CPlusPlus2a && F->isBitField()))
(!getLangOpts().CPlusPlus20 && F->isBitField()))
return;
if (!F->getParent()->isUnion() || UnionsSeen.insert(F->getParent()).second)
FieldsToFix.insert(F);
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS
)

add_clang_library(clangTidyLLVMLibcModule
CalleeNamespaceCheck.cpp
ImplementationInNamespaceCheck.cpp
LLVMLibcTidyModule.cpp
RestrictSystemLibcHeadersCheck.cpp
Expand Down
Loading