- Aug 19, 2022
-
-
LLVM GN Syncbot authored
-
Peter Klausler authored
Support these legacy extension intrinsic functions with unambiguous semantics in those existing compilers that support them by means of recognizing them as aliases for standard intrinsics (IMAG) or with simple rewrites (IZEXT, JZEXT). Note that ZEXT has different semantics in different existing compilers, so we will not support it due to lack of a broad unambiguous precedent. Differential Revision: https://reviews.llvm.org/D132154
-
Sanjay Patel authored
(~A | C) | (A ^ B) --> ~(A & B) | C https://alive2.llvm.org/ce/z/Qw3aiJ This extends the existing fold (just above the new match) to peek through another 'or' instruction. This should let the motivating case from issue #57174 simplify completely.
-
Sanjay Patel authored
-
Adrian Vogelsgesang authored
Implements part of P1614R2 "The Mothership has Landed" Differential Revision: https://reviews.llvm.org/D130859
-
Joe Loser authored
Use `std::clamp` directly from the standard library now that LLVM is built with C++17 standards mode. Differential Revision: https://reviews.llvm.org/D131869
-
Peter Klausler authored
Ensure that I/O buffers are flushed at the end of the program, and properly detect ttys for predefined units so that Fortran output is interspersed with output from non-Fortran code. Fixes https://github.com/llvm/llvm-project/issues/56944 Differential Revision: https://reviews.llvm.org/D132152 Update: fix typo in comment
-
Chris Bieneman authored
The DXC driver tests don't really belong mixed in with the toolchain tests. This pulls them out to their own file and moves the SimpleDiagnosticConsumer into a header so it can be used by both DXC and toolchain tests. fast-forwarded.
-
Alex Brachet authored
Additionally mark this test unsupported for ps5 in addition to ps4, niether support -fuse-ld=
-
Krzysztof Parzyszek authored
This avoids deprecation warning: ``` warning: definition of implicit copy assignment operator for 'AddrInfo' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy] ``` This fixes https://github.com/llvm/llvm-project/issues/57229
-
Louis Dionne authored
When we ship LLVM 16, <ranges> won't be considered experimental anymore. We might as well do this sooner rather than later. Differential Revision: https://reviews.llvm.org/D132151
-
Peter Klausler authored
Print the full shapes of both argument when the dimensions that must match do not do so. Differential Revision: https://reviews.llvm.org/D132153
-
Michael Maitland authored
A debug message in `LoopAccessAnalysis` did not have a newline in it, causing printed debug messages to be formatted incorrectly. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132172
-
Ellis Hoag authored
This reverts commit ee80903a. This seems to have broke builds Differential Revision: https://reviews.llvm.org/D132174
-
Nikolas Klauser authored
Reviewed By: ldionne, huixie90, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132016
-
Ellis Hoag authored
When checking if we are cross-compiling, use `CMAKE_HOST_SYSTEM_NAME` rather than `CMAKE_HOST_SYSTEM` which seems to have the full version number attached. Reviewed By: smeenai Differential Revision: https://reviews.llvm.org/D132130
-
Jacques Pienaar authored
Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D131976
-
Alex Brachet authored
Additionally, the explicit linux target has been removed from the test. Differential Revision: https://reviews.llvm.org/D131214
-
Philip Reames authored
On known hardware, reductions, gather, and scatter operations have execution latencies which correlated with the vector length (VL) of the operation. Most other operations (e.g. simply arithmetic) don't correlated in this way, and instead essentially fixed cost as VL varies. When I'd implemented initial scalable cost model support for reductions, gather, and scatter operations, I had used an upper bound on the statically unknown VL. The argument at the time was that this prevented falsely low costs, and biased the vectorizer away from generating bad (on some hardware) code. Unfortunately, practical experience shows we were a bit too effective at that goal, and the high costs defacto prevents vectorization using these constructs at all. This patch reverses course, and ties the returned cost not to the maximum possible VL, but the VL which would correspond to VScaleForTuning. This parameter is the same one the vectorizer uses when normalizing loop costs, so the term effectively cancels out. The result is that the vectorizer now sees these constructs as comparable in cost to their fixed length variants. This does introduce the possibility of the cost for these operations being a significant under estimate on platforms where actual VLEN is far from that implied by VScaleForTuning. On such platforms, we might make poor heuristic choices. Probably not in LV itself (due to the cancellation mentioned above), but possibly during e.g. lowering. I'm not currently aware of any concrete examples of this, but this patch does open a concern which did not previously exist. Previously, we had the problem of overestimating costs causing the same problem on machines much closer to default values for vscale for tuning. With this patch, we still have that problem potentially if vscale for tuning is set high (manually), and then the code is run on a narrow VLEN machine. Differential Revision: https://reviews.llvm.org/D131519
-
Nico Weber authored
-
Prabhdeep Singh Soni authored
This patch adds OMPIRBuilder support for the safelen clause for the simd directive. Reviewed By: shraiysh, Meinersbur Differential Revision: https://reviews.llvm.org/D131526
-
John Ericson authored
We held off on this before as `LLVM_LIBDIR_SUFFIX` conflicted with it. Now we return this. `LLVM_LIBDIR_SUFFIX` is kept as a deprecated way to set `CMAKE_INSTALL_LIBDIR`. The other `*_LIBDIR_SUFFIX` are just removed entirely. I imagine this is too potentially-breaking to make LLVM 15. That's fine. I have a more minimal version of this in the disto (NixOS) patches for LLVM 15 (like previous versions). This more expansive version I will test harder after the release is cut. Reviewed By: sebastian-ne, ldionne, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D130586
-
Michele Scuttari authored
The methods to perform such operations have been implemented for the DynamicMemRefType in a way that is similar to the implementation for StridedMemRefType. Up until here one could pass an unranked memref to the library, and thus obtain a “dynamic” memref descriptor, but then there would have been no possibility to operate on its content.
-
Emil Kieri authored
to match the emitted warning, which has changed. I push this without review as it is a one-line NFC. I have discussed it in D130386, which altered the warning in question.
-
Joseph Huber authored
Summary: We should return and propagate these errors instead of reporting them immediately. Also use llvm::copy instead.
-
Xiang Li authored
When there's no -E option, use main as entry function. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D124753
-
Wolfgang Pieb authored
Add the clang option -finline-max-stacksize=<N> to suppress inlining of functions whose stack size exceeds the given value. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D131986
-
Jeff Niu authored
This patch "modernizes" the implementation of these operations by switching them to assembly formats and type inference traits. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131971
-
Peiming Liu authored
There is an (probably) unintended bracket in the documentation for `memref.subview`. See https://mlir.llvm.org/docs/Dialects/MemRef/#memrefsubview-mlirmemrefsubviewop below Example 5. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D132150
-
Valentin Clement authored
Function returning CHARACTER with adjustable length or dynamic arrays can have negative length or extents passed to them. This patch makes sure any negative inputs is rounded to 0. Reviewed By: vdonaldson Differential Revision: https://reviews.llvm.org/D132139
-
Valentin Clement authored
The TargetRewrite pass can change the number of argument of a function. An extra llvm.nest attribute is added and was not set at the correct position if an extra argument was inserted before. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D132113
-
Florian Hahn authored
If the incoming previous value of a fixed-order recurrence is a phi in the header, go through incoming values from the latch until we find a non-phi value. Use this as the new Previous, all uses in the header will be dominated by the original phi, but need to be moved after the non-phi previous value. At the moment, fixed-order recurrences are modeled as a chain of first-order recurrences. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D119661
-
Philip Reames authored
-
Nikolas Klauser authored
[libc++] Replace _LIBCPP_INLINE_VISIBILITY and mark all functions _LIBCPP_HIDE_FROM_ABI in __split_buffer Reviewed By: ldionne, huixie90, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132028
-
Philip Reames authored
-
Vitaly Buka authored
Re-enable after fixing https://github.com/llvm/llvm-project/issues/57231
-
Vitaly Buka authored
Re-enabled when https://github.com/llvm/llvm-project/issues/57206 fixed.
-
Vitaly Buka authored
-
Emil Kieri authored
Make tests expect the (correctly) emitted warnings using the WARNING directive. This directive is non-functional now, but will be recognised by test_errors.py when D125804 is landed. This patch is a preparation for D125804. For most tests, we add missing WARNING directives for emitted warnings, but there are exceptions: - for int-literals.f90 and resolve31.f90 we pass -pedantic to the frontend driver, so that the expected warnings are actually emitted. - for block-data01.f90 and resolve42.f90 we change the tests so that warnings, which appear unintentional, are not emitted. While testing the warning in question (padding added for alignment in common block) would be desired, that is beyond the scope of this patch. This warning is target-dependent. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D131987
-
Jeff Niu authored
-