- Mar 16, 2023
-
-
Diego Caballero authored
When applying vector masking we may create a mask and then transpose it. Transpositions are extremely expensive so this patch introduces a new canonicalization pattern that remove the tranpose operation and create a new transposed mask. Differential Revision: https://reviews.llvm.org/D146193
-
Simon Pilgrim authored
More closely matches getValueType
-
Mahesh Ravishankar authored
[mlir][TilingInterface] Modify `TilingInterface` methods to better return the state of the transformed IR. Currently the `getTiledImplementation` and `generateResultTileValue` return just `SmallVector<Operation *>` and `FailureOr<Value>`. - For `getTiledImplementation` returning empty implies tiling wasnt done. There is also an implicit assumption that the tiled operation results correspond to the tiled values of the result of the original operation. This cannot handle cases where the tiled implementation might use multiple operations to compute the tiled value for the results of the untiled operation. Sometimes, the tiled operation might not directly give the tiled values, and might require casts, etc to get a replacement. - For `generateResultTileValue`, it is assumed that the op defining the returned `Value` is the operation that represents the tiled computation. Again presence of casts, etc violate this. Instead make these methods return ``` struct TilingResult { SmallVector<Operation *> tiledOps; SmallVector<Value> tiledValues; }; ``` The `tiledOps` represent the operations generated that are relevant for subsequent transformations. The `tiledValues` represent the tiled values for the results of the original operation. This better transmits the state of the transformed IR. As a consequence the following methods also return `FailureOr<TilingResult>` - `tensor::replaceExtractSliceWithTiledProducer` - `tensor::bubbleUpPadSlice` Differential Revision: https://reviews.llvm.org/D145133 -
Jakub Kuderski authored
Check that `scf.if` checks are folded when the mask is all set / not set. This to address post-commit feedback for https://reviews.llvm.org/D145942. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D146144
-
Joseph Huber authored
Summary: Just like the last patch, the threads and envrion dependencies were missing. This lead to linker failures when building the tests.
-
Simon Pilgrim authored
Don't spread them out over the header.
-
Tim Northover authored
This is a mitigation patch for https://bugs.chromium.org/p/llvm/issues/detail?id=30, where existing stack protection is skipped if a function is returned through by an unwinder rather than the normal call/return path. The recent patch D139254 added the ability to instrument a visible unwind path, at least in the IR case (I'm working on the SelectionDAG instrumentation too) but there are still invisible unwinds it can't reach. So this patch adds logic to DwarfEHPrepare that goes through a function, converting any call that might throw into an invoke to a simple resume cleanup, and adding cleanup clauses to existing landingpads that lack them. Obviously we don't really want to do this if it's wasted effort, so I also exposed requiresStackProtector from the actual StackProtector code to skip the extra paths if they won't be used. Changes: * Move test to AArch64 directory as it relies on target presence. * Re-add Dominator-tree maintenance. Accidentally cherry-picked wrong patch. * Skip adding paths on Windows EH functions. https://reviews.llvm.org/D143637
-
Michael Platings authored
Also rename some FPUID variables to FPUKind now it's clear that's what they are. Differential Revision: https://reviews.llvm.org/D146141
-
Nikita Popov authored
Instead of setting Lower and Upper, return a ConstantRange. Should do this for the others as well.
-
Nikita Popov authored
In particular cover cases where vscale_range entries are larger than the vscale bitwidth.
-
Maya Amrami authored
tosa.reshape and tosa.concat were moved from TosaToLinalg to TosaToTensor (D145119 & D145952). So now they are legal after applying TosaToLinalg patterns, and illegal after applying TosaToTensor patterns. This includes D146174 (thanks @ramiro050!) Reviewed By: krzysz00 Differential Revision: https://reviews.llvm.org/D146213
-
Joseph Huber authored
Summary: Just like the last patch, this dependency was missing. This lead to linker failures when building the tests.
-
Joseph Huber authored
Summary: The changes in D146184 made the integration tests use the inhereted dependencies from the startup code like a normal target. For the AArch64 target this resulted in the threads depenency not being pulled in because it was not present in the original code.
-
Joseph Huber authored
All integration tests rely on the startup code to be run. Currently we manually include a few of these dependencies that are relevant for the Linux target. This patch changes this to make the integration test's dependencies include all the dependencies of the startup code. This simplifies the code and makes it easier to support different targets. The changes here cause the integration test to be dependent on more targets than previously necessary, but it should be fine. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D146184
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D146220
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Haojian Wu authored
TemplateName::getAsTemplateDecl() returns the underlying TemplateDecl for a UsingTemplate kind template name. We should respect that in the Profile method otherwise we might desugar the template name unexpectedly (e.g. for template argument deduction with deduciton guides). Differential Revision: https://reviews.llvm.org/D146202
-
Tim Northover authored
It's caused more failures than are trivially fixable. This reverts commit 203b6f31.
-
Tim Northover authored
This is a mitigation patch for https://bugs.chromium.org/p/llvm/issues/detail?id=30, where existing stack protection is skipped if a function is returned through by an unwinder rather than the normal call/return path. The recent patch D139254 added the ability to instrument a visible unwind path, at least in the IR case (I'm working on the SelectionDAG instrumentation too) but there are still invisible unwinds it can't reach. So this patch adds logic to DwarfEHPrepare that goes through a function, converting any call that might throw into an invoke to a simple resume cleanup, and adding cleanup clauses to existing landingpads that lack them. Obviously we don't really want to do this if it's wasted effort, so I also exposed requiresStackProtector from the actual StackProtector code to skip the extra paths if they won't be used. https://reviews.llvm.org/D143637
-
Tim Northover authored
-
Matt Arsenault authored
Avoid using ptrtoint/inttoptr.
-
Frederic Cambus authored
-
Bing1 Yu authored
1. Align ManualMapSet with X86MemoryFoldTableEntry instead of using UnfoldStrategy 2. ManualMapSet able to update the existing record in auto-generated MemFold table Reviewed By: skan Differential Revision: https://reviews.llvm.org/D142084
-
Nikita Popov authored
The existing tests don't test the precise range bounds implied by the vscale_range attribute.
-
Nikita Popov authored
-
Hans Wennborg authored
This follows 2b4fa534 which made Clang not emit destructor calls for such objects. However, they would still not get emitted as constants since CodeGenModule::isTypeConstant() returns false if the destructor is constexpr. This change adds a param to make isTypeConstant() ignore the dtor, allowing the caller to check it instead. Fixes Issue #61212 Differential revision: https://reviews.llvm.org/D145369
-
OCHyams authored
Allow the value-component of a dbg.assign to be salvaged using a variadic DIExpression. Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D145915
-
OCHyams authored
Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D145914
-
OCHyams authored
Use RawLocationWrapper rather than a Value to represent the location operand(s) so that it's possible to represent multiple location operands. AssignmentTrackingAnalysis still converts variadic debug intrinsics to kill locations so this patch is NFC. Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D145911
-
OCHyams authored
RawLocationWrapper wraps the location operand of a debug intrinsic which may be either (wrapped in MetadataAsValue) a DIArgList, ValueAsMetadata, or an empty MDTuple. This class lets us avoid duplicating location handling code in a later patch in this stack. Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D145909
-
Shao-Ce SUN authored
Fix build error in D145883. Thanks @awarzynski! Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D146204
-
Nikita Popov authored
-
Nikita Popov authored
These are not used and should not be used (just like anything that creates a constant expression only due to lack of DL-awareness).
-
Nikita Popov authored
This removes the select constant expression, as part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179. Uses of this expressions have already been removed in advance, so this just removes related infrastructure and updates tests. Differential Revision: https://reviews.llvm.org/D145382
-
Dmitry Polukhin authored
The issue was introduced in D135801. When there are only header maps in the SearchDirs, the out of bounds value is assigned to FirstNonHeaderMapSearchDirIdx. Test Plan: check-clang Differential Revision: https://reviews.llvm.org/D146156
-
Mikhail R. Gadelha authored
This patch enables the remaining calls from unistd. The test cases had to be updated to: 1. Use SYS_symlinkat if SYS_symlink is not available 2. Use SYS_readlinkat if SYS_readlink is not available 3. Use SYS_unlinkat if SYS_unlink is not available 4. Use SYS_openat if SYS_open is not available We also abort compilation if neither of the syscalls mentioned above are available. Differential Revision: https://reviews.llvm.org/D146161
-
Mikhail R. Gadelha authored
In this patch we add support for the spawn lib in riscv. Only small changes were required, the biggest one was to use of dup3 instead of dup2, if the latter is not available. This follows our implementation of dup2. Differential Revision: https://reviews.llvm.org/D146145
-
Mikhail R. Gadelha authored
This patch removes some duplicated libs added to entrypoints.txt, adds new libs supported to entrypoints.txt and updates header.txt Differential Revision: https://reviews.llvm.org/D146065
-
Max Kazantsev authored
Guards can be represented differently (as intrinsic calls and as explicit branches), and the expectation is that Guard Widening should do the same things for them, no matter what form it was suggested. Currently it seems to be not so. We also don't want LICM to prevent guard widening.
-