- Mar 04, 2023
-
-
Mark de Wever authored
Some build bots have not been updated to the new minimal CMake version. Reverting for now and ping the buildbot owners. This reverts commit 44c6b905.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D140803
-
Mark de Wever authored
Formatting a const qualified vector<bool> fails to work on libc++. This is due to our non-conforming type for vector<bool>::const_reference. The type is a __bit_const_reference<vector> instead of a bool. (This is fixed in ABI v2.) This fixes this formatter and enables the test written for it. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D144279
-
Mark de Wever authored
LWG3833 Remove specialization template<size_t N> struct formatter<const charT[N], charT> Depends on D143845 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D143850
-
Mark de Wever authored
LWG3103 Errors in taking subview of span should be ill-formed where possible Note that the real work was already done before, including tests. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D143432
-
Mark de Wever authored
This partly undoes D137724. This change has been discussed on discourse https://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-cmake-version/66193 Note this does not remove work-arounds for older CMake versions, that will be done in followup patches. Reviewed By: mehdi_amini, MaskRay, ChuanqiXu, to268, thieta, tschuett, phosek, #libunwind, #libc_vendors, #libc, #libc_abi, sivachandra, philnik, zibi Differential Revision: https://reviews.llvm.org/D144509
-
Craig Topper authored
-
Joyce Brum authored
Signed-off-by:
Joyce Brum <joycebrum@google.com> Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D144119
-
Med Ismail Bennani authored
Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
LLVM GN Syncbot authored
-
Med Ismail Bennani authored
When using SBProcess::GetScriptedImplementation in python, if the process has a valid implementation, we returned a reference of the object without incrementing the reference counting. That causes the interpreter to crash after accessing the reference several times. This patch address this by incrementing the reference count when passing the valid object reference. Differential Revision: https://reviews.llvm.org/D145260 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch improve error reporting in the Scripted Interface. Previously, it would only log the content of the Status object and overwrite it with the error_msg function parameter. This patch changes that to append the Status object content to the `error_msg` string. Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch adds memory writing capabilities to the Scripted Process plugin. This allows to user to get a target address and a memory buffer on the python scripted process implementation that the user can make processing on before performing the actual write. This will also be used to write trap instruction to a real process memory to set a breakpoint. Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
The goal of the simple patch is to clean-up the scripted process interface by removing methods that were introduced with the interface originally, but that were never really implemented (get_thread_with_id & get_registers_for_thread). This patch also changes `get_memory_region_containing_address` to have a base implementation (that retunrs `None`), instead of forcing the user to override it in their derived class. Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch adds process attach capabilities to the ScriptedProcess plugin. This doesn't really expects a PID or process name, since the process state is already script, however, this allows to create a scripted process without requiring to have an executuble in the target. In order to do so, this patch also turns the scripted process related getters and setters from the `ProcessLaunchInfo` and `ProcessAttachInfo` classes to a `ScriptedMetadata` instance and moves it in the `ProcessInfo` class, so it can be accessed interchangeably. This also adds the necessary SWIG wrappers to convert the internal `Process{Attach,Launch}InfoSP` into a `SB{Attach,Launch}Info` to pass it as argument the scripted process python implementation and convert it back to the internal representation. rdar://104577406 Differential Revision: https://reviews.llvm.org/D143104 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch does several things: First, it refactors the `CommandObject{,Platform}ProcessObject` command option class into a separate `CommandOptionsProcessAttach` option group. This will make sure both the `platform process attach` and `process attach` command options will always stay in sync without having with duplicate them each time. But more importantly, making this class an `OptionGroup` allows us to combine with a `OptionGroupPythonClassWithDict` to add support for the scripted process managing class name and user-provided dictionary options. This patch also improves feature parity between `ProcessLaunchInfo` and `ProcessAttachInfo` with regard to ScriptedProcesses, by exposing the various getters and setters necessary to use them through the SBAPI. This is foundation work for adding support to "attach" to a process from the scripted platform. Differential Revision: https://reviews.llvm.org/D139945 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch introduces a new method to the Scripted Process interface, GetCapabilities. This returns a dictionary that contains a list of flags that the ScriptedProcess instance supports. This can be used for instance, to force symbol lookup, when loading dynamic libraries in the scripted process. Differential Revision: https://reviews.llvm.org/D142059 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch tries to address an interoperability issue when writing python string into the process memory. Since the python string is not null-terminated, it would still be written to memory however, when trying to read it again with `SBProcess::ReadCStringFromMemory`, the memory read would fail, since the read string doens't contain a null-terminator, and therefore is not a valid C string. To address that, this patch extends the `SBProcess` SWIG interface to expose a new `WriteMemoryAsCString` method that is only exposed to the SWIG target language. That method checks that the buffer to write is null-terminated and otherwise, it appends a null byte at the end of it. Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Derek Schuff authored
Implement the --build-id flag similarly to ELF, and generate a build_id section according to the WebAssembly tool convention specified in https://github.com/WebAssembly/tool-conventions/pull/183 The default style ("fast" aka "tree") hashes the contents of the output and (unlike ELF) generates a v5 UUID based on the hash (using a random namespace). It also supports generating a random v4 UUID, a sha1 hash, and a user-specified string (as ELF does). Differential Revision: https://reviews.llvm.org/D107662 Fix MSVC build by std::copy on the underying buffer rather than directly from std::array to llvm::MutableArrayRef
-
Jacques Pienaar authored
User was confused by previous wording when pass was reported as failing due to signal in unrelated thread being caught. Differential Revision: https://reviews.llvm.org/D145213
-
isuckatcs authored
This patch adds CFGElementRef to ProgramPoints and helps the analyzer to differentiate between two otherwise identically looking ProgramPoints. Fixes #60412 Differential Revision: https://reviews.llvm.org/D143328
-
Maksim Sabianin authored
Previous search does not take into account @llvm.dbg.* intrinsics and debug types information while DebugInfoFinder takes into account such information. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D145239
-
Keith Smiley authored
If no bitcode files are given as inputs but -object_path_lto is passed we should avoid running the LTO pipeline. This mirrors this patch from the ELF port https://github.com/llvm/llvm-project/commit/f3994e4dfa0214b2a09a0e327ba37e6b38bbcdb3 Fixes https://github.com/llvm/llvm-project/issues/61031 Differential Revision: https://reviews.llvm.org/D145273
-
LLVM GN Syncbot authored
-
- Mar 03, 2023
-
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Not sure why this was broken, but I was seeing this linker error: ld64.lld: error: undefined symbol: (anonymous namespace)::AMDGPUInsertDelayAlu::DelayInfo::SALU_CYCLES_MAX >>> referenced by AMDGPUInsertDelayAlu.cpp:129 (/Users/matt/src/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp:129)
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Rahul Kayaith authored
`parseAttribute` and `parseType` require null-terminated strings as input, but this isn't great considering the argument type is `StringRef`. This changes them to copy to a null-terminated buffer by default, with a `isKnownNullTerminated` flag added to disable the copying. closes #58964 Reviewed By: rriddle, kuhar, lattner Differential Revision: https://reviews.llvm.org/D145182
-
David Green authored
We have LDRHui load patterns but would fail to select from unscaled offsets. This adds the missing pattern.
-
Keith Smiley authored
At some point PlatformInfo's Target changed types to a type that also has minimum deployment target info. This caused ambiguity if you tried to get the target triple from the Target, as the actual minimum version info was being stored separately. This bulk of this change is changing the parsing of these values to support this. Differential Revision: https://reviews.llvm.org/D145263
-
Michael Buch authored
Format changed in `b642fd5e` Differential Revision: https://reviews.llvm.org/D145241
-
Jeffrey Byrnes authored
Based on experimentation on gfx906,908,90a and 1030, wider global loads / stores are more performant than multiple narrower ones independent of alignment -- this is especially true when combining 8 bit loads / stores, in which case speedup was usually 2x across all alignments. Differential Revision: https://reviews.llvm.org/D145170 Change-Id: I6ee6c76e6ace7fc373cc1b2aac3818fc1425a0c1
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D145232
-
Jordan Rupprecht authored
-
Jordan Rupprecht authored
In addition run buildifier.
-
Argyrios Kyrtzidis authored
[clang/Diagnostic] Use `optional` to disambiguate between a `StoredDiagMessage` that is not set vs set as empty string "But when would you have a completely empty diagnostic message", you ask dear reader? That is when there is an empty "#warning" in code. rdar://106155415 Differential Revision: https://reviews.llvm.org/D145256
-
Fangrui Song authored
to match the convention we use for other diagnostics.
-
Fangrui Song authored
D73518 mentioned non-STT_SECTION symbol names. This patch extends the code to handle STT_SECTION symbols, where we report the section name. This change helps at least the following cases with very little code. * Whether a out-of-range relocation is due to code or data. * For a relocation in .debug_info, which referenced `.debug_*` section (due to DWARF32 limitation) causes the problem. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D145199
-