- Mar 03, 2023
-
-
Peter Klausler authored
When a global procedure has no explicit interface, emit warnings when its references are inconsistent implicit procedure interfaces. Differential Revision: https://reviews.llvm.org/D145097
-
Alex Langford authored
These files were added in 97dcbea6 but it looks like they are missing header guards. This breaks module builds.
-
Marco Elver authored
Move MaxDepth into the lambda, since it is not needed outside. This fixes some compilers that complain about missing capture: error C3493: 'MaxDepth' cannot be implicitly captured because no default capture mode has been specified Fixes: f693932f ("[SelectionDAG] Transitively copy NodeExtraInfo on RAUW")
-
Aditya Nandakumar authored
GISel's CSE mechanism lazily inserts instructions into the CSE List to improve on efficiency as well as efficacy of CSE (for allowing partially built instructions to be fully built). There's unfortunately a mutual recursion via `handleRecordedInsts -> handleRecordedInst -> insertNode-> handleRecordedInsts`. So this change simply records that we're already draining this list so we can just bail out on the recursion. No changes to codegen are expected as we're still draining/handling the temporary list via pop_back and we should get the same sequence of instructions whether we call pop_back in a loop at the top level or recursive. https://reviews.llvm.org/D145006 reviewed by: dsanders
-
Raman Tenneti authored
Switch use of errno in src/time and test/src/time to libc_errno. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D145192
-
Jason Molenda authored
Revert while I investigate two CI bot failures; the more important is the lldb-arm-ubuntu where the FixAddress is removing the 0th bit so we're adding the `actual=` decorator on a string pointer, ``` Got output: (char *) strptr = 0x00400817 (actual=0x400816) ptr = [{ },{H}] ``` in TestDataFormatterSmartArray.py line 229. This reverts commit 4d635be2. -
Philip Reames authored
I also removed two runlines which added no additional coverage. No test in the file has both loads and stores, thus the two configurations duplicate the disabled configuration.
-
Derek Schuff authored
Implement the --build-id flag similarly to ELF, and generate a build_id section according to the WebAssembly tool convention specified in https://github.com/WebAssembly/tool-conventions/pull/183 The default style ("fast" aka "tree") hashes the contents of the output and (unlike ELF) generates a v5 UUID based on the hash (using a random namespace). It also supports generating a random v4 UUID, a sha1 hash, and a user-specified string (as ELF does). Differential Revision: https://reviews.llvm.org/D107662
-
Amara Emerson authored
rdar://106096671 Differential Revision: https://reviews.llvm.org/D145185
-
Marco Elver authored
During legalization of the SelectionDAG, some nodes are replaced with arch-specific nodes. These may be complex nodes, where the root node no longer corresponds to the node that should carry the extra info. Fix the issue by copying extra info to the new node and all its new transitive operands during RAUW. See code comments for more details. This fixes the remaining pcsections-atomics.ll tests on X86. v2: Optimize copyExtraInfo() deep copy. For now we assume that only NodeExtraInfo that have PCSections set require deep copy. Furthermore, limit the depth of graph search while pre-populating the visited set, assuming the to-be-replaced subgraph 'From' has limited complexity. An assertion catches if the maximum depth needs to be increased. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D144677
-
Peter Klausler authored
Currently, the selector of a construct entity (e.g., ASSOCIATE(x=>a(1:20))) is inheriting the CONTIGUOUS attribute from its associated variable even if it has subscripts that make it noncontiguous (a(1:20:2)). Add construct entities to the dynamic contiguity predicate instead. Differential Revision: https://reviews.llvm.org/D145114
-
Philip Reames authored
Only use of the globals was to load a pointer, we can just pass in a pointer instead.
-
Michael Jones authored
Minor typo swapped quotes for angle brackets. This patch moves everything to quotes. Differential Revision: https://reviews.llvm.org/D145188
-
Jordan Rupprecht authored
A common reason for LLDB failing to attach to an already-running process on Linux is the Yama security module: https://www.kernel.org/doc/Documentation/security/Yama.txt. This patch adds an explaination and suggested fix when it detects that case happening. This was previously proposed in D106226, but hasn't been updated in a while. The last request was to put the check in a target-specific location, which is the approach this patch takes. I believe Yama only exists on Linux, so it's put in that package. This has no end-to-end test because I'm not sure how to set `ptrace_scope` in a test environment -- if there are suggestions on how to do that, I'd be happy to add it. (Also, setting it to `3` is comically irreversible). I tested this locally. Reviewed By: DavidSpickett, labath Differential Revision: https://reviews.llvm.org/D144904
-
Jan Svoboda authored
This patch simplifies the loop inside each worker by extracting index retrieval into a lambda function. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D145101
-
Peter Klausler authored
A BLOCK construct may not contain a statement function definition; but it may of course contain an assignment statement with an array element on its left-hand side that looks like a statement function definition. These misparsed statement functions are converted into assignment statements during semantics once it is clear what they are. Move the C1107 check for a statement function definition in a block construct into declaration checking, which is where it probably should have been in the first place anyway. Differential Revision: https://reviews.llvm.org/D145112
-
Jakub Kuderski authored
* Remove unnecessary member functions. * Fix code sample. This is in preparation for landing future changes in https://reviews.llvm.org/D144503. Reviewed By: zero9178 Differential Revision: https://reviews.llvm.org/D145025
-
Luís Marques authored
This reverts commit b8b8aa6f. It broke AIX.
-
Jan Svoboda authored
This patch makes sure the ordering of TUs in the input CDB is preserved in the full output. Previously, the results were pushed into a global vector, potentially out-of-order and then sorted by the input file name. This is non-deterministic when the CDB contains multiple entries with the same input file. This patch fixes that by pre-allocating the output vector and writing directly to the position corresponding to the current input. This also eliminates one critical section. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D145098
-
Michael Jones authored
The integration tests were failing to build under GCC due to missing compile options for using LLVM's libc++ and compiler-rt. This should unblock https://github.com/llvm/llvm-project/issues/60467 Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D145128
-
Jason Molenda authored
On target where metadata is stored in bits that aren't used for virtual addressing -- AArch64 Top Byte Ignore and pointer authentication are two examples -- an SBValue object representing a pointer will return the address with metadata for SBValue::GetValueAsUnsigned. Users may want to get the virtual address without the metadata; this new method gives them a way to do this. Differential Revision: https://reviews.llvm.org/D142792
-
Kazu Hirata authored
-
Aart Bik authored
Reviewed By: cota Differential Revision: https://reviews.llvm.org/D145176
-
Nick Desaulniers authored
Reviewed By: asbirlea, nikic Differential Revision: https://reviews.llvm.org/D145130
-
Med Ismail Bennani authored
This patch should fix the build failures in the Lua ScriptedInterpreter introduced by 9a9fce1f . Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This reverts commit 6de18eb0.
-
Med Ismail Bennani authored
This patch should fix the build failures in the Lua ScriptedInterpreter introduced by 9a9fce1f . Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Chia-hung Duan authored
ScudoReleaseTest.ReleaseFreeMemoryToOSAndroid failed on Fuchsia This reverts commit c6ef6bbd.
-
Ed Maste authored
This test did not exist when I added the previous set of XFAILs (and the libc++ FreeBSD CI runner is not yet active). Reviewed by: Mordante Differential Revision: https://reviews.llvm.org/D145120
-
Bill Wendling authored
This reverts commit 3c07db5f. This caused https://github.com/llvm/llvm-project/issues/61118. Reverting to ensure this is a pure NFC change.
-
Craig Topper authored
Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D145113
-
Sean Maher authored
This patch changes the implementation of clang-format-diff.py to start up many clang-format processes in parallel in order to speed up clang-format-diff.py by several orders of magnitude on large patches. Differential Revision: https://reviews.llvm.org/D141230
-
Aaron Ballman authored
The paper was making minor corrections to the standard that Clang had already implemented. This adds (most of) the test coverage for the paper and claims support. In my testing, we supported this in Clang 15.
-
Nemanja Ivanovic authored
There are two ways of specifying a CPU on PowerPC: power<N> and pwr<N>. Clang/LLVM traditionally supports the latter and Clang replaces the former with the latter when passing it to the back end for the -mcpu= option. However, when the -mtune= option was introduced, this replacement was not implemented for it. This leaves us in an inconsistent state of accepting both forms for -mcpu= and and only the latter for -mtune=. Furthermore, it leaves us incompatible with GCC which only understands the power<N> version for both options. This patch just adds the same handling for the long names for -mtune= as already exists for -mcpu=. Differential revision: https://reviews.llvm.org/D144967
-
Philip Reames authored
-
Siva Chandra Reddy authored
-
Alexey Bataev authored
VF, NFC.
-
Philip Reames authored
This is a mechanical prep change for scalable vector support. All it does is move the point of TypeSize to unsigned (i.e. the unsafe cast) closer to point of use.
-
Peter Klausler authored
When the left-hand side of an allocatable assignment has an explicit character length, rather than a deferred length that might imply reallocation, handle any discrepancy in lengths via truncation or blank padding. Differential Revision: https://reviews.llvm.org/D145111
-
Peter Klausler authored
The compiler currently ignores attributes for PASS dummy arguments that are incompatible between a type-bound procedure in an extended type and the binding of the same name that it overrides in an ancestor type, if any. Strengthen this checking so that discrepancies between attributes and intents are caught, and add some tests. Differential Revision: https://reviews.llvm.org/D145110
-