Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW34) #4344

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 358 commits into from
Aug 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
d41de8e
[gn build] Port 58915667d0b9
llvmgnsyncbot Aug 11, 2021
c874dd5
[llvm][clang][NFC] updates inline licence info
cjdb Aug 5, 2021
510402c
[NFC][MLGO] 'Use' variable used for asserts
mtrofin Aug 11, 2021
a8ae41f
[SelectionDAGBuilder] Save iterator to avoid second DenseMap lookup. NFC
topperc Aug 11, 2021
e0c5d83
[OpenMP][FIX] Disabled optimizations have to be made known
jdoerfert Aug 10, 2021
f358727
[Attributor][NFC] Precommit reproducer for PR51249
jdoerfert Aug 10, 2021
96da6dd
[Attributor][FIX] Only avoid visiting PHI uses multiple times (PR51249)
jdoerfert Aug 10, 2021
e7e3585
[Attributor][FIX] Handle recurrences (PHIs) in AAPointerInfo explicitly
jdoerfert Aug 10, 2021
9832e1a
[mlir][Analysis] Add alignAffineMapWithValues
matthias-springer Aug 11, 2021
fc32a5c
[Attributor][NFC] Try to make the windows build bots happy
jdoerfert Aug 11, 2021
97e41c0
[mlir][Analysis] Add FlatAffineConstraints::addLowerOrUpperBound
matthias-springer Aug 11, 2021
c0c1c3c
Revert "[InstrProfiling] Emit bias variable eagerly"
petrhosek Aug 10, 2021
389dc94
[InstrProfiling] Generate runtime hook for Fuchsia
petrhosek Aug 10, 2021
98e30a9
[mlir][Analysis][NFC] Reimplement FlatAffineConstraints::addLowerOrUp…
matthias-springer Aug 11, 2021
0cfb00a
[lld] Add lto-pgo-warn-mismatch option
yolanda15 Aug 11, 2021
61526b1
[DAG] Reword comment for EnforceNodeIdInvariant and InvalidateNodeId.…
Aug 10, 2021
9e6e081
[mlir][Analysis][NFC] Reimplement FlatAffineConstraints::composeMap
matthias-springer Aug 11, 2021
4b56e2e
[mlir][Analysis][NFC] Remove code duplication around getFlattenedAffi…
matthias-springer Aug 11, 2021
7bbbf29
[ELF] Don't emit SHF_GNU_RETAIN on Solaris
rorth Aug 11, 2021
1fe0e6a
[AArch64][SME] Support ptrue(s) in streaming mode
c-rhodes Aug 11, 2021
967578f
Revert "[mlir] Change the pattern for TiledLoopOp bufferization."
pifon2a Aug 11, 2021
1e733a8
Revert "Bufferization for tiled loop."
pifon2a Aug 11, 2021
9ed1c7e
[Unwind] Split unwind.h
DanielKristofKiss Aug 11, 2021
db126ae
[Arm][Unwind][libc++abi] Add _Unwind_ForcedUnwind to EHABI.
DanielKristofKiss Aug 11, 2021
6b6d344
[libunwind] Compile with -Wunused-but-set-variable
DanielKristofKiss Aug 11, 2021
f6425df
[gn build] Port
llvmgnsyncbot Aug 11, 2021
8af4725
tsan: fix Printf format string
dvyukov Aug 11, 2021
6c48098
Revert "[lld] Add lto-pgo-warn-mismatch option"
phoebewang Aug 11, 2021
ab41f37
[hwasan] Fix test with TCO eliminating free frame.
fmayer Aug 10, 2021
8c50b5f
[ARM] Add extra debug messages for validating live outs. NFC
davemgreen Aug 11, 2021
c5ab55f
[Orc] Enable debug object tests only on x86_64 hosts
weliveindetail Aug 6, 2021
7377997
[lldb] Rework 'lldb' substitution workaround in dwarf5-lazy-dwo.c
Teemperor Aug 11, 2021
f6748b2
[lldb][NFC] Fix small format error in TestCppVirtualFunctions
Teemperor Aug 11, 2021
9f517fd
[clang][analyzer] Improve bug report in alpha.security.ReturnPtrRange
balazske Aug 11, 2021
9af6156
tsan: fix active mapping selection
dvyukov Aug 11, 2021
b136290
[lldb][docs] Remove index entry to removed StructuredDataPlugins
Teemperor Aug 11, 2021
01d59c0
[OpenMP]Fix PR50336: Remove temporary files in the offload bundler tool
jhuber6 Aug 6, 2021
683147f
[compiler-rt][fuzzer] Xfail flags test on AArch64 Linux
DavidSpickett Aug 11, 2021
89a7bdb
[libc++] Add the __bind_back and __compose helpers
ldionne Aug 9, 2021
7be03cc
[libc++] Remove _LIBCPP_HAS_NO_IS_AGGREGATE
ldionne Aug 10, 2021
15071d2
[libc++] Remove _LIBCPP_HAS_UNIQUE_OBJECT_REPRESENTATIONS
ldionne Aug 10, 2021
a0977c3
[PowerPC][NFC] Update llvm/test/CodeGen/PowerPC/2010-05-03-retaddr1.l…
VictorHuangIBM Aug 11, 2021
62c08c0
[gn build] Port 89a7bdb1f37a
llvmgnsyncbot Aug 11, 2021
79b0576
[mlir] Tighten LLVM_AnyNonAggregate ODS type constraint
ftynse Aug 11, 2021
a0d8a08
[mlir] Add std.bitcast -> llvm.bitcast conversion
ftynse Aug 11, 2021
c1ebefd
[mlir] Make polynomial approximation emit std instead of LLVM ops
d0k Aug 11, 2021
9eb99d2
CodeGen: No need to check for isExternC if HasStrictReturn is already…
aschwaighofer Aug 10, 2021
f94da67
[OpenMP][NFC] libomp: reduced timeouts in the test from 50 to 2 sec.
AndreyChurbanov Aug 11, 2021
d2bc4fa
[libc++][doc] Improve contributor documentation.
mordante Aug 11, 2021
885be62
[LegalizeTypes][NFC] Remove else-after-return
frasercrmck Aug 11, 2021
be556d5
[lldb/Commands] Fix heap-use-after-free error in CommandObjectProcess
medismailben Aug 11, 2021
32adf10
[scudo] Add GWP-ASan state/metadata pointer proxies.
hctim Aug 11, 2021
8fa16cc
[LTO][lld] Add lto-pgo-warn-mismatch option
yolanda15 Aug 11, 2021
5bf4ab0
[InstCombine] add tests for inc/dec with min/max; NFC
rotateright Aug 11, 2021
a0a9c9e
[InstCombine] avoid breaking up min/max (cmp+sel) idioms
rotateright Aug 11, 2021
63c566b
[DWARF] Remove extractFast (NFC)
kazutakahirata Aug 11, 2021
b2c262c
[lldb][NFC] Define DWARFDIE::children out-of-line instead of using te…
Teemperor Aug 11, 2021
c1a8f12
[libc++] Restore `basic_ios`'s implicit conversion to `bool` in C++03…
Quuxplusone Aug 6, 2021
7de439b
[mlir][tosa] Migrate tosa to more efficient linalg.conv
rsuderman Aug 11, 2021
4c5909b
[SampleFDO] Add two passes of MIRAddFSDiscriminatorsPass
xur-llvm Aug 11, 2021
a7c4e9b
[InstSimplify] Eliminate vector reverse of a splat vector
UsmanNadeem Aug 10, 2021
718c632
Simplify dllexport class member code, NFC
rnk Aug 11, 2021
fb9a075
[lld] Add llvm-profdata to lld test deps
rnk Aug 11, 2021
a5ae34a
[mlir][linalg] fixed typo
aartbik Aug 11, 2021
a614a28
[PowerPC] Do not define __PRIVILEGED__
stefanp-synopsys Aug 4, 2021
101b3fe
[flang] Fix two typos in API names
klausler Aug 10, 2021
39c38c2
[flang] Fix list-directed plural repeated null values at end of record
klausler Aug 10, 2021
7f3c3d7
[mlir] BUILD.bazel: remove LLVMDialect from MathTransforms
cota Aug 11, 2021
8c31efe
Add the ability to process save-core stack-memory-only corefiles
jasonmolenda Aug 11, 2021
767496d
[lldb] Skip TestStepOverWatchpoint on AS
JDevlieghere Aug 11, 2021
643ce61
[ObjC][ARC] Don't form a StoreStrong call if it is unsafe to move the
ahatanaka Aug 11, 2021
2c1789b
[AArch64][GlobalISel] Add ptradd_immed_chain combine to post-legalize…
aemerson Aug 11, 2021
7c81024
[libc++] Remove workarounds for missing __builtin_addressof
ldionne Aug 11, 2021
b408bbb
[libc++] Avoid conflating stderr and stdout in the DSL
ldionne Aug 11, 2021
b97afc9
[lldb] Update MemoryRegionInfo ctors in unit tests
JDevlieghere Aug 11, 2021
3f96438
[lldb] Skip TestConcurrent.* watchpoint tests for Darwin on ARM
JDevlieghere Aug 11, 2021
9f4b130
[lldb] Replace assertTrue(foo in bar) with assertIn(foo, bar)
JDevlieghere Aug 11, 2021
9396c3e
[AArch64][SVE] Remove assertion/range check for i16 values during imm…
UsmanNadeem Aug 11, 2021
f899445
[lldb] Fix TestFormattersBoolRefPtr on AS
JDevlieghere Aug 11, 2021
93e084e
Add missing cmake dep to fix MLIR build with BUILD_SHARED_LIBS=ON (NFC)
joker-eph Aug 11, 2021
35d6e75
[mlir] Drop LLVM dialect from TestPolynomialApproximation
d0k Aug 11, 2021
856a6a5
[CSSPGO][llvm-profgen] Trim and merge context beforehand to reduce me…
wlei-llvm Aug 9, 2021
3a2ff98
Support post-processing Ops in unrolled loop iterations
nimiwio Aug 11, 2021
b062d63
[libc] add strtoll function and backend
michaelrj-google Aug 5, 2021
73056f2
[AArch64][GlobalISel] Simplify/nuke the merge/unmerge legalizer rules.
aemerson Aug 11, 2021
2b30fc2
Fix two bugs with stack corefiles patch, restrict test built debugserver
jasonmolenda Aug 12, 2021
7ce739a
Update gdbremote_testcase.py to allow new k-v pair in qMemoryRegionInfo
jasonmolenda Aug 12, 2021
b7611ad
[CMake] Enable clang_rt.crt{begin,end} on ppc32/ppc64
q66 Aug 12, 2021
5d940b7
Reapply "SROA: Enhance speculateSelectInstLoads"
cdevadas Aug 10, 2021
ef28c78
[tests] [trace] Add a more comprehensive test for `thread trace expor…
Aug 12, 2021
d54c62c
[profile][test] Add -no-pie to make value profile merge work on Linux…
MaskRay Aug 12, 2021
645f589
tsan: fix build breakage due to AppMemBeg
dvyukov Aug 12, 2021
0fc27ef
[clang-format] handle trailing comments in function definition detection
krasimirgg Aug 12, 2021
67d4d7c
[Object] Add missing PPC_DYNAMIC_TAG macros
MaskRay Aug 12, 2021
419decc
[AArch64] NFC: Remove register decoder tables in disassembler
c-rhodes Aug 12, 2021
d4b193c
[compiler-rt][fuzzer] Mark flags test unsupported on AArch64 Linux
DavidSpickett Aug 12, 2021
6c14688
[X86] Reverse *_set_ph and *_setr_ph 's set order.
FreddyLeaf Aug 12, 2021
4593492
[clang-format] improve distinction of K&R function definitions vs att…
krasimirgg Aug 12, 2021
39bbbc2
[clang-tidy][docs] Remove the entry about 'cppcoreguidelines-init-var…
whisperity Aug 12, 2021
9c47d6b
[llvm][sve] Lowering for VLS extending loads
DavidTruby Aug 11, 2021
a1ef81d
[Matrix] Overload stride arg in matrix.columnwise.load/store.
fhahn Aug 12, 2021
6861658
[llvm-objcopy][ELF] Avoid reordering section headers
igorkudrin Aug 12, 2021
1f87c7c
[Matrix] Update column.major.load call in PPC test.
fhahn Aug 12, 2021
f8340c8
[LLD] [MinGW] Add more options for disabling flags in the executable
mstorsjo Aug 11, 2021
592adb0
[CMake] Make the vendor part of default mingw triples consistent
mstorsjo Aug 11, 2021
5ed9e5c
[clang] [MinGW] Consider the per-target libc++ include directory too
mstorsjo Aug 11, 2021
8f359a8
[llvm][sve] Fix erroneous tests for fixed length extending loads
DavidTruby Aug 12, 2021
f52fc59
[flang][driver] Add support for Frontend Plugins
stuellis Aug 12, 2021
d9afba9
tsan: extend MutexSet to memorize mutex address/stack_id
dvyukov Aug 10, 2021
c0a42d4
[Test] Move test for PR50555 from InstCombine to AggressiveInstCombine
anton-afanasyev Aug 12, 2021
28c0479
Revert "[Matrix] Overload stride arg in matrix.columnwise.load/store."
joker-eph Aug 12, 2021
a72cd63
Revert "[Matrix] Update column.major.load call in PPC test."
fhahn Aug 12, 2021
62139c5
tsan: remove implicit memcpy in MutexSet::Desc::operator=()
dvyukov Aug 12, 2021
9069082
[Polly] Simplify domains before gist.
Meinersbur Aug 12, 2021
696ad3c
[OpenCL] Tidy up preserve_vec3 test
svenvh Aug 12, 2021
422fc56
[llvm][Inline] Refactor out InlineOrder
taoliq Aug 12, 2021
99e0066
[PowerPC] Fix return address computation for "__builtin_return_address"
VictorHuangIBM Aug 12, 2021
1b5a195
[InstCombine] add tests for factorization of min/max intrinsics; NFC
rotateright Aug 12, 2021
6de1dbb
[InstCombine] factorize min/max intrinsic ops with common operand
rotateright Aug 12, 2021
be06985
[InstCombine] remove shl(neg x), y transform
rotateright Aug 12, 2021
d2c5cbc
Add a check for enforcing minimum length for variable names
0x8000-0000 Aug 12, 2021
8766643
[gn build] Port d2c5cbc3a856
llvmgnsyncbot Aug 12, 2021
ae9a346
[ARM] Fix DAG combine loop in reduction distribution
davemgreen Aug 12, 2021
a420f80
[Attributor] Do not delete volatile stores to null/undef
jdoerfert Aug 11, 2021
5f54391
[Attributor][FIX] Guard constant casts with type size checks
jdoerfert Aug 12, 2021
4e7d7ca
[Attributor][FIX] Do not try to rewrite functions with casted call sites
jdoerfert Aug 12, 2021
cd44cc8
[InstCombine] remove unused function argument; NFC
rotateright Aug 12, 2021
ccb5b9b
[CSSPGO] Allow the use of debug-info-for-profiling and pseudo-probe-f…
htyu Aug 11, 2021
a49ca19
Speculatively fix the build bots.
AaronBallman Aug 12, 2021
dd3eea6
[LICM] Support sinking in LNICM
maekawatoshiki Aug 12, 2021
b611354
[openmp] Annotate tmp variables with omp_thread_mem_alloc
JonChesterfield Aug 12, 2021
c520863
[crt][test] Make ctor_dtor.c robust if DT_INIT/DT_FINI is disabled
MaskRay Aug 12, 2021
467525b
[flang] Fix crash in runtime-type-info.cpp
klausler Aug 10, 2021
4b2fd11
[InstCombine] add test for umax/umin intrinsic demanded bits; NFC
rotateright Aug 12, 2021
790c29a
[InstCombine] fold umax/umin intrinsics based on demanded bits
rotateright Aug 12, 2021
6a8e512
Revert "[openmp] Annotate tmp variables with omp_thread_mem_alloc"
JonChesterfield Aug 12, 2021
4593811
[DWARF] Remove getMaxLineIncrementForSpecialOpcode (NFC)
kazutakahirata Aug 12, 2021
628f63d
[SimplifyCFG] If FoldTwoEntryPHINode() changed things, restart
LebedevRI Aug 12, 2021
f30a7df
[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch is non-t…
LebedevRI Aug 12, 2021
6171f84
[RISCV] Use getNaturalPointeeTypeAlignment to get alignment for store…
topperc Aug 12, 2021
f66ba5f
[Sema] Fix -Wparentheses warning from gcc. NFC
topperc Aug 12, 2021
79fbddb
[RISCV] Teach vsetvli insertion pass that it doesn't need to insert v…
topperc Aug 12, 2021
4ac87e3
[libcxx][ranges] Add `unreachable_sentinel`.
zoecarver Aug 11, 2021
e25665f
[RISCV] Add test cases showing inefficient materialization for stores…
topperc Aug 12, 2021
4573c31
[Flang] Fix build failure on MacOS
kiranchandramohan Aug 12, 2021
f5d32c5
[gn build] Port 4ac87e33785e
llvmgnsyncbot Aug 12, 2021
6900df3
[libc++] Remove Lit annotations for unsupported GCC versions from the…
ldionne Aug 9, 2021
f999312
Recommit "[Matrix] Overload stride arg in matrix.columnwise.load/store."
fhahn Aug 12, 2021
35249cb
[Flang] Fix error messages on Windows.
Aug 12, 2021
50c7e29
[NFC] Enumerate LLVMOMPOFFLOAD note types.
Aug 12, 2021
56d6070
[mlir][sparse][python] add an "exhaustive" sparse test using python
aartbik Aug 12, 2021
39809eb
[llvm-diff] add "reset" method to DiffConsumer
isanbard Aug 12, 2021
b61359f
[llvm-diff] correct variable typo
isanbard Aug 12, 2021
5a6d770
[Polly] Fix compiler warnings. NFC.
Meinersbur Aug 12, 2021
2f1ee56
[unwind] Handle UNW_X86_64_RIP register
vitalybuka Aug 11, 2021
18f9e25
[AST][clangd] Expose documentation of Attrs on hover.
sam-mccall Aug 7, 2021
8150c1b
[flang] Disable Plugins in out-of-tree builds
banach-space Aug 12, 2021
427520a
Revert "[InstCombine] factorize min/max intrinsic ops with common ope…
amykhuang Aug 12, 2021
a2556bf
[RISCV] Improve check prefixes in B extension tests. NFC
topperc Aug 12, 2021
a05bae6
[flang] Correct off-by-one error in SET_EXPONENT
klausler Aug 12, 2021
14eefa5
[InstCombine] factorize min/max intrinsic ops with common operand (2n…
rotateright Aug 12, 2021
1e11cca
[clang/test] Run thinlto-clang-diagnostic-handler-in-be.c on x86
Aug 6, 2021
78e8797
[WebAssembly] Disable offset folding for function addresses
aheejin Aug 12, 2021
15497e6
[openmp][ELF] Recognize LLVM OpenMP offload specific notes
Aug 12, 2021
62df4df
[mlir-tblgen] Minor Refactor for StaticVerifierFunctionEmitter.
ChiaHungDuan Aug 12, 2021
472fa04
[libc][nfc] add CPP Limits.h for numeric_limits
michaelrj-google Aug 12, 2021
8930af4
[PowerPC] Implement XL compatibility builtin __addex
lei137 Jul 28, 2021
7150b56
Symbolicate aarch64 adrp+add pc-relative addr in disass
jasonmolenda Aug 12, 2021
08c04ca
[clangd] Overload bundles are only deprecated if each overloads is.
sam-mccall Mar 2, 2021
3b99acb
[Attributes]: refactor to expose ParsedAttrInfo::acceptsLangOpts. NFC
sam-mccall Aug 10, 2021
ece4e92
[CodeComplete] Basic code completion for attribute names.
sam-mccall Aug 7, 2021
f9c8602
clangd: Provide hover info for include directives
ckandeler Aug 12, 2021
c130300
Frontend: Refactor compileModuleAndReadAST, NFC
dexonsmith Jan 28, 2021
6b28835
clangd: Make documentation property of completion items more similar
ckandeler Aug 12, 2021
7242255
Merge from 'sycl' to 'sycl-web'
Aug 12, 2021
2ff7ca9
[clangd] Avoid "expected one compiler job" by picking the first eligi…
sam-mccall Aug 6, 2021
ba0997c
[mlir][tosa] Fix depthwise_conv2D strides/dilation and name
NatashaKnk Aug 12, 2021
b714f73
Frontend: Add -f{,no-}implicit-modules-uses-lock and -Rmodule-lock
dexonsmith Jan 28, 2021
bf6000d
[sanitizer] Fix the test on Solaris
vitalybuka Aug 12, 2021
aca198c
[WebAssembly] Error out when Emscripten SjLj setjmp is used with Wasm EH
aheejin Aug 7, 2021
adb96d2
[WebAssembly] Fix leak in Emscripten SjLj
aheejin Aug 9, 2021
1b194ef
[Clang] add btf_tag attribute
yonghong-song Jul 19, 2021
e1beebb
SplitKit: Don't further split subrange mask in buildCopy
ruiling Aug 10, 2021
60e643f
[OpenMP][Fix] Fix disable spmdization option
ggeorgakoudis Aug 12, 2021
1899112
[gn build] manually port 18f9e25ce1fa43 (AttrDocTable)
nico Aug 13, 2021
76beb41
[gn build] Port 2ff7ca98a99b
llvmgnsyncbot Aug 13, 2021
3980cfc
[mailmap] Add entry for the GN LLVM syncbot
nico Aug 13, 2021
b1de32d
[OMPIRBuilder] Clarify CanonicalLoopInfo. NFC.
Meinersbur Aug 13, 2021
f8f3558
Add PowerPC AIX triple to indirect call VP testcase.
Aug 13, 2021
6db163c
Pre-commit two-way clamp tests
ecnelises Aug 13, 2021
835ea22
[AVR] Enable machine verifier
Aug 13, 2021
ee620b1
[clang][Arm] Fix the default floating point ABI for
Aug 13, 2021
ee65938
[JITLink] Update ELF_x86_64 's edge kind to generic edge kind
Aug 13, 2021
970129a
[clang] Adjust BUILD.bazel file to also generate AttrDocTable.
akuegel Aug 13, 2021
bae9527
[hwasan] Add report for wild frees.
fmayer Aug 5, 2021
60e07a9
[AMDGPU][OpenMP] Use llvm-link to link ocml libraries
pdhaliwal-amd Aug 12, 2021
5437f2e
[flang][nfc] Remove `flang-new-driver` from LIT
banach-space Aug 12, 2021
7d65cc9
[clangd] Guard against null Attrs in the AST
sam-mccall Aug 13, 2021
c064ba3
[NFC] Add commas in code comments.
bader May 24, 2021
46abd1f
[LoopFlatten] Fix assertion failure in checkOverflow
RosieSumpter Aug 9, 2021
4be7fb9
[SVE] Add folds for truncation of vscale
DylanFleming-arm Aug 13, 2021
5c8c24d
Revert "[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch …
LebedevRI Aug 13, 2021
10c8f78
[clang][deps] Move `SingleCommandCompilationDatabase` to a header
jansvoboda11 Aug 13, 2021
e772e25
[hwasan] Fix wild free tests on x86.
fmayer Aug 13, 2021
57c5268
Merge from 'main' to 'sycl-web' (#10)
speryt Aug 13, 2021
82f3d16
Merge from 'sycl' to 'sycl-web' (#2)
Aug 13, 2021
9c8f888
sanitizer_common: prepare for enabling format string checking
dvyukov Aug 12, 2021
036f963
scudo: fix __attribute__((format))
dvyukov Aug 12, 2021
2a63edd
Revert "sanitizer_common: support printing __m128i type"
dvyukov Aug 12, 2021
ef6e194
sanitizer_common: declare vars more locally in VSNPrintf
dvyukov Aug 13, 2021
4a91bbc
sanitizer_common: fix format strings
dvyukov Aug 12, 2021
123c58e
sanitizer_common: enable format string checking
dvyukov Aug 12, 2021
d26d5a0
msan: clean up and enable format string checking
dvyukov Aug 12, 2021
c90bf3f
tsan: clean up and enable format string checking
dvyukov Aug 12, 2021
7371085
ubsan: fix few format string bugs
dvyukov Aug 12, 2021
1fbe5fb
scudo/standalone: prepare for enabling format string checking
dvyukov Aug 13, 2021
eb5e437
Merge from 'main' to 'sycl-web' (#11)
speryt Aug 13, 2021
3c6f115
[mlir] Remove unused header include.
akuegel Aug 13, 2021
de763c4
[clang-format] Distinguish K&R C function definition and attribute
owenca Aug 12, 2021
8738c5b
[MC][ELF] Mark Solaris objects as ELFOSABI_SOLARIS
rorth Aug 13, 2021
cb7c018
[NFC][SimplifyCFG] Add test for failed assertion
LebedevRI Aug 13, 2021
2702fb1
[SimplifyCFG] Restart if `removeUndefIntroducingPredecessor()` made c…
LebedevRI Aug 13, 2021
c46546b
Reland "[NFCI][SimplifyCFG] simplifyCondBranch(): assert that branch …
LebedevRI Aug 13, 2021
cfdfb75
[OpenCL] Clang diagnostics allow reporting C++ for OpenCL version.
Topotuna Aug 6, 2021
d754b97
[NFC] Drop idle compiler option from the test.
bader Aug 13, 2021
70894c8
[flang][OpenMP] Add semantic checks for cancellation nesting
PeixinQiao Aug 13, 2021
027c5a6
[analyzer][NFC] Make test/Analysis/self-assign.cpp readable
Szelethus Aug 13, 2021
ef2ff55
tsan: fix latent bug in shadow computation
dvyukov Aug 13, 2021
42f5110
[flang][OpenMP] Add semantic check for teams nesting
PeixinQiao Aug 13, 2021
0dc6b59
Revert "[SCEV] Remove premature assert. PR46786"
LebedevRI Aug 13, 2021
64f29e2
Fix bad assert in print-changed code
jamieschmeiser Aug 13, 2021
98eb348
Revert "[clang-format] Distinguish K&R C function definition and attr…
DavidSpickett Aug 13, 2021
54ed8b9
tsan/dd: fix format strings
dvyukov Aug 13, 2021
e537a3a
[MLIR][Linalg] Fix typo
chelini Aug 13, 2021
ccfc079
[AArch64][GlobalISel] Legalize scalar G_SSUBSAT + G_SADDSAT
Aug 9, 2021
17bc82d
[AsmWriter][NFC] Simplify writeDIGenericSubrange
AZero13 Aug 13, 2021
4190d99
[X86] Add parentheses around casts in some of the X86 intrinsic headers.
topperc Aug 13, 2021
606735c
[Clang] Add an explicit makeArrayRef to appease gcc 5.4.
topperc Aug 13, 2021
b071626
[sanitizer_common] disable format errors.
fmayer Aug 13, 2021
6c3ae44
[Flang] Fix for CI failure, Remove default case
kiranchandramohan Aug 13, 2021
571b0d8
[IFS] Fix the copy constructor warning in IFSStub.cpp
zeroomega Aug 12, 2021
581a803
[PowerPC] Disable CTR Loop generate for fma with the PPC double doubl…
amy-kwan Aug 13, 2021
0232c1d
[Polly] Decompose object construction and detection algorithm. NFC.
Meinersbur Aug 13, 2021
5eeaac2
[Polly] Rename CodeGen -> generateCode. NFC.
Meinersbur Aug 13, 2021
a0c42ca
[NFC] Remove AttributeList::hasParamAttribute()
aeubanks Aug 13, 2021
770edb5
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Aug 16, 2021
073f287
Merge commit 'a0c42ca56c2ea14c53f7bebcd9b53c4dfe4152e2' into llvmspir…
vmaksimo Aug 16, 2021
e052082
Remove sycldevice target triple from tests
KornevNikita Aug 12, 2021
ac2caf7
Linkage type fix for global variables translation (#1148)
KornevNikita Aug 13, 2021
6b357e0
Fix incorrectly merged 3b99acbff250
AaronBallman Aug 16, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
Jon Roelofs <[email protected]> Jon Roelofs <[email protected]>
Jon Roelofs <[email protected]> Jonathan Roelofs <[email protected]>
Jon Roelofs <[email protected]> Jonathan Roelofs <[email protected]>
LLVM GN Syncbot <[email protected]>
Martin Storsjö <[email protected]>
Saleem Abdulrasool <[email protected]> <[email protected]>
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ makeRewriteRule(const std::vector<std::string> &StringLikeClassNames,
to(varDecl(hasName("npos"), hasDeclContext(StringLikeClass))));
auto StringFind = cxxMemberCallExpr(
callee(cxxMethodDecl(
hasName("find"),
hasName("find"), parameterCountIs(2),
hasParameter(
0, parmVarDecl(anyOf(hasType(StringType), hasType(CharStarType),
hasType(CharType)))))),
Expand Down
7 changes: 3 additions & 4 deletions clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- BranchCloneCheck.cpp - clang-tidy --------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- BranchCloneCheck.h - clang-tidy ------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- UseTrailingReturnTypeCheck.cpp - clang-tidy-----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- UseTrailingReturnTypeCheck.h - clang-tidy---------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions clang-tools-extra/clang-tidy/objc/SuperSelfCheck.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- SuperSelfCheck.cpp - clang-tidy ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
7 changes: 3 additions & 4 deletions clang-tools-extra/clang-tidy/objc/SuperSelfCheck.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- SuperSelfCheck.h - clang-tidy --------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clang-tidy/readability/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ add_clang_library(clangTidyReadabilityModule
ElseAfterReturnCheck.cpp
FunctionCognitiveComplexityCheck.cpp
FunctionSizeCheck.cpp
IdentifierLengthCheck.cpp
IdentifierNamingCheck.cpp
ImplicitBoolConversionCheck.cpp
InconsistentDeclarationParameterNameCheck.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- ConvertMemberFunctionsToStatic.cpp - clang-tidy ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- ConvertMemberFunctionsToStatic.h - clang-tidy ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
156 changes: 156 additions & 0 deletions clang-tools-extra/clang-tidy/readability/IdentifierLengthCheck.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
//===--- IdentifierLengthCheck.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 "IdentifierLengthCheck.h"
#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"

using namespace clang::ast_matchers;

namespace clang {
namespace tidy {
namespace readability {

const unsigned DefaultMinimumVariableNameLength = 3;
const unsigned DefaultMinimumLoopCounterNameLength = 2;
const unsigned DefaultMinimumExceptionNameLength = 2;
const unsigned DefaultMinimumParameterNameLength = 3;
const char DefaultIgnoredLoopCounterNames[] = "^[ijk_]$";
const char DefaultIgnoredVariableNames[] = "";
const char DefaultIgnoredExceptionVariableNames[] = "^[e]$";
const char DefaultIgnoredParameterNames[] = "^[n]$";

const char ErrorMessage[] =
"%select{variable|exception variable|loop variable|"
"parameter}0 name %1 is too short, expected at least %2 characters";

IdentifierLengthCheck::IdentifierLengthCheck(StringRef Name,
ClangTidyContext *Context)
: ClangTidyCheck(Name, Context),
MinimumVariableNameLength(Options.get("MinimumVariableNameLength",
DefaultMinimumVariableNameLength)),
MinimumLoopCounterNameLength(Options.get(
"MinimumLoopCounterNameLength", DefaultMinimumLoopCounterNameLength)),
MinimumExceptionNameLength(Options.get(
"MinimumExceptionNameLength", DefaultMinimumExceptionNameLength)),
MinimumParameterNameLength(Options.get(
"MinimumParameterNameLength", DefaultMinimumParameterNameLength)),
IgnoredVariableNamesInput(
Options.get("IgnoredVariableNames", DefaultIgnoredVariableNames)),
IgnoredVariableNames(IgnoredVariableNamesInput),
IgnoredLoopCounterNamesInput(Options.get("IgnoredLoopCounterNames",
DefaultIgnoredLoopCounterNames)),
IgnoredLoopCounterNames(IgnoredLoopCounterNamesInput),
IgnoredExceptionVariableNamesInput(
Options.get("IgnoredExceptionVariableNames",
DefaultIgnoredExceptionVariableNames)),
IgnoredExceptionVariableNames(IgnoredExceptionVariableNamesInput),
IgnoredParameterNamesInput(
Options.get("IgnoredParameterNames", DefaultIgnoredParameterNames)),
IgnoredParameterNames(IgnoredParameterNamesInput) {}

void IdentifierLengthCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
Options.store(Opts, "MinimumVariableNameLength", MinimumVariableNameLength);
Options.store(Opts, "MinimumLoopCounterNameLength",
MinimumLoopCounterNameLength);
Options.store(Opts, "MinimumExceptionNameLength", MinimumExceptionNameLength);
Options.store(Opts, "MinimumParameterNameLength", MinimumParameterNameLength);
Options.store(Opts, "IgnoredLoopCounterNames", IgnoredLoopCounterNamesInput);
Options.store(Opts, "IgnoredVariableNames", IgnoredVariableNamesInput);
Options.store(Opts, "IgnoredExceptionVariableNames",
IgnoredExceptionVariableNamesInput);
Options.store(Opts, "IgnoredParameterNames", IgnoredParameterNamesInput);
}

void IdentifierLengthCheck::registerMatchers(MatchFinder *Finder) {
if (MinimumLoopCounterNameLength > 1)
Finder->addMatcher(
forStmt(hasLoopInit(declStmt(forEach(varDecl().bind("loopVar"))))),
this);

if (MinimumExceptionNameLength > 1)
Finder->addMatcher(varDecl(hasParent(cxxCatchStmt())).bind("exceptionVar"),
this);

if (MinimumParameterNameLength > 1)
Finder->addMatcher(parmVarDecl().bind("paramVar"), this);

if (MinimumVariableNameLength > 1)
Finder->addMatcher(
varDecl(unless(anyOf(hasParent(declStmt(hasParent(forStmt()))),
hasParent(cxxCatchStmt()), parmVarDecl())))
.bind("standaloneVar"),
this);
}

void IdentifierLengthCheck::check(const MatchFinder::MatchResult &Result) {
const auto *StandaloneVar = Result.Nodes.getNodeAs<VarDecl>("standaloneVar");
if (StandaloneVar) {
if (!StandaloneVar->getIdentifier())
return;

StringRef VarName = StandaloneVar->getName();

if (VarName.size() >= MinimumVariableNameLength ||
IgnoredVariableNames.match(VarName))
return;

diag(StandaloneVar->getLocation(), ErrorMessage)
<< 0 << StandaloneVar << MinimumVariableNameLength;
}

auto *ExceptionVarName = Result.Nodes.getNodeAs<VarDecl>("exceptionVar");
if (ExceptionVarName) {
if (!ExceptionVarName->getIdentifier())
return;

StringRef VarName = ExceptionVarName->getName();
if (VarName.size() >= MinimumExceptionNameLength ||
IgnoredExceptionVariableNames.match(VarName))
return;

diag(ExceptionVarName->getLocation(), ErrorMessage)
<< 1 << ExceptionVarName << MinimumExceptionNameLength;
}

const auto *LoopVar = Result.Nodes.getNodeAs<VarDecl>("loopVar");
if (LoopVar) {
if (!LoopVar->getIdentifier())
return;

StringRef VarName = LoopVar->getName();

if (VarName.size() >= MinimumLoopCounterNameLength ||
IgnoredLoopCounterNames.match(VarName))
return;

diag(LoopVar->getLocation(), ErrorMessage)
<< 2 << LoopVar << MinimumLoopCounterNameLength;
}

const auto *ParamVar = Result.Nodes.getNodeAs<VarDecl>("paramVar");
if (ParamVar) {
if (!ParamVar->getIdentifier())
return;

StringRef VarName = ParamVar->getName();

if (VarName.size() >= MinimumParameterNameLength ||
IgnoredParameterNames.match(VarName))
return;

diag(ParamVar->getLocation(), ErrorMessage)
<< 3 << ParamVar << MinimumParameterNameLength;
}
}

} // namespace readability
} // namespace tidy
} // namespace clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//===--- IdentifierLengthCheck.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_READABILITY_IDENTIFIERLENGTHCHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_IDENTIFIERLENGTHCHECK_H

#include "../ClangTidyCheck.h"
#include "llvm/Support/Regex.h"

namespace clang {
namespace tidy {
namespace readability {

/// Warns about identifiers names whose length is too short.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/readability-identifier-length.html
class IdentifierLengthCheck : public ClangTidyCheck {
public:
IdentifierLengthCheck(StringRef Name, ClangTidyContext *Context);
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;

private:
const unsigned MinimumVariableNameLength;
const unsigned MinimumLoopCounterNameLength;
const unsigned MinimumExceptionNameLength;
const unsigned MinimumParameterNameLength;

std::string IgnoredVariableNamesInput;
llvm::Regex IgnoredVariableNames;

std::string IgnoredLoopCounterNamesInput;
llvm::Regex IgnoredLoopCounterNames;

std::string IgnoredExceptionVariableNamesInput;
llvm::Regex IgnoredExceptionVariableNames;

std::string IgnoredParameterNamesInput;
llvm::Regex IgnoredParameterNames;
};

} // namespace readability
} // namespace tidy
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_IDENTIFIERLENGTHCHECK_H
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "ElseAfterReturnCheck.h"
#include "FunctionCognitiveComplexityCheck.h"
#include "FunctionSizeCheck.h"
#include "IdentifierLengthCheck.h"
#include "IdentifierNamingCheck.h"
#include "ImplicitBoolConversionCheck.h"
#include "InconsistentDeclarationParameterNameCheck.h"
Expand Down Expand Up @@ -73,6 +74,8 @@ class ReadabilityModule : public ClangTidyModule {
"readability-function-cognitive-complexity");
CheckFactories.registerCheck<FunctionSizeCheck>(
"readability-function-size");
CheckFactories.registerCheck<IdentifierLengthCheck>(
"readability-identifier-length");
CheckFactories.registerCheck<IdentifierNamingCheck>(
"readability-identifier-naming");
CheckFactories.registerCheck<ImplicitBoolConversionCheck>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- UseAnyOfAllOfCheck.cpp - clang-tidy-------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//===--- UseAnyOfAllOfCheck.h - clang-tidy-----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// 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
//
//===----------------------------------------------------------------------===//

Expand Down
Loading