- Jul 19, 2023
-
-
Louis Dionne authored
This way, we don't need to remove the contents of the ReleaseNotes file after the branch. This should make it much easier and natural to cherry-pick changes onto the release branch. Typically, we need two patches for those. First, we need the code changes against `main`, and then we need a patch that updates the release notes on the just-created branch. By versioning the release notes, it becomes easy to author a change against `main` that targets a just-branched LLVM release by simply adding it to the release notes for the right version. This has been a pain point in previous releases. Differential Revision: https://reviews.llvm.org/D155024
-
Jack Wolfard authored
Differential Revision: https://reviews.llvm.org/D155362
-
pateldeev authored
Implement c++20 `shared_ptr` rvalue overloads for aliasing constructor and pointer casts. See https://cplusplus.github.io/LWG/issue2996 Commit from "patedeev" <dkp10000@gmail.com> Reviewed By: philnik, #libc, ldionne, pateldeev Differential Revision: https://reviews.llvm.org/D135548
-
varconst authored
- add the `from_range_t` constructors and the related deduction guides; - add the `insert_range`/`assign_range`/etc. member functions. (Note: this patch is split from https://reviews.llvm.org/D142335) Differential Revision: https://reviews.llvm.org/D149830
-
Amanda Tang authored
Author inferReturnTypes methods with the Op Adaptor by using the InferTypeOpAdaptor. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D155115
-
David Green authored
I was attempting to add llvm.reduce.fminimum/fmaximum support for GlobalISel. In the process I noticed that llvm.reduce.fmin/fmax was missing, and could do with being added first. That led on to adding additional vector support for minnum/maxnum, which in turn led to needing to handle fptrunc and fpext for some of the fp16 types. So this patch extends the vector handling for fptrunc, adding support for f16 types which are clamped to 4 elements, and scalarizing the rest. I went round in circles a little with how smaller than legal vectors should be handled, but this seems simple and seems to work, if not always optimally yet. Differential Revision: https://reviews.llvm.org/D155311
-
Aiden Grossman authored
This patch switches from moving the performance counter file descriptor to the child process to socket calls rather than using the pidfd_getfd system call which was introduced in kernel 5.6. This significantly expands the range of kernel versions that are supported. Reviewed By: courbet Differential Revision: https://reviews.llvm.org/D154275
-
Craig Topper authored
Instead of zero extending the inputs by masking. We can shift them left instead. This is cheaper when we don't zext.w instruction. This does make the case where the inputs are already zero extended or freely zero extendable worse though. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155530
-
Simon Pilgrim authored
[DAG] SimplifyDemandedBits - attempt to use SimplifyMultipleUseDemandedBits for bitcasts from larger element types Attempt to avoid multi-use ops if the bitcast doesn't need anything from them.
-
Peter Klausler authored
A recent patch replaced two sprintf() calls with snprintf(), but didn't use the right length for the remaining space in the buffer. Differential Revision: https://reviews.llvm.org/D155224
-
Aiden Grossman authored
Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D151039
-
Haojian Wu authored
-
Craig Topper authored
This makes Zicond and XVentanaCondOps use the same code path. The instructions have identical semantics. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155391
-
Quentin Colombet authored
This patch adds an interface, named AggregatedOpInterface, that decomposes complex operations into simpler ones. For now, make the interface specific to Linalg because although the concept is general, the way to materialize it needs some maturing. Use that interface with the softmax operator. Differential Revision: https://reviews.llvm.org/D154363
-
Craig Topper authored
[RISCV][AArch64][IRGen] Add a special case to CodeGenFunction::EmitCall for scalable vector return being coerced to fixed vector. Before falling back to CreateCoercedStore, detect a scalable vector return being coerced to fixed vector. Handle it using a vector.extract intrinsic without going through memory. Reviewed By: c-rhodes Differential Revision: https://reviews.llvm.org/D155495
-
eopXD authored
[RISCV] Add test coverage for peephole vmerge optimization of unmasked rvv instruction with a rounding mode (NFC) No functional change intended. Reviewed By: fakepaper56 Differential Revision: https://reviews.llvm.org/D155550
-
eopXD authored
Resolves #63917. Also lets the compiler check for available GPR before hitting the stack. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D155502
-
Arthur Eubanks authored
-
Craig Topper authored
This allows TII isCopyInstrImpl to consider them copies. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155140
-
Craig Topper authored
The vmv1r.v v8, v9 in the last block can be removed by late copy propagation. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155527
-
Alan Zhao authored
In C++20, if Clang fails to perform constructor overload on a RecordType, then Clang will try to perform parentesized aggregate initialization. If that fails and the initialization was attempted as part of a cast, then we should get the diagnostics from the failed constructor overload attempt. However, we don't attempt constructor overloading for arrays, so previously, if we try to diagnose an overloaded cast for a parenthesized aggregate initialization of an array, we crash. To fix this, we now exit tryDiagnoseOverloadedCast(...) for failed parentesized list initialization if the destination type is an array. Fixes #63758 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D155523
-
Zhuojia Shen authored
This patch optimizes a pair of LDRSWpre and LDRSWui (or LDURSWi) instructions into a single LDPSWpre instruction. This is a missing case in D99272. MIR test cases in D152564 are updated to verify the optimization. Differential Revision: https://reviews.llvm.org/D152407
-
Zhuojia Shen authored
This patch adds MIR test cases that test merging an LDRSWpre-LDR instruction pair into an LDPSWpre instruction. This optimization is currently missing and will be added a subsequent patch (D152407), so all test cases are no merge for now. Differential Revision: https://reviews.llvm.org/D152564
-
Alexander Batashev authored
The following pattern fails on recent GCC versions with -std=c++20 flag passed and succeeds with -std=c++17. Such behavior is not observed on Clang 16.0. ```c++ template <typename T> struct Foo { Foo<T>(int a) {} }; ``` This patch removes template parameter from constructor in two occurences to make the following command complete successfully: bazel build -c fastbuild --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 @llvm-project//llvm/... Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D154782 -
Joseph Huber authored
Summary: The changes in D155173 caused build failures on some configruations due to the use of `Range` which conflicts with other definitions. Explicitly use `clangd::Range`.
-
Joseph Huber authored
Currently we keep an internal buffer of device memory that is used to indicate ownership of a port. Since we only use this as a single bit we can simply turn this into a bitfield. I did this manually rather than having a separate type as we need very special handling of the masks used to interact with the locks. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D155511
-
Simon Pilgrim authored
We currently don't extract vector elements from multi-use build vectors unless TLI.aggressivelyPreferBuildVectorSources accepts them, which seems a little extreme for constant build vectors (especially as under some cases ComputeKnownBits will indirectly extract the data for us). This is causing a few regressions in some upcoming SimplifyDemandedBits work I'm looking at, all of which just need to know that the element is zero, so I've tweaked the fold to accept zero elements as well, which will typically fold very easily. Differential Revision: https://reviews.llvm.org/D155582
-
Simon Pilgrim authored
-
Rahul Kayaith authored
This functionality has been replaced by TypeCasters (see D151840) depends on D154468 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D154469
-
Dinar Temirbulatov authored
As a request in https://reviews.llvm.org/D152205
-
Joseph Huber authored
This reverts commit eca8b54a. Another user reverted the patch this was based on leaving this one in a broken state.
-
Slava Zakharin authored
This patch sets 'polymorphic' attribute of hlfir::ExprType when the value is created from a polymorphic entity. Memoization of such ExprType involves creating a mutable descriptor on the stack, which is initialized (as a null box) and passed to AllocatableApplyMold with the mold being the entity from which the ExprType value is being created. This patch fixes "creating polymorphic temporary" TODO and also several cases of "'fir.convert' op invalid type conversion" error. Reviewed By: tblah Differential Revision: https://reviews.llvm.org/D155541
-
- Jul 18, 2023
-
-
Joseph Huber authored
A previous patch made this cause an error on the GPU. We have not yet dedicated time towards an optimial implementaiton there but we do not want it to cause an error. We simply use the fallback routines. Differential Revision: https://reviews.llvm.org/D155615
-
Jens Carl authored
The forcing of the linker for a new module was moved from file clang-tidy/tools/ClangTidyModule.cpp to clang-tidy/ClangTidyForceLinker.h. Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D76477
-
Jon Chesterfield authored
Broke amdgpu libc bot This reverts commit a39c9517.
-
Mark de Wever authored
The operator++, operator++(int), operator--, and operator--(int) need to change the month to a valid value. The wording is specified in terms of operator+(const month& x, const months& y) noexcept; which has the correct behavior. The aforementioned operators instead used ++/-- on the internal value direction, resulting in incorrect behaviour. As a drive-by improve the unit tests: - use the typical constexpr test method - test whether the month is valid after the operations - format the tests Fixes: https://llvm.org/PR63912 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D155504
-
Haojian Wu authored
- No longer store the diagnostic fixits in the clangdLSPServer - When propagating the fixit via the code action, we use the Diag information stored in the ParsedAST (in clangdServer.cpp) Differential Revision: https://reviews.llvm.org/D155173
-
Martin Storsjö authored
This reverts commit b1d0bc0f. Builds with expensive checks show that 'sp' isn't a valid register in ADDXrr - an object file built without exprnsive checks enabled disassembles as "add x15, xzr, x16", instead of the intended "add x15, sp, x16".
-
Razvan Lupusoru authored
A declare directive is used to specify the creation of a visible device copy of a variable for the duration of the implicit data region as it relates to the scope in which the variable is declared. In order to support this, the following new operations were added: 1) `acc.global_ctor` and `acc.global_dtor`. These are used whenever the declare directive applies to a global. 2) `acc.declare_enter` and `acc.declare_exit`. These operations are modeled similarly to `acc.enter_data` and `acc.exit_data`. The reason they are not modeled like `acc.data` is so that these operations can be used both for globals and regions like functions. 3) `acc.declare_device_resident` and `acc.declare_link`. These operations are modeled in a manner consistent with previously defined data entry operation model. The `acc.getdeviceptr` was generalized so that it can be used with acc.declare_exit. Reviewed By: clementval, vzakhari Differential Revision: https://reviews.llvm.org/D155322
-
Markus Böck authored
Currently when inlining, any alias scope information previously attached to the call op is lost. This leads to a loss of information that could be used by alias analysis to determine that two memory access operations do not alias. This patch fixes this issue by also taking any alias scopes of the call operation into account. These can then simply be appended onto any inlined operations. This is analogous to the following code in LLVM: https://github.com/llvm/llvm-project/blob/1768c4597e70477af2d69f576f33400181a5f945/llvm/lib/Transforms/Utils/InlineFunction.cpp#L940 Differential Revision: https://reviews.llvm.org/D155595
-