- Jun 09, 2022
-
-
-
Alexander Yermolovich authored
Taking advantage of us being able to re-write .debug_info to reduce memory footprint loclists. Writing out loc-list as they are added, similar to how we handle ranges. Collected on clang-14 trunk 4:41.20 real, 389.50 user, 59.50 sys, 0 amem, 38412532 mmem 4:30.08 real, 376.10 user, 63.75 sys, 0 amem, 38477844 mmem 4:25.58 real, 373.76 user, 54.71 sys, 0 amem, 38439660 mmem diff 4:34.66 real, 392.83 user, 57.73 sys, 0 amem, 38382560 mmem 4:35.96 real, 377.70 user, 58.62 sys, 0 amem, 38255840 mmem 4:27.61 real, 390.18 user, 57.02 sys, 0 amem, 38223224 mmem Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D126999
-
Nico Weber authored
-
Lang Hames authored
Handy for checking string pool state, e.g. when debugging dangling-pool-entry errors.
-
Craig Topper authored
For consistency with the other messages in this file.
-
Zequan Wu authored
1. If array element type is a tag decl, complete it. 2. Fix few places where `asTag` should be used instead of `asClass()`. 3. Handle the case that `PdbAstBuilder::CreateFunctionDecl` return nullptr mainly due to an existing workaround (`m_cxx_record_map`). 4. `FindMembersSize` should never return error as this would cause early exiting in `CVTypeVisitor::visitFieldListMemberStream` and then cause assertion failure. 5. In some pdbs from C++ runtime libraries have S_LPROC32 followed directly by S_LOCAL and the local variable location is a S_DEFRANGE_FRAMEPOINTER_REL. There is no information about base frame register in this case, ignoring it by returning RegisterId::NONE. 6. Add a TODO when S_DEFRANGE_SUBFIELD_REGISTER describes the variable location of a pointer type. For now, just ignoring it if the variable is pointer.
-
Jose Manuel Monsalve Diaz authored
Changing "tot the" to "to the"
-
Wei Yi Tee authored
[clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue This patch precedes a future patch to make PointeeLoc for PointerValue possibly empty (for nullptr), by using a pointer instead of a reference type. ReferenceValue should maintain a non-empty PointeeLoc reference. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D127312
-
Kevin Athey authored
One more round attempting to figure what is wrong. Depends on: https://reviews.llvm.org/D127346 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D127359
-
Matheus Izvekov authored
Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Differential Revision: https://reviews.llvm.org/D127361
-
Jonas Devlieghere authored
Add a function to make it easier to debug a test failure caused by an unexpected state. Currently, tests are using assertEqual which results in a cryptic error message: "AssertionError: 5 != 10". Even when a test provides a message to make it clear why a particular state is expected, you still have to figure out which of the two was the expected state, and what the other value corresponds to. We have a function in lldbutil that helps you convert the state number into a user readable string. This patch adds a wrapper around assertEqual specifically for comparing states and reporting better error messages. The aforementioned error message now looks like this: "AssertionError: stopped (5) != exited (10)". If the user provided a message, that continues to get printed as well. Differential revision: https://reviews.llvm.org/D127355
-
owenca authored
Fixes #55663. Differential Revision: https://reviews.llvm.org/D127260
-
Louis Dionne authored
When some headers are not available because we removed features like localization or threads, the compiler should not try to include these headers when building modules. To avoid that from happening, add a requires-declaration that is never satisfied when the configuration in use doesn't support a header. rdar://93777687 Differential Revision: https://reviews.llvm.org/D127127
-
Alex Brachet authored
gcc is complaining that these methods are being called from a function that is marked constexpr but these aren't.
-
Huan Nguyen authored
Replacing stdio functions, e.g., fopen, fprintf, with raw_ostream. Test Plan: ``` ninja check-bolt ``` Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D126826
-
Jonas Devlieghere authored
On macOS Ventura and later, dyld and the main binary will be loaded again when dyld moves itself into the shared cache. Update the test accordingly. Differential revision: https://reviews.llvm.org/D127331
-
Chelsea Cassanova authored
Adds a check to ensure that a process exists before attempting to get its ABI to prevent lldb from crashing due to trying to read from page zero. Differential revision: https://reviews.llvm.org/D127016
-
bixia1 authored
The problem is in function isValid. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D127349
-
Craig Topper authored
This matches what we do in IR. For the RISC-V test case, this allows us to use -8 for the AND mask instead of materializing a constant in a register. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D127335
-
Sam McCall authored
Most GSS nodes have short effective lifetimes, keeping them around until the end of the parse is wasteful. Mark and sweep them every 20 tokens. When parsing clangd/AST.cpp, this reduces the GSS memory from 1MB to 20kB. We pay ~5% performance for this according to the glrParse benchmark. (Parsing more tokens between GCs doesn't seem to improve this further). Compared to the refcounting approach in https://reviews.llvm.org/D126337, this is simpler (at least the complexity is better isolated) and has >2x less overhead. It doesn't provide death handlers (for error-handling) but we have an alternative solution in mind. Differential Revision: https://reviews.llvm.org/D126723
-
Sam McCall authored
-
Sam McCall authored
There are more states than symbols. This means first partioning the action list by state leaves us with a smaller range to binary search over. This improves find() a lot and glrParse() by 7%. The tradeoff is storing more smaller ranges increases the size of the offsets array, overall grammar memory is +1% (337->340KB). Before: glrParse 188795975 ns 188778003 ns 77 bytes_per_second=1.98068M/s After: glrParse 175936203 ns 175916873 ns 81 bytes_per_second=2.12548M/s Differential Revision: https://reviews.llvm.org/D127006
-
Mircea Trofin authored
If the callsite is in a single BB loop, we need to exclude the BB from the successor set (in which it'd be a member), because that set forms a boundary at which we stop traversing the CFG, when re-ingesting BBs after inlining; but after inlining, the callsite BB's new successors should be visited. Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D127178
-
Florian Mayer authored
Reviewed By: MaskRay, eugenis Differential Revision: https://reviews.llvm.org/D127148
-
Florian Mayer authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D127171
-
Jin Xin Ng authored
Once ForceStop is set to true, we only return positive inlining advice when it is mandatory; There is no need for further node/edge accounting. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D127245
-
Andrew Turner authored
On FreeBSD AArch64 safestack needs to use __syscall to handle 64 bit arguments Reviewed by: MaskRay, vitalybuka Differential Revision: https://reviews.llvm.org/D125901
-
Andrew Turner authored
The stack pointer is stored in the second slot in the jump buffer on AArch64. Use the correct slot value to read this rather than the following register. Reviewed by: melver Differential Revision: https://reviews.llvm.org/D125762
-
Andrew Turner authored
As with 64 bit x86 use an offset in middle of the address space scaled up to work with the full 48 bit space. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D125757
-
Andrew Turner authored
Reviewed by: vitalybuka Differential Revision: https://reviews.llvm.org/D125756
-
Kevin Athey authored
Must send output to stderr to view it. This will be rolled back when diagnosis is complete. Depends on: https://reviews.llvm.org/D127320 Differential Revision: https://reviews.llvm.org/D127346
-
Nathan Lanza authored
This is failing to find `EnableABIBreakingCheck` at link time. Add Support to provide it here. Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D127269
-
Kevin Athey authored
Depends on: https://reviews.llvm.org/D127264 Reviewed By: vitalybuka, fmayer Differential Revision: https://reviews.llvm.org/D127327
-
Florian Mayer authored
This reverts commit 4c71c338.
-
Florian Mayer authored
This reverts commit 40f34fe4.
-
Florian Mayer authored
Reviewed By: MaskRay, eugenis Differential Revision: https://reviews.llvm.org/D127148
-
bixia1 authored
Support complex numbers for Matrix Market Exchange Formats. Add a test case. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D127138
-
Keith Smiley authored
In the case you pass multiple universal binaries to llvm-cov, assume that if only 1 architecture is passed, it should be used for all the passed binaries. This makes it easier to use multiple multi-arch binaries, since it's likely very rare that your architectures mismatch significantly if you also have multiple binaries in a single llvm-cov invocation. If the architecture is invalid for any of the passed binaries, it will still fail later. Differential Revision: https://reviews.llvm.org/D121667
-
Simon Pilgrim authored
-
Aaron Ballman authored
The WG14 website was recently updated to support SSL, and we might as well make use of that.
-