- Mar 24, 2021
-
-
Shafik Yaghmour authored
-
Alexey Bataev authored
Added getPointersDiff function to LoopAccessAnalysis and used it instead direct calculatoin of the distance between pointers and/or isConsecutiveAccess function in SLP vectorizer to improve compile time and detection of stores consecutive chains. Part of D57059 Differential Revision: https://reviews.llvm.org/D98967
-
Rob Suderman authored
Lowers from tosa's pad op to the linalg equivalent for floating, integer, and quantized values. Differential Revision: https://reviews.llvm.org/D98990
-
River Riddle authored
[mlir][Pattern] Add better support for using interfaces/traits to match root operations in rewrite patterns To match an interface or trait, users currently have to use the `MatchAny` tag. This tag can be quite problematic for compile time for things like the canonicalizer, as the `MatchAny` patterns may get applied to *every* operation. This revision adds better support by bucketing interface/trait patterns based on which registered operations have them registered. This means that moving forward we will only attempt to match these patterns to operations that have this interface registered. Two simplify defining patterns that match traits and interfaces, two new utility classes have been added: OpTraitRewritePattern and OpInterfaceRewritePattern. Differential Revision: https://reviews.llvm.org/D98986
-
Chris Lattner authored
This provides a simplified way to implement 'matchAndRewrite' style canonicalization patterns for ops that don't need the full power of RewritePatterns. Using this style, you can implement a static method with a signature like: ``` LogicalResult AssertOp::canonicalize(AssertOp op, PatternRewriter &rewriter) { return success(); } ``` instead of dealing with defining RewritePattern subclasses. This also adopts this for a few canonicalization patterns in the std dialect to show how it works. Differential Revision: https://reviews.llvm.org/D99143 -
Fangrui Song authored
-
Matt Morehouse authored
Reviewed By: vitalybuka, eugenis Differential Revision: https://reviews.llvm.org/D98373
-
Nikita Popov authored
This fixes a regression reported on D99022: If a call has operand bundles, then the inaccessiblememonly attribute on the function will be ignored, as operand bundles can affect modref behavior in the general case. However, for assume operand bundles in particular this is not the case. Adjust getModRefBehavior() to always report inaccessiblememonly for assumes, regardless of presence of operand bundles.
-
Nikita Popov authored
-
Alexey Bataev authored
This reverts commit 065a14a1 to investigate and fix crash in SLP vectorizer.
-
Rob Suderman authored
Tiling operations are generic operations with modified indexing. Updated to to linalg lowerings to perform this lowering. Differential Revision: https://reviews.llvm.org/D99113
-
Vy Nguyen authored
Differential Revision: https://reviews.llvm.org/D99210
-
natashaknk authored
Adds lowerings for matmul and fully_connected. Only supports 2D tensors for inputs and weights, and 1D tensors for bias. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D99211
-
Alexey Bataev authored
Added getPointersDiff function to LoopAccessAnalysis and used it instead direct calculatoin of the distance between pointers and/or isConsecutiveAccess function in SLP vectorizer to improve compile time and detection of stores consecutive chains. Part of D57059 Differential Revision: https://reviews.llvm.org/D98967
-
Amara Emerson authored
This adds some missing legalizer tests, which uncovered a v2s64 selection test that wasn't working since there's no legalization or instruction for that.
-
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>
-