- Jan 25, 2023
-
-
Tomas Matheson authored
Codegen support for 128-bit atomicrmw (and|or|xchg). - store atomic -> swpp - atomicrmw xchg -> swpp - atomicrmw and -> ldclrp - atomicrmw or -> ldsetp Reviewed By: lenary Differential Revision: https://reviews.llvm.org/D141406 -
Timm Bäder authored
Reject them early, since we will run into problems and/or assertions later on anyway. Differential Revision: https://reviews.llvm.org/D137386
-
Alexey Lapshin authored
The llvm::parallelFor() uses threads created by ThreadPoolExecutor as well as main thread. The index for the main thread matches with the index for the first thread created by ThreadPoolExecutor. It results in that getThreadIndex returns the same value for different threads. To avoid thread index clashing - do not use main thread for llvm::parallelFor(): parallel::TaskGroup TG; for (; Begin + TaskSize < End; Begin += TaskSize) { TG.spawn([=, &Fn] { for (size_t I = Begin, E = Begin + TaskSize; I != E; ++I) Fn(I); }); } for (; Begin != End; ++Begin) <<<< executed by main thread. Fn(Begin); <<<< return; <<<< Differential Revision: https://reviews.llvm.org/D142317 -
Nikita Popov authored
Always use opaque pointers.
-
Kerry McLaughlin authored
Adds intrinsics for the following: - mova: array to vector / vector to array - mova: tile to vector / vector to tile Tablegen patterns have been added to match the ZA write intrinsics. As the read intrinsics return a multi-vector, a function called SelectMultiVectorMove has been added to AArch64ISelDAGToDAG to select the correct instruction. The SelectSMETile function has also been added to check that the tile number passed to read intrinsics is valid for the base register. This patch also cleans up the sme_vector_to_tile_patterns multiclass to remove the pattern for an offset of 0, which is handled by tileslice. NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D142031
-
Timm Bäder authored
This previously ran into an "unknown type" assertion when trying to emit a 'Zero' op for a pointer type. Emit a NullPtr op instead. Differential Revision: https://reviews.llvm.org/D137235
-
Nikita Popov authored
We always use opaque pointers. The opaque-pointers option is retained as a no-op, same as no-lto-legacy-pass-manager.
-
Nikita Popov authored
The opaque-pointers option is retained as a no-op, same as with new-pass-manager.
-
Nikita Popov authored
Always use the config default of OpaquePointers == true.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D137232
-
Simon Pilgrim authored
The macro _mm_test_all_ones(V) was defined as _mm_testc_si128((V), _mm_cmpeq_epi32((V), (V))) - which could cause side effects depending on the source of the V value. The _mm_cmpeq_epi32((V), (V)) trick was just to materialize an all-ones value, which can be more safely generated with _mm_set1_epi32(-1) . Fixes #60006 Differential Revision: https://reviews.llvm.org/D142477
-
Caroline Concatto authored
Add the following intrinsic: ADD SUB FADD FSUB NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: kmclaughlin Differential Revision: https://reviews.llvm.org/D142210 -
Samuel Parker authored
-
Timm Bäder authored
A pointer to an array and a pointer to the first element of the array are not the same in the interpreter, so handle this specially in deref(). Differential Revision: https://reviews.llvm.org/D137082
-
Nikita Popov authored
-
Jean Perier authored
Use runtime Assign to deal with the copy (and the temporary creation, so that this code can deal with polymorphic temps without any change). Using Assign for the copy is desired here since the copy happens when the data is not contiguous, and it happens inside an if/then which makes it hard to optimize. See https://github.com/llvm/llvm-project/commit/2b60ed405b8110b20ab2e383839759ea34003127 for more details (note that, contrary to this last commit, the code at hand is only dealing with copy-in/copy-out, it is not intended to deal with preparing VALUE arguments). Differential Revision: https://reviews.llvm.org/D142475
-
David Sherwood authored
Adds intrinsics for the following SME2 instructions: * fclamp (2 and 4 vectors) * sclamp (2 and 4 vectors) * uclamp (2 and 4 vectors) I've added these new instructions to the existing sve2p1-* tests because although they are included as part of SME2 they are still SVE-like, in that they only operate on SVE vectors. NOTE: These intrinsics are still in development and are subject to future changes. Differential Revision: https://reviews.llvm.org/D142355
-
Timm Bäder authored
Implement mul, div, rem, etc. compound assign operators. Differential Revision: https://reviews.llvm.org/D137071
-
Timm Bäder authored
Just like we do (or will do) for floating types, we need to take into acocunt that the LHSComputationType, ResultType and type of the expression (what we ultimately store) might be different. Do this by emitting cast ops before and after doing the computation. This fixes the test failures introduced by 490e8214 on big endian machines. Differential Revision: https://reviews.llvm.org/D142328
-
Nicolai Hähnle authored
Remove global_ir_{prefix,prefix_regexp} (one of which is misnamed), since they are really quite redundant with ir_{prefix,regexp} and default the is_before_functions argument, which basically just adds noise to the table of NamelessValues. Differential Revision: https://reviews.llvm.org/D142451 -
Nicolai Hähnle authored
It's not clear to me how to write a test for this. The tests run in an environment where the tools may not be in PATH, and so the existing custom-tool.test needs to use --tool-binary when invoking update_test_checks.py. But it can't do so without also using --tool. This change does fix a problem though with using update_any_test_checks.py in an environment where the tools *are* available in PATH. Differential Revision: https://reviews.llvm.org/D142450
-
Pavel Kosov authored
Commit 92f0e4cc introduced test file with name TestChangeValue.py, which leads to test failure because there already is a test files with the same name In this commit a newly added file is renamed to fix this failure
-
Nikita Popov authored
As promised, typed pointers are no longer supported on the main branch, as a matter of policy.
-
Piotr Sobczak authored
- Simplify concatenation - Common up expressions
-
Jean Perier authored
These operations implement the optional copy of a non contiguous variable into a temporary before a call, and the copy back from the temporary after the call. Differential Revision: https://reviews.llvm.org/D142342
-
Matthias Springer authored
This can be a pre-processing for bufferization and allows for more efficient lowerings without an alloc. Differential Revision: https://reviews.llvm.org/D142206
-
Valentin Clement authored
`PointerAssociateRemapping` expect a descriptor holding a newRank x 2 array of int64. The previous lowering was wrong. Adapt the lowering to fit the expectation of the runtime. Use the `bounds` to get the rank. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D142487
-
Siva Chandra Reddy authored
-
Pavel Kosov authored
Currently in some cases lldb reports stop reason as "step out" or "step over" (from thread plan completion) instead of "breakpoint", if the user breakpoint happens to be set on the same address. The part of https://github.com/llvm/llvm-project/commit/f08f5c99262ff9eaa08956334accbb2614b0f7a2 seems to overwrite internal breakpoint detection logic, so that only the last breakpoint for the current stop address is considered. Together with step-out plans not clearing its breakpoint until they are destrouyed, this creates a situation when there is a user breakpoint set for address, but internal breakpoint makes lldb report a plan completion stop reason instead of breakpoint. This patch reverts that internal breakpoint detection logic to consider all breakpoints Reviewed By: jingham Differential Revision: https://reviews.llvm.org/D140368
-
Kazu Hirata authored
The arguments to PowerOf2Ceil in this patch are all known to be nonzero, so we can safely use llvm::bit_ceil here.
-
Guillaume Chatelet authored
This implements the same behavior as D141997 but makes sure that the same detection mechanism is used between CMake and source code. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D142108
-
Pavel Kosov authored
Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D140624
-
Max Kazantsev authored
The motivation is that 'createInvariantCond' unconditionally builds icmp in the loop block, while it could always do it in preheader. Build it in preheader instead. Patch by Aleksandr Popov! Differential Revision: https://reviews.llvm.org/D141994 Reviewed By: nikic
-
Pavel Kosov authored
Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D140623
-
Arsen Arsenović authored
GCC rejects ABI tags on non mangled functions, as they would otherwise be a no-op. This commit replaces such instances with equivalent _LIBCPP_HIDE_FROM_ABI constants but without ABI tags attached. .../include/c++/v1/__support/musl/xlocale.h:28:68: error: 'abi_tag' attribute applied to extern "C" declaration 'long long int strtoll_l(const char*, char**, int, locale_t)' 28 | strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t) { | ^ Bug: https://bugs.gentoo.org/869038 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D142415 -
Kazu Hirata authored
At the call site of findFirstSet, ZMask | (1 << DstIdx) always have exactly 3 bits set, and they are all among the 4 least significant bits, so (ZMask | (1 << DstIdx)) ^ 15 has exactly one bit set. Since the argument to findFirstSet is nonzero, we can safely switch to llvm::countr_zero.
-
Andrew Young authored
This patch adds three functions to the C API: - mlirAttributeIsALocation: returns true if the attribute is a LocationAttr, false otherwise. - mlirLocationGetAttribute: returns the underlying LocationAttr of a Location. - mlirLocationFromAttribute: gets a Location from a LocationAttr. Reviewed By: mikeurbach, Mogball Differential Revision: https://reviews.llvm.org/D142182
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D142509
-
Tom Stellard authored
-
Kazu Hirata authored
If we know that x is nonzero and not a power of 2, then llvm::findLastSet(x) + 1 is the index of the bit just above the highest set bit in x. That is, 1 << (llvm::findLastSet(x) + 1) is the same as llvm::bit_ceil(x). Since llvm::bit_ceil is a nop on a power of 2, we can unconditionally call llvm::bit_ceil. The end result actually matches the comment.
-