- Sep 05, 2023
-
-
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
-
iambrj authored
Fix a typo (incorrectly calling getNumDomainVars instead of getNumRangeVars) in intersectRange from 3dd9931c. Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D159413
-
Burak Emir authored
[clang][dataflow] #llvm #flow-analysis Simplify formula at CNF construction time, and short-cut solving of known contradictory formulas. In dataflow analysis, SAT solver: simplify formula during CNF construction and short-cut solving when the formula has been recognized as contradictory. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D158407
-
pvanhout authored
Adds a new feature to MIR patterns: builtin instructions. They offer some additional capabilities that currently cannot be expressed without falling back to C++ code. There are two builtins added with this patch, but more can be added later as new needs arise: - GIReplaceReg - GIEraseRoot Depends on D158714, D158713 Reviewed By: arsenm, aemerson Differential Revision: https://reviews.llvm.org/D158975
-
pvanhout authored
Now that the old backend is gone, clean-up a few things that no longer make sense and tidy up the file a bit. Depends on D158710 Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D158714
-
pvanhout authored
Remove CodeGen leftovers from the old combiner backend and adapt the API to fit the new backend better. It's now quite a bit closer to how InstructionSelector works. - `CombinerInfo` is now a simple "options" struct. - `Combiner` is now the base class of all TableGen'd combiner implementation. - Many fields have been moved from derived classes into that class. - It has been refactored to create & own the Observer and Builder. - `tryCombineAll` TableGen'd method can now be renamed, which allows targets to implement the actual `tryCombineAll` call manually and do whatever they want to do before/after it. Note: `CombinerHelper` needs to be mutable because none of its methods are const. This can be revisited later. Depends on D158710 Reviewed By: aemerson, dsanders Differential Revision: https://reviews.llvm.org/D158713 -
Cullen Rhodes authored
Check for allDimsScalable is incorrect and currently permits fixed vectors.
-
Christian Sigg authored
-
Brad Smith authored
Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D159397
-
Qiu Chaofan authored
mffsl is available since ISA 3.0. The builtin is named with ppc prefix to follow our convention. For targets earlier than power9, GCC generates extra code to support the functionality, while this patch does not implement such behavior. Reviewed By: nemanjai, tuliom Differential Revision: https://reviews.llvm.org/D158065
-
sstwcw authored
Now strings that are too long for one line in C#, Java, JavaScript, and Verilog get broken into several lines. C# and JavaScript interpolated strings are not broken. A new subclass BreakableStringLiteralUsingOperators is used to handle the logic for adding plus signs and commas. The updateAfterBroken method was added because now parentheses or braces may be required after the parentheses or commas are added. In order to decide whether the added plus sign should be unindented in the BreakableToken object, the logic for it is taken out into a separate function shouldUnindentNextOperator. The logic for finding the continuation indentation when the option AlignAfterOpenBracket is set to DontAlign is not implemented yet. So in that case the new line may have the wrong indentation, and the parts may have the wrong length if the string needs to be broken more than once because finding where to break the string depends on where the string starts. The preambles for the C# and Java unit tests are changed to the newer style in order to allow the 3-argument verifyFormat macro. Some cases are changed from verifyFormat to verifyImcompleteFormat because those use incomplete code and the new verifyFormat function checks that the code is complete. The line in the doc was changed to being indented by 4 spaces, that is, the default continuation indentation. It has always been the case. It was probably a mistake that the doc showed 2 spaces previously. This commit was fist committed as 16ccba51. The tests caused assertion failures. Then it was reverted in 547bce36. Reviewed By: MyDeveloperDay Differential Revision: https://reviews.llvm.org/D154093
-
Takuya Shimizu authored
When the caret location is lower than the lowest source range, clang is printing wrong line numbers. The first line number should consider caret location line even when there are source ranges provided. Current wrong line example: https://godbolt.org/z/aj4qEjzs4
-
Qiu Chaofan authored
Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D156076
-
Nicolai Hähnle authored
-