- Jan 08, 2021
-
-
Mark Murray authored
Differential Revision: https://reviews.llvm.org/D94083
-
Alexander Belyaev authored
Revert "Revert "Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis.""""" This reverts commit 6b0ee027. Circular dependency again.
-
Sanjay Patel authored
As noted in PR48689, the verifier may have some kind of exponential behavior that should be addressed separately. For now, only run it in debug mode to prevent problems for release+asserts. That limit is what we had before D80401, and I'm not sure if there was a reason to change it in that patch.
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D92749
-
Alex Richardson authored
FreeBSD did not provide the __atomic_* functions as part of the base system until recently. They were added to libgcc_s in SVN revision r364753 (August 2020), so check for availability of 'non-lockfree-atomics' so that these tests do not fail unexpectedly on older versions of FreeBSD. This also removes the #ifndef __APPLE__ from atomic_helpers.h that was used to work around lack of atomic runtime functions on older Apple platforms and replaces it with XFAIL: !non-lockfree-atomics. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D88818
-
Alex Richardson authored
This function is called by the __atomic_is_lock_free() builtin if the value cannot be resolved to true at compile time. Lack of this function is causing the non-lockfree atomics tests in libc++ to not be run (see D91911) This function is also added in D85044, but that review also adds support for using lock-free atomics in more cases, whereas this is a minimal change that just adds __atomic_is_lock_free() for the implementation of atomic.c. Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D92302
-
Kazushi (Jam) Marukawa authored
Clean ISel patterns for LSV and LVS before upstream more hand-written ISel patterns. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D94291
-
Haojian Wu authored
-
Haojian Wu authored
-
Nicholas Guy authored
Fixes a crash caused by D91255, when LLVMTy is null when calling changeExtendedVectorElementType. Differential Revision: https://reviews.llvm.org/D94234
-
David Sherwood authored
This patch adds support for two new variants of the vectorize_width pragma: 1. vectorize_width(X[, fixed|scalable]) where an optional second parameter is passed to the vectorize_width pragma, which indicates if the user wishes to use fixed width or scalable vectorization. For example the user can now write something like: #pragma clang loop vectorize_width(4, fixed) or #pragma clang loop vectorize_width(4, scalable) In the absence of a second parameter it is assumed the user wants fixed width vectorization, in order to maintain compatibility with existing code. 2. vectorize_width(fixed|scalable) where the width is left unspecified, but the user hints what type of vectorization they prefer, either fixed width or scalable. I have implemented this by making use of the LLVM loop hint attribute: llvm.loop.vectorize.scalable.enable Tests were added to clang/test/CodeGenCXX/pragma-loop.cpp for both the 'fixed' and 'scalable' optional parameter. See this thread for context: http://lists.llvm.org/pipermail/cfe-dev/2020-November/067262.html Differential Revision: https://reviews.llvm.org/D89031
-
Cullen Rhodes authored
In the following loop: void foo(int *a, int *b, int N) { for (int i=0; i<N; ++i) a[i + 4] = a[i] + b[i]; } The loop dependence constrains the VF to a maximum of (4, fixed), which would mean using <4 x i32> as the vector type in vectorization. Extending this to scalable vectorization, a VF of (4, scalable) implies a vector type of <vscale x 4 x i32>. To determine if this is legal vscale must be taken into account. For this example, unless max(vscale)=1, it's unsafe to vectorize. For SVE, the number of bits in an SVE register is architecturally defined to be a multiple of 128 bits with a maximum of 2048 bits, thus the maximum vscale is 16. In the loop above it is therefore unfeasible to vectorize with SVE. However, in this loop: void foo(int *a, int *b, int N) { #pragma clang loop vectorize_width(X, scalable) for (int i=0; i<N; ++i) a[i + 32] = a[i] + b[i]; } As long as max(vscale) multiplied by the number of lanes 'X' doesn't exceed the dependence distance, it is safe to vectorize. For SVE a VF of (2, scalable) is within this constraint, since a vector of <16 x 2 x 32> will have no dependencies between lanes. For any number of lanes larger than this it would be unsafe to vectorize. This patch extends 'computeFeasibleMaxVF' to legalize scalable VFs specified as loop hints, implementing the following behaviour: * If the backend does not support scalable vectors, ignore the hint. * If scalable vectorization is unfeasible given the loop dependence, like in the first example above for SVE, then use a fixed VF. * Accept scalable VFs if it's safe to do so. * Otherwise, clamp scalable VFs that exceed the maximum safe VF. Reviewed By: sdesmalen, fhahn, david-arm Differential Revision: https://reviews.llvm.org/D91718 -
Simon Moll authored
We do this mostly to be able to test the insert_vector_elt isel patterns. As long as we don't, most single element insertions show up as `BUILD_VECTOR` in the backend. Reviewed By: kaz7 Differential Revision: https://reviews.llvm.org/D93759
-
Simon Moll authored
Isel and tests for extract_vector_elt and insert_vector_elt. Reviewed By: kaz7 Differential Revision: https://reviews.llvm.org/D93687
-
Christian Sigg authored
See https://en.cppreference.com/w/cpp/language/return#Automatic_move_from_local_variables_and_parameters Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D94218
-
Qiu Chaofan authored
Update CodeGen regression tests with marker at first line telling it's auto-generated by the script, under PowerPC directory. For some reason, these tests are generated but manually written, which makes things unclear when someone's change affecting them. However, some tests only show simple change after re-generated, like extra blank lines, disappearing '.localentry', etc. Besides, some tests are generated but added checks for debug output. This commit doesn't try updating them.
-
Jan Svoboda authored
This reverts commit 8e3230ff
-
David Green authored
The new test case here contains a first order recurrences and an instruction that is replicated. The first order recurrence forces an instruction to be sunk _into_, as opposed to after the replication region. That causes several things to go wrong including registering vector instructions multiple times and failing to create dominance relations correctly. Instead we should be sinking to after the replication region, which is what this patch makes sure happens. Differential Revision: https://reviews.llvm.org/D93629
-
Kazushi (Jam) Marukawa authored
Add SVOB intrinsic instruction and a regression test. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D94279
-
Jan Svoboda authored
This patch introduces additional infrastructure necessary to accommodate DiagnosticOptions. DiagnosticOptions are unique in that they are parsed by the same function in cc1 AND in the Clang driver. The call to the parsing function from the driver occurs early on in the compilation process, where no proper DiagnosticEngine exists, because the diagnostic options (passed through command line) are not known yet. To preserve the current behavior, we need to be able to selectively parse: * all options (for -cc1), * only diagnostic options (for driver). This patch achieves that in the following way: * new MacroPrefix field is added to the Option TableGen class, * new IsDiag TableGen mixin sets MacroPrefix to "DIAG_", * TableGen backend serializes option records into a macro with the prefix, * CompilerInvocation parse/generate methods define the [DIAG_]OPTION_WITH_MARSHALLING macros to handle diagnostic options separately. Depends on D93700, D93701 & D93702. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D84673
-
Sjoerd Meijer authored
This factors out code from MachineLICM that determines whether an instruction is loop-invariant, which is a generally useful function. Thus this allows to use that helper elsewhere too. Differential Revision: https://reviews.llvm.org/D94082
-
David Sherwood authored
Add functionality to permit lowering of the abs and neg intrinsics using the passthru variants. Differential Revision: https://reviews.llvm.org/D94160
-
Martin Storsjö authored
As the actual windows unwinder doesn't support this case, don't pretend that it is supported when dumping the generated unwind info either, even if it would be possible to interpret it as something sensible. This should reduce the risk of us emitting such a case in code (although it's unlikely as long as the unwind info is generated through the SEH opcodes, as the opcodes can't describe this case). Differential Revision: https://reviews.llvm.org/D91529
-
Wang, Pengfei authored
-
Arthur Eubanks authored
This currently blocks --print-before/after with a legacy PM pass, for example when we use the new PM for the optimization pipeline but the legacy PM for the codegen pipeline. Also in the future when the codegen pipeline works with the new PM there will be multiple places to specify passes, so even when everything is using the new PM, there will still be multiple places that can accept different pass names. Reviewed By: hoy, ychen Differential Revision: https://reviews.llvm.org/D94283
-
Raul Tambre authored
When `BUILD_WITH_INSTALL_RPATH` is enabled it prevents using a custom rpath only for the build tree as the install rpath will be used. This makes it impossible to run a runtimes build when compiling with Clang and wanting the installed rpath to be empty (i.e. `-DCMAKE_BUILD_RPATH="<some path>" -DCMAKE_SKIP_INSTALL_RPATH=ON`). Disable `BUILD_WITH_INSTALL_RPATH` when `CMAKE_BUILD_RPATH` is non-empty to allow for such build scenarios. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D93177
-
Christudasan Devadasan authored
-
Jonas Devlieghere authored
DoReadMemory is LLDB's internal implementation and shouldn't be called directly. Differential revision: https://reviews.llvm.org/D94284
-
Jonas Devlieghere authored
Replace uses of GetModuleAtIndexUnlocked and GetModulePointerAtIndexUnlocked with the ModuleIterable and ModuleIterableNoLocking where applicable. Differential revision: https://reviews.llvm.org/D94271
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
The last use of the function was removed on Oct 20, 2018 in commit 8d6ff4c0.
-
LLVM GN Syncbot authored
-
Artem Dergachev authored
Revert "Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis."""" This reverts commit b12f2673. Fix dead include that looked like another missed circular dependency.
-
David Blaikie authored
-
David Blaikie authored
Fix print-dot-ddg.ll so it doesn't try to write to the source tree (& uses the test temp paths instead)
-
David Blaikie authored
Seems consistent with the way other tests in this directory do linking
-
Alexandre Ganea authored
-
Mehdi Amini authored
The ODSOperand indexing should ignore the attributes. Differential Revision: https://reviews.llvm.org/D94281
-
Nico Weber authored
I noticed __availability was missing, so I manually diffed the file lists and put all recently(ish) added headers: * __availability from 2eadbc86 * concepts from 601f7631 * execution from 0a06eb91 * numbers from 4f6c4b47 Also remove libcxx_install_support_headers like the CMake build did in 6706342f, and unconditionally copy support/win32/{limits_msvc_win32.h,locale_win32.h} like the CMake build always did as far as I can tell.
-