- Jan 12, 2023
-
-
David Spickett authored
The current doc has people just do "ninja lldb" which is not incorrect, it does build lldb. However it does not build lldb-server. So you can't just "lldb some-binary" and expect it to work. I've updated the instructions to reflect that most of the time you'll want both lldb and lldb-server. Though there is a use case for building just lldb. I'm assuming Mac OS (where you have debugserver) and if you only wanted to do remote debug. Fixes #59575 Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D140385
-
Sam McCall authored
Differential Revision: https://reviews.llvm.org/D141537
-
Haojian Wu authored
Per the discussion in https://github.com/llvm/llvm-project/issues/59916. Differential Revision: https://reviews.llvm.org/D141592
-
Michael Buch authored
This regressed with `e262b8f4`. Two issues here: 1. `:16x` is not a valid format specifier and we would crash when we encountered this log (which was the case in `TestCPPAccelerator.py`) 2. The third argument was missing curly braces so the log message itself was malformed.
-
Victor Komarov authored
Issue is described here: https://github.com/llvm/llvm-project/issues/59696 Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D140711
-
Nikita Popov authored
Dropped bitcasts result in dropped COPYs in MIR.
-
Nikita Popov authored
-
serge-sans-paille authored
This avoid rediscovering this table when reading each options, providing a sensible 2% speedup when processing and empty file, and a measurable speedup on typical workloads, see: This is optional, the legacy, on-the-fly, approach can still be used through the GenericOptTable class, while the new one is used through PrecomputedOptTable. https://llvm-compile-time-tracker.com/compare.php?from=4da6cb3202817ee2897d6b690e4af950459caea4&to=19a492b704e8f5c1dea120b9c0d3859bd78796be&stat=instructions:u Differential Revision: https://reviews.llvm.org/D140800
-
serge-sans-paille authored
Current implementation requires a copy of the initialization array to a vector to be able to modify their Values field. This is inefficient: it requires a large copy to update a value, while TableGen has all information to avoid this overwrite. Modify TableGen to emit the Values code and use it to perform the initialisation. The impact on performance is not amazing compared to the actual compilation, but still noticeable: https://llvm-compile-time-tracker.com/compare.php?from=d9ab3e82f30d646deff054230b0c742704a1cf26&to=f2b37fb65d5149f70b43d1801beb5239285a2a20&stat=instructions:u Differential Revision: https://reviews.llvm.org/D140699
-
Kiran Chandramohan authored
Recent changes to MLIR meant that Flang does not generate any debug line table information. This patch adds a pass that provides some foundation work with which basic line table debug info can be generated. A walk is performed on all the `func` ops in the module and they are decorated with a fusedLoc op that contains the debug metadata for the subroutine along with location information. Alternatives include populating this info during lowering or during FIR to LLVM Dialect conversion. Note: Patches in future will add -> more realistic debug info for types and other fields. -> driver flags to control generation of debug. Fixes #58634. Reviewed By: awarzynski, vzakhari Differential Revision: https://reviews.llvm.org/D137956 -
Jay Foad authored
Previously we considered this field to be either N-bit unsigned or N+1-bit signed, depending on the instruction. I think it's conceptually simpler to say that the field is always N+1-bit signed, but some instructions do not allow negative values. Differential Revision: https://reviews.llvm.org/D140883
-
Sebastian Neubauer authored
When adding llvm to a build with add_subdirectory, CMAKE_SOURCE_DIR refers to the source directory of the parent project. We want to use PROJECT_SOURCE_DIR instead. Differential Revision: https://reviews.llvm.org/D141521
-
Johannes Reifferscheid authored
This reverts commit 91181db6.
-
Johannes Doerfert authored
Reverts 2dc7c709 and instead repairs the unittest properly. The test was broken as that it used references to dead functions, assumed dead functions could reach code, assumed code would not be deleted, and did not pre-query all assertion queries. Arguably, the querry AAs don't make it easy to use them outside the attributor pipeline, maybe we just should not (or should fix them pessimistically). For now, the unittest is fixed.
-
OCHyams authored
This has been resolved for assignment tracking by the patch D140906 and others in the same stack.
-
Johannes Doerfert authored
Back with f3ad8cf0 we introduced a bug that caused us to skip callees when we replace uses. This is not sound since subsequent IR cleanup will assume replacement has happend. As such we created poison callees for a long while. The original intend of the check was to prevent call graph invalidation, however, we now properly check if the instructions (here the call) are inside the SCC or not.
-
Valentin Clement authored
As mentioned in section 7.3.2.3 note 7, The dynamic type of an unallocated allocatable object or a disassociated pointer is the same as its declared type. This patch adds two function to the runtime: - `PointerDeallocatePolymorphic` - `AllocatableDeallocatePolymorphic` These two functions take a DerivedTypeDesc pointer of the declared type. The lowering is updated accordingly to call these functions for polymorphic and unlimited polyrmophic entities. For unlimited polymorphic entities, the dynamic type is set to nullptr when the entity is on an unallocated or disassociated state. Reviewed By: PeteSteinfeld, klausler Differential Revision: https://reviews.llvm.org/D141519
-
OCHyams authored
This helps towards the effort to remove UndefValue from LLVM. Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D140906
-
Viktoriia Bakalova authored
[include-mapping] Fix parsing of html_book_20190607.zip (https://en.cppreference.com/w/File:html_book_20190607.zip). Skip entries that have been added to the index (C++20 symbols), but the corresponding pages for which have not been created yet. Differential Revision: https://reviews.llvm.org/D141509
-
OCHyams authored
Unlike D140903 this patch folds in treating an empty metadata address component of a dbg.assign the same as undef because it was already being treated that way in the AssignmentTrackingAnalysis pass. Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D141125
-
Balazs Benics authored
When the engine processes a store to a variable, it will eventually call `ExprEngine::processPointerEscapedOnBind()`. This function is supposed to invalidate (put the given locations to an escape list) the locations which we cannot reason about. Unfortunately, local static variables are also put into this list. This patch relaxes the guard condition, so that beyond stack variables, static local variables are also ignored. Differential Revision: https://reviews.llvm.org/D139534
-
Kadir Cetinkaya authored
LibPath discovered during InstallationDetection wasn't used anywhere. Moreover it actually resulted in discarding installations that don't have any `/lib` directory. This is causing troubles for our pipelines downstream, that want to perform syntax-only analysis on the sources. Differential Revision: https://reviews.llvm.org/D141467
-
isuckatcs authored
Before this patch the parameters mentioned in the title weren't handled by ODRHash, when a hash was generated for a template specialization. This patch adds these parameters to the hash, so that different template specializations will get different hashes in every case. Differential Revision: https://reviews.llvm.org/D141224
-
Guillaume Chatelet authored
This change is the last of a series to implement the discussion from https://reviews.llvm.org/D141134 to only keep one version of the functions.
-
Jens Massberg authored
Just specify the encoded bytes instead. Additionally delete insertion operator of raw_ostream for char8_t as it doesn't work as users might expect (Numbers and pointers are added to the stream instead of UTF-8 characters). Added a comment and instructions on how to use UTF-8 strings with raw_ostream. Differential Revision: https://reviews.llvm.org/D141392
-
Johannes Doerfert authored
In CGSCC mode we cannot delete internal library functions, esp. __kmpc_alloc_shared, or we trigger an assertion. While the assertion is probably too narrow, we avoid deleting those unused functions for now to unblock the AMDGPU buildbot.
-
Jean Perier authored
The methods of CallBuilder do need to belong to a class. This was made to avoid having to propagate generic lowering context (converter, symbol mappings, location and StatementContext). Packaging them together will actually make it harder to share the code for user and intrinsic elemental lowering (I plan to use C++ CRTP), and it is also misleading: one could think there is something going with the class state while lowering the function while there is not (and there should not be). Removes the class and turns the methods into static functions. Add a new CallContext class to solve the argument threading inconvenience. This contains no functional changes at all. Differential Revision: https://reviews.llvm.org/D141510
-
Jean Perier authored
Implement the visit of component refs in DesignatorBuilder. The ArrayRef code has to be updated a bit to cope with the case where the base is an array and the component is also an array. Improve the result type of array sections designators (only return a fir.box if the array section is not contiguous/has dynamic extent). This required exposing IsContiguous entry point for different front-end designator nodes (the implementation already existed, but was internal to check-expression.cpp). Differential Revision: https://reviews.llvm.org/D141470
-
Jannik Silvanus authored
Use the existing mechanism to change the data layout using callbacks. Before this patch, we had a callback type DataLayoutCallbackTy that receives a single StringRef specifying the target triple, and optionally returns the data layout string to be used. Module loaders (both IR and BC) then apply the callback to potentially override the module's data layout, after first having imported and parsed the data layout from the file. We can't do the same to fix invalid data layouts, because the import will already fail, before the callback has a chance to fix it. Instead, module loaders now tentatively parse the data layout into a string, wait until the target triple has been parsed, apply the override callback to the imported string and only then parse the tentative string as a data layout. Moreover, add the old data layout string S as second argument to the callback, in addition to the already existing target triple argument. S is either the default data layout string in case none is specified, or the data layout string specified in the module, possibly after auto-upgrades (for the BitcodeReader). This allows callbacks to inspect the old data layout string, and fix it instead of setting a fixed data layout. Also allow to pass data layout override callbacks to lazy bitcode module loader functions. Differential Revision: https://reviews.llvm.org/D140985
-
Nikita Popov authored
To preserve the previous semantics after D141386, adjust places that currently emit !range metadata to also emit !noundef metadata. This retains range violation as immediate undefined behavior, rather than just poison. Differential Revision: https://reviews.llvm.org/D141494
-
Nikita Popov authored
Make violation of !range, !nonnull and !align metadata return poison instead of causing immediate undefined behavior. This makes the behavior match that of the nonnull and align parameter and return value attributes. The previous behavior can be restored by additionally specifying the !noundef metadata, same as with parameters. Some benefits of this change are: * This is needed to fix https://github.com/llvm/llvm-project/issues/59888. Under current semantics, it is illegal to add !range annotations based on known bits. Unless we want to drop that optimization entirely, we need to change the !range semantics. * This allows preserving range/nonnull/align metadata on speculated loads. !noundef metadata needs to be dropped, but the poison-generating metadata can be retained. I don't think there are really disadvantages to the change (apart from the need to review and adjust optimizations for the new semantics), as the old behavior is still available via !noundef, so it should be strictly more flexible. Differential Revision: https://reviews.llvm.org/D141386
-
Johannes Reifferscheid authored
Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D141578
-
Dmitri Gribenko authored
We can't do offloading with libgomp, thus the test fails. This change explicitly chooses an OpenMP runtime library that is capable of offloading. This change is similar to https://github.com/llvm/llvm-project/commit/a5098e5f27badc3ba16533418accd2e17641e4e4.
-
Johannes Doerfert authored
The root cause seems to have expressed in two separate errors and isn't caught by any IR tests. Will be investigated.
-
Markus Böck authored
See https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618 for context Differential Revision: https://reviews.llvm.org/D141527
-
Markus Böck authored
See https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618 for context Differential Revision: https://reviews.llvm.org/D141526
-
Markus Böck authored
See https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618 for context Changes are mostly mechanical in nature. The code nevertheless became more expressive in a lot of places thanks to the use of the new getters! Differential Revision: https://reviews.llvm.org/D141501
-
James Le Cuirot authored
clang-tblgen is required to cross-compile clang itself. Unlike before, most of the infrastructure is in place to do this now, and the only thing preventing it is LLVM_BUILD_UTILS, which doesn't apply to Clang. I thought about changing this to ${project}_BUILD_UTILS and adding a CLANG_BUILD_UTILS option, but there seems little point for just one tool. Instead, it checks whether clang-tblgen was explicitly requested in LLVM_DISTRIBUTION_COMPONENTS, which is good enough for Gentoo and other distributions. Closes https://github.com/llvm/llvm-project/issues/20282. Differential Revision: https://reviews.llvm.org/D141092 -
Johannes Doerfert authored
The externalization was always a stopgap solution. One of the drawbacks is that it is very conservative no matter if we actually require the functions at the end of the pass. The new concept is more generic and properly integrates into the dependence graph. Whenever we might need a function, it has a "virtual use" that cannot be analyzed. If we do not because of some AA state, there will be a dependence to ensure state changes trigger revisits of uses, including a potentially new virtual use.
-
Johannes Doerfert authored
-