- Jun 12, 2022
-
-
Simon Pilgrim authored
[DAG] visitINSERT_VECTOR_ELT - add <1 x ???> insert_vector_elt(v0,extract_vector_elt(v1,0),0) special case handling Check if we're just replacing one v1x?? vector with another
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Dave Lee authored
When using the `script` Python repl, SB objects are printed in a way that gives the user no information. The simplest example is: ``` (lldb) script lldb.debugger <lldb.SBDebugger; proxy of <Swig Object of type 'lldb::SBDebugger *' at 0x1097a5de0> > ``` This output comes from the Python repl printing the `repr()` of an object. None of the SB classes implement `__repr__`, and all print like the above. However, many (most?, all?) SB classes implement `__str__`. Because they implement `__str__`, a more detailed output can be had by `print`ing the object, for example: ``` (lldb) script print(lldb.debugger) Debugger (instance: "debugger_1", id: 1) ``` For convenience, this change switches all SB classes that implement to `__str__` to instead implement `__repr__`. **The result is that `str()` and `repr()` will produce the same output**. This is because `str` calls `__repr__` for classes that have no `__str__` method. The benefit being that when writing a `script` invocation, you don't need to remember to wrap in `print()`. If that isn't enough motivation, consider the case where your Python expression results in a list of SB objects, in that case you'd have to `map` or use a list comprehension like `[str(x) for x in <expr>]` in order to see the details of the objects in the list. For reference, the docs for `repr` say: > repr(object) > Return a string containing a printable representation of an object. For > many types, this function makes an attempt to return a string that would > yield an object with the same value when passed to eval(); otherwise, the > representation is a string enclosed in angle brackets that contains the > name of the type of the object together with additional information often > including the name and address of the object. A class can control what this > function returns for its instances by defining a __repr__() method. and the docs for `__repr__` say: > object.__repr__(self) > Called by the repr() built-in function to compute the “official” string > representation of an object. If at all possible, this should look like a > valid Python expression that could be used to recreate an object with the > same value (given an appropriate environment). If this is not possible, a > string of the form <...some useful description...> should be returned. The > return value must be a string object. If a class defines __repr__() but not > __str__(), then __repr__() is also used when an “informal” string > representation of instances of that class is required. > > This is typically used for debugging, so it is important that the > representation is information-rich and unambiguous. Even if it were convenient to construct Python expressions for SB classes so that they could be `eval`'d, however for typical lldb usage, I can't think of a motivating reason to do so. As it stands, the only action the docs say to do, that this change doesn't do, is wrap the `repr` string in `<>` angle brackets. An alternative implementation is to change lldb's python repl to apply `str()` to the top level result. While this would work well in the case of a single SB object, it doesn't work for a list of SB objects, since `str([x])` uses `repr` to convert each list element to a string. Differential Revision: https://reviews.llvm.org/D127458
-
- Jun 11, 2022
-
-
Chia-hung Duan authored
Operand's defining op may not be valid for adding to the worklist under stict mode Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D127180
-
Craig Topper authored
This had previously been fixed, but was lost 4 years ago when __extension__ was removed from many intrinsic macros. Refixes PR32491.
-
ksyx authored
-
Simon Pilgrim authored
Allow scalar_to_vector nodes to be used for the start of a build_vector creation
-
Nikolas Klauser authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
We try to use X32 only for gnux32 triple cases
-
Mark de Wever authored
Implements the compile-time checking of the formatting arguments. Completes: - P2216 std::format improvements Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D121530
-
David Green authored
As a follow up to D126686, this does the same fold for floating point add and shuffle. In this case it is limited to reassoc either x[0]+x[1] or x[1]+x[0] for both result[0] and results[1]. Differential Revision: https://reviews.llvm.org/D127087
-
David Green authored
-
Simon Pilgrim authored
Remove the early-out cases so we can more easily add additional folds in the future.
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D127322
-
Simon Pilgrim authored
-
Simon Pilgrim authored
(style) Both cases always continue.
-
Simon Pilgrim authored
(style) Both cases always return.
-
owenca authored
Remove the braces of an else block only if the r_brace of the block is followed by an if. Differential Revision: https://reviews.llvm.org/D127532
-
Sheng authored
Change 'otuer' to 'outer'.
-
Mohammed Keyvanzadeh authored
Format and refactor the GitHub workflow for consistency. Differential Revision: https://reviews.llvm.org/D125197
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Fangrui Song authored
Add SwitchSection to return switchSection. The API will be removed soon.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Siva Chandra Reddy authored
Tests for pthread_detach and thrd_detach have not been added. Instead, a test for the underlying implementation has been added as it makes use of an internal wait method to synchronize with detached threads. Reviewed By: lntue, michaelrj Differential Revision: https://reviews.llvm.org/D127479
-
Kai Luo authored
-
Fangrui Song authored
-
Fangrui Song authored
-
PeixinQiao authored
To be consistent with OpenACC and will find the tests in one single directory for OpenMP. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D127529
-
Fangrui Song authored
-
Vitaly Buka authored
Looks like comment on D126100 was unnoticed.
-
Tue Ly authored
Implement double precision FMA (Fused Multiply-Add) for targets without FMA instructions using __uint128_t to store the intermediate results. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D124495
-
Arjun P authored
Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D127466
-
Maksim Panchenko authored
Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
-
Michael Jones authored
A previous patch added the constant EXP_MANT_MASK to the FloatProperties for other types of long double. This patch adds it to the special 80-bit x87 long double. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D127550
-
Mircea Trofin authored
The update depends on LoopInfo, so we need that refreshed first, not after. Differential Revision: https://reviews.llvm.org/D127467
-