- Jan 20, 2023
-
-
River Riddle authored
Add a specific class for local scope attributes and remove some unnecessary casts.
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Some of these were relying on ReducerWorkItem's operator Module&.
-
Jonas Devlieghere authored
Re-enable the xmm/ymm/zmm tests now that the system debugserver used by our CI is capable or writing xmm/ymm/zmm registers.
-
Nico Weber authored
This reverts commit 8d498e08. a033dbbe was reverted in cf127092.
-
Nico Weber authored
This reverts commit ecade80d. Breaks tests on macOS and tries to run xcrun on non-mac platforms, see comments on https://reviews.llvm.org/D136315
-
Arthur Eubanks authored
This reverts commit d0907ce7. Causes `opt -passes=loop-unroll-full` to crash on ``` define void @foo() { bb: br label %bb1 bb1: ; preds = %bb1, %bb1, %bb switch i1 true, label %bb1 [ i1 true, label %bb2 i1 false, label %bb1 ] bb2: ; preds = %bb1 ret void } ```
-
Benjamin Kramer authored
vector<complex<...>> is currently not valid. This is a reduced version of https://reviews.llvm.org/D141578 Differential Revision: https://reviews.llvm.org/D142131
-
Argyrios Kyrtzidis authored
[Lex] For dependency directive lexing, angled includes in `__has_include` should be lexed as string literals rdar://104386604 Differential Revision: https://reviews.llvm.org/D142143
-
Diego Caballero authored
Reductions can't be folded into plain arith ops until we can mask those arith ops. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D141645
-
Daniele Castagna authored
Currently CGCUDANV uses an llvm::Function as a key to map kernels to a symbol in host code. HIP adds one level of indirection and uses the llvm::Function to map to a global variable that will be initialized to the kernel stub ptr. Unfortunately there is no garantee that the llvm::Function created by GetOrCreateLLVMFunction will be the same. In fact, the first time we encounter GetOrCrateLLVMFunction for a kernel, the type might not be completed yet, and the type of llvm::Function will be a generic {}, since the complete type is not required to get a symbol to a function. In this case we end up creating two global variables, one for the llvm::Function with the incomplete type and one for the function with the complete type. The first global variable will be declared by not defined, resulting in a linking error. This change uses the mangled name of the llvm::Function as key in the KernelHandles map, in this way the same llvm::Function will be associated to the same kernel handle even if they types are different. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D140663 -
Jeffrey Byrnes authored
Extension of https://reviews.llvm.org/D141101 to even further reduce the amount of implicit operands we attach. The main benefit is to improve cability of post-ra scheduler, and reduce unneeded dependency resolution (e.g. inserting snops). Unfortunately, we run into regressions if we completely minimize the amount implicit operands (naively), we run into some regressions (e.g. dual_movs are replaced with multiple calls to v_mov). This is even more reason to switch to LiveRegUnits. Nonetheless, this patch removes the operands which we can for free (more or less). Change-Id: Ib4f409202b36bdbc59eed615bc2d19fa8bd8c057 Differential Revision: https://reviews.llvm.org/D141557 Change-Id: I8b039e3c0d39436b384083f8beb947ee1b1730b2
-
Geoffrey Martin-Noble authored
These are caught by clang-16, which we're using in our project. Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D142158
-
serge-sans-paille authored
Also prevent integer overflow if MaximumDistance == UINT_MAX. This is a follow-up to 6ad1b409
-
Evgenii Stepanov authored
Linux kernel sets SCTRL_EL1.BT0 and BT1 to 1 unconditionally, which makes PACIASP equivalent to BTI C + PACIA LR,SP. Use the shorter instruction sequence by default. I'm not aware of anyone who needs the opposite. They are welcome to revert to the current behavior under a subtarget feature or an environment check. This reverts commit 571c8c52. Differential Revision: https://reviews.llvm.org/D141978
-
Volodymyr Sapsai authored
Allow completing a redeclaration check for anonymous structs/unions inside `RecordDecl`, so we deserialize and compare anonymous entities from different modules. Completing the redeclaration chain for `RecordDecl` in `ASTContext::getASTRecordLayout` mimics the behavior in `CXXRecordDecl::dataPtr`. Instead of completing the redeclaration chain every time we request a definition, do that right before we need a complete definition in `ASTContext::getASTRecordLayout`. Such code is required only for anonymous `RecordDecl` because we deserialize named decls when we look them up by name. But it doesn't work for anonymous decls as they don't have a name. That's why need to force deserialization of anonymous decls in a different way. rdar://81864186 Differential Revision: https://reviews.llvm.org/D140055
-
Volodymyr Sapsai authored
When two modules contain struct/union with the same name, check the definitions are equivalent and diagnose if they are not. This is similar to `CXXRecordDecl` where we already discover and diagnose mismatches. rdar://problem/56764293 Differential Revision: https://reviews.llvm.org/D71734
-
Alexey Bataev authored
The compiler may produce better results if it does not look for constants, uses an extra analysis of phi nodes, looks through all tree nodes without skipping the cases, where the very first set of nodes is empty. Also, it tries to reshufle the nodes if it is profitable for sure, i.e. at least 2 scalars are used for single node permutation and at least 3 scalars are used for the permutation of 2 nodes. Part of D110978 Differential Revision: https://reviews.llvm.org/D141512
-
Ye Luo authored
-
Paul Robinson authored
XFAIL" This reverts commit 2f8b920f. Forgot to update lit's own tests.
-
Alexander Shaposhnikov authored
Clang now automatically adds [[clang::lifetimebound]] to the parameters of std::move, std::forward et al, this enables Clang to diagnose more cases where the returned reference outlives the object. Associated GitHub issue: https://github.com/llvm/llvm-project/issues/60020 Test plan: ninja check-clang check-all Differential revision: https://reviews.llvm.org/D141744
-
Florian Hahn authored
Similar to vp_depth_first_shallow (D140512) add vp_depth_first_deep to make existing code clearer and more compact. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D142055
-
Gilles Gouaillardet authored
Put needed HWLOC version guards around relevant HWLOC API. Tested OpenMP host runtime build with HWLOC 1.11.13, 2.0-2.9. Differential Revision: https://reviews.llvm.org/D142152 Fix #54951
-
Thomas Raoux authored
GPU memory space have changed to new attributes. Update VectorToGPU pass to use those. Differential Revision: https://reviews.llvm.org/D142105
-
Frederik Gossen authored
This reverts commit 399b8ee7.
-
Paul Kirth authored
We were iterating over a SmallPtrSet when outputting slot variables. This is still correct but made the test fail under reverse iteration. This patch replaces the SmallPtrSet with a SmallVector. Also remove the "Stack Frame Layout" lines from arm64-opt-remarks-lazy-bfi test, since those also break under reverse iteration. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D142127
-
Jim Ingham authored
This is processed by hand in CommandObjectMultiword, and is undiscoverable, it doesn't work in all cases. Because it is a bare word, it can't really be extended w/o introducing the possibility of collisions as well. If we did want to do something like this we should add a --help flag to CommandObject. That way the feature would be consistent and documented. Differential Revision: https://reviews.llvm.org/D142067
-
Mark de Wever authored
Implements the range-default-formatter specialization range_format::map. Implements parts of - P2286R8 Formatting Ranges - P2585R0 Improving default container formatting Depends on D140653 Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D140801
-
Mehdi Amini authored
-
Arvind Sudarsanam authored
This is an issue reported inside the NewPMDriver module. Static analyzer reported that Null pointer 'P' may be dereferenced at line 371 and two more sites. Proposed change guards this use. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D142047
-
Noah Goldstein authored
According to https://uops.info/ ICL and newer have fast 3-term LEA. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D141974
-
Noah Goldstein authored
Definitionally a non-zero power of 2 will only have 1 bit set so this is a freebee. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D141990
-
Noah Goldstein authored
Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D141989
-
Frederik Gossen authored
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
This has multiple benefits: - The optimizations are also performed for the `ranges::` versions of the algorithms - Code duplication is reduced - it is simpler to add this optimization for other segmented iterators, like `ranges::join_view::iterator` - Algorithm code is removed from `<deque>` Reviewed By: ldionne, huixie90, #libc Spies: mstorsjo, sstefan1, EricWF, libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D132505
-