- Dec 20, 2022
-
-
Johannes Doerfert authored
With this patch we: - pick more sensible defaults for the number of teams, inspired by the old plugin, and configured via LIBOMPTARGET_AMDGPU_TEAMS_PER_CU. - check the input signal of a kernel launch late, after the queue lock was taken, to avoid a barrier packet more often. - copy the kernel arguments in one swoop into the appropriate memory. - manually specialize the callbacks to avoid potential indirect calls.
-
Luke Nicholson authored
21U is the default group size, which demonstrates ~15mb reduction in heap size for some highly fragmented heaps on Fuchsia, and a general 5mb savings when devices are under no load. Microbenchmarks show no performance regressions, but most of our benchmarks perform no significant mallocs. So we are choosing the default setting, and monitoring for potential performance issues. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D140311
-
Johannes Doerfert authored
This reverts commit 3b052558. This patch got reverted due to an unrelated memory leak that has been fixed.
-
Matt Arsenault authored
Stop trying to delete a select in one combine since it would be deleting the CSE'd instruction if that happened.
-
LLVM GN Syncbot authored
-
Sameer Sahasrabuddhe authored
Uniformity analysis is a generalization of divergence analysis to include irreducible control flow: 1. The proposed spec presents a notion of "maximal convergence" that captures the existing convention of converging threads at the headers of natual loops. 2. Maximal convergence is then extended to irreducible cycles. The identity of irreducible cycles is determined by the choices made in a depth-first traversal of the control flow graph. Uniformity analysis uses criteria that depend only on closed paths and not cycles, to determine maximal convergence. This makes it a conservative analysis that is independent of the effect of DFS on CycleInfo. 3. The analysis is implemented as a template that can be instantiated for both LLVM IR and Machine IR. Validation: - passes existing tests for divergence analysis - passes new tests with irreducible control flow - passes equivalent tests in MIR and GMIR Based on concepts originally outlined by Nicolai Haehnle <nicolai.haehnle@amd.com> With contributions from Ruiling Song <ruiling.song@amd.com> and Jay Foad <jay.foad@amd.com>. Support for GMIR and lit tests for GMIR/MIR added by Yashwant Singh <yashwant.singh@amd.com>. Differential Revision: https://reviews.llvm.org/D130746 -
Hanhan Wang authored
The pattern generalizes a tensor::UnPackOp into a sequence of tensor + Linalg ops, when the outer dims are all 1s. It uses the trick of rank-reduced tensor.extract_slice to get the tile; transpose the tile; extract sub tile for incomplete cases if needed; use tensor.insert_slice to insert it to the destination tensor. Reviewed By: tyb0807, chelini Differential Revision: https://reviews.llvm.org/D140254
-
Chen Zheng authored
-
Chen Zheng authored
If the candidate loop already has hardware loop related intrinsics, don't generate hardware loop on PPC. PPC does not support nested hardware loops.
-
Chen Zheng authored
-
Johannes Doerfert authored
-
Siva Chandra Reddy authored
One should be able to do a cross build of the libc now. For example, using clang on a x86_64 linux host, one can build for an aarch64 linux target by specifying -DLIBC_TARGET_TRIPLE=aarch64-linux-gnu. Follow up changes will add a baremetal config and also appropriate documentation about cross compiling the libc for CPU targets. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D140351
-
Ye Luo authored
Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D140352
-
LLVM GN Syncbot authored
-
Benjamin Kramer authored
This avoids the continuous API churn when upgrading things to use std::optional and makes trivial string replace upgrades possible. I tested this with GCC 7.5, the oldest supported GCC I had around. Differential Revision: https://reviews.llvm.org/D140332
-
Florian Mayer authored
-
Benjamin Kramer authored
The needed tweaks are mostly trivial, the one nasty bit is Clang's usage of OptionalStorage. To keep this working old Optional stays around as clang::CustomizableOptional, with the default Storage removed. Optional<File/DirectoryEntryRef> is replaced with a typedef. I tested this with GCC 7.5, the oldest supported GCC I had around. Differential Revision: https://reviews.llvm.org/D140332
-
Florian Mayer authored
as the bits are all distinct, these two operations have the same result, but the bitwise operation is more explicit about what's happening. Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D140346
-
Philip Reames authored
We have a version of this transform in InstCombine, but surprisingly not in SDAG. Even more surprisingly, this benefits RISCV, but no other target. This was surprising enough I double checked my build configuration to make sure all targets were enabled; they appear to be. Differential Revision: https://reviews.llvm.org/D140324
-
Lang Hames authored
In some cases it's helpful to group trackers by JITDylib. E.g. Platform classes may want to track initializer symbols with a `JITDylib -> Tracker -> [ Symbol ]` map. This makes it easy to collect all symbols for the JITDylib, while still allowing efficient removal of a single tracker. Passing the JITDylib as an argument to ResourceManager::notifyRemovingResources and ResourceManager::notifyTransferringResources supports such use-cases.
-
Lang Hames authored
This method behaves the same as MaterializationResponsibility::withResourceKeyDo (which now forwards to the new method): It locks the session while providing access to the ResourceKey associated with the tracker. Adding this method to ResourceTracker allows resources to be allocated and tracked for a given MaterializationUnit prior to that MaterializationUnit being materialized. E.g. Platforms can now track and remove initializers and other symbols.
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D140335
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D140334
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Murali Vijayaraghavan authored
Differential Revision: https://reviews.llvm.org/D140187
-
Johannes Doerfert authored
- Add helper classes to avoid duplicated boilerplate. - Add `final` for classes inheriting from those helpers. - Fix a `struct` vs `class` mismatch. Differential Revision: https://reviews.llvm.org/D140336
-
Philip Reames authored
The negate operation is never compressible (as the destination and rs1 register must differ). The two shift versions will be equal size if the input GPR is reused, or smaller if this is the only use of the input. For clarity, the operation being performed is (select (low-bit-of x), -1, 0). Differential Revision: https://reviews.llvm.org/D140319
-
Benjamin Kramer authored
std::optional::value() has undesired exception checking semantics and is unavailable in older Xcode (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). The call sites block std::optional migration.
-
Aart Bik authored
Moved larger constructor from header to CPP file. Used toMLIRString() for DimLvlType debug. Minor layout changes. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D140342
-
Paul Robinson authored
As seen here: https://lab.llvm.org/staging/#/builders/235/builds/1135
-
Louis Dionne authored
Previously, we would be passing down -stdlib=libc++ from the Driver to CC1 whenever the default standard library on the platform was libc++, even if -stdlib= had not been passed to the Driver. This meant that we would pass -stdlib=libc++ in nonsensical circumstances, such as when compiling C code. This logic had been added in b534ce46 to make sure that header search paths were set up properly. However, since libc++ is now the default Standard Library on Darwin, passing this explicitly is not required anymore. Indeed, if no -stdlib= is specified, CC1 will end up using libc++ if it queries which standard library to use, without having to be told. Not passing -stdlib= at all to CC1 on Darwin should become possible once CC1 stops relying on it to set up framework search paths. Furthermore, this commit also removes a diagnostic checking whether the deployment target is too old to support libc++. Nowadays, all supported deployment targets use libc++ and compiling with libstdc++ is not supported anymore. The Driver was the wrong place to issue this diagnostic since it doesn't know whether libc++ will actually be linked against (e.g. C vs C++), which would lead to spurious diagnostics. Given that these targets are not supported anymore, we simply drop the diagnostic instead of trying to refactor it into CC1. rdar://103198514 Differential Revision: https://reviews.llvm.org/D139938
-
v1nh1shungry authored
Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D138300
-
Yitzhak Mandelbaum authored
The comments describing the API for analysis `widen` and the environment `widen` were overly strict in the preconditions they assumed for the operation. In particular, both assumed that the previous value preceded the current value in the relevant ordering. However, that's not generally how widen operators work and widening itself can violate this property. That is, when the previous value is the result of a widening, it can easily be "greater" than the current value. This patch updates the comments to accurately reflect the expectations. Differential Revision: https://reviews.llvm.org/D140308
-
David Green authored
-
Florian Mayer authored
-
Florian Hahn authored
-
Florian Hahn authored
-
Joseph Huber authored
Summary: This condition should fire when the full build is set OFF instead of when it is ON.
-