- Aug 19, 2022
-
-
Guillaume Chatelet authored
This reverts commit 4d931b6e.
-
Wei Yi Tee authored
Differential Revision: https://reviews.llvm.org/D131891
-
Sam McCall authored
Previously we were calling glrRecover() ad-hoc at the end of input. Two main problems with this: - glrRecover() on two separate code paths is inelegant - We may have to recover several times in succession (e.g. to exit from nested scopes), so we need a loop at end-of-file Having an actual shift action for an EOF terminal allows us to handle both concerns in the main shift/recover/reduce loop. This revealed a recovery design bug where recovery could enter a loop by repeatedly choosing the same parent to identically recover from. Addressed this by allowing each node to be used as a recovery base once. Differential Revision: https://reviews.llvm.org/D130550
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D132121
-
Muhammad Usman Shahid authored
The patch mainly focuses on the no warnings for -Wtautological-compare. It work fine for the positive numbers but doesn't for the negative numbers. This is because the warning explicitly checks for an IntegerLiteral AST node, but -1 is represented by a UnaryOperator with an IntegerLiteral sub-Expr. Fixes #42918 Differential Revision: https://reviews.llvm.org/D130510
-
Alexey Bataev authored
Added OperandValueKind OpdInfo parameter to getMemoryOpCost functions to better estimate cost with immediate values. Part of D126885.
-
Michał Górny authored
Sponsored by: The FreeBSD Foundation
-
Timm Bäder authored
Just 'T' is a bit generic and causes confusion.
-
David Sherwood authored
Whilst writing a patch to add extra tail-folding RUN lines to existing tests I noticed a few areas where they can be cleaned up a little: 1. scalable-reductions.ll: fmin_fast does not mark fcmp as fast. 2. sve-inductions-unusual-types.ll: remove direct references to SSA variable names. 3. sve-strict-fadd-cost.ll: don't force vector width so we see costs for different VFs in one go. This will be important for the follow-on patch. 4. sve-vector-reverse.ll,vector-reverse-mask4.ll: add noalias keyword to simplify IR. 4. sve-widen-gep.ll,sve-widen-phi.ll: regenerate using script. These changes will make the subsequent patch adding RUN lines much easier to review! Differential Revision: https://reviews.llvm.org/D132219
-
Simon Tatham authored
This aligns the ``heap[]`` array in ``fallback_malloc.cpp`` to ensure that it can be safely cast to ``heap_node*``, and also adjusts the allocation algorithm to ensure that every allocated block has the alignment requested by ``__attribute__((aligned))``, by putting the block's ``heap_node`` header 4 bytes before an aligned address. Patch originally by Eric Fiselier: this is an updated version of D12669, which was never landed. Reviewed By: ldionne, #libc_abi Differential Revision: https://reviews.llvm.org/D129842
-
Timm Bäder authored
Implement negating and inverting values. Also implement IntegralToBoolean casts so the operations are easier to test. Differential Revision: https://reviews.llvm.org/D132098
-
Max Kazantsev authored
-
Max Kazantsev authored
This reverts commit a3d1fb3b. Reverting until investigation of https://github.com/llvm/llvm-project/issues/57247 has concluded.
-
Ellis Hoag authored
This reverts commit 18f6b05e. This is a reland of https://reviews.llvm.org/D132130 which I incorrectly thought had broken the builds. Differential Revision: https://reviews.llvm.org/D132230
-
Haojian Wu authored
-
Michał Górny authored
Sponsored by: The FreeBSD Foundation
-
Michał Górny authored
Harmonize the status and error values of Communication::Read() when running with and without read thread. Prior to this change, Read() would return eConnectionStatusSuccess if read thread was enabled and the read timed out or reached end-of-file, rather than the respective states that are returned if read thread was disabled. Now, it correctly returns eConnectionStatusTimedOut and eConnectionStatusEndOfFile, and sets the error respectively. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D132217
-
Nikolas Klauser authored
This was discussed on Discord with the consensus that we should rename the macros. Reviewed By: ldionne, Mordante, var-const, avogelsgesang, jloser, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D131498
-
Sam McCall authored
Certain idioms are ignored by -Wunused in header files only. The current "is a header" check assumes that if headers are the main file, we're building a PCH or a module or something. However in tools we may be parsing the header in its own right, but still want to treat it as a header. Fixes https://github.com/clangd/vscode-clangd/issues/360 Differential Revision: https://reviews.llvm.org/D129642
-
Sam McCall authored
-
Sam McCall authored
Our GLR uses lookahead: only perform reductions that might be consumed by the shift immediately following. However when shift fails and so reduce is followed by recovery instead, this restriction is incorrect and leads to missing heads. In turn this means certain recovery strategies can't be made to work. e.g. ``` ns := NAMESPACE { namespace-body } [recover=Skip] ns-body := namespace_opt ``` When `namespace { namespace {` is parsed, we can recover the inner `ns` (using the `Skip` strategy to ignore the missing `}`). However this `namespace` will not be reduced to a `namespace-body` as EOF is not in the follow-set, and so we are unable to recover the outer `ns`. This patch fixes this by tracking which heads were produced by constrained reduce, and discarding and rebuilding them before performing recovery. This is a prerequisite for the `Skip` strategy mentioned above, though there are some other limitations we need to address too. Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D130523 -
Sam McCall authored
Expose these as variables as that's what the standard calls them (and D131175). To make this work, we also fix a bug in SelectionTree: PredefinedExpr has an implicit/invisible StringLiteral, and SelectionTree should not traverse implicit things. Reviewed By: ckandeler Differential Revision: https://reviews.llvm.org/D132135
-
Kristof Beyls authored
Differential Revision: https://reviews.llvm.org/D132134
-
Stefan Pintilie authored
This patch fixes the following two bugs in `PPCInstrInfo::isSignOrZeroExtended` helper, which is used from sign-/zero-extension elimination in PPCMIPeephole pass. - Registers defined by load with update (e.g. LBZU) were identified as already sign or zero-extended. But it is true only for the first def (loaded value) and not for the second def (i.e. updated pointer). - Registers defined by ORIS/XORIS were identified as already sign-extended. But, it is not true for sign extension depending on the immediate (while it is ok for zero extension). To handle the first case, the parameter for the helpers is changed from `MachineInstr` to a register number to distinguish first and second defs. Also, this patch moves the initialization of PPCMIPeepholePass to allow mir test case. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D40554
-
Caroline Concatto authored
This patch replaces svget, svset and svcreate aarch64 intrinsics for tuple types with the generic llvm-ir intrinsics extract/insert vector Differential Revision: https://reviews.llvm.org/D131547
-
Nico Weber authored
-
Nico Weber authored
This reverts commit d3a1dbc4. f7a33090 was reverted in e941b031.
-
Pavel Labath authored
This patch switches the MainLoop class to use the WSAEventSelect mechanism to wait for multiple sockets to become readable. The motivation for doing that is that this allows us to wait for other kinds of events as well (as long as they can be converted to WSAEvents). This will allow us to avoid (abstract away) pipe-based multiplexing mechanisms in the generic code, since pipes cannot be combined with sockets on windows. Since the windows implementation will now look completely different than the posix (file descriptor-based) implementations, I have split the MainLoop class into two (MainLoopPosix and MainLoopWindows), with the common code going into MainLoopBase. Differential Revision: https://reviews.llvm.org/D131159
-
Vaibhav Yenamandra authored
* Extend SarifResult with level property, and allow rule configuration * Create SarifReportingConfiguration which allow configuring rules with a default priority, severity and an enable-toggle * Support for setting the level property[1] of a result. If unset, it defaults to "warning", which is the result of an empty default configuration on rules[2] [1]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317648 [2]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317855 Differential Revision: https://reviews.llvm.org/D131084
-
Caroline Concatto authored
This patch has implements these optimizations: extract.vector(insert.vector(Vector, Value, Idx), Idx) --> Value extract.vector(insert.vector(Vector, Value, InsertIndex), ExtractIndex) --> extract.vector(Vector, ExtractIndex) Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D132137
-
Dmitry Preobrazhensky authored
Split gfx9_dasm_all.txt by instruction encoding. Differential Revision: https://reviews.llvm.org/D132124
-
Dmitry Preobrazhensky authored
Split gfx8_dasm_all.txt by instruction encoding. Differential Revision: https://reviews.llvm.org/D132126
-
Dominik Adamski authored
This test is follow up of the review: https://reviews.llvm.org/D131402 Co-Author of the patch: Kiran Chandramohan Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D132215
-
Caroline Concatto authored
Differential Revision: https://reviews.llvm.org/D131687
-
Alexander Malkov authored
Fix for the problem with displaying options `-fsyntax-only` in clang and flang-new in help Fix https://github.com/llvm/llvm-project/issues/57033 Before: ``` $ clang -help | grep syntax -objcmt-migrate-property-dot-syntax Enable migration of setter/getter messages to property-dot syntax ``` After: ``` $ clang -help | grep syntax -fsyntax-only Run the preprocessor, parser and semantic analysis stages -objcmt-migrate-property-dot-syntax Enable migration of setter/getter messages to property-dot syntax ``` Reviewed By: vzakhari, awarzynski, MaskRay, alexiprof Differential Revision: https://reviews.llvm.org/D131808
-
Simon Pilgrim authored
It's going to be much easier to maintain these tests (and all the check prefix combinations) if we don't mix cost kinds in the same file.
-
Simon Pilgrim authored
It's going to be much easier to maintain these tests (and all the check prefix combinations) if we don't mix cost kinds in the same file.
-
Simon Pilgrim authored
Tremont uses the Goldmont div/sqrt costs but we weren't testing for them
-
Simon Pilgrim authored
Just specify the triple inside the RUN command (to make i686 support much easier!), and consistently use x86_64-- generic triple
-
Martin Storsjö authored
[libcxx] [test] Mark the libcxx/selftest/remote-substitutions.sh.cpp test as requiring bash in the executor It's unclear to me why this wasn't tagged this way already in 87fe0709 / D114612 where the feature flag executor-has-no-bash was added, as this test did exist in its current form already at that time. Differential Revision: https://reviews.llvm.org/D131446
-