- Aug 09, 2023
-
-
Matthias Springer authored
Three different options can be specified: * `bufferization.copy_tensor` (default) * `linalg.copy` * `none` (no copy_back) Differential Revision: https://reviews.llvm.org/D156173
-
priyanshi1708 authored
Transforms and(fcmp(a, b), fcmp(c, d)) into fccmp(fcmp(a, b), c, d) Issue link: https://github.com/llvm/llvm-project/issues/60819 Differential Revision: https://reviews.llvm.org/D152714
-
Markus Böck authored
-
Fangrui Song authored
Otherwise, if -DLLVM_DEFAULT_TARGET_TRIPLE=riscv64-unknown-linux-gnu, the %clang command will exit with code 1 (see https://reviews.llvm.org/D130190). Exposed by D156363.
-
Nikita Popov authored
-
Nikita Popov authored
Drop an unnecessary bitcast and make use of the ConstantFoldLoadFromConstPtr API that accepts an Offset, instead of going through a GEP expression.
-
Jonas Hahnfeld authored
This test case was fixed in commit 2c4620c1 ("Consider the scope spec in template lookups for deduction guides."), but it is worth having a dedicated test case with a templated struct and a using declaration. Differential Revision: https://reviews.llvm.org/D157477
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D157501
-
Dmitri Gribenko authored
Tests should not write to the CWD because it might not be writeable. Either use %t, or /dev/null if the test does not check the output.
-
Nikita Popov authored
This bitcast is no longer needed.
-
Vy Nguyen authored
Details: calling getMemoryBufferRef() on an empty archive can trigger segfault so the code should check before calling this. this seems like a bug in the Archive API but that can be fixed separately. P.S: follow up to D156468 Differential Revision: https://reviews.llvm.org/D157300
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D157074
-
Mikhail R. Gadelha authored
This patch adds support for yocto images, which are custom Linux-base systems created by yocto. $CMAKE_HOST_SYSTEM_NAME returns "poky" as the system name, but it is a linux image, so we just replace the name with "linux", so libc can use the correct path. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D157404
-
Ties Stuij authored
This patch moves the overall lower-bound arch restriction for Arm XO sections from v8m to v6m. Actual implementation of code-gen for v6m will follow in follow-up patches, which will include an implementation of relocations needed to support this. Reviewed By: simonwallis2, MaskRay Differential Revision: https://reviews.llvm.org/D149444
-
Endre Fülöp authored
The alpha.cplusplus.EnumCastOutOfRange checker previously gave many false positives because a warning was given if the initializer value did not appear in the enumerator list. The strict handling caused std::byte to always give a warning, as it is implemented as an enum class without any declarators. Reviewed By: donat.nagy, steakhal Differential Revision: https://reviews.llvm.org/D153954
-
Christian Ulmann authored
This commit ensures that debug intrinsics are imported after all other instructions of a function were imported. Debug intrinsics in LLVM are excluded from the define-before-use invariant, i.e., they can reference SSA values that do not dominate them. So far, we had implemented checks to stop the import of such intrinsics, but there were always additional cases that were not covered (the latest being terminators that define such used values). Reviewed By: gysit, zero9178 Differential Revision: https://reviews.llvm.org/D157496
-
Paul Walker authored
The function changeVectorElementType assumes MVT input types will result in MVT output types. There's no gurantee this is possible during early code generation and so this patch converts an instance used during initial DAG construction to instead explicitly create a new EVT. NOTE: I could have added more MVTs, but that seemed unscalable as you can either have MVTs with 100% element count coverage or 100% bitwidth coverage, but not both. Differential Revision: https://reviews.llvm.org/D157392
-
Matt Devereau authored
The example sequence add z0.h, z0.h, #32 lsr z0.h, #6 st1b z0.h, x1 can be replaced with rshrnb z0.b, #6 st1b z0.h, x1 As the top half of the destination elements are truncated. In similar fashion, add z0.s, z0.s, #32 lsr z1.s, z1.s, #6 add z1.s, z1.s, #32 lsr z0.s, z0.s, #6 uzp1 z0.h, z0.h, z1.h Can be replaced with rshrnb z1.h, z1.s, #6 rshrnb z0.h, z0.s, #6 uzp1 z0.h, z0.h, z1.h Differential Revision: https://reviews.llvm.org/D155299
-
Nikita Popov authored
Avoid spurious variable name changes in future patch.
-
Quentin Colombet authored
When emitting the assembly we perform some late global variables demotion. Prior to this patch, this optimization was only performed on variables with the internal linkage whereas any local global variable can be demoted. Fix that by using `hasLocalLinkage` instead of `hasInternalLinkage`. Without this change, global variables with the `private` linkage wouldn't be demoted. Differential Revision: https://reviews.llvm.org/D154507
-
Oleg Shyshkov authored
-
Sander de Smalen authored
The caller is required to have ZA state if it wants to share it with a callee. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D157270
-
Sander de Smalen authored
This patch adds error diagnostics to Clang when code uses the AArch64 SME attributes without specifying 'sme' as available target attribute. * Function definitions marked as '__arm_streaming', '__arm_locally_streaming', '__arm_shared_za' or '__arm_new_za' will by definition use or require SME instructions. * Calls from non-streaming functions to streaming-functions require the compiler to enable/disable streaming-SVE mode around the call-site. In some cases we can accept the SME attributes without having 'sme' enabled: * Function declaration can have the SME attributes. * Definitions can be __arm_streaming_compatible since the generated code should execute on processing elements without SME. Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D157269
-
Quentin Colombet authored
Add an option to the family of `getIdentity` helper functions so that it is possible to produce fast-math friendly constants. For instance, for maxf the identity value is `-inf`, however, if the related operations are lowered with fast-math (`noinf` in particular), then the value becomes `poison` and chances are the whole codegen is not going to do what we want. To avoid this problem, we add an option to `getIdentity` and friends that specifies whether a finite value needs to be produced or not. The patch is NFC for all the code but the lowering of `linalg::softmax` because we know we lower that with fast-math down the line. I didn't audit the rest of the code to check if it would make sense to set this boolean in more places. Note: It feels kind of wrong to have to know what the lowering may do, but I don't know what the right (at least short-term) solution is. Long term, we may want a special "neutral element" attribute for the respective ops. I didn't think too much about the implications for that. Differential Revision: https://reviews.llvm.org/D156471
-
pvanhout authored
Checks for implicit defs that are unused within a pattern and mark them as dead. This is done directly at the TableGen level forr efficiency. The instructions are directly created with the "dead" operand and no further analysis is needed later. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D157273
-
Christoph Stiller authored
There are a number of variations on the pattern, depending on order. Proof: https://alive2.llvm.org/ce/z/ri5iFw Differential Revision: https://reviews.llvm.org/D156026
-
Christoph Stiller authored
Differential Revision: https://reviews.llvm.org/D156347
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D157395
-
Benjamin Maxwell authored
-
Sergio Afonso authored
This patch modifies the MLIR-to-LLVMIR translation pass to enable dialect attributes attached to external functions being processed by the corresponding dialect's translation interface via `amendOperation()`. Differential Revision: https://reviews.llvm.org/D156988
-
Benjamin Maxwell authored
Reland of the original patch after updating the Python binding tests and a few CUDA/GPU MLIR tests. This patch splits the lowering of vector.print into first converting an n-D print into a loop of scalar prints of the elements, then a second pass that converts those scalar prints into the runtime calls. The former is done in VectorToSCF and the latter in VectorToLLVM. The main reason for this is to allow printing scalable vector types, which are not possible to fully unroll at compile time, though this also avoids fully unrolling very large vectors. To allow VectorToSCF to add the necessary punctuation between vectors and elements, a "punctuation" attribute has been added to vector.print. This abstracts calling the runtime functions such as printNewline(), without leaking the LLVM details into the higher abstraction levels. For example: vector.print <comma> lowers to llvm.call @printComma() : () -> () The output format and runtime functions remain the same, which avoids the need to alter a large number of tests (aside from the pipelines). Reviewed By: awarzynski, c-rhodes, aartbik Differential Revision: https://reviews.llvm.org/D156519
-
Matthias Springer authored
This op populates conversion patterns by querying the ConvertToLLVMPatternInterface. Only dialects that support this interface are supported. Differential Revision: https://reviews.llvm.org/D157487
-
Dmitri Gribenko authored
-
Martin Erhart authored
Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D157393
-
Simon Pilgrim authored
This allows us to use the same canonicalizations as PSHUFD/SHUFPS etc. to avoid unnecessary demanded elts (better splat detection, blend pass through etc.) instead of defaulting to zero mask values.
-
Alex Bradbury authored
As noted in D156990, the logic in ExpandIntRes_FP_TO_SINT assumes that if the type action for the float type is TypeSoftPromoteHalf, is must have been an f16 (half). However, the meaning of that type action has been overloaded and it is used for both f16 and bf16. This patch adds an appropriate check to ensure ISD::FP16_TO_FP or ISD::BF16_TO_FP is emitted as required. Differential Revision: https://reviews.llvm.org/D157287
-
Benjamin Maxwell authored
This reverts commit 3875804a. This caused some test failures for the MLIR python bindings. Reverting until those are addressed.
-
Dmitri Gribenko authored
-
Benjamin Maxwell authored
This patch splits the lowering of vector.print into first converting an n-D print into a loop of scalar prints of the elements, then a second pass that converts those scalar prints into the runtime calls. The former is done in VectorToSCF and the latter in VectorToLLVM. The main reason for this is to allow printing scalable vector types, which are not possible to fully unroll at compile time, though this also avoids fully unrolling very large vectors. To allow VectorToSCF to add the necessary punctuation between vectors and elements, a "punctuation" attribute has been added to vector.print. This abstracts calling the runtime functions such as printNewline(), without leaking the LLVM details into the higher abstraction levels. For example: vector.print <comma> lowers to llvm.call @printComma() : () -> () The output format and runtime functions remain the same, which avoids the need to alter a large number of tests (aside from the pipelines). Reviewed By: awarzynski, c-rhodes, aartbik Differential Revision: https://reviews.llvm.org/D156519
-
Igor Kirillov authored
These instructions show worse performance on Neoverse-V1 compared to pair of LDR(LDP)/MOV instructions. This patch adds `no-sve-fp-ld1r` sub-target feature, which is enabled only on Neoverse-V1. Fixes https://github.com/llvm/llvm-project/issues/64498 Differential Revision: https://reviews.llvm.org/D157279
-