- Jan 17, 2023
-
-
Abid Malik authored
Added parser support for Tile Construct . Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D136359
-
Florian Hahn authored
If ParentWithSuccs is nullptr, the number of successors is guaranteed to be 0. Simplify the code as suggested by @Ayal in D140511.
-
David Green authored
The existing lowering of i1 vector shuffle was only considering single-source shuffles, always assuming the second was undef. This extends that to properly handle both operands.
-
Nikita Popov authored
Remove pointer indirections to preserve test intent.
-
Nikita Popov authored
Removing pointer indirections to at least somewhat preserve test intent. I wasn't aware this kind of directly co-recursive type is even legal.
-
Quentin Colombet authored
Refactor the definition of the enums that are used in the lower_vectors operation of the transformation dialect. This avoid duplicating the definition of all the configurations that this operation can trigger. NFC Differential Revision: https://reviews.llvm.org/D141867
-
Guillaume Chatelet authored
-
Nikita Popov authored
To at least somewhat preserve the test intent, remove some pointer indirections and make types structurally different.
-
Jean Perier authored
In lowering to hlfir, no clean-up was added yet for the created hlfir.elemental. Add the needed hlfir.destroy. Regarding transformational lowering, clean-ups were created because they are lowered in memory, but this is inconvenient because this prevented lowering to hlfir from "moving" the created variable to an expression. Add a new entry point in IntrinsicCall.h that keeps track of whether or not the returned storage needs to be deallocated, but does not insert the deallocation in the StatementContext. This allows using the newly added hlfir.as_expr "move" aspect to be used and save creating a copy. Depends on D141839 Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D141841
-
chenglin.bi authored
This reverts commit 4a64024c. The original commit made a misstake that ugt reverse should be ule
-
Samuel Parker authored
Run update_llc_test_checks.py on address-offsets.ll
-
Jean Perier authored
Add the operation to mark the end of life of hlfir.expr. As described in its description this is the easiest solution to deploy given lowering "knows" where expression value are last used. However, inserting these points in lowering will probably make it harder to do some IR transformation that would move the code using or creating hlfir.expr (no use should be moved after an hlfir.destroy). Once the dust settle with the HLFIR change, it will be worth assessing the situation and see if an analysis could do a better and safer job at finding those destruction points. Depends on D141832 Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D141839
-
Jean Perier authored
hlfir.as_expr allows turning an array, character, or derived type variable into a value when it the usage require an hlfir.expr (e.g, when returning the element value inside and hlfir.elemental). The default implementation of this operation in bufferization is to make a copy of the variable into a temporary buffer. This adds a time and memory overhead in cases where such copy is not needed because the variable is already a temporary that was created in lowering to compute the expression value, and the "as_expr" is the sole usage of the variable. This is for instance the case for many transformational intrinsics that do not have hlfir.expr operation (at least for now, but some may never benefit from having one) and must be implemented "on memory" in lowering. This patch adds a way to "move" the variable storage along its value. It allows the bufferization to re-use the variable storage for the hlfir.expr created by hlfir.as_expr, and in exchange, the responsibility of deallocating the buffer (if the variable was heap allocated) if passed along to the hlfir.expr, and will need to be done after the last hlfir.expr usage. Differential Revision: https://reviews.llvm.org/D141832
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
We should not check the element type for opaque pointers. We should still check that the value operands have the same type though. This causes a verifier error when converting instructions.ll to opaque pointers.
-
Nikita Popov authored
If the pointer type is opaque, we should not check the element type. This causes a verifier failure when converting instructions.ll to opaque pointers.
-
Nikita Popov authored
Fixes a crash when converting the instructions.ll test to opaque pointers.
-
Chuanqi Xu authored
definitions in header units Address part of https://github.com/llvm/llvm-project/issues/60079. Since the the declaration of a non-inline static data member in its class definition is not a definition. The following form: ``` class A { public: static const int value = 43; }; ``` should be fine to appear in a header unit. From the perspective of implementation, it looks like we simply forgot to check if the variable is a definition... Reviewed By: iains Differential Revision: https://reviews.llvm.org/D141905
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Florian Hahn authored
This specialization is not needed any longer as VPRecipeBase inherits from VPUser and getDefiningRecipe returns a VPRecipeBase.
-
Mariusz Sikora authored
Differential Revision: https://reviews.llvm.org/D141857
-
Nikita Popov authored
-
Nikita Popov authored
backref() always performs a full match on the remaining string, and as such also needs to be matched against the whole remaining strip. For alternations, the match was performed against just the sub-strip for one alternative, which would of course fail to match the whole string. This can be done by skipping the part of the strip between OOR1 and O_CH, so that only the first alternative in the strip is matched, and the remaining ones are skipped. Indeed, the necessary OOR1 skipping code was already implemented in the easy-path of backref(), so this is clearly how it was supposed to work. However, there were two bugs: First, under this scheme we should be passing the stop point of the original strip, not just the alternative sub-strip. Second, while skipping for OOR1 was implemented, handling for O_CH was missing. This would occur when the last alternative matches, as O_CH is preceded by an implicit OOR1 only. Fixes https://github.com/llvm/llvm-project/issues/60073.
-
Rainer Orth authored
When building/testing ASan inside the GCC tree on Solaris while using GNU `ld` instead of Solaris `ld`, a large number of tests SEGVs on both sparc and x86 like this: Thread 2 received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)] 0xfe014cfc in __sanitizer::atomic_load<__sanitizer::atomic_uintptr_t> (a=0xfc602a58, mo=__sanitizer::memory_order_acquire) at sanitizer_common/sanitizer_atomic_clang_x86.h:46 46 v = a->val_dont_use; 1: x/i $pc => 0xfe014cfc <_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE+62>: mov (%eax),%eax (gdb) bt #0 0xfe014cfc in __sanitizer::atomic_load<__sanitizer::atomic_uintptr_t> (a=0xfc602a58, mo=__sanitizer::memory_order_acquire) at sanitizer_common/sanitizer_atomic_clang_x86.h:46 #1 0xfe0bd1d7 in __sanitizer::DTLS_NextBlock (cur=0xfc602a58) at sanitizer_common/sanitizer_tls_get_addr.cpp:53 #2 0xfe0bd319 in __sanitizer::DTLS_Find (id=1) at sanitizer_common/sanitizer_tls_get_addr.cpp:77 #3 0xfe0bd466 in __sanitizer::DTLS_on_tls_get_addr (arg_void=0xfeffd068, res=0xfe602a18, static_tls_begin=0, static_tls_end=0) at sanitizer_common/sanitizer_tls_get_addr.cpp:116 #4 0xfe063f81 in __interceptor___tls_get_addr (arg=0xfeffd068) at sanitizer_common/sanitizer_common_interceptors.inc:5501 #5 0xfe0a3054 in __sanitizer::CollectStaticTlsBlocks (info=0xfeffd108, size=40, data=0xfeffd16c) at sanitizer_common/sanitizer_linux_libcdep.cpp:366 #6 0xfe6ba9fa in dl_iterate_phdr () from /usr/lib/ld.so.1 #7 0xfe0a3132 in __sanitizer::GetStaticTlsBoundary (addr=0xfe608020, size=0xfeffd244, align=0xfeffd1b0) at sanitizer_common/sanitizer_linux_libcdep.cpp:382 #8 0xfe0a33f7 in __sanitizer::GetTls (addr=0xfe608020, size=0xfeffd244) at sanitizer_common/sanitizer_linux_libcdep.cpp:482 #9 0xfe0a34b1 in __sanitizer::GetThreadStackAndTls (main=true, stk_addr=0xfe608010, stk_size=0xfeffd240, tls_addr=0xfe608020, tls_size=0xfeffd244) at sanitizer_common/sanitizer_linux_libcdep.cpp:565 The address being accessed is unmapped. However, even when the tests `PASS` with Solaris `ld`, `ASAN_OPTIONS=verbosity=2` shows ==6582==__tls_get_addr: Can't guess glibc version Given that that the code is stricly `glibc`-specific according to `sanitizer_tls_get_addr.h`, there seems little point in using the interceptor on non-`glibc` targets. That's what this patch does. Tested on `i386-pc-solaris2.11` and `sparc-sun-solaris2.11` inside the GCC tree. Differential Revision: https://reviews.llvm.org/D141385
-
Sergey Kachkov authored
This patch extends Def memory dependency with support of select instructions to consistently handle pointer-select conversion. Differential Revision: https://reviews.llvm.org/D141619
-
Kadir Cetinkaya authored
This is causing flakiness, see https://lab.llvm.org/buildbot/#/builders/131/builds/39272
-
Fangrui Song authored
-
Noah Goldstein authored
This is essentially expanding on the optimizations added on: D120199 but applies the optimization to cases where the bit being changed / tested is not am IMM but is a provable power of 2. The only case currently added for cases like: `__atomic_fetch_xor(p, 1 << c, __ATOMIC_RELAXED) & (1 << c)` Which instead of using a `cmpxchg` loop can be done with `btcl; setcc; shl`. There are still a variety of missed cases that could/should be addressed in the future. This commit documents many of those cases with Todos. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D140939
-
Noah Goldstein authored
I.e for blsi match (and (sub 0, x), x) but we currently miss valid patterns like (and (and (sub 0, x), y), x). Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D141178
-
Jonathan Peyton authored
Each time a thread gets a new affinity assigned, it will not only assign its mask, but also topology information including which socket, core, thread and core-attributes (if available) it is now assigned. This occurs for all non-disabled KMP_AFFINITY values as well as OMP_PLACES/OMP_PROC_BIND. The information regarding which socket, core, etc. can take on three values: 1) The actual ID of the unit (0 - (N-1)), given N units 2) UNKNOWN_ID (-1) which indicates it does not know which ID 3) MULTIPLE_ID (-2) which indicates the thread is spread across multiple of this unit (e.g., affinity mask is spread across multiple hardware threads) This new information is stored in th_topology_ids[] array. An example how to get the socket Id, one would read th_topology_ids[KMP_HW_SOCKET]. This could be expanded in the future to something more descriptive for the "multiple" case, like a range of values. For now, the single value suffices. The information regarding the core attributes can take on two values: 1) The actual core-type or core-eff 2) KMP_HW_CORE_TYPE_UNKNOWN if the core type is unknown, and UNKNOWN_CORE_EFF (-1) if the core eff is unknown. This new information is stored in th_topology_attrs. An example how to get the core type, one would read th_topology_attrs.core_type. Differential Revision: https://reviews.llvm.org/D139854 -
Shilei Tian authored
This patch fixes the wrong format string used in `__kmpc_error`, which could cause segment fault at runtime. Reviewed By: jlpeyton Differential Revision: https://reviews.llvm.org/D141889
-
Jonathan Peyton authored
When building the library with icc and using it on macOS 12, the library destruction process is skipped which has many OMPT tests failing for macOS 12. This change registers the __kmp_internal_end_library() call for atexit() which will be a harmless, redundant call for macOS 11 and below and the only destructor called for macOS 12+. Differential Revision: https://reviews.llvm.org/D139857
-
chenglin.bi authored
https://alive2.llvm.org/ce/z/pLhHI9 Fix: https://github.com/llvm/llvm-project/issues/59598 Reviewed By: samtebbs Differential Revision: https://reviews.llvm.org/D141829
-
Chuanqi Xu authored
Closing https://github.com/llvm/llvm-project/issues/56436 We can't support the GNU address of label extension in coroutines well in current architecture. Since the coroutines are going to split into pieces in the middle end so the address of labels are ambiguous that time. To avoid any further misunderstanding, we try to emit an error here. Differential Revision: https://reviews.llvm.org/D131938
-
Shilei Tian authored
This patch fixes the issue that a functor is not captured properly if that is used in a task region. It was introduced by https://reviews.llvm.org/D114546 where `CallExpr` is treated specially, but the callee itself is not properly visited. https://reviews.llvm.org/D115902 already did some fix for one case. This patch fixes another case. Fix #57757. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D141873
-
Freddy Ye authored
-