- Jul 20, 2023
-
-
Michael Halkenhaeuser authored
This patch removes the constraint of the `interop` directive where only a single `depend` clause was allowed. Differential Revision: https://reviews.llvm.org/D155692
-
Bryan Chan authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D142702
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svmopa_za32[_bf16]_m // also for s8, u8, f16, f32 - svmops_za32[_bf16]_m // also for s8, u8, f16, f32 - svsumopa_za32[_s8]_m - svsumops_za32[_s8]_m - svusmopa_za32[_u8]_m - svusmops_za32[_u8]_m When the sme-f64f64 feature is enabled, the following intrinsics are supported: - svmopa_za64_f64_m - svmops_za64_f64_m When the sme-i16i64 feature is enabled, the following intrinsics are supported: - svmopa_za64[_s16]_m // also for u16 - svmops_za64[_s16]_m // also for u16 - svsumopa_za64[_s16]_m - svsumops_za64[_s16]_m - svusmopa_za64[_u16]_m - svusmops_za64[_u16]_m Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D134681
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svaddha_za32[_u32]_m // also for s32 - svaddva_za32[_u32]_m // also for s32 - svaddha_za64[_u64]_m // also for s64 - svaddva_za64[_u64]_m // also for s64 The _za64 versions are available only when the sme-i16i64 feature is enabled. Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D134680
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svcntsb - svcntsh - svcntsw - svcntsd Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D134679
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svldr_vnum_za - svstr_vnum_za Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D134678
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svzero_mask_za - svzero_za Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D134677
-
Bryan Chan authored
This patch adds support for the following SME ACLE intrinsics (as defined in https://arm-software.github.io/acle/main/acle.html ): - svread_hor_za8[_s8]_m // also for u8 - svread_hor_za16[_s16]_m // also for u16, f16, bf16 - svread_hor_za32[_s32]_m // also for u32, f32 - svread_hor_za64[_s64]_m // also for u64, f64 - svread_hor_za128[_s8]_m // also for s16, s32, s64, u8, u16, u32, u64, bf16, f16, f32, f64 - svread_ver_za8[_s8]_m // also for u8 - svread_ver_za16[_s16]_m // also for u16, f16, bf16 - svread_ver_za32[_s32]_m // also for u32, f32 - svread_ver_za64[_s64]_m // also for u64, f64 - svread_ver_za128[_s8]_m // also for s16, s32, s64, u8, u16, u32, u64, bf16, f16, f32, f64 - svwrite_hor_za8[_s8]_m // also for u8 - svwrite_hor_za16[_s16]_m // also for u16, f16, bf16 - svwrite_hor_za32[_s32]_m // also for u32, f32 - svwrite_hor_za64[_s64]_m // also for u64, f64 - svwrite_hor_za128[_s8]_m // also for s16, s32, s64, u8, u16, u32, u64, bf16, f16, f32, f64 - svwrite_ver_za8[_s8]_m // also for u8 - svwrite_ver_za16[_s16]_m // also for u16, f16, bf16 - svwrite_ver_za32[_s32]_m // also for u32, f32 - svwrite_ver_za64[_s64]_m // also for u64, f64 - svwrite_ver_za128[_s8]_m // also for s16, s32, s64, u8, u16, u32, u64, bf16, f16, f32, f64 Co-authored-by:
Sagar Kulkarni <sagar.kulkarni1@huawei.com> Reviewed By: sdesmalen, kmclaughlin Differential Revision: https://reviews.llvm.org/D128648
-
Simon Pilgrim authored
[DAG] hoistLogicOpWithSameOpcodeHands - ensure SIGN_EXTEND_INREG nodes have the same extension value type Fix bug in the check for matching SIGN_EXTEND_INREG types
-
Simon Pilgrim authored
[X86] Add test case showing incorrect and(sextinreg(v0,i2),sextinreg(v1,i5)) -> sextinreg(and(v0,v1),i2) fold
-
David Green authored
These tests were originally added in 0aff1798, where they were measuring the cost of fadd and fmuladd reductions, which should be fairly high cost. For some reason, due to the forced vector factors, the debug costs of each instruction are printed twice by the vectorizer. Once as if the instruction is a simple fadd/fmuladd, and later with the correct reduction cost. In d827865e the costs were updated to match the first print statements, where they would be better to match the second to test the cost of the reduction. This patch returns them to testing the original reduction costs.
-
Ivan Butygin authored
Add new dialect boilerplate and `poison` op definition. Discussion: https://discourse.llvm.org/t/rfc-poison-semantics-for-mlir/66245/24 Differential Revision: https://reviews.llvm.org/D154248
-
wangpc authored
To simplify code and show the usage of named arguments. Reviewed By: michaelmaitland, MaskRay Differential Revision: https://reviews.llvm.org/D154067
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Sylvestre Ledru authored
This reverts commit 2d1d0715.
-
Markus Böck authored
Handling access groups is luckily rather trivial: Any access groups from the call instruction are simply appended to any memory operations. This is similar to one of the steps when handling alias scopes. This patch nevertheless implements it as a separate function purely for readability purposes as it uses a different interface than alias scopes. Differential Revision: https://reviews.llvm.org/D155795
-
Matthias Springer authored
Also update the documentation of `Operation::fold`, which did not take into account in-place foldings. Differential Revision: https://reviews.llvm.org/D155691
-
Weining Lu authored
- Add `--match-full-lines` to FileCheck invocations. - Remove useless `grep __loongarch_`s.
-
Matthias Springer authored
Commutative ops were previously folded with a special rule in `OperationFolder`. This change turns the folding into a proper `OpTrait` folder. Differential Revision: https://reviews.llvm.org/D155687
-
Advenam Tacet authored
This patch is part of our efforts to support container annotations with (almost) every allocator. Annotating std::deque with default allocator is implemented in D132092. Support in ASan API exests since rG1c5ad6d2. The motivation for a research and those changes was a bug, found by Trail of Bits, in a real code where an out-of-bounds read could happen as two strings were compared via a `std::equals` function that took `iter1_begin`, `iter1_end`, `iter2_begin` iterators (with a custom comparison function). When object `iter1` was longer than `iter2`, read out-of-bounds on `iter2` could happen. Container sanitization would detect it. If you have any questions, please email: - advenam.tacet@trailofbits.com - disconnect3d@trailofbits.com Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D146815
-
Edoardo Sanguineti authored
As @ldionne pointed out to me in a newer revision, there is a //REQUIRE comment in both files edited by this patch that prevents the test to run on some platforms where it should actually run. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D155755
-
David Green authored
It appears that vscale values truncated to i1 causes mismatches in the constant types when created in getNode. https://godbolt.org/z/TaaTo86ne. Differential Revision: https://reviews.llvm.org/D155626
-
Ilya Leoshkevich authored
In order to generate relocations or to apply fixups after the layout has been computed, the targets need to know the offsets of the respective operands. There are indirect ways to figure them out in some cases, for example, on SystemZ, the first memory operand is always at offset 2, and the second one is always at offset 4. But there are no such tricks for the immediate operands on SystemZ, so one has to refer to individual instruction encodings. This information, however, is available to TableGen. Generate the getOperandBitOffset() method to access it, and use it to simplify getting memory operand offsets on SystemZ. This also paves the way for implementing symbolic immediates on this platform. For the multi-lit operands, getOperandBitOffset() returns the offset of the first lit. An alternative way to obtain offsets would be to pass them to the encoder methods, but this would require reworking all targets. Also, VarLenCodeEmitter already does this, but adopting it requires reworking the respective targets without other significant benefits. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155329
-
Rik Huijzer authored
In https://reviews.llvm.org/D151611, a check was added to the tensor verifier to emit an error on negative tensor dimensions. This check allowed for dynamic dimensions, hence negative dimensions were still able to get through the verifier. This is a problem in situations such as #60558, where the dynamic dimension is converted to a static (and possibly negative) dimension by another pass in the compiler. This patch fixes that by doing another check during the `StaticTensorGenerate` conversion, and return a failure if the dimension is negative. As a side-note, I have to admit that I do not know why returning a failure in `StaticTensorGenerate` gives a nice "tensor dimensions must be non-negative" error. I suspect that the verifier runs again when `return failure()` is called, but I am not sure. Fixes #60558. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D155728
-
wangpc authored
We provide a way to specify arguments in the form of `name=value` so that we don't have to specify all optional arguments before the one we'd like to change. Required arguments can alse be specified in this way. Note that the argument can only be specified once regardless of the way (named or positional) to specify and positional arguments should be put before named arguments. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D152998
-
Fangrui Song authored
For a relocation, we don't differentiate the two cases: * the symbol index is 0 * the symbol index is non zero, the type is not STT_SECTION, and the name is empty. Clang generates such local symbols for RISC-V linker relaxation. So we may print ``` Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000001c 0000000100000039 R_RISCV_32_PCREL 0000000000000000 0 // llvm-readobj 0x1C R_RISCV_32_PCREL - 0x0 ``` while GNU readelf prints "<null>", which is clearer. Let's match the GNU behavior. Related to https://reviews.llvm.org/D81842 ``` 000000000000001c 0000000100000039 R_RISCV_32_PCREL 0000000000000000 <null> + 0 // llvm-readobj 0x1C R_RISCV_32_PCREL <null> 0x0 ``` Reviewed By: jhenderson, kito-cheng Differential Revision: https://reviews.llvm.org/D155353 -
Fangrui Song authored
-
wangpc authored
The removed code assumed that we can define classes inside a multiclass, so the name of outer multiclass is concatenated to the qualified name. But for current TableGen grammar, we can't define classes in multiclass, so it is unnecessary. This commit is requested in D152998.
-
Corentin Jabot authored
Fixes build failure introduce by 47ccfd7a.
-
Nuno Lopes authored
Undef was being used to populate unused vector lanes. While at it, switch extractelement to use poison as the OOB value (per LangRef)
-
Craig Topper authored
Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D155787
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).
-
Corentin Jabot authored
Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D154290
-
Freddy Ye authored
For more details about these instructions, please refer to the latest ISE document: https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D155145
-
Fangrui Song authored
StringMap iteration order is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). Sort by DIE offset (which looks like a pre-order traversal order).
-
Danila Malyutin authored
This can be thought as a subcase of `x & ((1 << nbits) - 1)` where x == -1 Differential Revision: https://reviews.llvm.org/D155622
-
Danila Malyutin authored
Check that vreg_width-1 mask is only removed for shifts Differential Revision: https://reviews.llvm.org/D155734
-
Timm Bäder authored
-