- Sep 05, 2023
-
-
Fabian Mora authored
This patch pairs a promised interface with the object (Op/Attr/Type/Dialect) requesting the promise, ie: ``` declarePromisedInterface<MyAttr, MyInterface>(); ``` Allowing to make fine grained promises. It also adds a mechanism to query if `Op/Attr/Type` has an specific promise returning true if the promise is there or if an implementation has been added. Finally it adds a couple of `Attr|TypeConstraints` that can be used in ODS to query if the promise or an implementation is there. This patch tries to solve 2 issues: 1. Different entities cannot use the same promise. ``` declarePromisedInterface<MyInterface>(); // Resolves a promise. MyAttr1::attachInterface<MyInterface>(ctx); // Doesn't resolves a promise, as the previous attachment removed the promise. MyAttr2::attachInterface<MyInterface>(ctx); ``` 2. Is not possible to query if a promise has been declared. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D158464
-
Nico Weber authored
-
Joseph Huber authored
It's very important that the GPU build does not include any system directories. We currently use `-ffreestanding` to disable a lot of these features, but we can still accidentally include them if they are not provided by `libc` yet. This patch changes this to use `-nostdinc` to disable all standard search paths. Then we use the compiler's resource directory to pick up the provided headers like `stdint.h`. Differential Revision: https://reviews.llvm.org/D159445
-
Jingu Kang authored
If there are copy instructions between uaddlv and dup for transfer from gpr to fpr, try to remove them with duplane. Differential Revision: https://reviews.llvm.org/D159267
-
cor3ntin authored
Using https://github.com/actions/labeler, this add a workflow to automatically label PRs, in hope to reduce the work needed to triage new PRs. "new-prs-labeler.yml" has been seeded taking inspiration from the CODEOWNERS file when there was an existing corresponding label on the issue tracker.
-
Corentin Jabot authored
To avoid it being considered a workflow script.
-
pvanhout authored
- GICombinerEmitter is no more, now it's GlobalISelCombinerEmitter - Change the pattern so it also covers the MatchTable files
-
Stephen Tozer authored
Fixes a test which was broken on the green dragon buildbot, and further failures on the SIE buildbot. This reverts commit 8df9eff9.
-
cor3ntin authored
This patch: * Replaces `andymckay/labeler` which does not appear to be maintained by github official solution * Removes the closed issue workflow which was disabled a few years ago and never fixed. * Adds a few rules to add label based on PR title, hopefully that can make triaging simpler. If that turns out to be useful, we can consider adding more rules for backends, etc. We could technically also pattern match the body of the issue but I'm concerned about trying to be _too_ clever. The new system is only triggered on PR open so manual labels should not be removed.
-
Simon Pilgrim authored
-
Kristina Bessonova authored
Functional-style cast (i.e. a simple-type-specifier or typename-specifier followed by a parenthesize single expression [expr.type.conv]) is equivalent to the C-style cast, so that makes sense they have identical behavior including warnings. This also matches GCC https://godbolt.org/z/b8Ma9Thjb. Reviewed By: rnk, aaron.ballman Differential Revision: https://reviews.llvm.org/D159133
-
David Sherwood authored
In some cases where the same mask is used for multiple extending masked loads it can be more efficient to combine the zero- or sign-extend into the load even if it's not a legal or custom operation. This leads to splitting up the extending load into smaller parts, which also requires splitting the mask. For SVE at least this improves the performance of the SPEC benchmark x264 slightly on neoverse-v1 (~0.3%), and at least one other benchmark improves by around 30%. The uplift for SVE seems due to removing the dependencies (vector unpacks) introduced between the loads and the vector operations, since this should increase the level of parallelism. See tests: CodeGen/AArch64/sve-masked-ldst-sext.ll CodeGen/AArch64/sve-masked-ldst-zext.ll https://reviews.llvm.org/D159191
-
David Sherwood authored
I've added some missing tests for the following cases: 1. Zero- and sign-extends from unpacked vector types to wide, illegal types. For example, %aext = zext <vscale x 4 x i8> %a to <vscale x 4 x i64> 2. Normal loads combined with 1 3. Masked loads combined with 1 Differential Revision: https://reviews.llvm.org/D159192
-
Timm Bäder authored
These methods are all const and return a new Pointer instance instead of modifying the given instance.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D157619
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D157596
-
Florian Hahn authored
This allows untangling references to underlying IR for various recipes.
-
Benjamin Kramer authored
-
Amara Emerson authored
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D154189
-
David Spickett authored
This always succeeds. While I'm here, document why we check the size of p0 against the value of VG. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D157845
-
Timm Bäder authored
Rename CheckBaseDerived to something more general and call it in GetPtrField() as well, so we don't crash later in Pointer::toAPValue(). Differential Revision: https://reviews.llvm.org/D149149
-
Koakuma authored
This adds some commonly-used instruction aliases from various sources: - GNU - SPARCv9 manual - JPS1 ASR names Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157236
-
Koakuma authored
This adds named ASI tag constants (such as #ASI_P and #ASI_P_L) for memory accesses. This patch adds 64-bit/V9 tag names, given that currently the majority of SPARC software targets that arch. Support for 32-bit/V8 tag names will be added in a future patch. Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157235
-
Martin Erhart authored
There are two motivations for this change: 1. It considerably simplifies adding support for the realloc operation to the new buffer deallocation pass by lowering the realloc such that no deallocation operation is inserted and the deallocation pass itself can insert that dealloc 2. The lowering is expressed on a higher level and thus easier to understand, and the lowerings of the memref operations it is composed of don't have to be duplicated in the MemRefToLLVM lowering (also see discussion in https://reviews.llvm.org/D133424) Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D159430
-
Timm Bäder authored
We can implement these similarly to DerivedToBase casts. We just have to walk the class hierarchy, sum the base offsets and subtract it from the current base offset of the pointer. Differential Revision: https://reviews.llvm.org/D149133
-
Koakuma authored
This completes the support for the CAS instructions. Besides the base CASA and CASXA forms, on v9 the aliases CAS, CASX, CASL, and CASXL are also available. Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157234
-
Koakuma authored
This extends support for ASI-tagged loads, stores, and swaps with the new stored-ASI form ([reg+imm] %asi) introduced in v9. CAS instructions are handled differently by the (dis-)assembler, so it will be handled in a separate patch. Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157233
-
Koakuma authored
While both SPARCv7/v8 and v9 has a register named %fq, they encode it differently, so we need to differentiate between them. Reviewed By: barannikov88 Differential Revision: https://reviews.llvm.org/D157232
-
Timm Bäder authored
-
Timm Bäder authored
This is irrelevant for the current tests, but makes sense and later changes easier.
-
Adrian Kuegel authored
Prefer to use .empty() instead of checking size().
-
Felix Schneider authored
Memref descriptors contain an `offset` field that denotes the start of the content of the memref relative to the `alignedPtr`. This offset is not considered when converting a memref descriptor to a np.array in the Python runtime library, essentially treating all memrefs as if they had an offset of zero. This patch introduces the necessary pointer arithmetic to find the actual beginning of the memref contents to the memref->numpy conversion functions. There is an ongoing discussion about whether the `offset` field is needed at all in the memref descriptor. Until that is decided, the Python runtime and CRunnerUtils should still correctly implement the offset handling. Related: https://reviews.llvm.org/D157008 Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D158494
-
Lukas Sommer authored
Make local helper functions static to avoid symbol name collision.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Groverkss authored
This patch adds a new class Identifier to store identifiers in PresburgerSpace and their types. Identifiers were added earlier and were stored as a void pointer, and their type in the form of mlir::TypeId in PresburgerSpace. To get an identifier, a user of PresburgerSpace needed to know the type of identifiers. This was a problem for users of PresburgerSpace like IntegerRelation, which want to work on identifiers without knowing their type. The Identifier class allows users like IntegerRelation to work on identifiers without knowing their type, and also exposes an easier way to work with Identifiers. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D146909
-
Jie Fu authored
/data/llvm-project/clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp:62:26: error: unused variable 'NullLit' [-Werror,-Wunused-const-variable] static constexpr Literal NullLit = 0;
-
Karl-Johan Karlsson authored
-