- Mar 25, 2022
-
-
Aakanksha authored
This change fixes the code violations flagged in AMD compute CodeQL scan - "comparison-with-wider-type" Differential Revision: https://reviews.llvm.org/D122447
-
Aaron Ballman authored
-
Simon Pilgrim authored
Add mul to the list of ops that we canonicalize with a select to expose an identity merge Differential Revision: https://reviews.llvm.org/D122071
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Javier Setoain authored
Use "enable-vla-vectorization=vla" to generate a vector length agnostic loops during vectorization. This option works for vectorization strategy 2. Differential Revision: https://reviews.llvm.org/D118379
-
Simon Pilgrim authored
This also exposed a missed ADC canonicalization of constant ops to the RHS
-
Javier Setoain authored
The way vector.create_mask is currently lowered is vector-length-dependent, and therefore incompatible with scalable vector types. This patch adds an alternative lowering path for create_mask operations that return a scalable vector mask. Differential Revision: https://reviews.llvm.org/D118248
-
Thomas Symalla authored
On GFX10.3 targets, the following instruction sequence v_cmp_* SGPR, ... s_and_saveexec ..., SGPR leads to a fairly long stall caused by a VALU write to a SGPR and having the following SALU wait for the SGPR. An equivalent sequence is to save the exec mask manually instead of letting s_and_saveexec do the work and use a v_cmpx instruction instead to do the comparison. This patch modifies the SIOptimizeExecMasking pass as this is the last position where s_and_saveexec instructions are inserted. It does the transformation by trying to find the pattern, extracting the operands and generating the new instruction sequence. It also changes some existing lit tests and introduces a few new tests to show the changed behavior on GFX10.3 targets. Same as D119696 including a buildbot and MIR test fix. Reviewed By: critson Differential Revision: https://reviews.llvm.org/D122332
-
Simon Pilgrim authored
User is dereferenced on the main codepath so the null test is likely superfluous
-
Simon Pilgrim authored
[Utils] stripDebugifyMetadata - use cast<> instead of dyn_cast_or_null<> to avoid dereference of nullptr The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr
-
Simon Pilgrim authored
[AsmPrinter] AIXException::endFunction - use cast<> instead of dyn_cast<> to avoid dereference of nullptr The pointer is used immediately inside the getSymbol() call, so assert the cast is correct instead of returning nullptr
-
Simon Pilgrim authored
[clang] CheckSizelessVectorOperands - use castAs<> instead of getAs<> to avoid dereference of nullptr Move the only uses of the cast to where they are dereferenced.
-
Simon Pilgrim authored
-
David Green authored
This reverts commit ec93b289 as problems with it have been reported.
-
Marek Kurdej authored
-
Kai Luo authored
-
Dávid Bolvanský authored
-
Daniil Kovalev authored
In D120129 we enhanced vectorization options of byval parameters. This patch removes code duplication when handling byval and non-byval cases. Differential Revision: https://reviews.llvm.org/D122381
-
Iain Sandoe authored
This is the first in a series of patches that introduce C++20 importable header units. These differ from clang header modules in that: (a) they are identifiable by an internal name (b) they represent the top level source for a single header - although that might include or import other headers. We name importable header units with the path by which they are specified (although that need not be the absolute path for the file). So "foo/bar.h" would have a name "foo/bar.h". Header units are made a separate module type so that we can deal with diagnosing places where they are permitted but a named module is not. Differential Revision: https://reviews.llvm.org/D121095 -
Nikita Popov authored
The way the alignment is determined here is not compatible with opaque pointers -- we'd have to thread it through using either align or elementtype attributes. However, as far as I can tell this alignment is actually never used for this particular intrinsic, so I've dropped the assignment entirely and converted RecordAlignment to MaybeAlign, so we get an assertion failure if it does end up being used. Differential Revision: https://reviews.llvm.org/D122379
-
Jean Perier authored
-
Jean Perier authored
Follow-up of https://reviews.llvm.org/D121488 to ensure all descriptors created inline complies with LBOUND requirement that the lower bound is `1` when the related dimension extent is zero. Both fir.xrebox and fir.xembox codegen is updated to enforce this constraint. Also upstream the "normalized lower bound" attribute that was added in fir-dev since embox codegen was upstreamed, it is conflicting with this patch otherwise. Differential Revision: https://reviews.llvm.org/D122419
-
Jean Perier authored
GetLowerBoundHelper rewrite in https://reviews.llvm.org/D121488 was incorrect with POINTER/ALLOCATABLE components. The rewrite created a descriptor inquiry to the component symbol only instead of the whole named entity. The base information was lost, and not retrievable. LBOUND(a(10)%p) became LBOUND(p). Fix this regression, and also update DescriptorInquiry unparsing to carry the kind information. DescriptorInquiries are KIND 8 expressions, while LBOUND/SIZE/RANK, %LEN are default kind expressions. This caused `print *,lbound(x,kind=8)` to unparse as `print*,lbound(x)` which is not semantically the same (this unparsing issue was not an issue for lowering, but I noticed it while writing my regression test). Differential Revision: https://reviews.llvm.org/D122406
-
Tom Stellard authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D121032
-
LLVM GN Syncbot authored
-
Carlos Alberto Enciso authored
At Sony we are developing llvm-dva https://lists.llvm.org/pipermail/llvm-dev/2020-August/144174.html For its PDB support, it requires functionality already present in llvm-pdbutil. We intend to move that functionaly into the PDB library to be shared by both tools. That change will be done in 2 steps, that will be submitted as 2 patches: (1) Replace 'ExitOnError' with explicit error handling. (2) Move the intended shared code to the PDB library. Patch for step (1): https://reviews.llvm.org/D121801 This patch is for step (2). Move InputFile.cpp[h], FormatUtil.cpp[h] and LinePrinter.cpp[h] files to the debug PDB library. It exposes the following functionality that can be used by tools: - Open a PDB file. - Get module debug stream. - Traverse module sections. - Traverse module subsections. Most of the needed functionality is in InputFile, but there are dependencies from LinePrinter and FormatUtil. Some other functionality is in the following functions in DumpOutputStyle.cpp file: - iterateModuleSubsections - getModuleDebugStream - iterateOneModule - iterateSymbolGroups - iterateModuleSubsections Only these specific functions from DumpOutputStyle are moved to the PDB library. Reviewed By: aganea, dblaikie, rnk Differential Revision: https://reviews.llvm.org/D122226
-
Valentin Clement authored
This patch adds the lowering for the `mvbits` intrinsic. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D122412 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Nathan Ridge authored
Fixes https://github.com/clangd/clangd/issues/890 Differential Revision: https://reviews.llvm.org/D113874
-
Fangrui Song authored
-
Thomas Raoux authored
Those ops can support more complex layout as long as the most inner dimension is contiguous. Differential Revision: https://reviews.llvm.org/D122452
-
Ben Shi authored
Synchronize device list with avr-gcc 7.3.0 and avrlibc 2.0.0. Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D122401
-
Nico Weber authored
It's unusual that BLAKE3/CMakeLists.txt just defines a list of files that it injects into its parent scope. The list should either be defined in llvm/lib/Support/CMakeLists.txt, or llvm/lib/Support/BLAKE3/CMakeLists.txt should define an object library. This does the latter. It makes llvm/lib/Support/BLAKE3/CMakeLists.txt more self-contained. No behavior change. Differential Revision: https://reviews.llvm.org/D122428
-
Akira Hatanaka authored
generic vector type rdar://86109177
-
Hubert Tong authored
Update `WeakUndeclaredIdentifiers` to hold a collection of weak aliases per identifier instead of only one. This also allows the "used" state to be removed from `WeakInfo` because it is really only there as an alternative to removing processed map entries, and we can represent that using an empty set now. The serialization code is updated for the removal of the field. Additionally, a PCH test is added for the new functionality. The records are grouped by the "target" identifier, which was already being used as a key for lookup purposes. We also store only one record per alias name; combined, this means that diagnostics are grouped by the "target" and limited to one per alias (which should be acceptable). Fixes PR28611. Fixes llvm/llvm-project#28985. Reviewed By: aaron.ballman, cebowleratibm Differential Revision: https://reviews.llvm.org/D121927 Co-authored-by:
Rachel Craik <rcraik@ca.ibm.com> Co-authored-by:
Jamie Schmeiser <schmeise@ca.ibm.com>
-
Groverkss authored
This patch is a cleanup patch that merges PresburgerLocalSpace and PresburgerSpace. Asserting that there are no locals is shifted to the users of PresburgerSpace themselves. The reasoning for this patch is that PresburgerLocalSpace did not contribute much and only introduced additional complexity as locals could still be present in PresburgerSpace, just not writable. This could introduce problems if a PresburgerSpace with locals was copied to PresburgerLocalSpace which expected no locals in a PresburgerSpace. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D122353
-
Nikolas Klauser authored
In C++20 the type trait `type_identity` was introduced. For the same purpose there is `__identity` for pre-C++20 code. The name is confusing, because since C++20 there is also `identity`, which isn't a type trait. Reviewed By: ldionne, Mordante, #libc Spies: EricWF, libcxx-commits Differential Revision: https://reviews.llvm.org/D122017
-
Tom Stellard authored
This is a re-commit of 98fd3b35. The newly added test was failing on the bots, and I've fixed the test now so that it doesn't actually invoke the linker.
-
Joseph Huber authored
A previous patch removed the compiler generating offloading entries for variables that were declared on the device but were internal or hidden. This allowed us to compile programs but turns any attempt to run '#pragma omp target update' on one of those variables a silent failure. This patch adds a check in the semantic analysis for if the user is attempting the update a variable on the device from the host that is not externally visible. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D122403
-
Thomas Raoux authored
This transformation allow to break up a reduction dimension in a parallel and a reduction dimension. This is followed by a separate reduction op. This allows to generate tree reduction which is beneficial on target allowing to take advantage parallelism. Differential Revision: https://reviews.llvm.org/D122045
-