- Jun 23, 2022
-
-
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 -
Richard authored
Eliminate clutter by reorganizing the Lit test files for clang-tidy: - Move checkers/<module>-* to checkers/<module>/*. - Move module specific inputs from Inputs to <module>/Inputs. Remove any module prefix from the file or subdirectory name as they are no longer needed. - Introduce a Lit substitution %clang_tidy_headers for the system headers in checkers/Inputs/Headers and use this throughout. This avoids referencing system headers through a relative path to the parent directory and makes it clear that these fake system headers are shared among all modules. - Update add_new_check.py to follow the above conventions when creating the boiler plate test files for a new check. - Update Contributing.rst to describe per-module Inputs directory and fix link to test source code. Differential Revision: https://reviews.llvm.org/D128072
-
Alexander Yermolovich authored
The case comes out of how BOLT handles transformation of DW_AT_low_pc/DW_AT_high_pc into DW_AT_low_pc/DW_AT_high_pc with latter being 0. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D127889
-
Florian Mayer authored
This was necessary for code reuse between the old and new passmanager. With the old pass-manager gone, this is no longer necessary. Reviewed By: eugenis, myhsu Differential Revision: https://reviews.llvm.org/D127913
-
Argyrios Kyrtzidis authored
[Support/BLAKE3] Fix error in prior commit, apply `-mavx512vl` for `blake3_avx512_x86-64_unix.S` when including it
-
Alvin Wong authored
-
Mark de Wever authored
This is a follow up based on a request of @jloser in D127594. As drive-by qualified the function calls in the <bit> header. Reviewed By: #libc, EricWF Differential Revision: https://reviews.llvm.org/D127760
-
Joseph Huber authored
Summary: Currently we use temporary files to write the intermediate results to. However, these are stored as regular strings and we do a few unnecessary copies and conversions of them. This patch simply replaces these strings with a reference to the filename stored in the list of temporary files. The temporary files will stay alive during the whole linking phase and have stable pointers, so we should be able to cheaply pass references to them rather than copying them every time.
-
Mingming Liu authored
Binary size of `clang` is trivial; namely, numerical value doesn't change when measured in MiB, and `.data` section increases from 139Ki to 173 Ki. Differential Revision: https://reviews.llvm.org/D128070
-
lorenzo chelini authored
-
Daniel Thornburgh authored
This allows registering certain tags as possibly beginning multi-line elements in the symbolizer markup parser. The parser is kept agnostic to how lines are delimited; it reports the entire contents, including line endings, once the end of element marker is reached. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D124798
-
Jim Ingham authored
temporarily ignoring the others. Differential Revision: https://reviews.llvm.org/D126513
-
serge-sans-paille authored
Running iwyu-diff on LLVM codebase since fb67d683 detected a few regressions, fixing them. The impact on preprocessed output is negligible: -4k lines.
-
Richard authored
The documentation files were reorganized into subdirectories, but a new check was added concurrently and wasn't rebased correctly before submitting. Sort the new clang-tidy checks by check name and fix the indentation of bugprone-unchecked-optional-access.
-
Mark de Wever authored
Instead of instantiating all functions called by std::to_chars for the integral types only instantiate them for 32 and 64 bit integral types. This results in a smaller binary when using different types. In an example using the types: signed char, short, int, long, long long, unsigned char, unsigned short, unsigned int, unsigned long, and unsigned long long this saved 2792 bytes of code size. For libc++.so.1 is saves 688 bytes of code size (64-bit Linux). This was discovered while investigating a solution for #52709. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D128215
-
Aart Bik authored
Thanks Peiming for reporting! Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D128308
-