- Feb 09, 2022
-
-
Tim Northover authored
If the result of a cmpxchg is unused, regalloc chooses `xzr` for the defs of CMP_SWAP_128*. However, on the failure path this gets expanded to a LDXP -> STXP to store the original value (to ensure no tearing occurred). This unintentionally nulls out half of the value. So instead use GPR64common for these defs, so regalloc has to choose a real one.
-
Tim Northover authored
Previously the `let Predicates = ...` line only applied to the rr version, and so VMOVSH was being emitted whenever HasAVX512 (the default) applied. This is not right.
-
Jay Foad authored
These comments explain the encoding of the immediate operand of S_BFE_* which is not relevant for V_BFE_I32.
-
Matthias Springer authored
This makes getAliasingOpResult symmetric to getAliasingOpOperand. The previous implementation was confusing for users and implemented in such a way only because there are currently no bufferizable ops that have multiple aliasing OpResults. Differential Revision: https://reviews.llvm.org/D119259
-
Matthias Springer authored
Print more information with test-analysis-only. Differential Revision: https://reviews.llvm.org/D119118
-
OCHyams authored
Follow up to D118468 (5257efdc). When built from source, gdb's version string looks like this: GNU gdb (GDB) 9.2 ... But for installed versions it looks different. E.g. GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2 ... Use a regex rather than str.parition in the version string parsing in order to handle this case too.
-
Pavel Labath authored
[lldb] Restore original meaning to test_qThreadStopInfo_only_reports_one_thread_stop_reason_during_interrupt D119167 changed the meaning of that test by removing the use of the interrupt packet. I did not notice this because the interrupting happened in a shared utility function. This patch restores the original meaning of the test, but (almost) avoids sleeps by using process stdout to synchronize. Sadly, this means the test stays disabled on windows, as it does not implement output forwarding.
-
Simon Pilgrim authored
This looks to introduced in D110869
-
Simon Pilgrim authored
This looks to be a merge error from D118815
-
Lian Wang authored
Reviewed By: craig.topper, asb Differential Revision: https://reviews.llvm.org/D119317
-
Florian Hahn authored
Move out the induction step creation from emitTransformedIndex to the callers. In some places (e.g. widenIntOrFpInduction) the step is already created. Passing the step in ensures the steps are kept in sync.
-
Pavel Labath authored
A couple of additional tests pass with that patch. One new test fails (because it's not testing a slightly different thing). I'll update it later to restore the original meaning (I don't want to revert as the net effect is still very positive), but for now this gets the bot green.
-
OCHyams authored
Tests in the `cross-project-tests/debuginfo-tests/llgdb-tests` directory run gdb on non-darwin platforms. gdb versions less than 10.1 cannot parse the DWARF v5 emitted by clang, and DWARF v5 is now the default, so these tests fail on Linux with gdb versions less than 10.1. This patch lets us XFAIL the tests under these conditions. Add `gdb-clang-incompatibility` to the `available_features` in `cross-project-tests/lit.cfg.py` when clang's default DWARF version is 5 or greater and the gdb (if found) version is less than 10.1. Discourse discussion: https://llvm.discourse.group/t/gdb-10-1-cant-read-clangs-dwarf-v5/6035 Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D118468
-
Kirill Bobyrev authored
New StandardLibrary.cpp depends on Clang AST, add the dependency to CMakeLists.txt Broken builbot: https://lab.llvm.org/buildbot/#/builders/57/builds/14892
-
Sven van Haastregt authored
An error in the tablegen description affects the declarations provided by `-fdeclare-opencl-builtins` for `atomic_fetch_add` and `atomic_fetch_sub`. The atomic argument should be an atomic_half, not an atomic_float.
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Valentin Clement authored
During upstreaming the alphabetical order was not respected.
-
Sheng authored
Empty test commit, check commit access
-
Haojian Wu authored
LRGraph is the key component of the clang pseudo parser, it is a deterministic handle-finding finite-state machine, which is used to generated the LR parsing table. Separate from https://reviews.llvm.org/D118196. Differential Revision: https://reviews.llvm.org/D119172
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D118891
-
serge-sans-paille authored
There's a few relevant forward declarations in there that may require downstream adding explicit includes: llvm/MC/MCContext.h no longer includes llvm/BinaryFormat/ELF.h, llvm/MC/MCSubtargetInfo.h, llvm/MC/MCTargetOptions.h llvm/MC/MCObjectStreamer.h no longer include llvm/MC/MCAssembler.h llvm/MC/MCAssembler.h no longer includes llvm/MC/MCFixup.h, llvm/MC/MCFragment.h Counting preprocessed lines required to rebuild llvm-project on my setup: before: 1052436830 after: 1049293745 Which is significant and backs up the change in addition to the usual benefits of decreasing coupling between headers and compilation units. Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D119244
-
serge-sans-paille authored
Be more explicit about which headers should be included in MC files generated by tblgen. See also: https://reviews.llvm.org/D119244
-
Bill Wendling authored
Fixes expensive check failures from D110869.
-
Kirill Bobyrev authored
This will allow using tools like Include-What-You-Use and clangd IncludeCleaner. The tools will correctly identify the public headers responsible for importing symbols in the testing code. This is a backport of https://github.com/google/googletest/commit/100f6fbf5f81a82d163c1e29735e8a2936eacd4f The only untouched file from that patch is googletest/include/gtest/gtest_prod.h because the change is unrelated. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D119320
-
Kirill Bobyrev authored
This will allow moving the IncludeCleaner library essentials to Clang and decoupling them from the majority of clangd. The patch itself just moves the code, it doesn't change existing functionality. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D119130
-
Pavel Labath authored
Instead of using sleeps, have the inferior notify us (via a trap opcode) that the requested number of threads have been created. This allows us to get rid of some fairly dodgy test utility code -- wait_for_thread_count seemed like it was waiting for the threads to appear, but it never actually let the inferior run, so it only succeeded if the threads were already started when the function was called. Since the function was called after a fairly small delay (1s, usually), this is probably the reason why the tests were failing on some bots. Differential Revision: https://reviews.llvm.org/D119167
-
Matthias Springer authored
They used to be classes with a virtual `run` function. This was inconvenient because post analysis steps are stored in BufferizationOptions. Because of this design choice, BufferizationOptions were not copyable. Differential Revision: https://reviews.llvm.org/D119258
-
Diana Picus authored
Use a single entry point with several optional parameters. Differential Revision: https://reviews.llvm.org/D118776
-
Kiran Chandramohan authored
This patch adds support for lowering the Fortran goto statement from parse-tree to MLIR. The goto statement in Fortran is a form of unstructured control flow. The statement transfers control to the code starting at the label specified in the statement. This can be faithfully represented in MLIR by a branch instruction. To assist the lowering of code with unstructured control flow, blocks are created in advance and associated with the relevant pre-fir tree evaluations. This is part of the upstreaming effort from the fir-dev branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Reviewed By: clementval, vdonaldson, schweitz, awarzynski Differential Revision: https://reviews.llvm.org/D118983 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Muhammad Omair Javaid authored
VS2019 version 1920 in now the default and get tested in llvm/include/llvm/Support/Compiler.h. This patch propagates LLVM_FORCE_USE_OLD_TOOLCHAIN macro to disable testing for VS2019. Differential Revision: https://reviews.llvm.org/D114639
-
Roman Lebedev authored
-
Balazs Benics authored
- We should report bugs to the GitHub Issues - We should advocate using Discourse instead of the superseded cfe-dev mailing list. There are a couple of other cosmetic changes such as preferring `using` instead of `typedef` and quoting the `-analyze-function` parameter's payload for escaping the braces. Thanks @loic-joly-sonarsource for reporting this on Discord! Reviewed By: NoQ, Szelethus Differential Revision: https://reviews.llvm.org/D119245
-
Nikita Popov authored
D116208 may cause a macro clash on older versions of linux, where fs.h defines a READ macro. This is resolved by switching to a more typical casing style for non-macro symbols. Reapplying with changes to the symbol names in various platform specific code, which I missed previously. Differential Revision: https://reviews.llvm.org/D118783
-
Nikolas Klauser authored
Reviewed By: ldionne, Quuxplusone, #libc Spies: arichardson, libcxx-commits Differential Revision: https://reviews.llvm.org/D119189
-
Valentin Clement authored
ISO_Fortran_binding.h was updated with missing entries for CFI types for REAL and COMPLEX kinds 2,3,10,16. This patch updates TypeCode.h to use these new types. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D119283
-
Nikita Popov authored
This reverts commit fda29264. This breaks the sanitizer build on windows, will reapply with additional changes.
-
Qiu Chaofan authored
Previous test in ppc-pmmintrin.c did not check IR of intrinsic function definition. Add them and simplify. These tests shouldn't be auto-generated, because we don't want to check wrapper functions.
-
Muhammad Omair Javaid authored
clang-cl MSVC required version is 19.20 now. Update the default -fms-compatibility-version to 19.14. Differential Revision: https://reviews.llvm.org/D114639
-
RVP authored
This patch fixes two issues with clearing of the internal storage for cl::bits 1. The internal bits storage for cl::bits is uninitialized. This is a problem if a cl::bits option is not defined with static lifetime. 2. ResetAllOptionOccurrences does not reset cl::bits options. The latter is also discussed in: https://lists.llvm.org/pipermail/llvm-dev/2021-February/148299.html Differential Revision: https://reviews.llvm.org/D119066
-