- Mar 27, 2021
-
-
Petr Hosek authored
Rather than including libc++ include dir, use the cxx-headers target. Differential Revision: https://reviews.llvm.org/D98367
-
Sameer Rahmani authored
`concept` is a reserved keyword in C++20, it can't be used as a variable name. Here is an example of the failure: ``` auto *concept = getInterfaceFor(op); ^ include/mlir/IR/SymbolInterfaces.h.inc:156:12: error: expected expression [clang-diagnostic-error] if (!concept) ^ ``` Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D99369 -
Florian Hahn authored
Things like addrspacecast may not be no-ops, so we should not look through them.
-
Anastasia Stulova authored
-
Nikita Popov authored
Handle (x << s) != (y << s) where x != y and the shifts are non-wrapping. Once again, this establishes parity with the corresponing mul fold that already exists. The shift case is more powerful because we don't need to guard against multiplies by zero.
-
Nikita Popov authored
This handles the pattern X != X << C for non-zero X and C and a non-overflowing shift. This establishes parity with the corresponing fold for multiplies.
-
Nikita Popov authored
-
Giorgis Georgakoudis authored
IR values convert to check prefix FileCheck variables for IR checks. For example, nameless values, e.g., %0, convert to check prefix TMP FileCheck variables, e.g., [[TMP0:%.*]]. This check prefix may clash with named values that have the same name and that causes auto-generated tests to fail. Currently a warning is emitted to change the names of the IR values but this is not always possible, if for example they are generated by clang. Manual intervention to fix the FileCheck variable names is too tedious. This patch add a parameter to prefix conflicting FileCheck variable names with a user-provided string to automate the process. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D99415
-
Alex Zinenko authored
-
Fangrui Song authored
With D98926, many_tls_keys_pthread.cpp appears to be working. On glibc 2.30-0ubuntu2, swapcontext.cpp and Linux/fork_and_leak.cpp work fine but they strangely fail on clang-cmake-aarch64-full (https://lab.llvm.org/buildbot/#/builders/7/builds/2240). Disable them for now. Note: check-lsan was recently enabled on AArch64 in D98985. A test takes 10+ seconds. We should figure out the bottleneck.
-
Florian Hahn authored
Add coverage for pointercasts other than bitcast. addrspacecast are not handled properly at the moment.
-
Sanjay Patel authored
-
Stefan Gränitz authored
-
Stefan Gränitz authored
-
Nikita Popov authored
In this case we don't care about the step at all, and only require that the starting value is non-zero.
-
Nikita Popov authored
-
Nikita Popov authored
This is mainly for clarity: It doesn't make sense to do any negative/positive checks when dealing with a nuw add/mul. These only make sense to nsw add/mul.
-
Nikita Popov authored
-
Vaivaswatha Nagaraj authored
-
Simon Pilgrim authored
Peek through bitcasts to find subvector splits and use getTargetShuffleInputs to decode target shuffles as well as ShuffleVectorSDNode
-
Vaivaswatha Nagaraj authored
Option seems to be unsupported on the buildbot version of OCaml. So expand the statements using a match. Fixes buildbot failure due to https://github.com/llvm/llvm-project/commit/c244cd72172ca8941f9f67fc183ade8afcd61c17
-
Florian Hahn authored
-
Vaivaswatha Nagaraj authored
In the process of adding the tests, several bugs were found in the implementation and interface of the API and they were fixed. Some utilities from the core tests (core.ml) were moved into a separate file for reuse. The following new functions have been added: `dibuild_create_global_variable_expression`, `dibuild_create_constant_value_expression` and `llmetadata_null`. The third one already existed but is now exposed publicly. Differential Revision: https://reviews.llvm.org/D99403
-
Aleksandr Platonov authored
Without this patch CMake log contains `Using protobuf` instead of `Using protobuf <version>`. Reviewed By: kbobyrev Differential Revision: https://reviews.llvm.org/D99405
-
Pavel Labath authored
It's flaky everywhere, not just arm.
-
Pavel Labath authored
It seems debugserver does not implement these packets.
-
Pavel Labath authored
It's not enough the change the comment -- one has to actually change the constant before it. :/
-
- Mar 26, 2021
-
-
Jay Foad authored
If the result of an atomic operation is not used then it can be more efficient to build a reduction across all lanes instead of a scan. Do this for GFX10, where the permlanex16 instruction makes it viable. For wave64 this saves a couple of dpp operations. For wave32 it saves one readlane (which are generally bad for performance) and one dpp operation. Differential Revision: https://reviews.llvm.org/D98953
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D99345
-
Zbigniew Sarbinowski authored
Need to exclude nasty_macros.h from check-cxx on z/OS due to conflicts within system headers. Sample failure in `random_shuffle.depr_in_cxx14.verify.cpp` libcxx test. ``` error: 'error' diagnostics seen but not expected: Line 1268: expected ')' Line 1268: unknown type name 'This' Line 1268: expected ')' ``` caused by the following macros in `nasty_macros.h` ``` #define NASTY_MACRO This should not be expanded!!! #define _E NASTY_MACRO ``` The name collision is observed in the following code snippet whre `_E` is being used as parameter name: ``` inline int iswalnum(wint_t _E) {return __iswalnum(_E);} ``` It is reasonable to exclude `nasty_macros.h` on z/OS similarly as it was done on Windows. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D99378 -
Florian Hahn authored
This patch adds a few test cases where currently NoAlias is returned, but the pointers can alias if the multiply overflows while computing a GEP index value.
-
Sanjay Patel authored
This was originally just an XFAIL test, but I modified it to check output. To make that bot-friendly, I'm moving it to the x86 dir since it specified an x86 target.
-
Anastasia Stulova authored
Differential Revision: https://reviews.llvm.org/D99258
-
Zakk Chen authored
Add the constraint when destination EEW not equals the source EEW for correctness. The RVV spec has three register overlap rules and I implement the first stricter constraint because the others are difficult to enforce. Reviewed By: frasercrmck, craig.topper Differential Revision: https://reviews.llvm.org/D98920
-
Fanbo Meng authored
Zero length bitfield alignment is not respected if they are leading members on z/OS target. Reviewed By: abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D98890
-
Sanjay Patel authored
This reverts commit 3c8473ba and includes test diffs to maintain testing status. There's at least 1 place that was not updated with 7202f475 , so we can crash mismatching select and intrinsics as shown in PR49730.
-
Anastasia Stulova authored
-
Nashe Mncube authored
The tests, test/Transforms/InstCombine/AArch64/sve-*, have been shown to not be AArch64 specific. These tests have been renamed and moved to reflect this. Differential Revision: https://reviews.llvm.org/D99253
-
Josh Berdine authored
The implementation of `llvm_struct_name` before this diff calls `caml_copy_string`, which allocates, while the `result` local variable points to a block allocated by `caml_alloc_small` that has not yet been initialized. If the allocation in `caml_copy_string` triggers a garbage collection, then the GC root `result` contains a pointer to uninitialized data, which may crash the GC or lead to a memory corruption. This diff fixes this by allocating and initializing the string first and then allocating and initializing the option, thereby leaving no dangling pointers when allocations are made. The conversion from a C string to an OCaml string option is refactored into a function, `cstr_to_string_option`. This function is also used to simplify the definitions of `llvm_get_mdstring` and `llvm_string_of_const`. Differential Revision: https://reviews.llvm.org/D99393
-
Josh Berdine authored
There are a number of compilation warnings regarding disregarding const qualifiers, and casting between pointers to integer types with different sign. The incompatible sign warnings are due to treating the result of `LLVMGetModuleIdentifier` as `const unsigned char *`, but it is declared as `const char *`. The dropped const qualifiers are due to the code pattern `memcpy(String_val(_),_,_)` which ought to be (following the implementation of the OCaml runtime) `memcpy((char *)String_val(_),_,_)`. The issue is that `String_val` is usually used to get the value of an immutable string. But in the context of the `memcpy` calls, the string is in the process of being initialized, so is not yet constant. Differential Revision: https://reviews.llvm.org/D99392
-