- May 08, 2020
-
-
Adrian Prantl authored
Also, this moves numSDKs out of the actual enum, as to not mess with the switch-cases-covered warning. Differential Revision: https://reviews.llvm.org/D79603
-
Sanjay Patel authored
-
Nico Weber authored
D52774 fixed a bug with typo correction of includes, but didn't add a test. D65907 then broke recovery of typo correction of includes again, because it extracted the code that writes to Filename to a separate function that took the parameter not by reference. Fix that, and also don't repeat the slash normalization computation and fix both lookup and regular file name after recovery. Differential Revision: https://reviews.llvm.org/D79595
-
Evgenii Stepanov authored
Summary: This is necessary to handle calls to free() after __hwasan_thread_exit, which is possible in glibc. Also, add a null check to GetCurrentThread, otherwise the logic in GetThreadByBufferAddress turns it into a non-null value. This means that all of the checks for GetCurrentThread() != nullptr do not have any effect at all right now! Reviewers: pcc, hctim Subscribers: #sanitizers, llvm-commits Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D79608
-
Raphael Isemann authored
Relanding this as D79632 should fix the macOS tests with this option. Original commit: Summary: Currently building LLVM on macOS and on other platforms with LLVM_ENABLE_MODULES is using different module flags, which means that a passing modules build on macOS might fail on Linux and vice versa. -fmodules-local-submodule-visibility is the mode that has clearer semantics and is closer to the actual C++ module standard, so let's make this the default everywhere. We can still test building without local submodule visibility on an additional bot by just changing the respective CMake flag. However, if building without local-submodule-visibility breaks we won't revert other commits and we won't loose LLDB's/Clang's test run information. Reviewers: aprantl, bruno, Bigcheese Reviewed By: Bigcheese Subscribers: abidh, dexonsmith, JDevlieghere, lldb-commits, mgorny, llvm-commits Tags: #llvm, #lldb Differential Revision: https://reviews.llvm.org/D74892
-
Reid Kleckner authored
Reduces time to link PGO instrumented net_unittets.exe by 11% (9.766s -> 8.672s, best of three). Reduces peak memory by 65.7MB (2142.71MB -> 2076.95MB). Use a more compact struct, BulkPublic, for faster sorting. Sort in parallel. Construct the hash buckets in parallel. Try to use one vector to hold all the publics instead of copying them from one to another. Allocate all the memory needed to serialize publics up front, and then serialize them in place in parallel. Reviewed By: aganea, hans Differential Revision: https://reviews.llvm.org/D79467
-
Vedant Kumar authored
Summary: On macOS, we can't do the DYLD_INSERT_LIBRARIES trick with a shim python binary as the ASan interceptors get loaded too late. Find the "real" python binary, copy it, and invoke it. Hopefully this makes the GreenDragon and swift-ci sanitizer bots happy... I tested this out by running `../llvm-macosx-x86_64/bin/llvm-lit test --filter TestNSDictionarySynthetic.py` in an ASanified swift-lldb build directory and it worked (i.e. no more "interceptors loaded too late" messages). Reviewers: JDevlieghere Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D79607
-
Matt Arsenault authored
Assume unknown address spaces behave like some flavor of global memory.
-
Nico Weber authored
-
Fangrui Song authored
With a fix to uninitialized EndOffset. DW_OP_call_ref is the only operation that has an operand which depends on the DWARF format. The patch fixes handling that operation in DWARF64 units. Differential Revision: https://reviews.llvm.org/D79501
-
Raphael Isemann authored
Summary: The arpa/inet.h header in macOS is providing an incorrect htonl function with enabled local submodule visibility while building LLDB. This caused several networking tests to fail as the IP addresses are now flipped in LLDB. This patch disables building with modules when local submodule visibility is active and the current system is macOS for the source/Host directory (which is the *only directory that includes arpa/inet.h). * debugserver also includes arpa/inet.h but there we already disabled modules. Reviewers: aprantl Reviewed By: aprantl Subscribers: mgorny, JDevlieghere Differential Revision: https://reviews.llvm.org/D79632
-
Sanjay Patel authored
Mostly cosmetic improvements to variable names and logic to ease refactoring suggested in D79116.
-
Arthur Eubanks authored
Summary: The new pass manager symbolizes the location as ~Simple instead of Simple::~Simple. Reviewers: rnk, leonardchan, vitalybuka Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D79594
-
Nico Weber authored
Based on the discussion on D55415, also make the flag default to false. Having libclang depend on clang-tools-extra means check-clang builds all of clang-tools-extra, which besides being a layering violation takes quite some time, since clang-tools-extra has many files that are slow to compile. Longer term, we likely will want to remove this flag completely. If people need this functionality, maybe there could be a libclang-tools-extra that's libclang + clang-tidy and clang-includes-fixer linked in. Differential Revision: https://reviews.llvm.org/D79599
-
Krasimir Georgiev authored
This reverts commit 989ae9e8. Newly added test fails: FAIL: LLVM::DW_OP_call_ref_unexpected.s http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/28298
-
Denis Khalikov authored
Summary: Handle debuginfo for spv.Variable and spv.globalVariable during (de)serialization. Differential Revision: https://reviews.llvm.org/D79566
-
Matt Arsenault authored
Avoids extra diffs from the rename of G_GEP to G_PTR_ADD in the generated check variables in a future patch.
-
Matt Arsenault authored
Somehow this was missing from the DAG path, but not global isel.
-
Fangrui Song authored
Announced on https://lists.llvm.org/pipermail/llvm-dev/2020-May/141416.html For many options, we have to support either one or two dash to be compatible with GNU ld. For newer and lld specific options, we can enforce strict double dashes. Affected options: * --thinlto-* * --lto-* * --shuffle-sections= This patch does not change `-plugin-opt=*` because clang driver passes `-plugin-opt=*` and I don't intend to cause churn. In 2000, GNU ld tried something similar with --omagic https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=e4897a3288f37d5f69e8acd256a6e83e607fe8d8 Reviewed By: tejohnson, psmith Differential Revision: https://reviews.llvm.org/D79371
-
Sanjay Patel authored
These are the obvious counterparts to the existing cast matchers. Moving out of D79116 to reduce that patch.
-
Sanjay Patel authored
FoldIToFPtoI() returns immediately if the operand is not an opposite cast instruction, so the extra checks in the callers are redundant.
-
Simon Pilgrim authored
As we're inheriting from LiveRangeCalc, all the headers are already explicitly required by LiveRangeCalc.h
-
Simon Pilgrim authored
Reduce StringRef.h include to forward declaration and add implicit SmallVector.h and <map> include dependencies.
-
Simon Pilgrim authored
MSVC builds don't need it but everything else does.
-
David Green authored
-
Casey Carter authored
This change adds test coverage for the `codecvt<char16_t, char8_t, mbstate_t>` and `codecvt<char32_t, char8_t, mbstate_t>` ctype facets added to the C++20 WD by [P0482R6](https://wg21.link/P0428R6). Note that libc++ does not implement these facets despite implementing the remainder of P0482, presumably for ABI reasons, so these tests are marked `UNSUPPORTED: libc++`.
-
Haojian Wu authored
-
Simon Pilgrim authored
We only need to include Optional.h, forward declare StringRef and move the StringRef.h include down to CachePruning.cpp.
-
Simon Pilgrim authored
ItaniumManglingCanonicalizer - reduce StringRef.h include to forward declaration + remove duplicate includes. NFC
-
Raphael Isemann authored
The relevant output FileCheck is scanning in this test is as follows: CXXRecordDecl 0x7f96cf8239c8 <<invalid sloc>> <invalid sloc> imported in A.B <undeserialized declarations> struct definition <<DefinitionData boilerplate>> `-FieldDecl 0x7f96cf823b90 <<invalid sloc>> <invalid sloc> imported in A.B anon_field_b 'int' (anonymous struct) CXXRecordDecl 0x7f96cf823be8 <<invalid sloc>> <invalid sloc> imported in A.B struct Before 710fa2c4 this test was passing by accident as it had a -DAG suffix in the checks changed by this patch, causing FileCheck to first match the last line of the output above (instead of the first one), and then finding the FieldDecl above. When I removed the -DAG suffix, FileCheck actually enforced the ordering and started failing as the FieldDecl comes before the CXXRecordDecl match we get. This patch fixes the CXXRecordDecl check to find the first line of the output above which caused FileCheck to also find the FieldDecl that follows. Also gives the FieldDecl a more unique name to make name collisions less likely.
-
Benjamin Kramer authored
This reverts commit ae45b4db. It causes miscompilations, test case on the mailing list.
-
Raphael Isemann authored
This test was generating the following false-positive warning when being compiled: warning: class 'SomeClass' defined without specifying a base class [-Wobjc-root-class]
-
Adam Czachorowski authored
Patch by Adam Czachorowski! Reviewers: hokein Reviewed By: hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79582
-
Raphael Isemann authored
The current test is checking both the anonymous structs and the template specializations in one FileCheck run, but the anonymous struct line can partially match the AST dump of a template specialization, causing that FileCheck won't match that same line later against the template specialization check and incorrectly fails on that check. This only happens when the template specialization node somehow ends up before the anonymous struct node. This patch just puts the checks for the anonymous structs in their own FileCheck run to prevent them from partially matching any other record decl. Fixes rdar://62997926
-
Simon Pilgrim authored
This was an existing bug exposed by the more aggressive X86ISD::BROADCAST generation by rG8817334ce3c7 Original test case thanks to @mstorsjo
-
Simon Pilgrim authored
Move StringRef.h include down to RemarkStringTable.cpp and remove some unused includes there as well.
-
Calixte Denizet authored
Summary: Patch in D78477 introduced a new test for gcov and this test is failing on arm: - http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-full-sh/builds/4752/steps/ninja%20check%202/logs/stdio - http://lab.llvm.org:8011/builders/clang-cmake-armv7-full/builds/10501/steps/ninja%20check%202/logs/stdio So try to fix it in reducing the number of threads. Reviewers: marco-c Reviewed By: marco-c Subscribers: dberris, kristof.beyls, #sanitizers, serge-sans-paille, sylvestre.ledru Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D79621
-
Simon Pilgrim authored
We only need to include SmallVector.h in Remark.h, and then the more bulky ArrayRef.h in Remark.cpp.
-
Simon Pilgrim authored
Reduce Triple.h include to a forward declaration in the header. Only the implementations in the cpp files need the actual Triple class definition.
-