- Mar 24, 2021
-
-
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.
-
Andrzej Warzynski authored
* Added a sanity check with `Clang_FOUND` to verify that find_package succeeded * Made sure that find_package won't use any of CMake's standard paths to guarantee that only the path provided with CLANG_DIR is considered (implemented through NO_DEFAULT_PATH) * Made the call to get_filename_component more explicit (so that it is clear what the base directory is) * Updated comments to clarify what CLANG_DIR means Differential Revision: https://reviews.llvm.org/D99088
-
Frederik Gossen authored
This reverts commit 5f8acd4f.
-
Andrea Di Biagio authored
Before this patch, register writes were always invalidated by the RegisterFile at instruction commit stage. So, the RegisterFile was often losing the knowledge about the `execute cycle` of writes already committed. While this was not problematic for non-delayed reads, this was sometimes leading to inaccurate read latency computations in the presence of negative read-advance cycles. This patch fixes the issue by changing how the RegisterFile component internally keeps track of the `execute cycle` information of each write. On every instruction executed, the RegisterFile gets notified by the RetireStage, so that it can internally record the execute cycle of each executed write. The `execute cycle` information is stored within WriteRef itself, and it is not invalidated when the write is committed.
-
Roman Lebedev authored
We clone bonus instructions to the end of the predecessor block, and then use `SSAUpdater::RewriteUseAfterInsertions()`. But that only deals with the cases where the use-to-be-rewritten are either in different block from the def, or come after the def. But in some loop cases, the external use may be in the beginning of predecessor block, before the newly cloned bonus instruction. `SSAUpdater::RewriteUseAfterInsertions()` does not deal with that. Notably, the external use can't happen to be both in the same block and *after* the newly-cloned instruction, because of the fold preconditions. To properly handle these cases, when the use is in the same block, we should instead use `SSAUpdater::RewriteUse()`. TBN, they do the same thing for PHI users. Fixes https://bugs.llvm.org/show_bug.cgi?id=49510 Likely Fixes https://bugs.llvm.org/show_bug.cgi?id=49689
-
Timm Bäder authored
This line has a TODO comment, but the answer to it seems to be "no" given that clang itself uses attributes on @try statements in its tests. This ProhibitAttributes() statement is also dead code since ProhibitAttributs() does not handle GNU attributes at the moment but those are the only attributes valid in objc. Differential Revision: https://reviews.llvm.org/D97371
-
Stefan Gränitz authored
This reverts commit 61974268269f96b672a50eac40a5a8eeb4acd6d3.
-
Fraser Cormack authored
This patch builds upon the initial BUILD_VECTOR work introduced in D98700. It further optimizes the lowering of BUILD_VECTOR by using VSELECT operations to effectively insert repeated elements into the vector with relatively few instructions. This allows us to optimize more BUILD_VECTORs without significantly increasing the size of the generated code. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D98969
-
Sanjay Patel authored
2nd try (original: 27ae17a6) with fix/test for crash. We must make sure that TTI is available before trying to use it because it is not required (might be another bug). Original commit message: This is one step towards solving: https://llvm.org/PR49336 In that example, we disregard the recommended usage of builtin_expect, so an expensive (unpredictable) branch is folded into another branch that is guarding it. Here, we read the profile metadata to see if the 1st (predecessor) condition is likely to cause execution to bypass the 2nd (successor) condition before merging conditions by using logic ops. Differential Revision: https://reviews.llvm.org/D98898
-