- Aug 05, 2020
-
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D85273
-
Georgii Rymar authored
Currently, we only test the `--stackmap` option here: https://github.com/llvm/llvm-project/blob/master/llvm/test/Object/stackmap-dump.test it uses a precompiled MachO binary currently and I've found no tests for this option for ELF. The implementation also has issues. For example, it might assert on a wrong version of the .llvm-stackmaps section. Or it might crash on an empty or truncated section. This patch introduces a new tools/llvm-readobj/ELF test file as well as implements a few basic checks to catch simple crashes/issues It also eliminates `unwrapOrError` calls in `printStackMap()`. Differential revision: https://reviews.llvm.org/D85208
-
Benjamin Kramer authored
This is used in the wild, don't break compatibility for no good reason. https://github.com/google/pprof/blob/master/internal/binutils/addr2liner_llvm.go
-
Jordan Rupprecht authored
This came up during the review for D67656. It's nice but also subtle, so documenting it as an idiom will make tests easier to understand. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D68061
-
Luboš Luňák authored
This reverts commit 21f142ce.
-
Luboš Luňák authored
-
Frederik Gossen authored
The extent tensor type is a `tensor<?xindex>` that is used in the shape dialect. To facilitate the use of this type when working with the shape dialect, we expose the helper function for its construction. Differential Revision: https://reviews.llvm.org/D85121
-
Pierre Gousseau authored
headers. NFC. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D84945
-
Tatyana Krasnukha authored
MSVC reports "switch statement contains 'default' but no 'case' labels". Suppress, as this was intended behavior.
-
Tatyana Krasnukha authored
PyUnicode_GetSize is deprecated since Python version 3.3.
-
Tatyana Krasnukha authored
Gtest 1.8.0 uses tr1::tuple which is deprecated on MSVC. We have to force it off to avoid the compiler warnings, which will become errors after switching on C++17 (https://devblogs.microsoft.com/cppblog/c17-feature-removals-and-deprecations).
-
David Turner authored
The code in SectionMemoryManager.cpp unnecessarily maps read-only data sections with the READ+EXECUTE flags. This is undesirable from a security stand-point. Moreover, on the Fuchsia platform, which is now very strict about mapping pages with the EXECUTE permission, this simply fails, because the section's pages were initially allocated with only the READ+WRITE flags. A more detailed description of the issue can be found in this public SwiftShader bug: https://issuetracker.google.com/issues/154586551 This patch just restrict the mapping to the READ flag for ROData sections. Code sections are still mapped with READ+EXECUTE as expected. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D78574
-
Sander de Smalen authored
This fixes an issue triggered by the following code, where emitEpilogue got confused when trying to restore the SVE registers after the call, whereas the call to bar() is implemented as a TCReturn: int non_sve(); int sve(svint32_t x) { return non_sve(); } Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D84869 -
George Mitenkov authored
Updated the documentation with new MLIR LLVM types for vectors, pointers, arrays and structs. Also, changed remaining tabs to spaces. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D85277
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D84518
-
Jay Foad authored
-
Jay Foad authored
Without this it would fail to select on subtargets that have 16-bit instructions. Differential Revision: https://reviews.llvm.org/D84517
-
Andrzej Warzynski authored
Based on https://reviews.llvm.org/D84022 with additional changes to maintain out-of-tree builds. Original commit message: Currently the binaries are output directly into the bin subdirectory of the build directory. This doesn't work correctly with multi-config generators which should output the binaries into <CONFIG_NAME>/bin instead. The original patch was implemented by David Truby and the additional changes added here were also proposed by David Truby. Differential Revision: https://reviews.llvm.org/D85078/ Co-authored-by:
David Truby <david.truby@arm.com>
-
Luboš Luňák authored
Differential Revision: https://reviews.llvm.org/D85107
-
Luboš Luňák authored
Between the time it was created and it was pushed upstream, 99451b44 has moved the existing gui gui tests to lldb/test, so move this one too. And update it to contain TestGuiBasic.py changes since the time when it was based on that test. Differential Revision: https://reviews.llvm.org/D85106
-
Luboš Luňák authored
It says it toggles breakpoints, so if one already exists on the selected location, remove it instead of adding. Differential Revision: https://reviews.llvm.org/D85098
-
Luboš Luňák authored
Also simplify the code for going forward. Differential Revision: https://reviews.llvm.org/D85089
-
Luboš Luňák authored
Differential Revision: https://reviews.llvm.org/D85088
-
Luboš Luňák authored
My openSUSE 15.2 has /usr/include/curses.h as a symlink to /usr/include/ncurses/curses.h , but there's no such symlink for panel.h . Prefer using /usr/include/ncurses for the includes if they are found there by the CMake check. Differential Revision: https://reviews.llvm.org/D85219
-
Eduardo Caldas authored
This was the last binary operator that we supported but didn't have any test coverage. The recent fix in a crash in member pointers allowed us to add this test. Differential Revision: https://reviews.llvm.org/D85185
-
George Mitenkov authored
This patch introduces a conversion of `spv.loop` to LLVM dialect. Similarly to `spv.selection`, op's control attributes are not mapped to LLVM yet and therefore the conversion fails if the loop control is not `None`. Also, all blocks within the loop should be reachable in order for conversion to succeed. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D84245
-
Yevgeny Rouban authored
Fixed the commit c35585e2. This is a fix for the bug 46098 where PostDominatorTree is unexpectedly changed by InstCombine's branch swapping transformation. This patch fixes PostDomTree builder. While looking for the furthest away node in a reverse unreachable subgraph this patch runs DFS with successors in their function order. This order is indifferent to the order of successors, so is the furthest away node. Reviewers: kuhar, nikic, lebedev.ri Differential Revision: https://reviews.llvm.org/D84763
-
George Mitenkov authored
Updated the documentation for SPIR-V to LLVM conversion, particularly: - Added a section on control flow - Added a section on memory ops - Added a section on GLSL ops Also, moved `spv.FunctionCall` to control flow section. Added a new section that will be used to describe the modelling of runtime-related ops. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D84734
-
Martin Storsjö authored
This can practically easily be a product of combining strings with macros in resource files. This fixes https://github.com/mstorsjo/llvm-mingw/issues/140. As string literals within llvm-rc are handled as StringRefs, each referencing an uninterpreted slice of the input file, with actual interpretation of the input string (codepage handling, unescaping etc) done only right before writing them out to disk, it's hard to concatenate them other than just bundling them up in a vector, without rearchitecting a large part of llvm-rc. This matches how the same already is supported in VersionInfoValue, with a std::vector<IntOrString> Values. MS rc.exe only supports concatenated string literals in version info values (already supported), string tables (implemented in this patch) and user data resources (easily implemented in a separate patch, but hasn't been requested by any end user yet), while GNU windres supports string immediates split into multiple strings anywhere (e.g. like (100 ICON "myicon" ".ico"). Not sure if concatenation in other statements actually is used in the wild though, in resource files normally built by GNU windres. Differential Revision: https://reviews.llvm.org/D85183
-
Juneyoung Lee authored
This is a simple patch that makes freeze as a zero-cost instruction, as bitcast already is. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D85023
-
Juneyoung Lee authored
-
Mehdi Amini authored
This reverts commit c35585e2. The MLIR is broken with this patch, reproduce by adding -DLLVM_ENABLE_PROJECTS=mlir to the cmake configuration and build `ninja tools/mlir/lib/IR/CMakeFiles/obj.MLIRIR.dir/Dominance.cpp.o`
-
Evgeniy Brevnov authored
This is one more NFC part extracted from D79485. Normal and SCC based loops have very different representation and have to be handled separatly each time we deal with loops. D79485 is going to introduce much more extensive use of loops what will be problematic with out this change. Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D84838
-
Yevgeny Rouban authored
This is another fix for the bug 46098 where PostDominatorTree is unexpectedly changed by InstCombine's branch swapping transformation. This patch fixes PostDomTree builder. While looking for the furthest away node in a reverse unreachable subgraph this patch runs DFS with successors in their function order. This order is indifferent to the order of successors, so is the furthest away node. Reviewers: kuhar, nikic, lebedev.ri Differential Revision: https://reviews.llvm.org/D84763
-
Matt Arsenault authored
-
Matt Arsenault authored
This cannot be a vector of pointers, so using getScalarSizeInBits just added a bit extra noise.
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Zequan Wu authored
Fix the bug: https://bugs.llvm.org/show_bug.cgi?id=36979. It also fixes this bug: https://bugs.llvm.org/show_bug.cgi?id=35404, which I think is caused by the same problem. Differential Revision: https://reviews.llvm.org/D85036
-
Vitaly Buka authored
Missing file for the previous patch
-