- Oct 27, 2020
-
-
Nico Weber authored
This reverts commit e5766f25. Makes clang assert when building Chromium, see https://crbug.com/1142813 for a repro.
-
Simon Pilgrim authored
We've already dereferenced the pointer and no other getClassInterface() calls appear to bother with such a check. Reported as "Snippet 6" in https://www.viva64.com/en/b/0771/
-
Simon Pilgrim authored
This appears to have been in the original patch in D14170. Reported as "Snippet 11" in https://www.viva64.com/en/b/0771/
-
Simon Pilgrim authored
Merge prefixes where possible, use 'X86' instead of 'X32' (which we try to only use for gnux32 triple tests).
-
Simon Pilgrim authored
This should allow us to remove the rather limited matchOrConcat fold and just use recognizeBSwapOrBitReverseIdiom.
-
Zahira Ammarguellat authored
diagnostic for a re-declaration of a friend method.d https://reviews.llvm.org/D88112
-
Djordje Todorovic authored
As reading the source code, I've found some minor nits: -Use using instead of typedef -Fix a comment -Refactor Differential Revision: https://reviews.llvm.org/D90155
-
Sven van Haastregt authored
For i1 types, boolean false is represented identically regardless of the boolean content, so we can allow optimizations that otherwise would not be correct for booleans with false represented as a negative one. Patch by Erik Hogeman. Differential Revision: https://reviews.llvm.org/D90145
-
LLVM GN Syncbot authored
-
Alex Richardson authored
The sanitizer-coverage.cpp test case was always failing for me. It turns out the reason for this is that I was building with -DLLVM_INSTALL_BINUTILS_SYMLINKS=ON and sancov.py's grep regex does not handle llvm-objdump's disassembly format (hex immediates have a leading "0x"). While touching those lines also change them to use raw string literals since invalid escape sequnces will become an error in future python versions. Also simplify the code by using subprocess.check_output() instead of Popen(). This also works with python2. Fixes https://bugs.llvm.org/show_bug.cgi?id=44504 Reviewed By: #sanitizers, vitalybuka Differential Revision: https://reviews.llvm.org/D89648
-
Alex Richardson authored
After D86959 the code `#define lambda [](const decltype(x) &ptr) {}` was formatted as `#define lambda [](const decltype(x) & ptr) {}` due to now parsing the '&' token as a BinaryOperator. The problem was caused by the condition `Line.InPPDirective && (!Left->Previous || !Left->Previous->is(tok::identifier))) {` being matched and therefore not performing the checks for "previous token is one of decltype/_Atomic/etc.". This patch moves those checks after the existing if/else chain to ensure the left-parent token classification is always run after checking whether the contents of the parens is an expression or not. This change also introduces a new TokenAnnotatorTest that checks the token kind and Role of Tokens after analyzing them. This is used to check for TT_PointerOrReference, in addition to indirectly testing this based on the resulting formatting. Reviewed By: MyDeveloperDay Differential Revision: https://reviews.llvm.org/D88956 -
Alex Richardson authored
The latter can probably be optimized to the same final code, but this might help -O0 builds.
-
Alex Richardson authored
I noticed that alignment was no longer inferred as well after I last merged our CHERI fork from upstream. I opened this review before seeing that D88669 already fixes the same problem, so this commit simply adds the new test that I added as part of this change. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D89830
-
Shimin Cui authored
This patch is to add the support of the value tracking of the alignment assume bundle. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D88669
-
Sebastian Neubauer authored
-
David Spickett authored
The statement that lldb-server can handle decimal and hex numbers is misleading. (it can only handle hex with 0x prefix) Mentioning non decimal numbers at all is just creating more confusion for anyone who tries to use them with lldb-server. Differential Revision: https://reviews.llvm.org/D89383
-
Roman Lebedev authored
This is essentially finalizes a revert of rL155136, because nowadays the situation has improved, SCEV can model all these patterns well, and we canonicalize rotate-like patterns into a funnel shift intrinsics in InstCombine. So this should not cause any pessimization. I've verified the canonicalize-{a,l}shr-shl-to-masking.ll transforms with alive, which confirms that we can freely preserve exact-ness, and no-wrap flags. Profs: * base: https://rise4fun.com/Alive/gPQ * exact-ness preservation: https://rise4fun.com/Alive/izi * nuw preservation: https://rise4fun.com/Alive/DmD * nsw preservation: https://rise4fun.com/Alive/SLN6N * nuw nsw preservation: https://rise4fun.com/Alive/Qp7 Refs. https://reviews.llvm.org/D46760 -
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Kazushi (Jam) Marukawa authored
Add VFAD/VFSB/VFMP/VFDV/VFSQRT/VFCP/VFCM/VFMAD/VFMSB/VFNMAD/VFNMSB/ VRCP/VRSQRT/VRSQRTNEX/VFIX/VFIXX/VFLT/VFLTX/VCVS/VCVD instructions. Add regression tests too. Also add additional AsmParser for VFIX and VFIXX instructions to parse their mnemonic. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D90166
-
Kazushi (Jam) Marukawa authored
In the previous "Add vector shift instructions", I forgot to add regression tests for VSRL and VSRD instructions. This patch is adding them. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D90167
-
Kirill Bobyrev authored
This is a breaking change in remote index protocol. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D89851
-
Mikhail Maltsev authored
This patch removes the necessity to access the SourceLocation internal representation in several places that use FoldingSet objects. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D69844
-
Georgii Rymar authored
--section-details/-t is a GNU readelf option that produce an output that is an alternative to --sections. Differential revision: https://reviews.llvm.org/D89304
-
Med Ismail Bennani authored
Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-
Jay Foad authored
-
Raphael Isemann authored
TestQuoting's different test methods all build their own test binaries but we can just reuse the same test binary by merging all asserts into one method. This reduces the test runtime from 8 seconds to 4 seconds on my machine. This also removes the ability to have partial failures in this test, but given how rarely this code is touched this seems like a fair tradeoff (and we will be able to re-add this feature once we updated our test framework). Some other small changes: * Fixed that we cleanup "stdout.txt" instead of "output.txt" in the cleanup. * Fixed some formatting issues. * Call `build` instead of directly calling `buildDefault`.
-
Georgii Rymar authored
Imagine the following declaration of a section: ``` Sections: - Name: .dynsym Type: SHT_DYNSYM AddressAlign: 0x1111111111111111 ``` The aligment is large and yaml2obj reports an error currently: "the desired output size is greater than permitted. Use the --max-size option to change the limit" This patch implements the "ShAddrAlign" key, which is similar to other "Sh*" keys we have. With it it is possible to override the `sh_addralign` field, ignoring the writing of alignment bytes. Differential revision: https://reviews.llvm.org/D90019 -
Florian Hahn authored
-Oz normally does not allow loop header duplication so this loop wouldn't be vectorized. However the vectorization pragma should override this and allow for loop rotation. rdar://problem/49281061 Original patch by Adam Nemet. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D59832
-
David Green authored
-
Alex Zinenko authored
A recent commit introduced a new syntax for specifying builder arguments in ODS, which is better amenable to automated processing, and deprecated the old form. Transition all dialects as well as Linalg ODS generator to use the new syntax. Add a deprecation notice to ODS generator. Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D90038
-
Tyker authored
-
Haojian Wu authored
to demonstrate it works for some cases. Differential Revision: https://reviews.llvm.org/D90140
-
Kiran Chandramohan authored
Recent change updated branch weights to use i64 instead of i32. Updating llvm.mlir test to match this change. https://reviews.llvm.org/D88609
-
Sam McCall authored
This is ugly (layering violation) but we can clean it up once we know it works in CI.
-
Max Kazantsev authored
-
Sam McCall authored
Copy/move break invariants (move could be fixed). Node/Tree should have no public constructors, they're abstract. Destructor is private to enforce arena allocation. (Making the constructor of all subclasses private doesn't seem worthwhile) Differential Revision: https://reviews.llvm.org/D90163
-
Craig Topper authored
This uses PreprocessISelDAG to replace the constant before instruction selection instead of matching opcodes after. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D89178
-
Wei Wang authored
In small code model, program and its symbols are linked in the lower 2 GB of the address space. Try encoding global address even when the range is unknown in such case. Differential Revision: https://reviews.llvm.org/D89341
-