- Sep 26, 2023
-
-
Austin Kerbow authored
This patch adds the DAG isel changes for kernel argument preloading. These changes are not usable with older firmware but subsequent patches in the series will make the codegen backwards compatible. This patch should only be submitted alongside that subsequent patch. Preloading here begins from the start of the kernel arguments until the amount of arguments indicated by the CL flag amdgpu-kernarg-preload-count. Aggregates and arguments passed by-ref are not supported. Special care for the alignment of the kernarg segment is needed as well as consideration of the alignment of addressable SGPR tuples when we cannot directly use misaligned large tuples that the arguments are loaded to. Reviewed By: bcahoon Differential Revision: https://reviews.llvm.org/D158579
-
Ivan Kosarev authored
Caught on builds with expensive and _GLIBCXX_DEBUG checks enabled. See related discussion in <https://reviews.llvm.org/D134675#inline-1472177>.
-
Aaron Ballman authored
-
Simon Pilgrim authored
-
Joseph Huber authored
Summary: Normally, the implementation of `puts` simply writes a second newline charcter after printing the first string. However, because the GPU does everything in batches of the SIMT group size, this will end up with very poor output where you get the strings printed and then 1-64 newline characters all in a row. Optimizations like to turn `printf` calls into `puts` so it's a good idea to make this produce the expected output. The least invasive way I could do this was to add a new opcode. It's a little bloated, but it avoids an unneccessary and slow send operation to configure this.
-
jeanPerier authored
Finalize/Initialize may be called on non contiguous arrays when dealing with INTENT(OUT) dummies or non contiguous LHS. Update the related element access to use indices instead of assuming contiguity and manually computing the byte offset. Also, the descriptor passed to parent type final routines should be set to the parent type, otherwise descriptor.IsContiguous() may wrongfully return true when finalizing parent components. Create a pointer to the parent component when recursing in Finalize.
-
Joseph Huber authored
Summary: There are several tests here that are not yet using the `add_libc_test`. Rather than do this individually we should just update these all at once. These all pass on my x64 build so I'm assuming it should be fine.
-
Louis Dionne authored
The new formatting job enabled with GitHub actions checks for mis-formatted files everywhere, not only in the select subdirectories we checked previously. As a result, we'd get spurious clang-format failure reports whenever a test was modified. This patch fixes that.
-
William Junda Huang authored
Based on disassembly and profiling results, it looks like the cost of std::error_code and llvm::ErrorOr<> are non-trivial, as it involves virtual function calls that are not optimized in -O3. This patch moves error handling logic into the conditional branch in error checking, only generates std::error_code on actual error instead of the default case to generate sampleprof_error::success. In the next patch I am looking to change the API to uses a plain old enum for error checking instead, because based on profiling results error handling related code accounts for 7-8% of the profile loading time even if there's no error at all.
-
Vitaly Buka authored
Breaks https://lab.llvm.org/buildbot/#/builders/5/builds/36953 This reverts commit a7530452.
-
- Sep 25, 2023
-
-
Austin Kerbow authored
Preloaded kernel arguments should not be lowered in the IR pass AMDGPULowerKernelArguments. Therefore it's necessary to calculate the total number of user SGPRs that are available for preloading and how many SGPRs would be required to preload each argument to determine whether we should skip lowering i.e. the argument will be preloaded instead. Reviewed By: bcahoon Differential Revision: https://reviews.llvm.org/D156853
-
Nick Desaulniers authored
Given a list of constraints for InlineAsm (ex. "imr") I'm looking to modify the order in which they are chosen. Before doing so, I noticed a fair amount of logic is duplicated between SelectionDAGISel and GlobalISel for this. That is because SelectionDAGISel is also trying to lower immediates during selection. If we detangle these concerns into: 1. choose the preferred constraint 2. attempt to lower that constraint Then we can slide down the list of constraints until we find one that can be lowered. That allows the implementation to be shared between instruction selection frameworks. This makes it so that later I might only need to adjust the priority of constraints in one place, and have both selectors behave the same.
-
Ivan Kosarev authored
Reviewed By: Joe_Nash Differential Revision: https://reviews.llvm.org/D156103
-
Alexander Richardson authored
I was trying to run the tests on FreeBSD and noticed that we weren't printing symbol names. It turns out this is because of the missing -Wl,--export-dynamic flag. Instead of hardcoding the name of the flag and only passing it for Linux hosts, use a pre-existing CMake variable instead. I was not aware of this flag, but it appears to have been supported for the past 16 years (with support for more platforms added later): https://gitlab.kitware.com/cmake/cmake/-/commit/66d1930f5674f08e09f455b3f0777f2de3e0717e
-
Sergei Barannikov authored
It was already removed once in D19265, but was reintroduced in D20353.
-
Timm Baeder authored
-
Louis Dionne authored
After landing the implementation of LWG3545, I realized that the tests for std::pointer_traits had become a bit disorganized. This patch is a NFC that refactors the tests: - Move compile-only tests to `.compile.pass.cpp` tests - Re-create the clear distinction between tests for the std::pointer_traits base tempate and for the T* specialization. - De-duplicate test coverage -- we had a bunch of things that were tested in duplication.
-
Philip Reames authored
If LMUL is more than m1, we can be more aggressive about narrowing the build_vector via a vsext if legal. If the narrow build_vector gets lowered as a load, while both are linear in lmul, load uops are generally more expensive than extend uops. If the narrow build_vector gets lowered via dominant values, that work is linear in both #unique elements and LMUL. So provided the number of unique values > 2, this is a net win in work performed.
-
Yinying Li authored
In the new syntax, we will parse **loose_compressed** as **CompressedWithHigh** and **block2_4** as **TwoOutOfFour** level format. Currently, we support unique and order as level properties.
-
Aaron Ballman authored
This reverts commit 390ac823. It broke the sphinx publish bots for our documentation: https://lab.llvm.org/buildbot/#/builders/242/builds/1130 because that machine has GCC 9.4.0 which does not know about C++23
-
Jie Fu authored
/llvm-project/mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h:235:12: error: unused variable 'sameTimestamp' [-Werror,-Wunused-variable] bool sameTimestamp = ^ /llvm-project/mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h:260:12: error: unused variable 'sameTimestamp' [-Werror,-Wunused-variable] bool sameTimestamp = ^ 2 errors generated. -
Kepontry authored
This patch implements the `getCalleeSavedRegs` function for AArch64, addressing the issue where the "not implemented" error occurs when both the `--assume-abi` option and options related to the RegAnalysis Pass (e.g., `--indirect-call-promotion=all`) are enabled.
-
Louis Dionne authored
This allows running tests like the ones for std::cin even on SSH executors. This was originally reported as https://github.com/llvm/llvm-project/pull/66842#issuecomment-1728701639.
-
Louis Dionne authored
AppleClang 15 was released on September 18th and is now stable. Per our policy, we're bumping the supported AppleClang compiler to the latest release. This allows cleaning up the test suite, but most importantly unblocking various other patches that are blocked on bumping the compiler requirements.
-
Brad Smith authored
FreeBSD does not support riscv32 and has no intention of doing so.
-
Matthias Springer authored
Same as #66369 but for payload values. (#66369 added checks only for payload operations.) It was necessary to change the signature of `getPayloadValues` to return an iterator. This is now similar to payload operations. Fixes an issue in #66369 where the `LLVM_ENABLE_ABI_BREAKING_CHECKS` check was inverted.
-
Oleksandr "Alex" Zinenko authored
The implementation doesn't emit any diagnostics as it is shared with the pattern-based implementation. Check preconditions early and emit diagnostics from the transform op instead. Without this change, the op would produce a definite failure and no error message.
-
David Truby authored
This patch adds a LLVM_FORCE_VC_REVISION option to force a custom VC revision to be included instead of trying to fetch one from a git command. This is helpful in environments where git is not available or is non-functional but the vc revision is available through some other means.
-
Mats Petersson authored
The vscale_range is used for scalabale vector functionality in Arm Scalable Vector Extension to select the size of vector operation (and I thnk RISCV has something similar). This patch adds the base support for the vscale_range attribute to the LLVM::FuncOp, and the marshalling for translation to LLVM-IR and import from LLVM-IR to LLVM dialect. This attribute is intended to be used at higher level MLIR, specified either by command-line options to the compiler or using compiler directives (e.g. pragmas or function attributes in the source code) to indicate the desired range.
-
Ramkumar Ramachandra authored
To help future contributors understand a couple of mysterious out-of-bound tests, add a brief comment to each.
-
Matt Devereau authored
-
Guray Ozen authored
-
Mark Harley authored
Vector constants are always lowered via constant pool loads. This patch selects MOVI/MVNI in more cases where appropriate.
-
Florian Hahn authored
This patch updates the mask creation code to always create compares of the form (ICMP_ULE, wide canonical IV, backedge-taken-count) up front when tail folding and introduce active-lane-mask as later transformation. This effectively makes (ICMP_ULE, wide canonical IV, backedge-taken-count) the canonical form for tail-folding early on. Introducing more specific active-lane-mask recipes is treated as a VPlan-to-VPlan optimization. This has the advantage of keeping the logic (and complexity) of introducing active-lane-mask recipes in a single place, instead of spreading the logic out across multiple functions. It also simplifies initial VPlan construction and enables treating introducing EVL as similar optimization. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D158779
-
Ramkumar Ramachandra authored
The most straightforward extension to D150851 would involve handling the decreasing IV case, for which tests have been added in 110ec186 (LoopVectorize/iv-select-cmp: add test for decreasing IV, const start). However, the commit missed a testcase for the out-of-bound sentinel value LONG_MAX, which should not be vectorized. Fix this by adding a test corresponding to the following program: long test(long *a) { long rdx = 331; for (long i = LONG_MAX; i >= 0; i--) { if (a[i] > 3) rdx = i; } return rdx; } Differential Revision: https://reviews.llvm.org/D157969
-
cor3ntin authored
Recommonmark has been deprecated, then archived last year. This was tracked by: https://github.com/llvm/llvm-iwg/issues/30 See https://github.com/readthedocs/recommonmark This patch migrates all our doc to use myst Additional details for bot maintainers: https://discourse.llvm.org/t/maintenance-required-on-sphinx-build-bots/73612
-
Yingwei Zheng authored
-
Ingo Müller authored
This PR extends the error message of the tracking listener when replacement ops cannot be found. That may happen if the applied patterns replace an op by an op of a different kind or by block arguments. However, this only matters if there are alive handles to the replaced op. The new error message mentions that explicitly and reports the alive handles.
-
Haojian Wu authored
-
Diana Picus authored
This reverts commit a0460399 because it broke the OpenMP buildbot.
-