- Jan 25, 2022
-
-
River Riddle authored
-
Shraiysh Vaishay authored
This patch supports the atomic construct (capture) following section 2.17.7 of OpenMP 5.0 standard. Also added tests for the same. Reviewed By: peixin, kiranchandramohan Differential Revision: https://reviews.llvm.org/D115851
-
Liu, Chen3 authored
Differential Revision: https://reviews.llvm.org/D118103
-
Max Kazantsev authored
This patch adds support for implication inference logic for the following pattern: ``` lhs < (y >> z) <= y, y <= rhs --> lhs < rhs ``` We should be able to use the fact that value shifted to right is not greater than the original value (provided it is non-negative). Differential Revision: https://reviews.llvm.org/D116150 Reviewed-By: apilipenko
-
River Riddle authored
These used to be covered transitively, but now need to be explicit.
-
Uday Bondhugula authored
This is a pretty important debugging option to stay hidden. Also, improve its cmd-line description; the current description gives no hint that this is the one to use to have locations printed inline. Out-of-line locations are also unproductive to work with in many cases where the locations are actually compact, which is also why this option should be more visible. This revision doesn't change the default on it though. Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D117186
-
River Riddle authored
These used to be covered transitively, but now need to be explicit.
-
River Riddle authored
These used to be covered transitively, but now need to be explicit.
-
Jordan Rupprecht authored
I believe this is due to D117839, D117848, maybe others. Latest build failure: https://buildkite.com/llvm-project/upstream-bazel-rbe/builds/18053
-
River Riddle authored
This was missed in a70aa7bb.
-
Mehdi Amini authored
The pass moved from mlir.transforms to the Memref dialect.
-
River Riddle authored
This was missed when moveLoopInvariantCode was added.
-
Min-Yih Hsu authored
Put test cases of each instruction category into their own files. NFC.
-
Ahmed Bougacha authored
This matches the actual runtime function more closely. I considered also renaming both RetainRV/UnsafeClaimRV to end with "ARV", for AutoreleasedReturnValue, but there's less potential for confusion there.
-
Ahmed Bougacha authored
-
River Riddle authored
A lot of dialects have dependencies that are unnecessary, either because of copy/paste of files when creating things or some other means. This commit cleans up a bunch of the simple ones: * Copy/Paste or missed during refactoring Most of the dependencies cleaned up here look like copy/paste errors when creating new dialects/transformations, or because the dependency wasn't removed during a refactoring (e.g. when splitting the standard dialect). * Unnecessary hard coding of constant operations in matchers There are a few instances where a dialect had a dependency because it was hardcoding checks for constant operations instead of using the better m_Constant approach. Differential Revision: https://reviews.llvm.org/D118062
-
River Riddle authored
Differential Revision: https://reviews.llvm.org/D117981
-
River Riddle authored
This has been a major TODO for a very long time, and is necessary for establishing a proper dialect-free dependency layering for the Transforms library. Code was moved to effectively two main locations: * Affine/ There was quite a bit of affine dialect related code in Transforms/ do to historical reasons (of a time way into MLIR's past). The following headers were moved to: Transforms/LoopFusionUtils.h -> Dialect/Affine/LoopFusionUtils.h Transforms/LoopUtils.h -> Dialect/Affine/LoopUtils.h Transforms/Utils.h -> Dialect/Affine/Utils.h The following transforms were also moved: AffineLoopFusion, AffinePipelineDataTransfer, LoopCoalescing * SCF/ Only one SCF pass was in Transforms/ (likely accidentally placed here): ParallelLoopCollapsing The SCF specific utilities in LoopUtils have been moved to SCF/Utils.h * Misc: mlir::moveLoopInvariantCode was also moved to LoopLikeInterface.h given that it is a simple utility defined in terms of LoopLikeOpInterface. Differential Revision: https://reviews.llvm.org/D117848
-
River Riddle authored
Transforms/ should only contain transformations that are dialect-independent and this pass interacts with MemRef operations (making it a better fit for living in that dialect). Differential Revision: https://reviews.llvm.org/D117841
-
River Riddle authored
Transforms/ should only contain dialect-independent transformations, and these files are a much better fit for the bufferization dialect anyways. Differential Revision: https://reviews.llvm.org/D117839
-
harsh authored
The current lowering from GPU to NVVM does not correctly handle the following cases when lowering the gpu shuffle op. 1. When the active width is set to 32 (all lanes), then the current approach computes (1 << 32) -1 which results in poison values in the LLVM IR. We fix this by defining the active mask as (-1) >> (32 - width). 2. In the case of shuffle up, the computation of the third operand c has to be different from the other 3 modes due to the op definition in the ISA reference. (https://docs.nvidia.com/cuda/parallel-thread-execution/index.html) Specifically, the predicate value is computed as j >= maxLane for up and j <= maxLane for all other modes. We fix this by computing maskAndClamp as 32 - width for this mode. TEST: We modify the existing test and add more checks for the up mode. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D118086
-
Richard authored
-
Evgeniy Brevnov authored
Presence of operand bundles changes semantics in respect to ModRef. In particular, spec says: "From the compilers perspective, deoptimization operand bundles make the call sites theyre attached to at least readonly. They read through all of their pointer typed operands (even if theyre not otherwise escaped) and the entire visible heap. Deoptimization operand bundles do not capture their operands except during deoptimization, in which case control will not be returned to the compiled frame". Fix handling of llvm.memcpy.* according to the spec. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D118033
-
jacquesguan authored
The field 'RequiredExtensions' is used to specify the constraint for rvv builtin, and it contains something which is not a sub-extension or extension such as 'RV64'. So the word 'extension' is not accurate now, 'feature' seems better. Differential Revision: https://reviews.llvm.org/D118015
-
Mehdi Amini authored
Flagged by Coverity
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D118079
-
Joseph Huber authored
Currenly we push some variables to a global constant containing shared memory as an optimization. This generated constant had internal linkage and should not have collided with any known identifiers in the translation unit. However, there have been observed cases of this optimiztaion unintentionally colliding with undocumented PTX identifiers. This patch adds a suffix to the created globals to hopefully bypass this. Depends on D118059 Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D118068
-
Joseph Huber authored
Previously in OpenMPOpt we did not correctly inherit the calling convention of the callee when creating new OpenMP runtime calls. This created issues when the calling convention was changed during `GlobalOpt` but a new call was creating without the correct calling convention. This lead to the call being replaced with a poison value in `InstCombine` due to undefined behaviour and causing large portions of the program to be incorrectly eliminated. This patch correctly inherits the existing calling convention from the callee. Reviewed By: tianshilei1992, jdoerfert Differential Revision: https://reviews.llvm.org/D118059
-
Jonas Devlieghere authored
I considered keeping this change strictly downstream. Since we still have a bunch of places that check for Python 2, I figured it doesn't harm to land it upstream and avoid the conflict when I eventually do remove them (hopefully soon!).
-
Arthur O'Dwyer authored
https://cplusplus.github.io/LWG/issue3422 Also add a static_assert to check the "Mandates:" on the iterator-pair constructor. Oddly, the `InputIterator` parameter itself is merely preconditioned, not constrained, to satisfy the input iterator requirements. Also drive-by rename `init` to `__init`. Differential Revision: https://reviews.llvm.org/D117962
-
wlei authored
For reducing binary size purpose, the binary's debug info and executable segment can be separated(like using objcopy --only-keep-debug). Here add support in llvm-profgen to use two binaries as input. The original one is executable binary and added for debug info only binary. Adding a flag `--debug-binary=file-path`, with this, the binary will load debug info from debug binary. Reviewed By: hoy, wenlei Differential Revision: https://reviews.llvm.org/D115948
-
Philip Reames authored
-
Craig Topper authored
Without a space after the comment characters it seems to be ignored.
-
Simon Pilgrim authored
There's no further reasons to limit this to cmpeq-with-zero, the outstanding regressions with lowering to PTEST have now been addressed Improves codegen for Issue #53379
-
Jan Korous authored
unsigned is technically guaranteed to be only 16 bits in which case 1 << 16 would wrap around to zero. Differential Revision: https://reviews.llvm.org/D117938
-
Derek Schuff authored
Opt into the old default of DWARF4 for now. Differential Revision: https://reviews.llvm.org/D118082
-
Rob Suderman authored
Adding a similar decomposition for exponential minus one to the SPIRV backends along with the necessary tests. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D118081
-
Mogball authored
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D117855
-
Nikolas Klauser authored
Remove `std::basic_string`'s base class in ABI version 2 Reviewed By: Quuxplusone, ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D116334
-