- Jul 21, 2023
-
-
Simon Pilgrim authored
Handle PACKUSWD on +SSE41 targets, or fallback to PACKUSBW on any +SSE2 target
-
Simon Pilgrim authored
Similar to the existing packss.ll tests
-
Simon Pilgrim authored
-
Michael Halkenhaeuser authored
We observed some overhead and unnecessary debug output. This can be alleviated by (re-)introduction of a boolean that indicates, if the OMPT initialization has been performed. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D155186
-
Haojian Wu authored
Fixes https://github.com/llvm/llvm-project/issues/63995
-
Aaron Ballman authored
There is a strange issue happening with command line processing though. The command line argument --export-dynamic-symbol 'f*' does not have the single quotes stripped on some Windows targets (but not all). This causes the glob matching to fail, which means the test fails on some Windows bots and passes on others. This is expected to be a temporary measure to get bots back to green. I've not found a commit that has caused a behavioral change that could be reverted instead, so this could be an issue with lit or test machine configuration.
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Matthias Springer authored
-
Alexander Belyaev authored
-
Corentin Jabot authored
This fixes the spurious test failure introduced in f9caa123
-
Shivam Gupta authored
Revert "[LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case" This reverts commit d8e26bcc. Test case are meant to run only when LLVM_INDIVIDUAL_TEST_COVERAGE is set.
-
Michael Halkenhaeuser authored
[OpenMP] [OMPT] [6/8] Added callback support for target data operations, target submit, and target regions. This patch adds support for invoking target callbacks but does not yet invoke them. A new structure OmptInterface has been added that tracks thread local states including correlation ids. This structure defines methods that will be called from the device independent target library with information related to a target entry point for which a callback is invoked. These methods in turn use the callback functions maintained by OmptDeviceCallbacksTy to invoke the tool supplied callbacks. Depends on D124652 Patch from John Mellor-Crummey <johnmc@rice.edu> With contributions from: Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com> Differential Revision: https://reviews.llvm.org/D127365
-
Matthias Springer authored
To keep the pass simple, users should apply cleanup passes manually when necessary. In particular, `-cse -canonicalize` are often desireable to fold away self-copies that are created by the bufferization. This addresses a comment in D120191. Differential Revision: https://reviews.llvm.org/D155923
-
Pranav Taneja authored
Reviewed By: pravinjagtap Differential Revision: https://reviews.llvm.org/D155785
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D155587
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D155854
-
Shivam Gupta authored
This patch is the first part of https://llvm.org/OpenProjects.html#llvm_patch_coverage. We have first define a new variable LLVM_TEST_COVERAGE which when set, pass --emit-coverage option to llvm-lit which will help in setting a unique value to LLVM_PROFILE_FILE for each RUN. So for example coverage data for test case llvm/test/Analysis/AliasSet/memtransfer.ll will be emitted as build/test/Analysis/AliasSet/memtransfer.profraw Reviewed By: hnrklssn Differential Revision: https://reviews.llvm.org/D154280
-
Ingo Müller authored
Allow the `names` argument in `MatchOp.match_op_names` to be of type `str` in addition to `Sequence[str]`. In this case, the argument is treated as a list with one name, i.e., it is possible to write `MatchOp.match_op_names(..., "test.dummy")` instead of `MatchOp.match_op_names(..., ["test.dummy"])`. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D155807
-
Ingo Müller authored
This patch extends the diagnostic output of `FuseIntoContainingOp` when it fails to find the next producer by also provided the location of the affected transform op. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D155803
-
Guray Ozen authored
The Op creates a tensor map descriptor object representing tiled memory region. The descriptor is used by Tensor Memory Access (TMA). The `tensor` is the source tensor to be tiled. The `boxDimensions` is the size of the tiled memory region in each dimension. The pattern here lowers `tma.create.descriptor` to a runtime function call that eventually calls calls CUDA Driver's `cuTensorMapEncodeTiled`. For more information see below: https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__TENSOR__MEMORY.html Depends on D155453 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D155680
-
Luke Lau authored
These correspond to ROTL/ROTR nodes Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155439
-
Andrzej Warzynski authored
Similarly to when using `lli`, make sure that when using `mlir-cpu-runner` with an emulator, a full path to `mlir-cpu-runner` is used. Otherwise `mlir-cpu-runner` won't be found and you will get the following error: ``` Error while loading mlir-cpu-runner: No such file or directory ``` This patch should fix: * https://lab.llvm.org/buildbot/#/builders/179 The breakage was originally introduced in https://reviews.llvm.org/D155405. Differential Revision: https://reviews.llvm.org/D155920
-
Alex Zinenko authored
RegionBranchOpInterface did not allow the operation with regions to specify itself as successors. Therefore, this implied that the control is always transferred to a region before being transferred back to the parent op. Since the region can only transfer the control back to the parent op from a terminator, this transitively implied that the first block of any region with a RegionBranchOpInterface is always executed until the terminator can transfer the control flow back. This is trivially false for any conditional-like operation that may or may not execute the region, as well as for loop-like operations that may not execute the body. Remove the restriction from the interface description and update the only transform that relied on it. See https://discourse.llvm.org/t/rfc-region-control-flow-interfaces-should-encode-region-not-executed-correctly/72103. Depends On: https://reviews.llvm.org/D155757 Reviewed By: Mogball, springerm Differential Revision: https://reviews.llvm.org/D155822
-
Alex Zinenko authored
Initial implementations of dense dataflow analyses feature special cases for operations that have region- or call-based control flow by leveraging the corresponding interfaces. This is not necessarily sufficient as these operations may influence the dataflow state by themselves as well we through the control flow. For example, `linalg.generic` and similar operations have region-based control flow and their proper memory effects, so any memory-related analyses such as last-writer require processing `linalg.generic` directly instead of, or in addition to, the region-based flow. Provide hooks to customize the processing of operations with region- cand call-based contol flow in forward and backward dense dataflow analysis. These hooks are trigerred when control flow is transferred between the "main" operation, i.e. the call or the region owner, and another region. Such an apporach allows the analyses to update the lattice before and/or after the regions. In the `linalg.generic` example, the reads from memory are interpreted as happening before the body region and the writes to memory are interpreted as happening after the body region. Using these hooks in generic analysis may require introducing additional interfaces, but for now assume that the specific analysis have spceial cases for the (rare) operaitons with call- and region-based control flow that need additional processing. Reviewed By: Mogball, phisiart Differential Revision: https://reviews.llvm.org/D155757
-
Luke Lau authored
It's no longer needed now that the sext/zext patterns have been merged. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155815
-
Luke Lau authored
We're currently only matching scalar shift amounts where the type is the same as the vector element type. But because only the bottom log2(2*SEW) bits are used, only 7 bits will be used at most so we can use any scalar type >= i8. This patch adds patterns for the case above, as well as for when the shift amount type is the same as the widened element type and doesn't need extended. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155698
-
Luke Lau authored
These patterns of ([l,a]shr v, ([s,z]ext splat)) only pick up the cases where the scalar has the same type as the vector element. However since only the low log2(SEW) bits of the scalar are read, we could use any scalar type that has been extended. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155697
-
Ilya Leoshkevich authored
Currently mentioning any symbols in immediate asm operands is not supported, for example: error: invalid operand for instruction lghi %r4,foo_end-foo The immediate problem is that is*Imm() and print*Operand() functions do not accept MCExprs, but simply relaxing these checks is not enough: after symbol addresses are computed, range checks need to run against resolved values. Add a number of SystemZ::FixupKind members for each kind of immediate value and process them in SystemZMCAsmBackend::applyFixup(). Only perform the range checks, do not change anything. Adjust the tests: move previously failing cases like the one shown above out of insn-bad.s. Reviewed By: uweigand Differential Revision: https://reviews.llvm.org/D154899 -
Alexander Belyaev authored
-
Corentin Jabot authored
A lambda call operator can be a templated entity - and therefore have constraints while not being a function template template<class T> void f() { []() requires false { }(); } In that case, we would check the constraints of the call operator which is non-viable. However, we would find a viable candidate: the conversion operator to function pointer, and use it to perform a surrogate call. These constraints were not checked because: * We never check the constraints of surrogate functions * The lambda conversion operator has non constraints. From the wording, it is not clear what the intent is but it seems reasonable to expect the constraints of the lambda conversion operator to be checked and it is consistent with GCC and MSVC. This patch also improve the diagnostics for constraint failure on surrogate calls. Fixes #63181 Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D154368 -
Nikita Popov authored
-
Guray Ozen authored
Current transformation expects module op to be two level higher, however, it is not always the case. This work searches module op in a while loop. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D155825
-
Guray Ozen authored
This work adds `nvgpu.tma.async.load` Op that requests tma load asyncronusly using mbarrier object. It also creates nvgpu.tma.descriptor type. The type is supposed be created by `cuTensorMapEncodeTiled` cuda drivers api. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D155453
-
Alex Zinenko authored
Linalg structure ops do not implement control flow in the way expected by RegionBranchOpInterface, and the interface implementation isn't actually used anywhere. The presence of this interface without correct implementation is confusing for, e.g., dataflow analyses. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D155841
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
Reapply after fixing an issue in canonicalizeLogicFirst() exposed by this change (218f9757). ----- In preparation for removing support for and expressions, mark them as undesirable. As such, we will no longer implicitly create such expressions, but they still exist.
-
Haojian Wu authored
-
Nikita Popov authored
The underlying copyIRFlags() API accepts arbitrary values and can work with flags on operators (i.e. instructions or constant expressions). Remove the arbitrary limitation that the CreateWithCopiedFlags() API imposes, so we can directly pass through values matched by PatternMatch, which can be constant expressions. The attached test case works fine now, but would crash with an upcoming change to not produce and constant expressions.
-