- Jan 13, 2023
-
-
Lang Hames authored
Use an private struct, RuntimeFunction, to to keep the name and address of each registration function together, and rename the member variables with their purpose rather than the full name of the function in the runtime.
-
Jeff Niu authored
Ops that use TypesMatchWith to constrain result types for verification and to infer result types during parser generation should also be able to have the `inferReturnTypes` method auto generated. This patch upgrades the logic for generating `inferReturnTypes` to handle the TypesMatchWith trait by building a type inference graph where each edge corresponds to "type of A can be inferred from type of B", supporting transformers other than `"$_self"`. Reviewed By: lattner, rriddle Differential Revision: https://reviews.llvm.org/D141231
-
Maksim Panchenko authored
Only display used values for -print-sorted-by option when printing help. Differential Revision: https://reviews.llvm.org/D141209
-
Jeff Niu authored
The patch adds operations to `BlockAndValueMapping` and renames it to `IRMapping`. When operations are cloned, old operations are mapped to the cloned operations. This allows mapping from an operation to a cloned operation. Example: ``` Operation *opWithRegion = ... Operation *opInsideRegion = &opWithRegion->front().front(); IRMapping map Operation *newOpWithRegion = opWithRegion->clone(map); Operation *newOpInsideRegion = map.lookupOrNull(opInsideRegion); ``` Migration instructions: All includes to `mlir/IR/BlockAndValueMapping.h` should be replaced with `mlir/IR/IRMapping.h`. All uses of `BlockAndValueMapping` need to be renamed to `IRMapping`. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D139665
-
Luke Nicholson authored
Several map implementations require that map calls provide a page aligned size. Reviewed By: fmayer Differential Revision: https://reviews.llvm.org/D141630
-
Fangrui Song authored
-
Med Ismail Bennani authored
This patch introduces both the ScriptedPlatformInterface and the ScriptedPlatformPythonInterface. As the name suggests, these calls will be used to call into the Scripted Platform python implementation from the C++ Scripted Platform plugin instance. Differential Revision: https://reviews.llvm.org/D139251 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch introduces both the Scripted Platform python base implementation and an example for it. The base implementation is embedded in lldb python module under `lldb.plugins.scripted_platform`. This patch also refactor the various SWIG methods to create scripted objects into a single method, that is now shared between the Scripted Platform, Process and Thread. It also replaces the target argument by a execution context object. Differential Revision: https://reviews.llvm.org/D139250 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch is preparatory work for Scripted Platform support and does multiple things: First, it introduces new options for the `platform select` command and `SBPlatform::Create` API, to hold a reference to the debugger object, the name of the python script managing the Scripted Platform and a structured data dictionary that the user can use to pass arbitrary data. Then, it updates the various `Create` and `GetOrCreate` methods for the `Platform` and `PlatformList` classes to pass down the new parameter to the `Platform::CreateInstance` callbacks. Finally, it updates every callback to reflect these changes. Differential Revision: https://reviews.llvm.org/D139249 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch makes `ScriptedPythonInterface::GetStatusFromMethod` take a parameter pack as an argument. That will allow it to pass arbitrary arguments to the python method. Differential Revision: https://reviews.llvm.org/D139248 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch moves the ScriptedProcessInfo class out of the ScriptedProcess and hoist it as a standalone interpreter class, so it can be reused with the Scripted Platform. Differential Revision: https://reviews.llvm.org/D139247 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Nawrin Sultana authored
This patch fixes assertion failure in dynamic schedule with 8 byte induction variable. It uses acquire load instead of relaxed to ensure that steal_lock pointer is not NULL. Differential Revision: https://reviews.llvm.org/D139373
-
Joseph Huber authored
Summary: These can cause failures on GCC-7 it seems. We should explicitly move them to prevent this from causing build failures.
-
Yitzhak Mandelbaum authored
This patch includes two related changes: 1. Rewrite `compare` operation to be sound. Current version checks for equality of `isNonEmptyOptional` on both values, judging the values `Same` when the results are equal. While that works when both are true, it is problematic when they are both false, because there are four cases in which that's can occur: both empty, one empty and one unknown (which is two cases), and both unknown. In the latter three cases, it is unsound to judge them `Same`. This patch changes `compare` to explicitly check for case of `both empty` and then judge any other case `Different`. 2. With the change to `compare`, a number of common cases will no longer terminate. So, we also implement widening to properly handle those cases and recover termination. Drive-by: improve performance of `merge` operation. Of the new tests, the code before the patch fails * ReassignValueInLoopToSetUnsafe, and * ReassignValueInLoopToUnknownUnsafe. Differential Revision: https://reviews.llvm.org/D140344
-
Matt Arsenault authored
-
Matt Arsenault authored
This mostly reverts commit 270e96f4. Keep the attributor related changes around, but functionally restore the old behavior as a workaround. Device enqueue goes back to not working at -O0 with this version.
-
Nathan James authored
There's no reason for these methods to be non-const. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D138566
-
Johannes Doerfert authored
This reverts commit 9e08b083 and ensures signature rewriting also updates dead call sites to avoid the call graph assertion.
-
Alexander Yermolovich authored
Missed one formating that was reversed. Reviewed By: hoy, zhuhan0 Differential Revision: https://reviews.llvm.org/D141624
-
LLVM GN Syncbot authored
-
Emilia Dreamer authored
This allows for the creation of permalinks to specific clang-format options, for better sharing of a specific option and its options. (I'm adding the usual clang-format reviewers on this patch because I don't know any other reviewers that well, perhaps someone with docs experience should be added instead...) Note that I wanted to make minimal changes to make this happen and thus landed on an unideal setup, but to me, it seems like the best out of worse ones. I could have made every style option a subheading, which would add automatically the logic for permalinks and the little paragraph icon for sharing. However, this meant that the links themselves would be suboptimal, as they'd include the whole text of the heading, including the type and versionbadge, which is needless noise and could change, breaking the concept of a "permalink". The format of the page could be changed to put the option names on their own in a heading, and the other info below it in a paragraph. As Sphinx seems unwilling to fix https://github.com/sphinx-doc/sphinx/issues/1961, there isn't a succinct way to change the "id" html field used for sections I could have used an add-on (https://github.com/GeeTransit/sphinx-better-subsection), or made one myself, but I wanted to avoid extra dependencies for no reason. (plus, I don't know how to make one myself.) I could have used raw HTML for each heading, but that would immensely pollute the rst file, which, while it is generated, is currently still human-readable and it'd be nice for it to stay that way. Also note that sphinx treats references as case-insensitive, which means that they will all be lowercased in the resulting HTML. I envisioned the ability to simply add #OptionName after the URL to get placed right at the desired config option, which isn't possible without things such as inline `raw` HTML. To reconcile that, I added the ¶ paragraph buttons that can be used to generate the link to the desired section, but since headings are not actually used, they are faked and literally just a link following each option, which means they stylistically don't match all other headings. Also note that this sort-of assumes HTML output. I know Sphinx can output other formats but I do not know if they are used. A non-html output could embed unusable ¶ signs everywhere. I'm okay with this patch being rejected in its current solution, or if any of the above listed alternatives are better, they could be pursued instead. In case the downsides of this solution are too much, I will just create a feature request issue for this and maybe let someone more experienced with Sphinx handle it, since this is still a feature I would like to have. (and I do not want to deal with Sphinx at all after battling with it for a whole day to produce a mediocre result.) Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay, aaron.ballman Differential Revision: https://reviews.llvm.org/D138446
-
Alexander Yermolovich authored
According to DWARF5 specification and gnu specification for DWARF4 the offset entry in the CU/TU Index is 32 bits. This presents a problem when .debug_info.dwo in DWP file grows beyond 4GB. The CU Index becomes partially corrupted. This diff adds manual parsing of .debug_info.dwo/.debug_abbrev.dwo to reconstruct CU index in general, and TU index for DWARF5. This is a work around until DWARF6 spec is finalized. Next patch will change internal CU/TU struct to 64 bit, and change uses as necessary. The plan is to land all the patches in one go after all are approved. This patch originates from the discussion in: https://discourse.llvm.org/t/dwarf-dwp-4gb-limit/63902 Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D137882
-
Joseph Huber authored
Currently in LTO mode we don't emit any `.s` files for non-NVPTX targets during LTO. This makes it diffcult to investigate any failures in the assembly. This patch makes the save-temps mode output an assembly file and then assembles it separately. I decided to simply invoke `clang` for this as it would be a lot of effort to invoke the `MCStramer` interface directly. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D141543
-
Tim Northover authored
The pattern we're using for the memset_pattern* call gets put into a static global variable initialized, which means it has to be representable with relocations on the target. Most `ConstantExpr` instances do not satisfy this constraint, so avoid all of them for now.
-
Jonas Devlieghere authored
Fix error "non-const lvalue reference to type 'lldb::FileSP' cannot bind to a value of unrelated type" in Lua typemap.
-
Xiang Li authored
class ConstantBuffer is added to save information for cbuffer. Also add CBufferDataLayout to calculate the size for cbuffer. Now always use legacy cbuffer layout. https://reviews.llvm.org/D134998 will add control to disable legacy cbuffer layout. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D136031
-
Matt Arsenault authored
update_cc_test_checks misses this, so make sure at least one block enqueue test manually checks the calling convention for the kernel.
-
Louis Dionne authored
-
Johannes Doerfert authored
The tests will be re-enabled asap as a fix is available.
-
Adrian Dole authored
For warning compatibility with GCC. Reviewed By: cjdb Differential Revision: https://reviews.llvm.org/D139570
-
Jake Egan authored
Previously the test's targets were restricted to avoid the AIX target, but it should be marked unsupported for system-aix instead because the test fails to run on AIX as well.
-
David Green authored
This adds an error message if the isSVESizelessBuiltinType like __SVFloat32_t / __SVInt64_t / etc, which provide the backing for the svfloat32_t / svint64_t / etc ACLE types, are used in a function without SVE. The alternative is a crash in the backend, which is not capable of handling scalable vector types. When SVE is available, either through a -march=..+sve option or via a target(sve) attribute, nothing should change. Without the sve feature, this patch gives an error for any function arguments, return values and variable declarations involving the scalable types. Struct/class members and global variables already give an error. As this can be based on the current function target attributes, the error sometimes needs to be handled later than would otherwise if it was just based on the global target. Differential Revision: https://reviews.llvm.org/D131058
-
Jonas Devlieghere authored
SWIG allows you to partially disable thread support for a given function in Python with `nothreadallow`. This functionality is limited to Python, but until SWIG 4.1, it would silently ignore this for other languages, such as Lua. New versions of SWIG are more strict and therefore we need to guard this with `SWIGPYTHON`. For more details on the functionality, I recommend reading the commit message from 070a1d56.
-
Slava Zakharin authored
Added NoTerminator trait, and created a single builder that adds a block into the region at operation construction. Added custom assembly parser that automatically adds the body block, when the region appears to be empty to parseRegion(). Differential Revision: https://reviews.llvm.org/D141160
-
Matt Arsenault authored
At most this requires x86 as it's used in the run lines, it doesn't require a linux host.
-
Alan Zhao authored
This commit relands the patches for implementing P0960R3 and P1975R0, which describe initializing aggregates via a parenthesized list. The relanded commits are: * 40c52159 - P0960R3 and P1975R0: Allow initializing aggregates from a parenthesized list of values * c77a91bb - Remove overly restrictive aggregate paren init logic * 32d7aae0 - Fix a clang crash on invalid code in C++20 mode This patch also fixes a crash in the original implementation. Previously, if the input tried to call an implicitly deleted copy or move constructor of a union, we would then try to initialize the union by initializing it's first element with a reference to a union. This behavior is incorrect (we should fail to initialize) and if the type of the first element has a constructor with a single template typename parameter, then Clang will explode. This patch fixes that issue by checking that constructor overload resolution did not result in a deleted function before attempting parenthesized aggregate initialization. Additionally, this patch also includes D140159, which contains some minor fixes made in response to code review comments in the original implementation that were made after that patch was submitted. Co-authored-by:
Sheng <ox59616e@gmail.com> Fixes #54040, Fixes #59675 Reviewed By: ilya-biryukov Differential Revision: https://reviews.llvm.org/D141546
-
Tobias Gysi authored
This commit broke the flang build bots https://lab.llvm.org/buildbot#builders/175/builds/23560. This reverts commit a960547e.
-
Nikolas Klauser authored
Bumping down is significantly faster than bumping up. This is ABI breaking, but the ABI of `pmr::monotonic_buffer_resource` was only stabilized in this release cycle, so we can still change it. For a more detailed explanation why bumping down is better, see https://fitzgeraldnick.com/2019/11/01/always-bump-downwards.html. Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D141435
-
Nikolas Klauser authored
There are quite a few functions marked `[[gnu::const]]` inside the compiler. This patch adds `[[nodiscard]]` to libc++-provided overloads of these functions to match the diagnostics produced. Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D140855
-
Fraser Cormack authored
With opaque pointers, it is possible for EarlyCSE to encounter masked load/store intrinsics which access the same pointer value but with different incompatible types. These cannot form valid replacements (without explicit casting, which we don't yet do even for regular load/store instructions) so should be prevented. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D141613
-