- Mar 02, 2023
-
-
Paul Walker authored
This reverts commit 7912f5cc.
-
Paul Walker authored
This is part of an effort to remove ConstantExpr based representations of `vscale` so that its LangRef definiton can be relaxed to accommodate a less strict definition of constant. Differential Revision: https://reviews.llvm.org/D144891
-
Luís Marques authored
To have line number information in stack traces (per stack frame) it's necessary to implement findModulesAndOffsets. Differential Revision: https://reviews.llvm.org/D142282
-
Nikita Popov authored
SRA always works on GlobalVariables.
-
Nikita Popov authored
-
Timm Bäder authored
This reverts commit bce8b3c1. This commit breaks memory-sanitizer builds: https://lab.llvm.org/buildbot/#/builders/5/builds/31899
-
Haojian Wu authored
-
Haojian Wu authored
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D145147
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144801
-
J. Ryan Stinnett authored
As part of this work, removing `SDDbgValue::clearIsEmitted` originally added for `dbg.addr` in 045c6776 was attempted, but it appears some tests for `DBG_INSTR_REF` now depend on that behaviour as well, so it was kept and comments were updated instead. Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144800
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144799
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144798
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144797
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144796
-
J. Ryan Stinnett authored
This removes `dbg.addr` support from the Coroutines transform. This effectively reverts the `dbg.addr`-only portions of 19279ffc and 0b647fc5. Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144795
-
J. Ryan Stinnett authored
This removes the unused `FuncArgumentDbgValueKind::Addr` value originally added by e24f5348. The intent was to signal the original intrinsic that marked a function argument, but the `Addr` part was never used. Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144794
-
J. Ryan Stinnett authored
As part of removing `dbg.addr`, this upgrades any calls to `dbg.value` with `DW_OP_deref` prepended onto the value expression. Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144793
-
J. Ryan Stinnett authored
Part of `dbg.addr` removal Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898 Differential Revision: https://reviews.llvm.org/D144792
-
Tobias Gysi authored
This revision updates the memcpy, memove, and memset intrinsics to implement the AliasAnalysis and AccessGroup interfaces. The changes will enable the import and export of alias scope, tbaa, and access group metadata attached to these intrinsics. It also renames the requiresAliasScope flag to requiresAliasAnalysis since the intrinsics also support tbaa and not only access scope metadata. The revision still maintains the string based attribute lookup in the translation from MLIR to LLVMIR. Using the interfaces instead of the string based lookup is left to a followup revision. Depends on D144851 Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D144965
-
Andrzej Warzynski authored
This patch implements vectorization of tensor.extract for n-D tensor (n >= 2) using contiguous load operations, i.e. `vector.transfer_read`. This is a follow-up of https://reviews.llvm.org/D137660 in which gather loads were used, i.e. `vector.gather`. It is always safe to use gather load operations when the underlying memory pattern is contiguous, but not vice-verse. At the moment, the following conditions have to be met for contiguous loads to be generated: 1. The _output tensor_ must be a 1-D vector with the trailing dim > 1, e.g. `tensor<1x1x4xi32`, 2. The trailing dim in the _input tensor_ must be > 1, e.g. `tensor<1x1x4i32>` would be fine, but not `tensor<1x4x1xi32>`. If these conditions are not satisfied, gather loads are generated instead. Condition 1 guarantees that the iteration space of the corresponding `linalg.generic` Op is relatively simple. That makes analysing the indices for `tensor.extract` rather straightforward. Condition 2 is mostly there to avoid weird vectorisation patterns resulting in vectors like: `vector<1x1x1xi32>`. In practice, tensors like `tensor<1x4x1xi32>` should be collapsed to `tensor<1x4xi32>` before vectorisation, but that's beyond the scope of this patch. If needed, both conditions can be relaxed. I've not been able to find a good motivating example for these, hence skipping. For reference, `tosa.resize` (lowered to Linalg) was the driving example used here. As a bonus, the test from "vectorization-unsupported.mlir" is moved to "vectorization.mlir" with proper CHECK lines added. NOTE: This relands 89b144ec (added extra test, refined comments and variable names). Differential Revision: https://reviews.llvm.org/D141998 Co-authored-by:
Diego Caballero <diegocaballero@google.com>
-
Ying Yi authored
marked as 'not executed'. In the current coverage mapping implementation, we terminate the current region and start a zero region when we hit a nonreturn function. However, for logical OR, the second operand is not executed if the first operand evaluates to true. If the nonreturn function is called in the right side of logical OR and the left side of logical OR is TRUE, we should not start a zero `GapRegionCounter`. This will also apply to `VisitAbstractConditionalOperator`. Fixes https://github.com/llvm/llvm-project/issues/59030 Reviewed By: zequanwu Differential Revision: https://reviews.llvm.org/D144371
-
Florian Hahn authored
Extend CleanupPointerRootUsers to iterate over a worklist, add users of constant expressions to the worklist to enable additional cleanups. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D144468
-
Nicolas Vasilache authored
Previously, the wrond type would be used and would not matche the number of locations triggering an assertion failures in `createBlock`.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D140808
-
Corentin Jabot authored
This implements P2036R3 and P2579R0. That is, explicit, int, and implicit capture become visible at the start of the parameter head. Reviewed By: aaron.ballman, rupprecht, shafik Differential Revision: https://reviews.llvm.org/D124351
-
Nikita Popov authored
If --function-signature is used with --version 2, then also include the return type/attributes in the check lines. This is the implementation of D133943 rebased on the --version mechanism from D142473. This doesn't bump the default version yet, because I'd like to do that together with D140212 (which enables --function-signature by default), as these changes seem closely related. For now this functionality can be accessed by explicitly passing --version 2 to UTC. Fixes https://github.com/llvm/llvm-project/issues/61058. Differential Revision: https://reviews.llvm.org/D144963
-
Nikita Popov authored
Legacy passes are only supported for codegen, and I don't believe it's possible to write backends using the C API, so we should drop all of those. Reduces the number of places that need to be modified when removing legacy passes. Differential Revision: https://reviews.llvm.org/D144970
-
Noah Goldstein authored
Recommit "[X86] Add `TuningPreferShiftShuffle` for when Shifts are preferable to shuffles." (2nd Try) Move the opcode checks to after we have already verified we found a valid shift instruction (`0 < ShiftAmt`) in `matchUnaryPermuteShuffle` and `lowerShuffleAsShift`. Reviewed By: pengfei, RKSimon Differential Revision: https://reviews.llvm.org/D143786
-
Timm Bäder authored
We usually access array elements in the same pattern, which uses narrow(). Add an extra opcode for this. This saves us quite some instructions and makes the bytecode easier to read. Differential Revision: https://reviews.llvm.org/D140805
-
Marco Elver authored
This reverts commit 7f635b90. The current implementation causes pathological slowdowns in certain cases: https://github.com/llvm/llvm-project/issues/61108
-
Timm Bäder authored
Local variables may be partially initialized. Differential Revision: https://reviews.llvm.org/D140723
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D140803
-
Nicolas Vasilache authored
-
Muhammad Omair Javaid authored
TestRunLocker.py is failing on windows x64 and AArch64 buildbots. Buildbot log suggests that test needs some minor modification for windows which I will do later. https://lab.llvm.org/buildbot/#/builders/83/builds/29680 https://lab.llvm.org/buildbot/#/builders/219/builds/942
-
Tobias Gysi authored
This revision uses the AliasAnalysisOpInterface introduced in https://reviews.llvm.org/D144851 to set the tbaa attributes of load and store ops. With the attribute it is also possible to set the attribute on atomics as well as on memcopy and memove intrinsics as soon as https://reviews.llvm.org/D144965 lands. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D145044
-
Muhammad Omair Javaid authored
This reverts commit 9d28e00e.
-
Timm Bäder authored
This happens when explicitly defaulting a constructor, for example. Differential Revision: https://reviews.llvm.org/D140776
-
Yashwant Singh authored
analyzeTemporalDivergence() was missing the check for always-uniform before evaluating weather an instruction depends on a value defined in the cycle. Fix for #60638 https://github.com/llvm/llvm-project/issues/60638 Reviewed By: sameerds, foad, #amdgpu Differential Revision: https://reviews.llvm.org/D144070
-
Muhammad Omair Javaid authored
-