- Aug 09, 2022
-
-
Craig Topper authored
The floating point stores use a different register class, it probably makes sense to have a different SchedRead. Reviewed By: monkchiang Differential Revision: https://reviews.llvm.org/D131379
-
Simon Pilgrim authored
[DAG] canCreateUndefOrPoison - add freeze(bswap(x)) -> bswap(freeze(x)) and freeze(bitreverse(x)) -> bitreverse(freeze(x)) support Both are guaranteed not to create undef/poison
-
lorenzo chelini authored
TiledLoopOp has been removed in: https://github.com/llvm/llvm-project/commit/1a829d2d06958abf09bb6aff81120959206887f6 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D131383
-
Benjamin Kramer authored
-
Lei Zhang authored
This commit updates all SPIR-V enum definitions to match the latest specification (v1.6 revision 2). Along the way, fixed some issues in `gen_spirv_dialect.py` and added a new script for refreshing all op definitions for such cases. Reviewed By: kuhar Differential Revision: https://reviews.llvm.org/D131293
-
Fangrui Song authored
With C++17 there is no Clang pedantic warning or MSVC C5051. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D131346
-
Jon Chesterfield authored
-
Ron Lieberman authored
-
Slava Gurevich authored
Current application of bitwise-OR to a binary mask always results in True, which seems inconsistent with the intent of the statement, a likely typo. Differential Revision: https://reviews.llvm.org/D131312
-
- Aug 08, 2022
-
-
Nico Weber authored
No behavior change. Differential Revision: https://reviews.llvm.org/D131403
-
Nico Weber authored
Like D131354, but for COFF. No behavior change. Differential Revision: https://reviews.llvm.org/D131405
-
Simon Pilgrim authored
[DAG] canCreateUndefOrPoison - add freeze(sext(x)) -> sext(freeze(x)) and freeze(zext(x)) -> zext(freeze(x)) support Both are guaranteed not to create undef/poison
-
Michał Górny authored
Make constructors of the Process and its subclasses class protected, to prevent accidentally constructing Process on stack when it could be afterwards accessed via a shared_ptr (since it uses std::enable_shared_from_this<>). The only place where a stack allocation was used were unittests, and fixing them via declaring an explicit public constructor in the respective mock classes is trivial. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D131275
-
Aaron Ballman authored
WG14 N3047 is the last C working draft before the document goes out for committee ballot, so this should be the last of the C2x compiler features to be added.
-
Jon Chesterfield authored
-
Nico Weber authored
No behavior change.
-
Jeff Niu authored
Adds an integer absolute value op to the math dialect. When converting to LLVM, this op is lowered to the LLVM `abs` intrinsic. When converting to SPIRV, this op is lowered to `spv.GL.SAbs`. Depends on D131325 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D131327
-
Jeff Niu authored
To make room for introducing `math.absi`. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D131325
-
Simon Pilgrim authored
All of these are safe to fold from freeze(unaryop(x)) -> unaryop(freeze(x))
-
Arthur Eubanks authored
Previously we'd go off the end of the BI iterator because we expected that the relative positions of common blocks before and after were consistent. That's not always true though, for example with jump-threading. Reviewed By: jamieschmeiser Differential Revision: https://reviews.llvm.org/D130596
-
Krzysztof Parzyszek authored
The build breakages should be addressed by d4abdd2e: [CMake] Check CMAKE_CXX_STANDARD and error if it's to old Thanks to Tobias and Roy for addressing these issues.
-
Dylan Fleming authored
This patch serves two main purposes: Firstly, to split some of the logic into a seperate method to try and improve readability On top of this, it aims to make creating the reductions more generic. That way, subsequent patches adding reductions shouldn't need to add a significant amount of extra logic checks, such as checking for specific operators. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D131161
-
Jakub Kuderski authored
Allow for `is_splat` to be used inline, similar to `is_contained`, e.g., ``` if (is_splat({type1, type2, type3, type4})) ... ``` which is much more concise and less typo-prone than an equivalent chain of equality comparisons. My immediate motivation is to clean up some code in the SPIR-V dialect that currently needs to either construct a temporary container or use `makeArrayRef` before calling `is_splat`. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D131289 -
Simon Pilgrim authored
This patch adds basic support for a DAG variant of the canCreateUndefOrPoison call and updates DAGCombiner::visitFREEZE to use it, further Opcodes (including target specific Opcodes) can be handled when we have test coverage. So far, I've left visitFREEZE to just use this for unary nodes (which currently means the existing BITCAST/FREEZE cases) - later patches will add other unary opcodes (with test coverage) and we can also refactor visitFREEZE to support a general number of operands like we do in InstCombinerImpl::pushFreezeToPreventPoisonFromPropagating. I'm not aware of any vector test freeze coverage so the DemandedElts (and the Depth) args are not being used yet - but they are in place. Similarly we will be able to handle poison generating SDNodeFlags as and when it becomes an issue. Part of the work for D106675 / PR50468 Differential Revision: https://reviews.llvm.org/D130646
-
Alexey Lapshin authored
llvm-dwarutil.cpp redundantly calls to InitializeAllAsmParsers. That call might be removed as well as dependency on ${LLVM_TARGETS_TO_BUILD} Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D131157 -
Sanjay Patel authored
-
Chris Bieneman authored
Along with the new documentation this also re-organizes the HLSL docs to a subdirectory. The hope is to continue to expand this documentation as the HLSL implementation advances. Differential Revision: https://reviews.llvm.org/D130794
-
Wael Yehia authored
AIX 7.2 TL5 SP4 and AIX 7.3 TL0 SP2 have been released as of now. The linker in these OS versions recognizes and properly supports __start_SECNAME and __stop_SECNAME symbols which are needed for PGO. This reverts commit 93bb2f16.
-
Tobias Hieta authored
These are new debug types that ships with the latest Windows SDK and would warn and finally fail lld-link. The symbols seems to be related to Microsoft's XFG which is their version of CFG. We can't handle any of this yet, so for now we can just ignore these types so that lld doesn't fail with a new version of Windows SDK. Fixes: #56285 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D129378
-
Arjun P authored
IntegerPolyhedron::findIntegerLexmin currently does not return values of the local ids, so when a test for sampling includes a set with locals, the result of findIntegerLexmin should be checked using containsPointNoLocal, not containsPoint.
-
Adrian Vogelsgesang authored
-
Simon Pilgrim authored
-
Louis Dionne authored
-
Mohammed Nurul Hoque authored
Baseline coverage for D127964.
-
Denis Antrushin authored
When EarlyCSE tries to common vector masked loads/stores, it first checks that they have same base operand and then assumes that this is enough for mask types to be equal. This is true for typed pointers but false for opaque ones - two loads of different vector sizes from same base pointer '%b' are the same, `ptr %b`. (For typed pointers, `%b` was cast to vector pointer type so bases were different). Change assert to return from lambda `isSubmask` so this transformation properly works with opaque pointers. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D131251
-
Tobias Hieta authored
Also nuke the old value out of the cache if it's there, otherwise it could lead to problems when the project increases the standard and the developer just runs the "make/ninja" program. Reviewed By: royjacobson Differential Revision: https://reviews.llvm.org/D131367
-
Louis Dionne authored
It used to be defined by the compiler, but libc++ now provides it. Differential Revision: https://reviews.llvm.org/D131201
-
Louis Dionne authored
When back-deploying to older platforms, we can still provide assertions, but we might not be able to provide a great implementation for the verbose handler. Instead, we can just call ::abort(). Differential Revision: https://reviews.llvm.org/D131199
-
Haojian Wu authored
[clang-tidy] Fix a regression of readability-container-size-empty after the AST ElaboratedType change. With 15f3cd6b, we no longer emit a diagnostic on a real std::vector case where the size method returns a sugar `size_type`. This patch fixes it. ``` std::vector<int> v; if (v.size() == 0) // => no check diagnostics ; ``` Differential Revision: https://reviews.llvm.org/D131390
-
Simon Pilgrim authored
Noticed while triaging D131358
-