- Jul 21, 2022
-
-
LLVM GN Syncbot authored
-
Anubhab Ghosh authored
MapperJITLinkMemoryManager supports executor memory management using any implementation of MemoryMapper to do the transfer such as InProcessMapper or SharedMemoryMapper. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D129495
-
Slava Zakharin authored
This reverts commit 4fbd1d6c.
-
Lang Hames authored
Since 67220c2a empty SPSSequence<char>s deserialize to default-constructed ArrayRef<char>s, which have a null data field. We need to check for this to avoid memcpy'ing from a nullptr. This should fix the bot failure in https://lab.llvm.org/buildbot/#/builders/85/builds/9323
-
Steven Wu authored
The heuristic used to determine where the arclite libraries are to be found was based on the path of the `clang` executable. However, in some scenarios the `clang` executable is within a toolchain that does not have arclite. When this happens, derive the arclite paths from the sysroot option. This allows Clang to correctly derive the arclite directory in, e.g., Swift CI, using similar logic to what the Swift driver has been doing for several years. Patched by Doug Gregor. Reviewed By: keith Differential Revision: https://reviews.llvm.org/D130205
-
Slava Zakharin authored
Flang algebraic simplification pass will run algebraic simplification rewrite patterns for Math/Complex/etc. dialects. It is enabled under opt-for-speed optimization levels (i.e. for O1/O2/O3; Os/Oz will not enable it). With this change the FIR/MLIR optimization pipeline becomes affected by the -O* optimization level switches. Until now these switches only affected the middle-end and back-end. Differential Revision: https://reviews.llvm.org/D130035
-
River Riddle authored
This allows for automatically inserting expected checks for parser and verifier diagnostics, which simplifies the workflow when building new dialect constructs or extending existing ones. Differential Revision: https://reviews.llvm.org/D130152
-
Johannes Doerfert authored
We were quite conservative when it came to PHI node handling to avoid recursive reasoning. Now we check more direct if we have seen a PHI already or not. This allows non-recursive PHI chains to be handled. This also exposed a bug as we did only model the effect of one loop traversal. `phi_no_store_3` has been adapted to show how we would have used `undef` instead of `1` before. With this patch we don't replace it at all, which is expected as we do not argue about loop iterations (or alignments).
-
Johannes Doerfert authored
If we only have exact accesses we should never require the bit-pattern to be uniform (in this case 0). Only a non-exact access should force us to require only 0 values.
-
Alexander Shaposhnikov authored
Relax the check to allow evaluation of atomic stores (but still skip volatile stores). Test plan: 1/ ninja check-llvm check-clang 2/ Bootstrapped LLVM/Clang pass tests Differential revision: https://reviews.llvm.org/D129841
-
Teresa Johnson authored
Add basic support for the MemProf metadata (!memprof and !callsite) which was initially described in "RFC: IR metadata format for MemProf" (https://discourse.llvm.org/t/rfc-ir-metadata-format-for-memprof/59165). The bulk of the patch is verification support, along with some tests. There are a couple of changes to the format described in the original RFC: Initial measurements suggested that a tree format for the stack ids in the contexts would be more efficient, but subsequent evaluation with large applications showed that in fact the cost of the additional metadata nodes required by this deduplication scheme overwhelmed the benefit from sharing stack id nodes. Therefore, the implementation here and in follow on patches utilizes a simpler scheme of lists of stack id integers in the memprof profile contexts and callsite metadata. The follow on matching patch employs context trimming optimizations to reduce the cost. Secondly, instead of verbosely listing all profiled fields in each profiled context (memory info block or MIB), and deferring the interpretation of the profile data, the profile data is evaluated and converted into string tags specifying the behavior (e.g. "cold") during profile matching. This reduces the verbosity of the profile metadata, and allows additional context trimming optimizations. As a result, the named metadata schema description is also no longer needed. Differential Revision: https://reviews.llvm.org/D128141
-
Schrodinger ZHU Yifan authored
Fixes https://github.com/llvm/llvm-project/issues/56290: when an ifunc is aliased in LTO, clang will attempt to create an alias summary; however, as ifunc is not included in the module summary, doing so will lead to crash. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D129009
-
Matt Arsenault authored
This was sometimes failing with "input module no longer interesting after counting chunks" assert.
-
Craig Topper authored
This is the form we get for (zext (setne (and X 1<<C))). We only had bexti patterns for the alternative form (and (srl X, C), 1).
-
Craig Topper authored
This will get converted to (srl (and X, 1<<C), C) which we need to isel to bexti.
-
Tanyo Kwok authored
This patch adds a new function mlirDenseElementsAttrFloat16Get(), which accepts the shaped type, the number of Float16 values, and a pointer to an array of Float16 values, each of which is a uint16_t value. This commit is repeating https://reviews.llvm.org/D123981 + #761 but for Float16 Differential Revision: https://reviews.llvm.org/D130069
-
Slava Gurevich authored
Improve LLDB reliability by fixing the following "uninitialized variables" static code inspection warnings from scan.coverity.com: 1094796 1095721 1095728 1095737 1095741 1095756 1095779 1095789 1095805 1214552 1229457 12324753 1274006 1274010 1293427 1364800 1364802 1364804 1364812 1364816 1374902 1374909 1384975 1399312 1420451 1431704 1454230 1454554 1454615 1454579 1454594 1454832 1457759 1458696 1461909 1467658 1487814 1487830 1487845 Differential Revision: https://reviews.llvm.org/D130098
-
Philip Reames authored
These appear to just be changes in temporary identifiers; bit suprising we have so many.
-
Jakub Kuderski authored
This is to improve the consistency within the SPIR-V dialect and to make op names a bit shorter. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D130194
-
Joseph Huber authored
The new driver primarily allows us to support RDC-mode compilations with proper linking. This is not needed for non-RDC mode compilation, but we still would like the new driver to be able to handle this mode so we can transition away from the old driver in the future. This patch adds the necessary code to support creating a fatbinary for HIP code generation. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D129784
-
Konstantin Varlamov authored
The return type was specified incorrectly for proxy iterators that define `reference` to be a class that implicitly converts to `value_type`. `__iter_move` would end up returning an object of type `reference` which would then implicitly convert to `value_type`; thus, the function will return a `value_type&&` rvalue reference to the local temporary. Differential Revision: https://reviews.llvm.org/D130197
-
Michał Górny authored
Disable the code responsible for preparing object libraries for the driver and filling LLVM_DRIVER_* properties if LLVM_TOOL_LLVM_DRIVER_BUILD is disabled. These properties are consumed only by tools/llvm-driver, and so they are not used at all if LLVM_TOOL_LLVM_DRIVER_BUILD is not enabled. At the same time, the related code breaks standalone clang builds against LLVM built with LLVM_LINK_LLVM_DYLIB. Differential Revision: https://reviews.llvm.org/D130158
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D128146
-
Joseph Huber authored
This patch makes libomptarget depend on LLVM libraries to be built. The reason for this is because we already have an implicit dependency on LLVM headers for ELF identification and extraction as well as an optional dependenly on the LLVMSupport library for time tracing information. Furthermore, there are changes in the future that require using more LLVM libraries, and will heavily simplify some future code as well as open up the large amount of useful LLVM libraries to libomptarget. This will make "standalone" builds of `libomptarget' more difficult for vendors wishing to ship their own. This will require a sufficiently new version of LLVM to be installed on the system that should be picked up by the existing handling for the implicit headers. The things this patch changes are as follows: - `libomptarget.so` links against LLVMSupport and LLVMObject - `libomptarget.so` is a symbolic link to `libomptarget.so.15` - If using a shared library build, user applications will depend on LLVM libraries as well - We can now use LLVM resources in Libomptarget. Note that this patch only changes this to apply to libomptarget itself, not the plugins. Additional patches will be necessary for that. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D129875 -
Arthur Eubanks authored
-
River Riddle authored
This also gets used for the vscode extension documentation.
-
River Riddle authored
These characters are annoying in that they accept completions that weren't intended, causing user frustration.
-
Philip Reames authored
Noticed via inspection; to my knowledge, impossible to hit today. In theory, we could have a fixed stride check be analyzed, then a scalable one. With the old code, the scalable one would be silently dropped, and the runtime guard would go ahead with only the fixed one. This would be a miscompile.
-
Konstantin Varlamov authored
Reviewed By: #libc, huixie90, ldionne Differential Revision: https://reviews.llvm.org/D130070
-
Keith Smiley authored
Similar to cstrings ld64 always deduplicates cfstrings. This was already being done when enabling ICF, but for debug builds you may want to flip this on if you cannot eliminate your instances of this, so this change makes --deduplicate-literals also apply to cfstrings. Differential Revision: https://reviews.llvm.org/D130134
-
Xiang Li authored
A new option -I is added for dxc mode. It is just alias of existing cc1 -I option. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D128462
-
Craig Topper authored
If we are right shifting a multiply by a negated power of 2 where the power of 2 is the same as the shift amount, we can replace with a negate followed by an And. New tests have not been committed yet but the patch shows the diffs. Let me know if you want any changes or additional tests. Differential Revision: https://reviews.llvm.org/D130103
-
Craig Topper authored
-
Arthur Eubanks authored
-
Hubert Tong authored
https://lab.llvm.org/buildbot/#/builders/214/builds/2425 reports these tests as XPASS.
-
Arthur Eubanks authored
Issue #38784 seems to be fixed and removing these doesn't cause any issues.
-
Joe Nash authored
VOPC DPP should not be formed when the row_mask and bank_mask are not 0xf (full) because the resulting VOP DPP would have different semantics than the MOV DPP followed by VOP. Existing checks in GCNDPPCombine cover this case but for different reasons, so assert the property for future-proofing. Reviewed By: nhaehnle Differential Revision: https://reviews.llvm.org/D130101
-
Mark de Wever authored
-
Alex Bradbury authored
Due to the late expansion of the compare exchange sequences, there's scope for improving codegen by folding the branches into the cmpxchg loop (avoiding a branch-to-branch).
-