- Jul 20, 2023
-
-
Timm Bäder authored
Use ASTContext::MakeIntValue and remove the std::tie+lambda weirdness. Differential Revision: https://reviews.llvm.org/D155584
-
Joseph Huber authored
This file required a global constructor due to copying the file stream and have a non-constexpr constructor for the wrapper type. Also, I changes the `opterr` to be a pointer, because it seemed like it wasn't being set correctly as an externally visibile variable if we just captured it by value. Reviewed By: abrachet Differential Revision: https://reviews.llvm.org/D155766
-
Joseph Huber authored
The `File` interface currently has a destructor to delete the buffer if it is owned by the file. This is problematic for the globally allocated `stdout`, `stdin`, and `stderr` files. This causes the file interface to have global constructors to initialize the destructors to use these. However, these never use the destructors because they don't own the buffer. This patch removes the destructor and calls in manually in the close implementation. The platform close should never need to access the buffer and it needs to be done before clearing the whole thing, so this should work. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D155762
-
Alex Bradbury authored
This avoids a static_cast.
-
Alexander Belyaev authored
-
Markus Böck authored
Currently, inlining a function with a `noalias` parameter leads to a large loss of optimization potential as the `noalias` parameter, an important hint for alias analysis, is lost completely. This patch fixes this with the same approach as LLVM by annotating all users of the `noalias` parameter with appropriate alias and noalias scope lists. The implementation done here is not as sophisticated as LLVMs, which has more infrastructure related to escaping and captured pointers, but should work in the majority of important cases. Any deficiency can be addressed in future patches. Related LLVM code: https://github.com/llvm/llvm-project/blob/27ade4b554774187d2c0afcf64cd16fa6d5f619d/llvm/lib/Transforms/Utils/InlineFunction.cpp#L1090 Differential Revision: https://reviews.llvm.org/D155712
-
Danila Malyutin authored
Copy propagation might have changed the register class of the register Differential Revision: https://reviews.llvm.org/D155792
-
Timm Bäder authored
-
Simon Pilgrim authored
[X86] LowerTRUNCATE - use LowerTruncateVecPackWithSignBits for prefer-256 bit AVX512 cases during type legalization If the AVX512 target will split the 512-bit vector truncation then try to use PACKSS/PACKUS first.
-
David Green authored
See D155806
-
Martin Braenne authored
When tests fail in UncheckedOptionalAccessModelTest.cpp, this prints the name of the optional type instead of a blob of hex. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D155788
-
Nikita Popov authored
I don't believe this can happen right now (because we're only working on icmps and as such can't hit the current fcmp null paths), but this will be possible in the future when icmp constant expressions are removed.
-
Nikita Popov authored
These functions may return null or a constant expression on failure, depending on whether such a constant expression is still supported.
-
wanglei authored
This has no impact on the current assembly functionality but will affect the patches for the subsequent code generation.
-
Alex Bradbury authored
Zdinx on RV32 defines the D instructions as taking even register pairs, and specifies that if using X0 when as a destination then X1 won't be written, and if using X0 as a source then the value is still all 0s (i.e. X1 isn't read). Therefore, it's incorrect to model X0_PD as having X1 as a subregister. This will also be the case for register pairs in Zacas and the P extension (and this patch takes the same approach as D95588 does). This patch introduces a dummy register that is solely used as a subreg alongside X0 in X0_PD. An earlier version of the patch had a minor effect on register allocation in some tests, which is now avoided by: 1) Adding RISCV::DUMMY_REG_PAIR_WITH_X0 to RISCVRegisterInfo::getReservedRegs 2) Defining a new register class that includes DUMMY_REG_PAIR_WITH_X0 Differential Revision: https://reviews.llvm.org/D153974
-
Jon Chesterfield authored
HSA headers might be under a hsa/ directory or might not. This scheme matches the one used by the openmp amdgpu plugin. Reviewed By: jhuber6, jplehr Differential Revision: https://reviews.llvm.org/D155812
-
Martin Braenne authored
This makes it easier to determine which line the unexpected happened on; previously, we would only get the line number. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D155802
-
Weining Lu authored
The assertions in these two tests were not auto-generated by update_cc_test_checks.py. Remove them.
-
Nikita Popov authored
In preparation for removing and constant expressions.
-
LLVM GN Syncbot authored
-
Timm Bäder authored
We will probably have to remove this at some point, but until then, make sure we're not running into much-harder-to-debug problems later on.
-
yrong authored
- Implement https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2474r2.html - Implement LWG3875(https://cplusplus.github.io/LWG/issue3875). Depends on D151629 Reviewed By: #libc, Mordante, philnik, var-const Differential Revision: https://reviews.llvm.org/D141699
-
Guray Ozen authored
This work adds two Ops: `mbarrier.arrive.expect_tx` performs expect_tx `mbarrier.barrier` returns `mbarrier.barrier.token` `mbarrier.try_wait.parity` waits on `mbarrier.barrier` and `mbarrier.barrier.token` `mbarrier.arrive.expect_tx` is one of the requirement to enable H100 TMA support. Depends on D154074 D154076 D154059 D154060 Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D154094
-
Thorsten Schütt authored
Fixes https://github.com/llvm/llvm-project/issues/63826 Reviewed By: aemerson Differential Revision: https://reviews.llvm.org/D155274
-
Ilya Leoshkevich authored
getOperandBitOffset() causes the following warning on MSVC: E:\llvm\ninja\lib\Target\SystemZ\SystemZGenMCCodeEmitter.inc(15414): warning C4060: switch statement contains no 'case' or 'default' labels Do not emit empty OpNum switches. Reviewed By: RKSimon, uweigand Differential Revision: https://reviews.llvm.org/D155805
-
Simon Pilgrim authored
Leave this to constant folding in SimplifyDemandedBits Fixes #63975
-
Tobias Gysi authored
This revision adds a branch weight op interface for the call / branch operations that support branch weights. It can be used in the LLVM IR import and export to simplify the branch weight conversion. An additional mapping between call operations and instructions ensures the actual conversion can be done in the module translation itself, rather than in the dialect translation interface. It also has the benefit that downstream users can amend custom metadata to the call operation during the export to LLVM IR. Reviewed By: zero9178, definelicht Differential Revision: https://reviews.llvm.org/D155702
-
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
-