- Dec 19, 2022
-
-
Matthias Springer authored
These patterns devectorize scalar transfers such as vector<f32> or vector<1xf32>. Differential Revision: https://reviews.llvm.org/D140215
-
Matthias Springer authored
This function used to create new ops even if the vectorization failed. Those ops were then folded away. This caused a failure of the GreedyPatternRewriter, which no longer terminated (each time the IR is modified => one more iteration). Differential Revision: https://reviews.llvm.org/D140286
-
Adrian Kuegel authored
-
Muhammad Omair Javaid authored
c-strings.c was marked XFAIL for msvc ABI on AArch64/Windows platform. But it is failing due to alignment issue on WoA for both msvc and gnu gnu ABIs. I am going to mark them as XFAIL for both.
-
Alex Zinenko authored
Some operations may be able to deal with handles pointing to the same operation when the handle is consumed. For example, merge handles with deduplication doesn't actually destroy payload operations and is specifically intended to remove the situation with duplicates. Add a method to the transform interface to allow ops to declare they can support repeated handles. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D140124
-
Muhammad Omair Javaid authored
This reverts commit fbaf48be. This has broken all LLDB buildbots: https://lab.llvm.org/buildbot/#/builders/68/builds/44990 https://lab.llvm.org/buildbot/#/builders/96/builds/33160
-
Adrian Kuegel authored
Use empty() instead of checking for size 0.
-
Jean Perier authored
This will implement evaluate::SetLength where the length of a character entity is changed (with trimming and padding). Differential Revision: https://reviews.llvm.org/D140219
-
Jean Perier authored
The motivation is to have it accessible in HLFIROps.cpp to use it in hlfir.set_length builder to build the result length type as best as possible. Differential Revision: https://reviews.llvm.org/D140214
-
Nikita Popov authored
Can't use VLA at file scope.
-
Haojian Wu authored
I forgot to add the change to the commit when committing.
-
Lorenzo Chelini authored
Introduce a new transform operation to replace `tensor.empty` with `alloc_tensor` operations. The operation is a pass-through if the target operation is already a `alloc_tensor`; otherwise, it expects a `tensor.empty` as a target. Currently, it does not return any results. The operation is expected to run before `one_shot_bufferize` as `one_shot_bufferize` rejects `tensor.empty`. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D140026
-
Adrian Kuegel authored
-
Haojian Wu authored
Fixes https://github.com/llvm/llvm-project/issues/59533 Differential Revision: https://reviews.llvm.org/D140095
-
Qiu Chaofan authored
-
Qiu Chaofan authored
Address the inconsistency between FLT_ROUNDS_ and SET_ROUNDING SDAG node. Rename FLT_ROUNDS_ to GET_ROUNDING and add llvm.get.rounding intrinsic to replace flt.rounds. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D139507
-
Matthias Springer authored
This customer parser/printer is similar to DynamicIndexList, but has special syntax for the case where one handle represents the entire list. Example: ``` // Regular index list [10, 20, %val] // Packed handle (no square parentheses) %val ``` Differential Revision: https://reviews.llvm.org/D138825
-
Kai Luo authored
If the archive contains free list and contains no member file, the buffer length doesn't equal to length of the header. Reviewed By: Esme, DiggerLin, #powerpc Differential Revision: https://reviews.llvm.org/D138986
-
Fangrui Song authored
And convert it to std::optional while updating.
-
Matt Arsenault authored
-
Roman Lebedev authored
Several bots are unhappy, and this appears to be the reason: we might be inserting into wrong basic block, one that does not dominate the I.
-
Roman Lebedev authored
-
Roman Lebedev authored
While there, reduce bitwidth, we really don't care about testing i32 specifically.
-
Roman Lebedev authored
The important bit here is that we gracefully handle other uses, iff they can be adapted to inversion. I'll note, the previous logic was actively bad, it increased instruction count since it didn't actually ensure that the inversions happened.
-
Roman Lebedev authored
[NFC][InstCombine] Add tests for sinking `not` into logical ops with hands with extra (but invertible) uses
-
Kazu Hirata authored
This patch teaches MachinePipeliner.h to include DFAPacketizer.h so that the header file is self contained. Without this patch, a C++ source file that only includes MachinePipeliner.h does not compile because the forward declaration of DFAPacketizer is not enough for: llvm::SmallVector<std::unique_ptr<DFAPacketizer>> DFAResources;
-
Kazu Hirata authored
This patch teaches DbgEntityHistoryCalculator.h to include MachineInstr.h so that the header file is self contained. Without this patch, a C++ source file that only includes DbgEntityHistoryCalculator.h does not compile because: PointerIntPair<const MachineInstr *, 1, EntryKind> Instr; wants to know the alignment of llvm::MachineInstr: llvm/include/llvm/Support/PointerLikeTypeTraits.h:61:28: error: invalid application of 'alignof' to an incomplete type 'llvm::MachineInstr' detail::ConstantLog2<alignof(T)>::value; ^~~~~~~~~~ -
Roman Lebedev authored
Matches what we do for binary operations, but a special care needs is needed to preserve operand order, as the logical operations are not strictly commutative!
-
Roman Lebedev authored
-
https://github.com/llvm/llvm-project/issues/59515Peter Rong authored
This reverts commit 7859d6e7 . Signed-off-by:
Peter Rong <PeterRong96@gmail.com>
-
Nico Weber authored
Possibly fixes tests on Linux. This corresponds to `export_executable_symbols_for_plugins` calls in CMake.
-
https://github.com/llvm/llvm-project/issues/59515Peter Rong authored
Also provide a `tryExtValue()` API like APInt did in D139683 Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D140059
-
Roman Lebedev authored
There is still some such patterns that require collaboration of folds to handle,that we don't currently do.
-
Roman Lebedev authored
-
Sergei Barannikov authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D140273
-
Fangrui Song authored
Similar to 1b9cd51d
-
Krzysztof Parzyszek authored
This reverts commit 8f0df9f3. The Optional*RefDegradesTo*EntryPtr types want to keep the same size as the underlying type, which std::optional doesn't guarantee. For use with llvm::Optional, they define their own storage class, and there is no way to do that in std::optional. On top of that, that commit broke builds with older GCCs, where std::optional was not trivially copyable (static_assert in the clang sources was failing).
-
Mark de Wever authored
Some clang diagnostics have changed causing build failures. Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D140272
-
Florian Hahn authored
This adds test coverage for a suggestion in D111643.
-
Matt Arsenault authored
This was trying to merge 2 32-bit pointers into a 64-bit pointer. The artifact combiner was assuming merges to pointers use scalar sources, and ended up inserting invalid bitcast from a pointer to a scalar. It should probably be a verifier error to have pointer merge sources with a pointer result. Fixes verifier errors with EXPENSIVE_CHECKS.
-