- Jun 23, 2022
-
-
Fangrui Song authored
This reverts commit f1ee2738. Revert due to the revert of a dependent commit `[SLP]Improve shuffles cost estimation where possible.`
-
Craig Topper authored
-
chenglin.bi authored
This reverts commit 6c951c5e.
-
Serguei Katkov authored
Finding BDV for vector value does not handle freeze instruction. Adding its handling as it is done for scalar case. Reviewed By: apilipenko Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D128254
-
Valentin Clement authored
Fixes several bugs relating to initialization expressions. An initialization expression has no access to dynamic resources like the stack or the heap. It must reduce to a relocatable expression that the loader can complete at runtime. Adds regression test. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D128380 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Charlie Barto authored
... to avoid ambiguity in overload resolution when ADL finds `std::format`. Differential Revision: https://reviews.llvm.org/D119213
-
wangpc authored
We can cast a string to a record via !cast, but we have no mechanism to check if it is valid and TableGen will raise an error if failed to cast. Besides, we have no semantic null in TableGen (we have `?` but different backends handle uninitialized value differently), so operator like `dyn_cast<>` is hard to implement. In this patch, we add a new operator `!exists<T>(s)` to check whether a record with type `T` and name `s` exists. Self-references are allowed just like `!cast`. By doing these, we can write code like: ``` class dyn_cast_to_record<string name> { R value = !if(!exists<R>(name), !cast<R>(name), default_value); } defvar v = dyn_cast_to_record<"R0">.value; // R0 or default_value. ``` Reviewed By: tra, nhaehnle Differential Revision: https://reviews.llvm.org/D127948 -
LLVM GN Syncbot authored
-
John Regehr authored
Differential Revision: https://reviews.llvm.org/D128317
-
Okwan Kwon authored
Differential Revision: https://reviews.llvm.org/D128398
-
Julian Lettner authored
atos currently doesn't show source line numbers for global variables, so global-location.cpp is failing after we switched from ASan-specific metadata to normal symbolication. See: https://reviews.llvm.org/D127552
-
Matt Arsenault authored
These tests were deleting the copy instruction, defeating the purpose of having it.
-
Matt Arsenault authored
This was leaving behind a use at the deleted instruction which the verifier would fail during allocation.
-
Matt Arsenault authored
This was producing a load into a dead register which was a verifier error.
-
Fazlay Rabbi authored
Differential Revision: https://reviews.llvm.org/D128397
-
Mingming Liu authored
[SampleProfile][Inline] Annotate sample profile inline remarks with link phase (prelink/postlink) information. Differential Revision: https://reviews.llvm.org/D126833
-
Paul Walker authored
The implication of this patch being AArch64ISD::DUP no longer supports scalable vectors. Differential Revision: https://reviews.llvm.org/D128265
-
jackalcooper authored
On macOS, Vulkan is emulated by MoltenVK. Some extra flags are required for "building robust and portable Vulkan based applications that are good citizens in the Vulkan ecosystem". More information: https://vulkan.lunarg.com/doc/sdk/1.3.216.0/mac/getting_started.html Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D128173
-
Nikolas Klauser authored
`__GCC_CONSTRUCTIVE_SIZE` and `__GCC_DESTRUCTIVE_SIZE` are available since GCC 12. I'm assuming clang will also implement these for compatability with libstdc++. Reviewed By: ldionne, #libc Spies: h-vetinari, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D122276
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D128007
-
Fangrui Song authored
-
Florian Mayer authored
The reachability queries default to "reachable" after exploring too many basic blocks. LoopInfo helps it skip over the whole loop. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D127917
-
Chelsea Cassanova authored
This adds a command interpreter fuzzer to LLDB's fuzzing library. The input data from the fuzzer is used as input for the command interpreter. Input data for the fuzzer is guided by a dictionary of keywords used in LLDB, such as "breakpoint", "target" and others. Differential revision: https://reviews.llvm.org/D128292
-
Adrian Tong authored
-
Brendon Cahoon authored
StructurizeCFG linearizes the successors of branching basic block by adding Flow blocks to record the true/false path for branches and back edges. This patch reduces the number of Phi values needed to capture the control flow path by improving the basic block ordering. Previously, StructurizeCFG adds loop exit blocks outside of the loop. StructurizeCFG sets a boolean value to indicate the path taken, and all exit block live values extend to after the loop. For loops with a large number of exits blocks, this creates a huge number of values that are maintained, which increases compilation time and register pressure. This is problem especially with ASAN, which adds early exits to blocks with unreachable instructions for each instrumented check in the loop. In specific cases, this patch reduces the number of values needed after the loop by moving the exit block into the loop. This is done for blocks that have a single predecessor and single successor by moving the block to appear just after the predecessor. Differential Revision: https://reviews.llvm.org/D123231
-
Jonas Devlieghere authored
Fix an off-by-one error in the utility function used to extract the dynamic class info. This resulted in a buffer overflow in the inferior which interrupted our utility function. Differential revision: https://reviews.llvm.org/D128377
-
Jonas Devlieghere authored
A copy/paste error in GetClassInfoUtilityFunction resulted in the wrong utility function being returned: copyRealizedClassList instead of getRealizedClassList_trylock. Differential revision: https://reviews.llvm.org/D128378
-
Brendon Cahoon authored
UnifyLoopExits creates a single exit, a control flow hub, for loops with multiple exits. There is an input to the block for each loop exiting block and an output from the block for each loop exit block. Multiple checks, or guard blocks, are needed to branch to the correct exit block. For large loops with lots of exit blocks, all the extra guard blocks cause problems for StructurizeCFG and subsequent passes. This patch reduces the number of guard blocks needed when the exit blocks branch to a common block (e.g., an unreachable block). The guard blocks are reduced by changing the inputs and outputs of the control flow hub. The inputs are the exit blocks and the outputs are the common block. Reducing the guard blocks enables StructurizeCFG to reorder the basic blocks in the CFG to reduce the values that exit a loop with multiple exits. This reduces the compile-time of StructurizeCFG and also reduces register pressure. Differential Revision: https://reviews.llvm.org/D123230
-
Evgenii Stepanov authored
Reason: memory leaks This reverts commit 08301031.
-
Nathan James authored
A few of the checks had documentation URLs that weren't updated in the aforementioned commit.
-
Valentin Clement authored
Character and array results are allocated on the caller side. This require evaluating the result interface on the call site. When calling such functions inside an internal procedure, it is possible that the interface is defined in the host, in which case the lengths/bounds of the function results must be captured so that they are available in the internal function to emit the call. To handle this case, extend the PFT symbol visit to visit the bounds and length parameters of functions called in the internal procedure parse tree. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D128371 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Nathan James authored
-
Jim Ingham authored
passed. I was passing the empty list of breakponts to the VerifyBreakpointList routine, but that treats empty as "choose the default breakpoint" which we don't want here.
-
Nicolas Vasilache authored
This revision proposes a different implementation of the SplitReductoin transformation that does not rely on tensor::ExpandShapeOp. Previously, a dimension `[k]` would be split into `[k][kk]` via an ExpandShapeOp. Instead, this revision proposes to rewrite `[k]` into `[factor * k + kk]`. There are different tradeoffs involved but the proposed implementation is more general because the affine rewrite is well-defined. In particular, it works naturally with `?` parallel dimensions and non-trivial indexing maps. A further rewrite of `[factor * k + kk]` + ExpandShapeOp is possible as a followup. Differential Revision: https://reviews.llvm.org/D128266
-
Guillaume Gomez authored
This patch is needed because developers expect "GCCBuiltin" items to be the GCC intrinsics equivalent and not the Clang internals. Reviewed By: #libc_abi, RKSimon, xbolva00 Differential Revision: https://reviews.llvm.org/D127460
-
Valentin Clement authored
This patch replaces some `auto` with proper type. This was done in fir-dev but not upstreamed yet. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D128350
-
Valentin Clement authored
- BIND(C) was ignored in lowering for objects (it can be used on module and common blocks): use the bind name as the fir.global name. - When an procedure is declared BIND(C) indirectly via an interface, it should have a BIND(C) name. This was not the case because GetBindName()/bindingName() return nothing in this case: detect this case in mangler.cpp and use the symbol name. Add TODOs for corner cases: - BIND(C) module variables may be initialized on the C side. This does not fit well with the current linkage strategy. Add a TODO until this is revisited. - BIND(C) internal procedures should not have a binding label (see Fortran 2018 section 18.10.2 point 2), yet we currently lower them as if they were BIND(C) external procedure. I think this and the indirect interface case should really be handled by symbol.GetBindName instead of adding more logic in lowering to deal with this case: add a TODO. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D128340 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Joe Loser authored
Replace "This option it" with "This option" to make the sentence read a bit clearer. Differential Revision: https://reviews.llvm.org/D128362
-
Florian Mayer authored
We were overly conservative and required a ret statement to be dominated completely be a single lifetime.end marker. This is quite restrictive and leads to two problems: * limits coverage of use-after-scope, as we degenerate to use-after-return; * increases stack usage in programs, as we have to remove all lifetime markers if we degenerate to use-after-return, which prevents reuse of stack slots by the stack coloring algorithm. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D127905
-
Walter Erquinigo authored
In order to provide simple scripting support on top of instruction traces, a simple solution is to enhance the `dump instructions` command and allow printing in json and directly to a file. The format is verbose and not space efficient, but it's not supposed to be used for really large traces, in which case the TraceCursor API is the way to go. - add a -j option for printing the dump in json - add a -J option for pretty printing the json output - add a -F option for specifying an output file - add a -a option for dumping all the instructions available starting at the initial point configured with the other flags - add tests for all cases - refactored the instruction dumper and abstracted the actual "printing" logic. There are two writer implementations: CLI and JSON. This made the dumper itself much more readable and maintanable sample output: ``` (lldb) thread trace dump instructions -t -a --id 100 -J [ { "id": 100, "tsc": "43591204528448966" "loadAddress": "0x407a91", "module": "a.out", "symbol": "void std::deque<Foo, std::allocator<Foo>>::_M_push_back_aux<Foo>(Foo&&)", "mnemonic": "movq", "source": "/usr/include/c++/8/bits/deque.tcc", "line": 492, "column": 30 }, ... ``` Differential Revision: https://reviews.llvm.org/D128316
-