- Aug 22, 2022
-
-
Phoebe Wang authored
This patch fixes lit fails after D132342. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132372
-
Stephen Tozer authored
In the InstrRefBasedImpl for LiveDebugValues, we attempt to propagate debug values through basic blocks in part by checking to see whether all a variable's incoming debug values to a BB "agree", i.e. whether their properties match and they refer to the same underlying value. Prior to this patch, the check for agreement between incoming values relied on exact equality, which meant that a VPHI and a Def DbgValue that referred to the same underlying value would be seen as disagreeing. This patch changes this behaviour to treat them as referring to the same value, allowing the shared value to propagate into the BB. Differential Revision: https://reviews.llvm.org/D125953
-
Aaron Ballman authored
It was originally left off thinking the paper only impacts the C standard library, but Clang supports diagnostics for incorrect use of a format specifier, so this paper has some frontend impacts as well.
-
Michael Buch authored
This check was put in place to prevent static functions from translation units outside the one that the current expression is evaluated from taking precedence over functions in the global namespace. However, this is really a different bug. LLDB lumps functions from all CUs into a single AST and ends up picking the file-static even when C++ context rules wouldn't allow that to happen. This patch removes the check so we apply the AsmLabel to all FunctionDecls we create from DWARF if we have a linkage name available. This makes the code-path easier to reason about and allows calling static functions in contexts where we previously would've chosen the wrong function. We also flip the XFAILs in the API test to reflect what effect this change has. **Testing** * Fixed API tests and added XFAIL Differential Revision: https://reviews.llvm.org/D132231
-
Michael Buch authored
This will be useful in preparation for some reshuffling of assertions in this file since we won't have to adjust the persitent variable names during the process. sed commands: ``` s/expect("expr -- /expect_expr("/g s/startstr="(int) [$0-9]* = /result_type="int", result_value="/g ``` **Testing** * API tests still pass Differential Revision: https://reviews.llvm.org/D132271 -
Florian Hahn authored
Test cases for using the backedge-taken-count to rule out dependencies between an invariant and strided accesses.
-
isuckatcs authored
This patch makes it possible for lambdas, implicit copy/move ctors and structured bindings to handle non-POD multidimensional arrays. Differential Revision: https://reviews.llvm.org/D131840
-
Martin Storsjö authored
-
David Green authored
A fixed length SK_Splice shuffle vector is lowered to a Ext under AArch64, which should have a cost of 1. Differential Revision: https://reviews.llvm.org/D132299
-
Simon Pilgrim authored
-
isuckatcs authored
Prior to this patch we handled lambda captures based on their initializer expression, which resulted in pattern matching. With C++17 copy elision the initializer expression can be anything, and this approach proved to be fragile and a source of crashes. This patch removes pattern matching and only checks whether the object is under construction or not. Differential Revision: https://reviews.llvm.org/D131944
-
Guillaume Chatelet authored
-
Simon Pilgrim authored
These are currently recognised as SK_PermuteTwoSrc
-
Guillaume Chatelet authored
-
Goran Flegar authored
Add fixes for https://reviews.llvm.org/D131747
-
Emmmer authored
Using GetTargetArchitecture() instead of m_target_arch, and set m_target_arch to private. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D132353
-
Guillaume Chatelet authored
-
David Green authored
-
Simon Pilgrim authored
SK_Splice should be equivalent to a PALIGNR instruction etc. - but as discussed on D132308, until full fixed vector support for SK_Splice is in place, just assume its a SK_PermuteTwoSrc.
-
Guillaume Chatelet authored
-
Kadir Cetinkaya authored
-
Florian Hahn authored
Make some tests a bit more robust with respect to future changes.
-
Christian Sigg authored
Previously, `arith.constant`, `arith.muli` and `affine.min` were supported when deriving upper loop bounds when converting parallel loops to GPU. Reviewed By: akuegel Differential Revision: https://reviews.llvm.org/D132354
-
Valentin Clement authored
D131585 Adds couple of semantics check for the components of BIND(C) derived-type. This would raise an error when a component is of C_PTR type. Add `bind(c)` to the `__builtin_c_ptr` type so the wrong error is not triggered. Reviewed By: peixin, jeanPerier Differential Revision: https://reviews.llvm.org/D132350
-
Guillaume Chatelet authored
-
Victor Campos authored
Check ScopedPrinter pointer before attempting to print the attribute's parsed information. Patch by Michael Platings and Victor Campos Reviewed By: pratlucas Differential Revision: https://reviews.llvm.org/D132214
-
River Riddle authored
* Fix ambiguous Twine constructor call * Ensure shift is 64-bit (for MSVC) * Disable bytecode tests on s390x (we don't support big endian right now)
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
This reverts commit e7b250b8.
-
Guillaume Chatelet authored
-
River Riddle authored
This commit adds a new bytecode serialization format for MLIR. The actual serialization of MLIR to binary is relatively straightforward, given the very very general structure of MLIR. The underlying basis for this format is a variable-length encoding for integers, which gets heavily used for nearly all aspects of the encoding (given that most of the encoding is just indexing into lists). The format currently does not provide support for custom attribute/type serialization, and thus always uses an assembly format fallback. It also doesn't provide support for resources. These will be added in followups, the intention for this patch is to provide something that supports the basic cases, and can be built on top of. https://discourse.llvm.org/t/rfc-a-binary-serialization-format-for-mlir/63518 Differential Revision: https://reviews.llvm.org/D131747
-
Max Kazantsev authored
Initial implementation had too weak requirements to positive/negative range crossings. Not crossing zero with nuw is not enough for two reasons: - If ArLHS has negative step, it may turn from positive to negative without crossing 0 boundary from left to right (and crossing right to left doesn't count for unsigned); - If ArLHS crosses SINT_MAX boundary, it still turns from positive to negative; In fact we require that ArLHS always stays non-negative or negative, which an be enforced by the following set of preconditions: - both nuw and nsw; - positive step (looks liftable); Because of positive step, boundary crossing is only possible from left part to the right part. And because of no-wrap flags, it is guaranteed to never happen.
-
Guillaume Chatelet authored
This is intended to replace ArrayRef. Differential Revision: https://reviews.llvm.org/D132254
-
Max Kazantsev authored
-
Vitaly Buka authored
The warning was: SemaType.cpp:9469:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
-
wanglei authored
This patch fix test failure due to D132006. Differential Revision: https://reviews.llvm.org/D132346
-
Max Kazantsev authored
Show that the issue also exists with positive steps.
-
Shao-Ce SUN authored
Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D121670
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D131954
-