- Mar 03, 2024
-
-
AMS21 authored
We now treat `explicit(false)` the same way we treat `noexcept(false)` in the noexcept checks, which is ignoring it. Also introduced a new warning message if a constructor has an `explicit` declaration which evaluates to false and no longer emit a faulty FixIt. Fixes #81121
-
David Green authored
This is something we generally tend to avoid due to it confusing the git history, but with the new github formatting bots being more noisy we keep running into issues with the existing formatting when adding or adjusting CPUs. This patch formats the code to make sure we are in a good state going forward.
-
Quinn Dawkins authored
This adds support for expansion of named linalg ops and linalg ops with reduction iterators. This improves the ability to make fusion decisions WRT reduction operations. To recover the previous behavior, users of the patterns can add a control function to restrict propagation of reshape by expansion through linalg ops with reduction iterators. For named linalg ops, this always converts the named op into a generic.
-
Mehdi Amini authored
Some systems requires explictly providing -lpthread when linking, I don't have such system so it is hard to find all the missing cases.
-
Mehdi Amini authored
Some systems requires explictly providing -lpthread when linking, I don't have such system so it is hard to find all the missing cases.
-
Alex Richardson authored
This used to be required because rlim was declared volatile, but commit d657f109 removed that workaround.
-
Mehdi Amini authored
Some systems requires explictly providing -lpthread when linking, I don't have such system so it is hard to find all the missing cases.
-
Mehdi Amini authored
Some systems requires explictly providing -lpthread when linking, I don't have such system so it is hard to find all the missing cases.
-
Mehdi Amini authored
The header was updated but not the implementation.
-
Mehdi Amini authored
-
George Koehler authored
Delete the code that skips the CFI for the condition register on ELF32. The code checked !MustSaveCR, which happened only when Subtarget.is32BitELFABI(), where spillCalleeSavedRegisters is spilling cr in a different way. The spill was missing CFI. After deleting this code, a spill of cr2 to cr4 gets CFI in the same way as a spill of r14 to r31. Fixes #83094
-
Mehdi Amini authored
This decouples the public API used to enqueue tasks and wait for completion from the actual implementation, and opens up the possibility for clients to set their own thread pool implementation for the pool. https://discourse.llvm.org/t/construct-threadpool-from-vector-of-existing-threads/76883
-
Brad Smith authored
Bug #82010
-
Craig Topper authored
A std::vector causes a heap allocation and a memcpy of static initialization data from the rodata section. Use a static array instead so we can use the static data directly.
-
Craig Topper authored
In 7b5cf52f, I added this NewVL and checked that it had been set, but I didn't use it for the VL of the splat.
-
Craig Topper authored
-
Artem Tyurin authored
Fixes #77156.
-
Matthias Gehre authored
-
Mircea Trofin authored
-
Quinn Dawkins authored
This is similar to the existing folder for a linalg.copy. Transposing a filled tensor is the same as filling the destination of the transpose.
-
MagentaTreehouse authored
-
Mehdi Amini authored
This reverts commit 5f1319bb. A FIR test is broken on Windows
-
Owen Pan authored
-
Matthias Gehre authored
with a small stack-use-after-scope fix in getConstraintPredicates() This reverts commit c80e6edb.
-
Bjorn Pettersson authored
Previously, tblgen would reject patterns where one of its nested instructions produced more than one result. These arise when the instruction definition contains 'outs' as well as 'Defs'. This patch fixes that by always taking the first result, which is how these situations are handled in SelectionIDAG. Original patch: https://reviews.llvm.org/D86617 Continued as: https://github.com/llvm/llvm-project/pull/81130
-
Michał Górny authored
1. Replace the obsolete `llvm_add_unittests()` CMake function with an explicit check for `TARGET llvm_gtest`. This is more consistent with the rest of the code, and it makes it possible to avoid checking out `third-party` tree. 2. Add `LLDUnitTests` test dependency to standalone builds. It is defined unconditionally, and actually necessary to ensure that unit tests will be built.
-
Fangrui Song authored
https://reviews.llvm.org/D23195 does not test aliases.
-
Timm Bäder authored
-
Timm Bäder authored
-
Timm Bäder authored
We can't load anything from them, so reject them here.
-
Timm Bäder authored
Instead of just returning false.
-
Timm Bäder authored
Further down in this function, we assert that the variable has an initializer, which didn't work for external declarations.
-
- Mar 02, 2024
-
-
Hui authored
The goal of this patch is to make `atomic`'s wait functions to be reusable by `atomic_ref`. https://github.com/llvm/llvm-project/pull/76647 First, this patch is built on top of https://github.com/llvm/llvm-project/pull/80596 , to reduce the future merge conflicts. This patch made the following functions as "API"s to be used by `atomic`, `atomic_flag`, `semaphore`, `latch`, `atomic_ref` ``` __atomic_wait __atomic_wait_unless __atomic_notify_one __atomic_notify_all ``` These functions are made generic to support `atomic` type and `atomic_ref`. There are two customisation points. ``` // How to load the value from the given type (with a memory order) __atomic_load ``` ``` // what is the contention address that the platform `wait` function is going to monitor __atomic_contention_address ``` For `atomic_ref` (not implemented in this patch), the `load` and `address` function will be differen...
-
David Green authored
This makes an adjustment to the existing fir minloc/maxloc generation code to handle functions with a dim=1 that produce a scalar result. This should allow us to get the same benefits as the existing generated minmax reductions. This is a recommit of #76194 with an extra alteration to the end of genRuntimeMinMaxlocBody to make sure we convert the output array to the correct type (a `box<heap<i32>>`, not `box<heap<array<1xi32>>>`) to prevent writing the wrong type of box into it. This still allocates the data as a `array<1xi32>`, converting it into a i32 assuming that is safe. An alternative would be to allocate the data as a i32 and change more of the accesses to it throughout genRuntimeMinMaxlocBody.
-
Simon Pilgrim authored
If we're logical shifting an all-signbits value, then we can just mask out the shifted bits. This helps removes some unnecessary bitcasted vXi16 shifts used for vXi8 shifts (which SimplifyDemandedBits will struggle to remove through the bitcast), and allows some AVX1 shifts of 256-bit values to stay as a YMM instruction. Noticed in codegen from #82290
-
Florian Hahn authored
DSE uses BatchAA, which caches queries using pairs of MemoryLocations. At the moment, DSE may remove instructions that are used as pointers in cached MemoryLocations. If a new instruction used by a new MemoryLoation and this instruction gets allocated at the same address as a previosuly cached and then removed instruction, we may access an incorrect entry in the cache. To avoid this delay removing all instructions except MemoryDefs until the end of DSE. This should avoid removing any values used in BatchAA's cache. Test case by @vporpo from https://github.com/llvm/llvm-project/pull/83181. (Test not precommitted because the results are non-determinstic - memset only sometimes gets removed) PR: https://github.com/llvm/llvm-project/pull/83411
-
Daniil Kovalev authored
Reverts llvm/llvm-project#82363 See a build failure related to an issue discovered by memory sanitizer (use of uninitialized value): https://lab.llvm.org/buildbot/#/builders/37/builds/31965
-
Michael Spencer authored
As per the comment in `raw_fd_ostream`'s destructor, you must call `clear_error()` to prevent a call to `report_fatal_error()`. There's not really a way to test this, but we did encounter it in the wild. rdar://117347895
-
Daniil Kovalev authored
Currently, for x86 and x86_64 triples, "+sse" and "+sse2" are appended to `Features` vector of `TargetOptions` unconditionally. This vector is later reset in `TargetInfo::CreateTargetInfo` and filled using info from `FeaturesAsWritten` vector, so previous modifications of the `Features` vector have no effect. For x86_64 triple, we append "sse2" unconditionally in `X86TargetInfo::initFeatureMap`, so despite the `Features` vector reset, we still have the desired sse features enabled. The corresponding code in `X86TargetInfo::initFeatureMap` is marked as FIXME, so we should not probably rely on it and should set desired features properly in `ClangExpressionParser`. This patch changes the vector the features are appended to from `Features` to `FeaturesAsWritten`. It's not reset later and is used to compute resulting `Features` vector.
-