- Oct 21, 2021
-
-
Jaroslav Sevcik authored
This patch fixes a problem introduced by clang change https://reviews.llvm.org/D95617 and described by https://bugs.llvm.org/show_bug.cgi?id=50076#c6, where inlined functions omit unused parameters both in the stack trace and in `frame var` command. With this patch, the parameters are listed correctly in the stack trace and in `frame var` command. Specifically, we parse formal parameters from the abstract version of inlined functions and use those formal parameters if they are missing from the concrete version. Differential Revision: https://reviews.llvm.org/D110571
-
Dawid Jurczak authored
Patch simplifies for loops in LIR following LLVM guidelines: https://llvm.org/docs/CodingStandards.html#use-range-based-for-loops-wherever-possible. Differential Revision: https://reviews.llvm.org/D112077
-
Mikhail Maltsev authored
According to the standard [vector.capacity]/5, std::vector<T>::reserve shall throw an exception of type std::length_error when the requested capacity exceeds max_size(). This behavior is not implemented correctly: the function 'reserve' simply propagates the exception from allocator<T>::allocate. Before D110846 that exception used to be of type std::length_error (which is correct for vector<T>::reserve, but incorrect for allocator<T>::allocate). This patch fixes the issue and adds regression tests. Reviewed By: Quuxplusone, ldionne, #libc Differential Revision: https://reviews.llvm.org/D112068
-
Mikhail Maltsev authored
std::vector<bool> rebinds the supplied allocator to construct objects of type '__storage_type' rather than 'bool'. Allocators are allowed to use explicit conversion constructors, so care must be taken when performing conversions. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D112150
-
Valentin Clement authored
This reverts commit e4ce9224. Buildbots not happy with the tests.
-
Frederic Cambus authored
Differential Revision: https://reviews.llvm.org/D111760
-
Frederic Cambus authored
-
Michał Górny authored
-
Michał Górny authored
-
Michał Górny authored
Attempting to enable PARENB causes tcsetattr() to fail on the Debian and Ubuntu buildbots, so let's skip these tests on Linux entirely.
-
Michał Górny authored
Add a new serial:// protocol along with SerialPort that provides a new API to open serial ports. The URL consists of serial device path followed by URL-style options, e.g.: serial:///dev/ttyS0?baud=115200&parity=even If no options are provided, the serial port is only set to raw mode and the other attributes remain unchanged. Attributes provided via options are modified to the specified values. Upon closing the serial port, its original attributes are restored. Differential Revision: https://reviews.llvm.org/D111355 -
Evgeniy Brevnov authored
In order to explore different variants of reassociation current implementation uses "swap in a loop" approach. Unfortunately, the implementation is more complicated than it could be. This is an attempt to streamline the code. New approach is to extract core functionality into a helper function and call it explicitly as many times as required. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D112128
-
Matthias Springer authored
This commit is in preparation for scf.if support. * `condition` in findValueInReverseUseDefChain takes a Value instead of OpOperand*. * Return a SetVector<Value> instead of a single Value. This SetVector always contains exactly one Value at the moment. Differential Revision: https://reviews.llvm.org/D111928
-
David Sherwood authored
This patch introduces a new function: AArch64Subtarget::getVScaleForTuning that returns a value for vscale that can be used for tuning the cost model when using scalable vectors. The VScaleForTuning option in AArch64Subtarget is initialised according to the following rules: 1. If the user has specified the CPU to tune for we use that, else 2. If the target CPU was specified we use that, else 3. The tuning is set to "generic". For CPUs of type "generic" I have assumed that vscale=2. New tests added here: Analysis/CostModel/AArch64/sve-gather.ll Analysis/CostModel/AArch64/sve-scatter.ll Transforms/LoopVectorize/AArch64/sve-strict-fadd-cost.ll Differential Revision: https://reviews.llvm.org/D110259
-
Michał Górny authored
Add setters for common teletype properties to the Terminal class: - SetRaw() to enable common raw mode options - SetBaudRate() to set the baud rate - SetStopBits() to select the number of stop bits - SetParity() to control parity bit in the output - SetHardwareControlFlow() to enable or disable hardware control flow (if supported) Differential Revision: https://reviews.llvm.org/D111030
-
Peixin-Qiao authored
This patch supports the ordered construct in OpenMP dialect following Section 2.19.9 of the OpenMP 5.1 standard. Also lowering to LLVM IR using OpenMP IRBduiler. Lowering to LLVM IR for ordered simd directive is not supported yet since LLVM optimization passes do not support it for now. Reviewed By: kiranchandramohan, clementval, ftynse, shraiysh Differential Revision: https://reviews.llvm.org/D110015
-
Matthias Springer authored
In a subsequent commit, getResultBuffer can return a "null" Value. This is the case when the returned buffer from an scf.if is not unique. This commit is in preparation for scf.if support to keep the next commit smaller. Differential Revision: https://reviews.llvm.org/D111927
-
Matthias Springer authored
This is required for bufferization of scf::IfOp, which is added in a subsequent commit. Some ops (scf::ForOp, TiledLoopOp) require PreOrder traversal to make sure that bbArgs are mapped before bufferizing the loop body. Differential Revision: https://reviews.llvm.org/D111924
-
Raphael Isemann authored
-
Valentin Clement authored
This patch is extracted from D111337. It introduce the CharacterExprHelper that helps dealing with character in FIR. Reviewed By: schweitz, awarzynski Differential Revision: https://reviews.llvm.org/D112140 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
V Donaldson <vdonaldson@nvidia.com>
-
eopXD authored
This patch supplements missing test case for D107353. - Fix wrong descriptions in 64-bit mode test case - Added testcase under 32-bit mode Reviewed By: bmahjour Differential Revision: https://reviews.llvm.org/D108507
-
Daniel Jalkut authored
When you invoke "help type filter" the resulting help shows: Syntax: type synthetic [<sub-command-options>] This patch fixes the help so it says "type filter" instead of "type synthetic". patch by: "Daniel Jalkut <jalkut@red-sweater.com>" Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D112199
-
Yi Kong authored
Differential Revision: https://reviews.llvm.org/D112075
-
Mehdi Amini authored
This reverts commit dc2be87e. Seems like this broke all the CI bots.
-
Igor Kudrin authored
If segments are defined in a linker script, placing an orphan section before the found closest-rank section can result in adding it in a previous segment and changing flags of that segment. This happens if the orphan section has a lower sort rank than the found section. To avoid that, the patch forces orphan sections to be moved after the found section if segments are explicitly defined. Differential Revision: https://reviews.llvm.org/D111717
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Vitaly Buka authored
We have nothing to do after the Argument is found.
-
Vy Nguyen authored
For future references and to help with debugging crashes, this could be useful. Differential Revision: https://reviews.llvm.org/D110464
-
Shengchen Kan authored
ARITH_FENCE, which was added by https://reviews.llvm.org/D99675, should be a meta-instruction b/c it only emits comments "ARITH_FENCE". Reviewed By: pengfei, LuoYuanke Differential Revision: https://reviews.llvm.org/D112127
-
Volodymyr Sapsai authored
While working on https://reviews.llvm.org/D110280 I've tried to merge decl contexts as it seems to be correct and matching our handling of decl contexts from different modules. It's not required for the fix in https://reviews.llvm.org/D110280 but it revealed a missing diagnostic, so separating this change into a separate commit. Renamed some variables to distinguish diagnostic like "declaration of 'x' does not match" for different cases. Differential Revision: https://reviews.llvm.org/D110287
-
Peixin-Qiao authored
This patch supports the ordered construct in OpenMP dialect following Section 2.19.9 of the OpenMP 5.1 standard. Also lowering to LLVM IR using OpenMP IRBduiler. Lowering to LLVM IR for ordered simd directive is not supported yet since LLVM optimization passes do not support it for now. Reviewed By: kiranchandramohan, clementval, ftynse, shraiysh Differential Revision: https://reviews.llvm.org/D110015
-
Brad Smith authored
- Pass CPU variant for ARM - Pass MIPS CPU in addition to the ABI
-
Craig Topper authored
The intrinsic is called llvm.ceil not llvm.fceil. The checks weren't strong enough to notice that a call to llvm.fceil was emitted in the final assembly.
-
Nikita Malyavin authored
Add following interceptors on Linux: stat, lstat, fstat, fstatat. This fixes use-of-uninitialized value on platforms with GLIBC 2.33+. In particular: Arch Linux, Ubuntu hirsute/impish. The tests should have also been failing during the release on the mentioned platforms, but I cannot find any related discussion. Most likely, the regression was introduced by glibc commit [[ https://github.com/bminor/glibc/commit/8ed005daf0ab03e142500324a34087ce179ae78e | 8ed005daf0ab03e14250032 ]]: all stat-family functions are now exported as shared functions. Before, some of them (namely stat, lstat, fstat, fstatat) were provided as a part of libc_noshared.a and called their __xstat dopplegangers. This is still true for Debian Sid and earlier Ubuntu's. stat interceptors may be safely provided for them, no problem with that. Closes https://github.com/google/sanitizers/issues/1452. See also https://jira.mariadb.org/browse/MDEV-24841 Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D111984
-
Jez Ng authored
It's currently using a symlink, which is not supported on Windows.
-
Arthur Eubanks authored
With unoptimized code, we may see lots of stores and spend too much time in mergeTruncStores. Fixes PR51827. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D111596
-
Pavel Kosov authored
Fixes PR: https://bugs.llvm.org/show_bug.cgi?id=52230 Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D112135 OS Laboratory, Huawei Russian Research Institute, Saint-Petersburg
-
Ben Langmuir authored
Broke on aarch64-linux. Reverting while I investigate. This reverts commit 5692ed0c.
-
Louis Dionne authored
-