- Mar 24, 2021
-
-
Craig Topper authored
This select of ctpop with 0 pattern can get left behind after loop idiom recognize converts a loop to ctpop. LLVM 10 was able to optimize this, but LLVM 11 and later is not. The difference seems to be that some select transforms are now limited based on canCreateUndefOrPoison. Teaching canCreateUndefOrPoison about ctpop restores the LLVM 10 codegen. Differential Revision: https://reviews.llvm.org/D99207
-
Petr Hosek authored
Rather than including libc++ include dir, use the cxx-headers target. Differential Revision: https://reviews.llvm.org/D98367
-
Matt Morehouse authored
The function works like MapDynamicShadow, except that it creates aliased memory to the right of the shadow. The main use case is for HWASan aliasing mode, which gets fast IsAlias() checks by exploiting the fact that the upper bits of the shadow base and aliased memory match. Reviewed By: vitalybuka, eugenis Differential Revision: https://reviews.llvm.org/D98369
-
Vy Nguyen authored
Revert "Revert "Revert "Revert "Revert "Revert "[lld-macho] Implement -dependency_info (partially - more opcodes needed)"""""" This reverts commit 4876ba5b. Third-attemp relanding D98559, new change: - explicitly cast enum to underlying type to avoid ambiguity (workaround to clang's bug).
-
Louis Dionne authored
-
Peter Collingbourne authored
Differential Revision: https://reviews.llvm.org/D99103
-
Arthur O'Dwyer authored
Review D88220 turns out to have some pretty severe bugs, but I *think* this patch fixes them. Paper P1825 is supposed to enable implicit move from "non-volatile objects and rvalue references to non-volatile object types." Instead, what was committed seems to have enabled implicit move from "non-volatile things of all kinds, except that if they're rvalue references then they must also refer to non-volatile things." In other words, D88220 accidentally enabled implicit move from lvalue object references (super yikes!) and also from non-object references (such as references to functions). These two cases are now fixed and regression-tested. Differential Revision: https://reviews.llvm.org/D98971
-
Arthur O'Dwyer authored
My attempts to play around with the old graph_header_deps.py were mostly fruitless; I needed to modify it in various ways to make it work, and then even when I got it working, it generated pretty ugly graphs. Old graph_header_deps.py (after my local changes to simplify the usage) (producing https://i.imgur.com/zATrsaP.jpg ) mkdir foo time ./graph_header_deps.py --libcxx-only -o foo --clang-command ~/llvm-project/build/bin/clang++ dot -Tpng < foo/all_headers.dot > old.png file old.png real 0m37.453s old.png: PNG image data, 25882 x 3035, 8-bit/color RGBA, non-interlaced New graph_header_deps.py (producing https://i.imgur.com/ZU0G52U.png ) time ./graph_header_deps.py | dot -Tpng > new.png file new.png real 0m1.063s new.png: PNG image data, 6162 x 1344, 8-bit/color RGBA, non-interlaced Differential Revision: https://reviews.llvm.org/D99124
-
Fangrui Song authored
`check-lsan` passed on an aarch64-*-linux machine. Unsupport `many_tls_keys_pthread.cpp` for now: it requires GetTls to include `specific_1stblock` and `specific` in `struct pthread`. Differential Revision: https://reviews.llvm.org/D98985
-
Louis Dionne authored
-
Alex Zinenko authored
-
Jonas Devlieghere authored
Only look for symbols with the ThinLTO suffix if we fail to find the symbol.
-
Tony authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D99196
-
Nicolas Vasilache authored
This revision introduces proper backward slice computation during the hoisting of PadTensorOp. This allows hoisting padding even across multiple levels of tiling. Such hoisting requires the proper handling of loop bounds that may depend on enclosing loop variables. Differential revision: https://reviews.llvm.org/D98965
-
Paul Robinson authored
This was added in LLVM 7.0 but without help text or other docs. Differential Revision: https://reviews.llvm.org/D98873
-
Marek Kurdej authored
Left to finish P0482: * <cuchar> header. * Parts of <memory_resource> concerning char8_t. Also, tests for hash<pmr::*string>. Reviewed By: ldionne, #libc, Quuxplusone Differential Revision: https://reviews.llvm.org/D99184
-
Marek Kurdej authored
-
Siva Chandra authored
This is possible as the default libc build now works under runtimes build. Differential Revision: https://reviews.llvm.org/D99101
-
Adrian Prantl authored
DWARFExpression implements the DWARF2 expression model that left ambiguity on whether the result of an expression was a value or an address. This patch implements the DWARF location description model introduces in DWARF 4 and sets the result Value's kind accordingly, if the expression comes from a DWARF v4+ compile unit. The nomenclature is taken from DWARF 5, chapter 2.6 "Location Descriptions". Differential Revision: https://reviews.llvm.org/D98996
-
Alex Zinenko authored
This is an assumption that is made in numerous places in the code. In particular, in the code generated by mlir-tblgen for operand/result accessors in ops with attr-sized operand or result lists. Make sure to verify this assumption. Note that the operation traits are verified before running the custom op verifier, which can expect the trait verifier to have passed, but some traits may be verified before the AttrSizedOperand/ResultTrait and should not make such assumptions. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D99183
-
Med Ismail Bennani authored
This patch introduces Scripted Processes to lldb. The goal, here, is to be able to attach in the debugger to fake processes that are backed by script files (in Python, Lua, Swift, etc ...) and inspect them statically. Scripted Processes can be used in cooperative multithreading environments like the XNU Kernel or other real-time operating systems, but it can also help us improve the debugger testing infrastructure by writting synthetic tests that simulates hard-to-reproduce process/thread states. Although ScriptedProcess is not feature-complete at the moment, it has basic execution capabilities and will improve in the following patches. rdar://65508855 Differential Revision: https://reviews.llvm.org/D95713 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
In order to facilitate the writting of Scripted Processes, this patch introduces a `ScriptedProcess` python base class in the lldb module. The base class holds the python interface with all the - abstract - methods that need to be implemented by the inherited class but also some methods that can be overwritten. This patch also provides an example of a Scripted Process with the `MyScriptedProcess` class. rdar://65508855 Differential Revision: https://reviews.llvm.org/D95712 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch adds a ScriptedProcess interface to the ScriptInterpreter and more specifically, to the ScriptInterpreterPython. This interface will be used in the C++ `ScriptProcess` Process Plugin to call the script methods. At the moment, not all methods are implemented, they will upstreamed in upcoming patches. This patch also adds helper methods to the ScriptInterpreter to convert `SBAPI` Types (SBData & SBError) to `lldb_private` types (DataExtractor & Status). rdar://65508855 Differential Revision: https://reviews.llvm.org/D95711 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This patch adds a new command options to the CommandObjectProcessLaunch for scripted processes. Among the options, the user need to specify the class name managing the scripted process. The user can also use a key-value dictionary holding arbitrary data that will be passed to the managing class. This patch also adds getters and setters to `SBLaunchInfo` for the class name managing the scripted process and the dictionary. rdar://65508855 Differential Review: https://reviews.llvm.org/D95710 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Nancy Wang authored
This patch is to fix lit test case failure relate to alignment, on z/OS, maximum alignment value for 64 bit mode is 16 and also fixed clang/test/Layout/itanium-union-bitfield.cpp, attribute ((aligned(4))) is needed for bit-field member in Union for z/OS because single bit-field has one byte alignment, this will make sure size and alignment will be correct value on z/OS. Differential Revision: https://reviews.llvm.org/D98793
-
Matt Morehouse authored
The main use case for this change is HWASan aliasing mode, which premaps the alias space adjacent to the dynamic shadow. With this change, the primary allocator can allocate from the alias space instead of a separate region. Reviewed By: vitalybuka, eugenis Differential Revision: https://reviews.llvm.org/D98293
-
Jay Foad authored
A BranchInst is always the terminator of its containing BasicBlock.
-
Nathan James authored
In https://reviews.llvm.org/D72948 This was enabled for all MSVC but reverted as it was determined not to work on some 2017 versions. The issue is assumed to be fixed on 2019 so enable for 2019 and newer. Some testing could be done to determine which version of MSVC 2017 support this feature but its safer right now to leave it at 2019. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D98809
-
Nathan James authored
Saves having to manually deallocate storage and keeps InnerArgs will have good cache locality. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D99106
-
Arnamoy Bhattacharyya authored
Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D97080
-
Martin Storsjö authored
CMAKE_STATIC_LIBRARY_PREFIX affects the naming of all static libs (in MSVC configurations), including c++experimental, which only is produced as static regardless of LIBCXX_ENABLE_STATIC. Differential Revision: https://reviews.llvm.org/D99176
-
Andrzej Warzynski authored
This is used for out-of-tree Flang builds when FLANG_BUILD_NEW_DRIVER is set.
-
- Mar 23, 2021
-
-
Joe Nash authored
NFC. Extract IsShrinkable into a helper function, and make Subtarget a member variable. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D99099 Change-Id: If4bc97a88a9ae4eb1df47e717345d46a6ed515bf
-
Craig Topper authored
Previously we used selectImm for RV64 and isel patterns for RV32. This should be NFC, but will allow RV32 and RV64 to share improvements in the future. For example, it might be useful to use BSETI from Zbs to make single bit constants. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D98877
-
Jay Foad authored
Coyp SchedRW from pseudos to real instructions so that llvm-mca has access to it. This is NFC for normal compiler codegen, which schedules pseudos not real instructions. Add an llvm-mca test for some high latency double-precision instructions as a smoke test. Differential Revision: https://reviews.llvm.org/D99187
-
Stefan Gränitz authored
Next attempt to prevent PowerPC/s390x/etc. failures when landing D98931.
-
Sanjay Patel authored
This doesn't change anything currently, but as discussed in D98981 and D98152, some tests may fail to vectorize because the cost model becomes more accurate as we switch over to using min/max intrinsics.
-
Florian Hahn authored
This makes the test more robust with respect to when LV checks if the floating point instructions in a loop can be vectorized.
-
Roman Lebedev authored
`FoldBranchToCommonDest()` has a certain budget (`-bonus-inst-threshold=`) for bonus instruction duplication. And currently it calculates the cost as-if it will actually duplicate into each predecessor. But ignoring the budget, it won't always duplicate into each predecessor, there are some correctness and profitability checks. So when calculating the cost, we should first check into which blocks will we *actually* duplicate, and only then use that block count to do budgeting.
-
Roman Lebedev authored
We should not count the cost of duplication into predecessors into which we won't ultimately duplicate.
-