summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [SemaCXX] Fix ICE for unexpanded parameter packBrian Gesiak2019-01-072-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The documentation for RecursiveASTVisitor::TraverseDecl states that the Decl being traversed may be null. In fact, this is the case when a CXXCatchStmt with no exception decl is traversed. Because the visitor for diagnosing unexpanded parameter packs does not check for null, it ends up crashing when it attempts to call the Decl::isParameterPack method on a null Decl pointer. Add a null check to prevent an ICE, and a test case that would crash otherwise. Also, because the test requires C++ exceptions and C++14, change the test parameters for the entire test file. (Alternatively, I thought about adding a new test file, but went with this approach for my own convenience.) Co-authored-by: Andreas Molzer <andreas.molzer@gmx.de> Co-authored-by: Mara Bos <m-ou.se@m-ou.se> Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D56271 llvm-svn: 350501
* [gn build] Add build files for llvm/lib/Target/ARM + testsNico Weber2019-01-0710-5/+338
| | | | | | | | | | | | The ARM target itself is similar to the X86 target in https://reviews.llvm.org/rL348903 The llvm-exegesis unittests ARM bits are similar to the X86 bits in https://reviews.llvm.org/rL350413 Both are similar to the corresponding AArch64 bits in https://reviews.llvm.org/rL350499 too After this, everything in my local GN branch is upstreamed to LLVM. Differential Revision: https://reviews.llvm.org/D56371 llvm-svn: 350500
* [gn build] Add build files for llvm/lib/Target/AArch64 + testsNico Weber2019-01-0712-12/+402
| | | | | | | | | | | | | The AArch64 target itself is similar to the X86 target in https://reviews.llvm.org/rL348903 The llvm-exegesis AArch64 bits are similar to the X86 bits in http://reviews.llvm.org/rL350184 The llvm-exegesis unittests AArch64 bits are similar to the X86 bits in https://reviews.llvm.org/rL350413 llvm/unittests/Target/AArch64 doesn't have an equivalent since the X86 Target only has lit tests, no unittests. Differential Revision: https://reviews.llvm.org/D56364 llvm-svn: 350499
* [X86] Add support for matching vector funnel shift to AVX512VBMI2 instructions.Craig Topper2019-01-067-279/+3267
| | | | | | | | | | | | | | Summary: AVX512VBMI2 supports a funnel shift by immediate and a funnel shift by a variable vector. Reviewers: spatel, RKSimon Reviewed By: RKSimon Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D56361 llvm-svn: 350498
* Revert "Resubmit rL345008 "Split MachinePipeliner code into header and cpp ↵Lama Saba2019-01-062-620/+595
| | | | | | | | | files"" This reverts commit rL350493 issues related to modules still appear in http://green.lab.llvm.org/green/job/lldb-cmake llvm-svn: 350497
* [x86] explicitly set cost of integer add/subSanjay Patel2019-01-061-0/+8
| | | | | | | | | | | | | | | There are no test changes here in the existing cost model regression tests because integer add/sub have a default legal cost of 1 already. This would break, however, if we custom lower those ops because the default cost model assumes that custom-lowered ops are more expensive. This is similar to the change in rL350403. See discussion in D56011 for more details. When we enhance that patch to handle integer ops, we need this cost model change to avoid unintended diffs here from the custom lowering. llvm-svn: 350496
* Fix bug in test found by the diagnostic added in r350340.Nico Weber2019-01-061-1/+1
| | | | | | | I meant to commit this change in 350341 but failed to do so (since it's in test/CodeGenCXX, not in test/Frontend). llvm-svn: 350495
* [gn build] Merge r350341Nico Weber2019-01-062-1/+13
| | | | | | Adds a build file for llvm-elfabi and makes check-llvm depend on it. llvm-svn: 350494
* Resubmit rL345008 "Split MachinePipeliner code into header and cpp files"Lama Saba2019-01-062-595/+620
| | | | | | | | | Resubmitted in rL345290 and reverted in rL350345 due to failures in http://green.lab.llvm.org/green/job/lldb-cmake/ Resubmitting after a workaround to lldb-cmake failure was committed in rL350346, more info in https://reviews.llvm.org/D56084 llvm-svn: 350493
* [gn build] Add build files for LLVM unittests with a custom main() functionNico Weber2019-01-065-12/+76
| | | | | | Differential Revision: https://reviews.llvm.org/D56219 llvm-svn: 350492
* [CMake] Use hidden visibility for static libc++ in FuchsiaPetr Hosek2019-01-061-0/+1
| | | | | | | | This is enables the use of libc++ in contexts such as device drivers. Differential Revision: https://reviews.llvm.org/D55405 llvm-svn: 350491
* [LegalizeVectorOps] Add FSHL/FSHR to the list of vector operations that ↵Craig Topper2019-01-061-0/+2
| | | | | | | | should be handled. The FSHL/FSHR nodes are handled in the expand function, but they need to also be listed in the code that queries for the operation action too. llvm-svn: 350490
* [libcxx] Support building hermetic static libraryPetr Hosek2019-01-063-33/+72
| | | | | | | | | | | | This is useful when static libc++ library is being linked into shared libraries that may be used in combination with libraries. We want to avoid we exporting libc++ symbols in those cases where this option is useful. This is provided as a CMake option and can be enabled by libc++ vendors as needed. Differential Revision: https://reviews.llvm.org/D55404 llvm-svn: 350489
* [compiler-rt][Fuchsia] Replace _zx_vmar_allocate_old callPetr Hosek2019-01-061-4/+4
| | | | | | | | | This is the deprecated legacy interface, replace it with the current _zx_vmar_allocate one. Differential Revision: https://reviews.llvm.org/D56360 llvm-svn: 350488
* Have MSVC Visualizer for DeducedTemplateSpecializationType show both the ↵Mike Spertus2019-01-061-13/+24
| | | | | | | | | | | | | | | | | | original template and deduced specialization Now appears in the Autos window something like - MyType DeducedTemplateSpecializationType {struct Y<int>} |- Template template<typename T> struct Y; |- Deduced As struct Y<int> |- isDeduced true bool |- TypeClass DeducedTemplateSpecialization (36) |- Flags No TypeBits set beyond TypeClass |- Canonical RecordType {struct Y<int>} Also changed QualType visualization to auto-expand the BaseType llvm-svn: 350487
* [CMake][Fuchsia] Enable build ID, relaxations for first stagePetr Hosek2019-01-061-0/+3
| | | | | | | | We want these to be used for the second stage compiler as well. Differential Revision: https://reviews.llvm.org/D56359 llvm-svn: 350486
* Fix PR39749 - Headers containing just #error harm __has_include.Eric Fiselier2019-01-0624-19/+411
| | | | | | | | | | | This patch changes <experimental/foo> to use #warning instead of is harmful to common feature detection idioms. We should also consider only emitting the warning when __DEPRECATED is defined, like we do in the <ext/foo> headers. Users may want to specify "-Werror=-W#warnings" while still ignoring the libc++ warnings. llvm-svn: 350485
* Revert "[CMake][Fuchsia] Enable experimental new pass manager by default"Petr Hosek2019-01-051-1/+0
| | | | | | This reverts commit r350461 as it causes many of the Clang tests to fail. llvm-svn: 350484
* [X86][AsmParser] Don't allow X86::DX in CheckBaseRegAndIndexRegAndScale.Craig Topper2019-01-051-2/+1
| | | | | | This was here because out and in instructions allow '(%dx)' even though its not a memory reference. To handle this we build a special operand for the DX register reference before we get to the call to CheckBaseRegAndIndexRegAndScale. So we no longer need this special case. llvm-svn: 350483
* Fix MSVC Visualization for TemplateTypeParmType and TemplateTypeParmDeclMike Spertus2019-01-051-7/+10
| | | | llvm-svn: 350482
* [X86] Use two pmovmskbs in combineBitcastvxi1 for (i64 (bitcast (v64i1 ↵Craig Topper2019-01-053-170/+59
| | | | | | (truncate (v64i8)))) on KNL. llvm-svn: 350481
* [X86] Allow combinevxi1Bitcast to use pmovmskb on avx512 targets if the ↵Craig Topper2019-01-059-200/+61
| | | | | | | | input is a truncate from v16i8/v32i8. This is especially helpful on targets without avx512bw since we don't have a good way to convert from v16i8/v32i8 to v16i1/v32i1 for the truncate anyway. If we're just going to convert it to a GPR we might as well use pmovmskb to accomplish both. llvm-svn: 350480
* Fix symbols.enable-external-lookup description wordingJan Kratochvil2019-01-051-4/+4
| | | | | | | | | D55859 changed "external tools or libraries" to "external sources" according to Pavel Labath. Now it is changed sort of back to "external tools and repositories" according to Adrian Prantl. https://reviews.llvm.org/D55859#1345881 llvm-svn: 350479
* Fix flaky symlink access time test.Eric Fiselier2019-01-051-5/+7
| | | | | | | | | | | | | | | last_write_time(sym, new_time) changes the modification time of the file referenced by the symlink. But reading through the symlink may change the symlinks's access time. This meant the previous test that checked that the symlinks access time was unchanged was incorrect and made the test flaky. This patch removes this test (there really is no non-flaky way to test that the new access time coorisponds to the time at which the symlink was last dereferenced). This should unflake the test. llvm-svn: 350478
* Revert "D56064: More tolerance for flaky tests in libc++ on NetBSD"Kamil Rytarowski2019-01-051-7/+0
| | | | | | Requested by EricWF. llvm-svn: 350477
* CodeGen: fix autolink emission on ELFSaleem Abdulrasool2019-01-052-7/+17
| | | | | | | | | The autolinking extension for ELF uses a slightly different format for encoding the autolink information compared to COFF and MachO. Account for this in the CGM to ensure that we do not assert when emitting assembly or an object file. llvm-svn: 350476
* Added single use check to ShrinkDemandedConstantStanislav Mekhanoshin2019-01-052-0/+23
| | | | | | | | | Fixes cvt_f32_ubyte combine. performCvtF32UByteNCombine() could shrink source node to demanded bits only even if there are other uses. Differential Revision: https://reviews.llvm.org/D56289 llvm-svn: 350475
* [X86] Regenerate test to merge 32-bit and 64-bit check lines. NFCCraig Topper2019-01-051-17/+5
| | | | llvm-svn: 350474
* [X86] Allow LowerTRUNCATE to use PACKUS/PACKSS for v16i16->v16i8 truncate ↵Craig Topper2019-01-053-10/+6
| | | | | | when -mprefer-vector-width-256 is in effect and BWI is not available. llvm-svn: 350473
* CodeGen: switch iteration to range based for loop (NFC)Saleem Abdulrasool2019-01-051-6/+4
| | | | | | | Change a loop to range based instead while working on cleaning up some modules autolinking issues on Linux. NFC. llvm-svn: 350472
* [InstCombine] Improve cttz/ctlz + icmp tests; NFCNikita Popov2019-01-051-83/+134
| | | | | | | | Change part of the tests to use vectors (I'm using scalar for ugt and vector for ult), add multiuse variations, rename %lz to %tz for the cttz tests. llvm-svn: 350471
* Improve MSVC type visualizationsMike Spertus2019-01-051-7/+47
| | | | | | | | Display TypeBits in a single line. Fix bit rot in template visualizations Rudimentary support for deduced types llvm-svn: 350470
* Enhance MSVC visualization of PointerUnionsMike Spertus2019-01-051-5/+27
| | | | | | | | Add a "deref" view that displays the pointed to objects since other visualizers often need to display data reference by internal PointerUnions llvm-svn: 350469
* [InstCombine] Add cttz/ctlz + icmp ugt/ult tests; NFCNikita Popov2019-01-051-0/+174
| | | | llvm-svn: 350468
* [python] Make the collections import future-proofSerge Guelton2019-01-051-2/+9
| | | | | | | | | | | | | | | On Python 3.7 the old code raises a warning: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class ArgumentsIterator(collections.Sequence): On Python 3.8 it wouldn't work anymore. Commited on behalf of Jakub Stasiak. Differential Revision: https://reviews.llvm.org/D56341 llvm-svn: 350467
* [Documentation] fix order of checks in checks/list.rstJonas Toth2019-01-051-3/+3
| | | | llvm-svn: 350466
* [docs] Add a known limitation to the comment about lld supporting GCC/MinGW ↵Martin Storsjo2019-01-051-1/+4
| | | | | | | | object files. NFC. Differential Revision: https://reviews.llvm.org/D56335 llvm-svn: 350465
* [MinGW] Expand comment for MinGW driver. NFC.Martin Storsjo2019-01-051-3/+21
| | | | | | | | Originally authored by Rui Ueyama. Differential Revision: https://reviews.llvm.org/D53031 llvm-svn: 350464
* [InstCombine] Relax cttz/ctlz with select on zeroNikita Popov2019-01-052-12/+19
| | | | | | | | | | | | | | The cttz/ctlz intrinsics have a parameter specifying whether the result is undefined for zero. cttz(x, false) can be relaxed to cttz(x, true) if x is known non-zero, and in fact such an optimization is already performed. However, this currently doesn't work if x is non-zero as a result of a select rather than an explicit branch. This patch adds handling for this case, thus allowing x != 0 ? cttz(x, false) : y to simplify to x != 0 ? cttz(x, true) : y. Differential Revision: https://reviews.llvm.org/D55786 llvm-svn: 350463
* [InstCombine] Add vector tests for select + ctlz/cttz; NFCNikita Popov2019-01-051-0/+50
| | | | llvm-svn: 350462
* [CMake][Fuchsia] Enable experimental new pass manager by defaultPetr Hosek2019-01-051-0/+1
| | | | | | | | This change enableds experimental new pass manager. Differential Revision: https://reviews.llvm.org/D56350 llvm-svn: 350461
* [CMake][Fuchsia] Enable x86 relaxation by defaultPetr Hosek2019-01-051-0/+1
| | | | | | | | | | | This enables x86 relaxation by default. This depends on a linker new enough to support the new reloc types but since we default to lld we don't worry about host system linkers that might be too old to support the new reloc types. Differential Revision: https://reviews.llvm.org/D56349 llvm-svn: 350460
* [CMake][Fuchsia] Enable --build-id linker flag by defaultPetr Hosek2019-01-051-0/+2
| | | | | | | | This enables passing --build-id to linker by default. Differential Revision: https://reviews.llvm.org/D56348 llvm-svn: 350459
* [gn build] Merge r350423Nico Weber2019-01-051-0/+1
| | | | llvm-svn: 350458
* [gn build] Add build files for unittests under llvm/unittests/ExecutionEngineNico Weber2019-01-054-5/+81
| | | | | | Differential Revision: https://reviews.llvm.org/D56328 llvm-svn: 350457
* [Inliner] Optimize shouldBeDeferredEaswaran Raman2019-01-051-5/+16
| | | | | | | | | | This has some minor optimizations to shouldBeDeferred. This is not strictly NFC because the early exit inside the loop assumes TotalSecondaryCost is monotonically non-decreasing, which is not true if the threshold used by CostAnalyzer is negative. AFAICT the thresholds do not go below 0 for the default values of the various options we use. llvm-svn: 350456
* [X86] Require second operand of X86vshiftuniform to be an integer. NFCCraig Topper2019-01-051-1/+1
| | | | | | We don't need to require the first operand to be an integer because we already said it was the same type as the result which we also constrained to an integer. llvm-svn: 350455
* [gn build] Add build files for unittests that load shared librariesNico Weber2019-01-053-6/+104
| | | | | | | | | | | | | | | | | | | | | | | | This is slightly ugly for three reasons: - The shlib needs to go next to the binary to be found on all platforms, so the build files refer to target_out_dir - The explicit -fPIC flag needed on the shared lib side, and the -rdynamic flag needed on the host side, on Linux - Plugins that refer to LLVM code and assume that the host will resolve them don't work on Windows -- PluginsTests won't test anything on Windows (but DynamicLibraryTests will, since the dll here doesn't call LLVM code) If we get lots more of these plugin / plugin host targets it might make sense to add a template for them. But for now, these are the last ones we need. (We're at 6 plugin hosts, 2 of them tests, and at 6 shared libraries, 2 of them tests as well. clang is a plugin host by default in the CMake build but not (yet?) in the GN build.) Differential Revision: https://reviews.llvm.org/D56330 llvm-svn: 350454
* Let new test from r350340 still pass even after r350451.Nico Weber2019-01-051-4/+4
| | | | llvm-svn: 350453
* [LLD][COFF] PDB: Parallel sort publicsAlexandre Ganea2019-01-051-4/+5
| | | | | | | | | | | | | | | | Saves up to 1.3 sec on large PDBs. Figures below are for the "Globals Stream Layout" pass: Before This patch Large EXE (PDB is ~2 GB) 3330 ms 2022 ms Large EXE (PDB is ~2 GB) 2680 ms 1608 ms Large DLL (PDB is ~1 GB) 1455 ms 938 ms Large DLL (PDB is ~800 MB) 1215 ms 800 ms Small DLL (PDB is ~200 MB) 224 ms 146 ms Differential Revision: https://reviews.llvm.org/D56334 llvm-svn: 350452
OpenPOWER on IntegriCloud