- Aug 25, 2022
-
-
Felipe de Azevedo Piovezan authored
When setting a breakpoint upon throwing exceptions, LLDB only searches for the libc++abi code inside dylibs named: 1. libc++abi.dylib 2. libSystem.B.dylib However, this fails to account for libs with a version number. For example, when building the libcxx and libcxxabi runtimes, the following dylibs are generated: build/lib/libc++abi.1.0.dylib build/lib/libc++abi.1.dylib -> libc++abi.1.0.dylib build/lib/libc++abi.dylib -> libc++abi.1.dylib If we are debugging a program linked against any of the "versioned" libs, the breakpoint doesn't work. This commit adds these names to the search list. Differential Revision: https://reviews.llvm.org/D132598
-
isuckatcs authored
Prior to this patch when the analyzer encountered a non-POD 0 length array, it still invoked the constructor for 1 element, which lead to false positives. This patch makes sure that we no longer construct any elements when we see a 0 length array. Differential Revision: https://reviews.llvm.org/D131501
-
Felipe de Azevedo Piovezan authored
The variables LLDB_USING_LIBCPP and LLDB_USING_LIBSTDCPP are no longer used anywhere. Differential Revision: https://reviews.llvm.org/D132596
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132549
-
Dmitry Preobrazhensky authored
Update assembler tests for FLAT instructions; remove redundant gfx11_asm_flat_mnemonic.s. Differential Revision: https://reviews.llvm.org/D132556
-
ZHU Zijia authored
Update `llvm/test/CodeGen/RISCV/branch-relaxation.ll` with `update_llc_test_checks.py`, according to https://reviews.llvm.org/D130560#3746417: >>! In D130560#3746417, @luismarques wrote: >>>! In D130560#3746379, @luismarques wrote: >> The tests don't seem to have been properly updated with >> `update_llc_test_checks.py`. >> `llvm/test/CodeGen/RISCV/branch-relaxation.ll` contains RV64 RUN >> lines but the corresponding CHECK lines are missing in >> some functions. > > Looking more closely at this, I guess you tried to only include the > `CHECK-RV64` and `CHECK-RV32` checks when relevant. That's a good > instinct but I guess it goes a bit against how we normally use > `update_llc_test_checks.py`. My understanding of the trade-off of > using that tool is that the test updates are much easier, even if > sometimes the CHECKs aren't as tight as something more tailormade. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D132625
-
Martin Storsjö authored
When an object file contains an export directive, we normally do some amount of deferred processing of them at the end of the linking process. The -includeoptional option was handled after this, and any object files (defining new exports) weren't handled. Move the handling of the -includeoptional into the same late loop which does the fixups for e.g. export directives. Ideally, this would also be done for object files that are pulled in by the wrap options, and for mingw autoimports, but those changes require more modifications, to make them safe for potentially being executed multiple times. This fixes https://github.com/llvm/llvm-project/issues/57243. Differential Revision: https://reviews.llvm.org/D132361
-
Martin Storsjö authored
Check whether `F_OK` et al are defined before redefining them; mingw headers do define them, so check before providing the windows fallback defines. Also check `_WIN32` instead of `WIN32`; this is how it's consistently done in the rest of llvm. (The former is a compiler builtin define, while the latter isn't, but it's commonly set by e.g. build systems.) Differential Revision: https://reviews.llvm.org/D132481
-
ZHU Zijia authored
Update `llvm/test/CodeGen/RISCV/branch-relaxation.ll` with `update_llc_test_checks.py`, according to https://reviews.llvm.org/D130560#3746417: >>! In D130560#3746417, @luismarques wrote: >>>! In D130560#3746379, @luismarques wrote: >> The tests don't seem to have been properly updated with >> `update_llc_test_checks.py`. >> `llvm/test/CodeGen/RISCV/branch-relaxation.ll` contains RV64 RUN >> lines but the corresponding CHECK lines are missing in >> some functions. > > Looking more closely at this, I guess you tried to only include the > `CHECK-RV64` and `CHECK-RV32` checks when relevant. That's a good > instinct but I guess it goes a bit against how we normally use > `update_llc_test_checks.py`. My understanding of the trade-off of > using that tool is that the test updates are much easier, even if > sometimes the CHECKs aren't as tight as something more tailormade.
-
Alexander Potapenko authored
Simplify InitializeOsSupport() by separating code for detecting and enabling the tagged address ABI. Also drop the unnecessary errno checks (regardless of errno value, we cannot assume that tagging works if the system call failed) and ensure prctl(PR_SET_TAGGED_ADDR_CTRL) is only called on Android, not on x86 (where arch_prctl(ARCH_ENABLE_TAGGED_ADDR, kTagBits) is used). Depends on D132544 Differential Revision: https://reviews.llvm.org/D132545
-
Denis Revunov authored
Fix BinaryContext::handleAddressRef to properly detect references to other function's Constant islands. Revieved By: rafauler, yota9 Differential Revision: https://reviews.llvm.org/D132376
-
Alexander Potapenko authored
Use a helper function to print an error message and die in the case flags()->fail_without_syscall_abi is set. Because x86 doesn't have `sysctl abi.tagged_addr_disabled`, do not mention it in the error message for non-Android runtime. Depends on D132543 Differential Revision: https://reviews.llvm.org/D132544
-
Matthias Springer authored
This helper function computes the dimensions of a tensor value as OpFoldResults. Differential Revision: https://reviews.llvm.org/D132475
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Balázs Kéri authored
Add a test to cert-dcl58-cpp.cpp to verify that crash in github issue #56902 does not happen. Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D131686
-
Alexander Potapenko authored
Move the definitions outside InitializeOsSupport(). Also remove the undefs, as these constants won't be visible outside the .cpp file anyway. Differential Revision: https://reviews.llvm.org/D132543
-
Alexander Batashev authored
With the transition to opaque pointers, type information has been transferred to function parameter attributes. This patch adds correct parsing for some of those arguments and fixes some tests, that previously used UnitAttr for those. Differential Revision: https://reviews.llvm.org/D132366
-
Tobias Hieta authored
-
Pavel Samolysov authored
The ArgumentPromotion pass uses Mem2Reg promotion at the end to cutting down generated `alloca` instructions as well as meaningless `store`s and this behavior can leave unused (dead) arguments. To eliminate the dead arguments and therefore let the DeadCodeElimination remove becoming dead inserted `GEP`s as well as `load`s and `cast`s in the callers, the DeadArgumentElimination pass should be run after the ArgumentPromotion one. Differential Revision: https://reviews.llvm.org/D128830
-
Michael Buch authored
This test simply checks whether we can print an optimized function argument. With recent changes to Clang the assumption that we don't generate a `DW_AT_location` attribute for the unused funciton parameter breaks. This patch tries harder to get Clang to drop the location from DWARF by making it generate an `undef` for `unused1`. Drop the check for `unused2` since it adds no benefit. Differential Revision: https://reviews.llvm.org/D132635
-
H. Vetinari authored
This reverts commit bc39d7bd. rename CLANG_SONAME to LIBCLANG_SOVERSION [clang][cmake] introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION Differential Revision: https://reviews.llvm.org/D132486
-
Roy Jacobson authored
See bug report here: https://github.com/llvm/llvm-project/issues/57351 This reverts commit 71716150.
-
Dan McGregor authored
Match Clang's sorting, so that longer (more specific) prefix paths will match before less specific paths. Reviewed By: MaskRay, raj.khem, #debug-info Differential Revision: https://reviews.llvm.org/D132390
-
wanglian authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132439
-
Ben Langmuir authored
The invocation is only ever used to serialize cc1 arguments from, so instead serialize the arguments inside the dep scanner to simplify the interface. Differential Revision: https://reviews.llvm.org/D132616
-
Ben Langmuir authored
ToolInvocation is useful even if you already have a -cc1 invocation, since it provides a standard way to setup diagnostics, parse arguments, and handoff to a ToolAction. So teach it to support -cc1 commands by skipping the driver bits. Differential Revision: https://reviews.llvm.org/D132615
-
Chenbing Zheng authored
This patch complete TODO left in D66965, and achieve related pattern for bitreverse. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132431
-
Chenbing Zheng authored
Reviewed By: RKSimon, spatel Differential Revision: https://reviews.llvm.org/D132343
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Matthias Braun authored
D132080 introduced a bug leading to `RegisterClassInfo` caches not getting invalidated when there was exactly one more CSR register added. Differential Revision: https://reviews.llvm.org/D132606
-
Fabian Parzefall authored
To generate all symbols correctly, it is necessary to record the address of each fragment. This patch moves the address info for the main and cold fragments from BinaryFunction to FunctionFragment, where this data is recorded for all fragments. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132051
-
Fabian Parzefall authored
This changes `FunctionFragment` from being used as a temporary proxy object to access basic block ranges to a heap-allocated object that can store fragment-specific information. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132050
-
Matthias Braun authored
This reverts commit 73a9dfce. We started to hit assertions when compiling & assembling separately. See comments in https://reviews.llvm.org/D131270
-
Mircea Trofin authored
Missed a few tests in D119507
-
Valery N Dmitriev authored
The goal is to separate collecting items for post-processing and processing them. Post processing also outlined as dedicated method. Differential Revision: https://reviews.llvm.org/D132603
-
Jeff Niu authored
The element type enum is not needed to differentiate dense array kinds because the element type of the shaped type can be used instead. Reviewed By: mehdi_amini, rriddle Differential Revision: https://reviews.llvm.org/D132535
-
Fabian Parzefall authored
A const-qualified reference to function layout allows accessing non-const qualified basic blocks on a const-qualified function. This patch adds or removes const-qualifiers where necessary to indicate where basic blocks are used in a non-const manner. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132049
-