- Jan 20, 2023
-
-
OCHyams authored
Remove LLVM flag -experimental-assignment-tracking. Assignment tracking is still enabled from Clang with the command line -Xclang -fexperimental-assignment-tracking which tells Clang to ask LLVM to run the pass declare-to-assign. That pass converts conventional debug intrinsics to assignment tracking metadata. With this patch it now also sets a module flag debug-info-assignment-tracking with the value `i1 true` (using the flag conflict rule `Max` since enabling assignment tracking on IR that contains only conventional debug intrinsics should cause no issues). Update the docs and tests too. Reviewed By: CarlosAlbertoEnciso Differential Revision: https://reviews.llvm.org/D142027
-
Nikita Popov authored
Instead of copying just nonnull metadata, use the generic helper to copy metadata to the new load. This helper is specifically designed for the case where the load type may change, so it's safe to use in this context.
-
Benjamin Kramer authored
This just works, no reason to disallow it. Differential Revision: https://reviews.llvm.org/D142137
-
Kadir Cetinkaya authored
This was regressed in ca619613. As we attached InitExprs as-is to the AST, without performing transformations. Differential Revision: https://reviews.llvm.org/D142187
-
Nikita Popov authored
-
Serge Pavlov authored
Differential Revision: https://reviews.llvm.org/D142001
-
Backl1ght authored
fix https://github.com/llvm/llvm-project/issues/59930 Differential Revision: https://reviews.llvm.org/D141694
-
OCHyams authored
-
Samuel Parker authored
For (trunc (fp-to-int)).
-
Jean Perier authored
The previous patches allowed lowering allocatable/and pointer designator expressions with HLFIR. This patch updates the bridge genExprMutableBox to use HLFIR lowering when HLFIR flag is set. For allocate and deallocate lowering that use genExprMutableBox, no other change is needed. For pointer assignments, the code doing the pointer assignments in the bridge can be reused and is simply moved so that it can be shared, and the "explicit context" special cases of the previous lowering are by-passed. The code doing pointer assignment revealed that convertExprToAddress did not match the previous genExprAddr behavior (that actually does not create temps for "x" where x is not contiguous). Instead of trying to copy the old behavior that is a bit weird (was dictated by the implementation rather than design). Update convertExprToAddress to do something sensible and that works with the current genExprAddr usages (if anything, it should saves bogus array section temps). Differential Revision: https://reviews.llvm.org/D142197
-
David Sherwood authored
Adds intrinsics for the following SME2 instructions: * BFVDOT (32-bit) * FVDOT (32-bit) * SVDOT (2-way) (32-bit) * SVDOT (4-way) (32-bit and 64-bit) * UVDOT (2-way) (32-bit) * UVDOT (4-way) (32-bit and 64-bit) * SUVDOT (32-bit) * USVDOT (32-bit) NOTE: These intrinsics are still in development and are subject to future changes. Differential Revision: https://reviews.llvm.org/D142000
-
Guray Ozen authored
This revision introduces a pattern to lower `gpu.subgroup_reduce` op into to the `nvvm.redux_sync` op. The op must be run by the entire subgroup, otherwise it is undefined behaviour. It also adds a flag and populate function, because the op is not avaiable for every gpu (sm80+), so it can be used when it is desired. Depends on D142088 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D142103
-
Tom Eccles authored
ff94419a changed the return value of appendMangledType() to LogicalResult, which is marked as nodiscard. Ignoring the result generates a warning when building with clang. Reviewed By: nicolasvasilache, chelini Differential Revision: https://reviews.llvm.org/D142202
-
Kevin Sala authored
This patch fixes a segfault that was appearing when the plugin fails to initialize and then is deinitialized. Also, do not call hsa_shut_down if the hsa_init failed. Differential Revision: https://reviews.llvm.org/D142145
-
Tobias Gysi authored
This revision fixes the import of LLVM IR to handle debug metadata with cyclic dependencies. It deletes the elements list of the composite type if a cyclic dependency is detected. The revision is meant as a band aid to avoid infinite recursion during the import of cyclic debug metadata. Long term solutions are currently discussed here: https://discourse.llvm.org/t/handling-cyclic-dependencies-in-debug-info/67526/4 Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D142086
-
Sven van Haastregt authored
Neither OpenCL nor C++ for OpenCL support exceptions, so add the `nounwind` attribute unconditionally for those languages. Differential Revision: https://reviews.llvm.org/D142033
-
Nikita Popov authored
-
Kerry McLaughlin authored
Adds (single, multi & indexed) intrinsics for the following: - bfmlal/bfmlsl - fmlal/fmlsl - smlal/smlsl - umlal/umlsl This patch also extends SelectSMETileSlice to handle scaled vector select offsets. NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: CarolineConcatto Differential Revision: https://reviews.llvm.org/D142004
-
Nikita Popov authored
In canCreateUndefOrPoison(), take not only poison-generating flags, but also poison-generating metadata into account. The helpers are written generically, but I believe the only case that can actually matter is !range on calls -- !nonnull and !align are only valid on loads, and those can create undef/poison anyway. Unfortunately, this negatively impacts logical to bitwise and/or conversion: For ctpop/ctlz/cttz we always attach !range metadata, which will now block the transform, because it might introduce poison. It would be possible to recover this regression by supporting a ConsiderFlagsAndMetadata=false mode in impliesPoison() and clearing flags/metadata on visited instructions. Fixes https://github.com/llvm/llvm-project/issues/59888. Differential Revision: https://reviews.llvm.org/D142115
-
Kerry McLaughlin authored
Adds intrinsics for the following: - fmla (single, multi & indexed) - fmls (single, multi & indexed) NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: CarolineConcatto Differential Revision: https://reviews.llvm.org/D141946
-
Guray Ozen authored
Ptx model has `redux.sync` that performs reduction operation on the data from each predicated active thread in the thread group. It only is available sm80+. This revision adds redux as on op to nvvm dialect. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D142088
-
Nicholas Guy authored
Differential Revision: https://reviews.llvm.org/D142012
-
Anshil Gandhi authored
Tests for D136524.
-
Marco Elver authored
POSIX timer can be configured to send any kind of signal, however, it fundamentally does not make sense to consider a timer a synchronous signal. Teach TSan that timers are never synchronous. The tricky bit here is correctly defining compiler-rt's siginfo replacement, which is a rather complex struct. Extend it in a limited way that is mostly cross-platform compatible and add offset tests in sanitizer_platform_limits_posix.cpp. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D142117
-
Jean Perier authored
The previous patches dealt with allocatable and pointer symbol and component whole references. This one deals with the remaining sub-part case where a dereference must be created before applying the sub-part reference on the target. With this patch the support to designate allocatable and pointer in HLFIR is complete, but some use points will need to be updated to use HLFIR designator lowering (at least allocate/deallocate statement and whole allocatable assignment). The partInfo.base had to be turned into an std::optional<hlfir::Entity> because loads of allocatable/pointers do create a fir::FortranVariableOpInterface (there is no need to). The optional part comes from the fact that the partInfo.base is not set when creating the partInfo, but later when visiting the designator parts. They are three cases when dereferences must be inserted: - The pointer/allocatable is a symbol followed by a sub-part that is not a component ref. This is done in visit(Symbol). - The pointer/allocatable is a component followed by a sub-part that is not another component ref. This is done in visit(Component). - The pointer/allocatable is followed by a component ref. This case is special since it does not call the above "visit" but instead calls "gen" to break the visit and generate an hlfir.designate for the component base (since one hlfir.designate can only represent one Fortran part-ref, and must be chained to implement a Fortran designator with several part refs). This is done in visitComponentImpl(). Differential Revision: https://reviews.llvm.org/D142124
-
Benjamin Kramer authored
-
LLVM GN Syncbot authored
-
Florian Hahn authored
-
Nikita Popov authored
This is required to build against libstdc++ 13. Debug.h uses std::stoi() from <string> without explicitly including it.
-
v1nh1shungry authored
Relevant issue: https://github.com/llvm/llvm-project/issues/59771 During the instantiation of a generic lambda, a non-generic lambda in the trailing `decltype` is a `DeclContext` but not a dependent context, so we shouldn't call `PerformDependentDiagnostics` on it. Differential Revision: https://reviews.llvm.org/D140838
-
Matthias Springer authored
There are now three options: * `AnyOp` (previously `false`) * `ExistingAndNewOps` (previously `true`) * `ExistingOps`: this one is new. The last option corresponds to what the `applyOpPatternsAndFold(Operation*, ...)` overload is doing. It is now also supported on the `applyOpPatternsAndFold(ArrayRef<Operation *>, ...)` overload. Differential Revision: https://reviews.llvm.org/D141904
-
Timm Bäder authored
for local variables. Hoping this will please msan.
-
Nikita Popov authored
This header uses std::int8_t, but does not include cstdint. This fixes the build against libstc++ 13, where some indirect header includes have been removed.
-
Sergey Kachkov authored
Improve findDominatingLoad implementation: 1. Result is saved into gvn::AvailableValue struct 2. Search is done in extended BB (while there is a single predecessor or limit is reached) Differential Revision: https://reviews.llvm.org/D141680
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D141855
-
Kristof Beyls authored
-
Craig Topper authored
This reverts commit 928a1764. Committed accidentally
-
Craig Topper authored
-
Craig Topper authored
This is an alternative to D141074 to fix the problem by adjusting the precision control dynamically. This isn't quite complete yet. I want to support fadd with an load folded into it too. That's the code we will usually generate. Posting for early review so we can do some testing of this solution. Differential Revision: https://reviews.llvm.org/D142178
-
Nicolas Vasilache authored
This transform is complementary to the `structured.pack` op which allows packing a whole op but does not allow transposes on the individual operands. `structured.pack_transpose` allows transposing single operands connected to pack or unpack ops after the fact. This makes the system overall more composable than e.g. a giant transform op with all permutation specified at once. Differential Revision: https://reviews.llvm.org/D142053
-