- Jul 19, 2021
-
-
Arjun P authored
-
Elton authored
This patch removes a duplicate checks in the top-level comments in `clang-tools-extra/clangd/ParsedAST.h` Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D106227
-
Jay Foad authored
-
Simon Tatham authored
This is part of a patch series working towards the ability to make SourceLocation into a 64-bit type to handle larger translation units. If clang is built for a 32-bit platform and SourceLocation is 64 bits wide, then a SourceLocation will be larger than a pointer, so it won't be possible to keep them in a SmallPtrSet any more. Switch to SmallDenseSet instead. Patch originally by Mikhail Maltsev. Differential Revision: https://reviews.llvm.org/D105493
-
Alexander Belyaev authored
This reverts commit 3b03d9b8.
-
Ian Campbell authored
If a clang-tidy child process exits with a signal then run-clang-tidy will exit with an error but there is no hint why in the output, since the clang-tidy doesn't log anything and may not even have had the opportunity to do so depending on the signal used. `subprocess.CompletedProcess.returncode` is the negative signal number in this case. I hit this in a CI system where the parallelism used exceeded the RAM assigned to the container causing the OOM killer to SIGKILL clang-tidy processes. Reviewed By: sylvestre.ledru Differential Revision: https://reviews.llvm.org/D99081
-
Alexander Belyaev authored
-
Lang Hames authored
This should eliminate warnings about ignored weak_import attributes on some of the bots, e.g. https://lab.llvm.org/buildbot/#/builders/165/builds/3770/.
-
Lang Hames authored
This should eliminate the "initialized and declared 'extern'" warnings produced on some bots, e.g. https://lab.llvm.org/buildbot/#/builders/165/builds/3770
-
Simon Pilgrim authored
As noticed on D105432 we didn't have any coverage to distinguish between fast/exact float reductions
-
Alexey Bataev authored
The incoming values for PHI nodes may come from unreachable BasicBlocks, need to handle this case. Differential Revision: https://reviews.llvm.org/D106264
-
Mindong Chen authored
This fixes the lower and upper bound calculation of a RuntimeCheckingPtrGroup when it has more than one loop invariant pointers. Resolves PR50686. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D104148
-
Mindong Chen authored
Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D105438
-
Stephan Herhut authored
The wording was wrong and suggested that operands to memref.clone may not be mutated. Differential Revision: https://reviews.llvm.org/D106258
-
Florian Hahn authored
Test case inspired by D105199.
-
Florian Mayer authored
This reverts commit 12268fe1.
-
Dmitry Vyukov authored
We obtain the current PC is all interceptors and collectively common interceptor code contributes to overall slowdown (in particular cheaper str/mem* functions). The current way to obtain the current PC involves: 4493e1: e8 3a f3 fe ff callq 438720 <_ZN11__sanitizer10StackTrace12GetCurrentPcEv> 4493e9: 48 89 c6 mov %rax,%rsi and the called function is: uptr StackTrace::GetCurrentPc() { 438720: 48 8b 04 24 mov (%rsp),%rax 438724: c3 retq The new way uses address of a local label and involves just: 44a888: 48 8d 35 fa ff ff ff lea -0x6(%rip),%rsi I am not switching all uses of StackTrace::GetCurrentPc to GET_CURRENT_PC because it may lead some differences in produced reports and break tests. The difference comes from the fact that currently we have PC pointing to the CALL instruction, but the new way does not yield any code on its own so the PC points to a random instruction in the function and symbolizing that instruction can produce additional inlined frames (if the random instruction happen to relate to some inlined function). Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106046 -
Lang Hames authored
This member is now only used when storage is heap-allocated so it does not need to be const. Dropping 'const' eliminates cast warnings on many builders.
-
Lang Hames authored
This should fix the 'could-not-covert' error at wrapper_function_utils.h:128 in https://lab.llvm.org/buildbot/#/builders/112/builds/7748.
-
Kazushi (Jam) Marukawa authored
The implementation of subword atomics does not actually guarantee the result is zero-extended, which now caused failures after https://reviews.llvm.org/D101342 was landed. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D106225
-
Florian Mayer authored
This avoids unnecessary instrumentation. Reviewed By: eugenis, vitalybuka Differential Revision: https://reviews.llvm.org/D105703
-
Simon Pilgrim authored
-
Lang Hames authored
This aims to fix build failures like https://lab.llvm.org/buildbot#builders/165/builds/3761.
-
David Spickett authored
These have been failing on our bots for a while due to incomplete backtraces. (you don't get the names of the functions that did the access, just the reporter frames) See: https://lab.llvm.org/buildbot/#/builders/170/builds/180
-
Riccardo Mori authored
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface. Note that not all the usages of `isl::set::dim` were replaced
-
Lang Hames authored
This should fix the build failure at https://lab.llvm.org/buildbot/#/builders/58/builds/11428.
-
Kazushi (Jam) Marukawa authored
VE's linker, /opt/nec/ve/bin/nld, doesn't implement relative lookup table. The relative lookup table is introduced by https://reviews.llvm.org/D94355, but we need to disable it at the moment. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D106224
-
Lang Hames authored
For compilers that do not support __has_builtin just return '0'. This should fix the bot failure at https://lab.llvm.org/buildbot/#/builders/165/builds/3761.
-
Riccardo Mori authored
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface. Changes made: - Use `isl::union_map::unite()` instead of `isl::union_map::add_map()` - `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/3f43ae29fa2a22936a583b85b2fe8d439f805d8d Depends on D106059 Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D106061
-
Florian Mayer authored
Reviewed By: eugenis, vitalybuka Differential Revision: https://reviews.llvm.org/D106135
-
Lang Hames authored
Adds support for MachO static initializers/deinitializers and eh-frame registration via the ORC runtime. This commit introduces cooperative support code into the ORC runtime and ORC LLVM libraries (especially the MachOPlatform class) to support macho runtime features for JIT'd code. This commit introduces support for static initializers, static destructors (via cxa_atexit interposition), and eh-frame registration. Near-future commits will add support for MachO native thread-local variables, and language runtime registration (e.g. for Objective-C and Swift). The llvm-jitlink tool is updated to use the ORC runtime where available, and regression tests for the new MachOPlatform support are added to compiler-rt. Notable changes on the ORC runtime side: 1. The new macho_platform.h / macho_platform.cpp files contain the bulk of the runtime-side support. This includes eh-frame registration; jit versions of dlopen, dlsym, and dlclose; a cxa_atexit inte...
-
Lang Hames authored
-
Simon Pilgrim authored
Based off the codegen reports on PR51075 - hopefully we can handle some of this in SLP or VectorCombine, but we usually have to leave load combining until the backend so at least some of these patterns will still appear even then.
-
Riccardo Mori authored
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface. Changes made: - Stop generating `isl::union_set` and isl::union_map` from `isl::space` and instead generate them from `isl::ctx` - Disable clang-format on `isl-noexceptions.h` - Removed `isl::union_{set,map}` generator from `isl::space` from `isl-noexceptions.h` - `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/87c3413b6f1d62ca3dddf716352f90a0b8533353 Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D106059 -
Tobias Gysi authored
Insert ops replacing pad_tensor in front of the associated tansfer_write / insert_slice op. Otherwise we may end up with invalid ir if one of the remaining tansfer_write / insert_slice operands is defined after the pad_tensor op. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D106162
-
Whisperity authored
Finds function calls where the call arguments might be provided in an incorrect order, based on the comparison (via string metrics) of the parameter names and the argument names against each other. A diagnostic is emitted if an argument name is similar to a *different* parameter than the one currently passed to, and it is sufficiently dissimilar to the one it **is** passed to currently. False-positive warnings from this check are useful to indicate bad naming convention issues, even if a swap isn't necessary. This check does not generate FixIts. Originally implemented by @varjujan as his Master's Thesis work. The check was subsequently taken over by @barancsuk who added type conformity checks to silence false positive matches. The work by @whisperity involved driving the check's review and fixing some more bugs in the process. Reviewed By: aaron.ballman, alexfh Differential Revision: http://reviews.llvm.org/D20689 Co-authored-by:
János Varjú <varjujanos2@gmail.com> Co-authored-by:
Lilla Barancsuk <barancsuklilla@gmail.com>
-
Rosie Sumpter authored
Replace code which identifies induction phi with helper function getInductionVariable to improve robustness. Differential Revision: https://reviews.llvm.org/D106045
-
Cullen Rhodes authored
This patch adds support for the following instructions: SCLAMP, UCLAMP, REV, DUP (predicate) The reference can be found here: https://developer.arm.com/documentation/ddi0602/2021-06 Reviewed By: kmclaughlin Differential Revision: https://reviews.llvm.org/D105577 -
David Green authored
This relaxes the VMLAV and VADDV reduction recognition code to handle smaller than legal types, extending them as needed. That was already handled for some reductions, this extends it to more types in a more generic way. If a smaller than legal value is found it is extended to the legal type as needed. Differential Revision: https://reviews.llvm.org/D106051
-