summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Properly categorize llvm-objdump optionsSerge Guelton2019-05-222-71/+127
| | | | | | | | Filters out noise, and distinguish Mach-O related options from others. Differential Revision: https://reviews.llvm.org/D62195 llvm-svn: 361351
* Simplify the logic to instantiate Symbols. Should be NFC.Rui Ueyama2019-05-221-5/+3
| | | | llvm-svn: 361350
* [NFC] Remove a blank line (test commit)Seiya Nuta2019-05-221-1/+0
| | | | llvm-svn: 361349
* Speculative fix for std stream destruction order on Windows.Eric Fiselier2019-05-221-0/+21
| | | | | | | | | | | | | | | The MSVC CRT uses TLS storage to implement per-thread locales. This storage gets freed during program termination, and if we attempt to do any io operations (like flushing the std streams) after this occurs the program may abort. This patch is a speculative fix for that issue. The fix tries forcing the initialization of the locale TLS before initializing the std streams. This should mean that the TLS is freed after we destroy the streams. llvm-svn: 361348
* [PowerPC] use meaningful name for displacement form aligned with x-form - NFCChen Zheng2019-05-224-81/+81
| | | | llvm-svn: 361347
* [PowerPC] [ISEL] select x-form instruction for unaligned offsetChen Zheng2019-05-228-100/+151
| | | | | | Differential Revision: https://reviews.llvm.org/D62173 llvm-svn: 361346
* [docs] Fix troff macro (.F1 -> .Fl) in ld.lld.1Fangrui Song2019-05-221-2/+2
| | | | llvm-svn: 361345
* [clang-tidy] remove default header-filter for run-clang-tidyDon Hinton2019-05-221-3/+0
| | | | | | | | | | | | | | | | | | | | | | Summary: run-clang-tidy.py was enforcing '-header-filter' parameter with an unfortunate default value when none was given. Thus, leading to overwritten clang-tidy configuration (e.g. from .clang-tidy). This change removes the default value for '-header-filter' resulting in the default behaviour of clang-tidy itself. Fixes PR#41426 Reviewed By: hintonda Patch by Torbjörn Klatt! Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D61747 llvm-svn: 361344
* [Docs] Increase Doxygen cache sizeDon Hinton2019-05-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: When building Doxygen docs for llvm and clang, it helpfully prints a warning at the end noting that the `LOOKUP_CACHE_SIZE` value was too small to keep all symbols in memory. By increasing to the size it recommends, Doxygen builds have greatly improved performance. On my machine, time to run `doxygen-llvm` changes from 34 minutes to 22 minutes, which is a decent amount of time saved by changing a single number. Reviewed By: hintonda Patch by J. Ryan Stinnett! Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D62138 llvm-svn: 361343
* [X86] [CET] Deal with return-twice function such as vfork, setjmp whenPengfei Wang2019-05-222-12/+106
| | | | | | | | | | | | | | CET-IBT enabled Return-twice functions will indirectly jump after the caller's position. So when CET-IBT is enable, we should make sure these is endbr* instructions follow these Return-twice function caller. Like GCC does. Patch by Xiang Zhang (xiangzhangllvm) Differential Revision: https://reviews.llvm.org/D61881 llvm-svn: 361342
* [Docs] fix formatting for bullet list; NFCSanjay Patel2019-05-221-11/+11
| | | | llvm-svn: 361341
* [Analysis] Link library dependencies to Analysis pluginsPetr Hosek2019-05-224-6/+13
| | | | | | | | | These are needed to avoid undefined symbols which aren't satisfied by Clang itself. Differential Revision: https://reviews.llvm.org/D62174 llvm-svn: 361340
* [libFuzzer] Sleep after process exits in merge-sigusr.test.Matt Morehouse2019-05-221-0/+1
| | | | | | Ensure that log file has been fully updated before trying to read it. llvm-svn: 361339
* [InstCombine] fold shuffles of insert_subvectorsSanjay Patel2019-05-223-10/+83
| | | | | | | | | | | | | | | | | This should be a valid exception to the general rule of not creating new shuffle masks in IR... because we already do it. :) Also, DAG combining/legalization will undo this by widening the shuffle back out if needed. Explanation for how we already do this: SLP or vector source can create chains of insert/extract as shown in 1 of the examples from PR16739: https://godbolt.org/z/NlK7rA https://bugs.llvm.org/show_bug.cgi?id=16739 And we expect instcombine or DAGCombine to clean that up by creating relatively simple shuffles. Differential Revision: https://reviews.llvm.org/D62024 llvm-svn: 361338
* [Symbol] Remove dead codeAlex Langford2019-05-221-55/+0
| | | | llvm-svn: 361337
* [libFuzzer] Kill by session ID in merge-sigusr.test.Matt Morehouse2019-05-211-3/+3
| | | | | | Ensures that parent and all child processes are killed at once. llvm-svn: 361336
* [PragmaHandler] Expose `#pragma` locationJoel E. Denny2019-05-218-111/+112
| | | | | | | | | | | | | | | | | | | | | | | Currently, a pragma AST node's recorded location starts at the namespace token (such as `omp` in the case of OpenMP) after the `#pragma` token, and the `#pragma` location isn't available. However, the `#pragma` location can be useful when, for example, rewriting a directive using Clang's Rewrite facility. This patch makes `#pragma` locations available in any `PragmaHandler` but it doesn't yet make use of them. This patch also uses the new `struct PragmaIntroducer` to simplify `Preprocessor::HandlePragmaDirective`. It doesn't do the same for `PPCallbacks::PragmaDirective` because that changes the API documented in `clang-tools-extra/docs/pp-trace.rst`, and I'm not sure about backward compatibility guarantees there. Reviewed By: ABataev, lebedev.ri, aaron.ballman Differential Revision: https://reviews.llvm.org/D61643 llvm-svn: 361335
* Fix target property to make BUILD_SHARED_LIBS workChris Bieneman2019-05-211-1/+1
| | | | | | | | Public and Private link libraries get merged in the LINK_LIBRARIES property instead of being kept separate. With any luck this will get `BUILD_SHARED_LIBS` working again on Linux. llvm-svn: 361334
* AMDGPU: Assume calls read execMatt Arsenault2019-05-212-0/+125
| | | | llvm-svn: 361333
* AMDGPU: Add some tests for inlineasm behaviorMatt Arsenault2019-05-211-0/+43
| | | | llvm-svn: 361332
* AMDGPU: Assume call pseudos are convergentMatt Arsenault2019-05-212-0/+111
| | | | | | | There should probably be nonconvergent versions, but my guess is it doesn't matter in practice. llvm-svn: 361331
* AMDGPU: Fix not marking new gfx10 SGPRs as CSRsMatt Arsenault2019-05-212-3/+18
| | | | llvm-svn: 361330
* [c++20] P1330R0: permit simple-assignments that change the active memberRichard Smith2019-05-218-11/+313
| | | | | | of a union within constant expression evaluation. llvm-svn: 361329
* Refactor: split Uninitialized state on APValue into an "Absent" stateRichard Smith2019-05-219-61/+83
| | | | | | | representing no such object, and an "Indeterminate" state representing an uninitialized object. The latter is not yet used, but soon will be. llvm-svn: 361328
* [WebAssembly] Add the signature for the new llround builtin functionDan Gohman2019-05-213-0/+70
| | | | | | | | | | | | | r360889 added new llround builtin functions. This patch adds their signatures for the WebAssembly backend. It also adds wasm32 support to utils/update_llc_test_checks.py, since that's the script other targets are using for their testcases for this feature. Differential Revision: https://reviews.llvm.org/D62207 llvm-svn: 361327
* [libFuzzer] Ignore exit status of wait in merge-sigusr.test.Matt Morehouse2019-05-211-1/+1
| | | | | | | If process $PID has already exited, wait will give a non-zero exit status. llvm-svn: 361326
* Rename identifiers to spell out analyze; NFC.Aaron Ballman2019-05-213-26/+26
| | | | llvm-svn: 361325
* [ORC] Guarantee unique JITDylib names in lli, add usage notes to createJITDylib.Lang Hames2019-05-213-2/+23
| | | | | | | | | | | JITDylibs should have unique names. This patch adds code to lli to respect this invariant (by refering to the exist JITDylib if a -jd <name> option is specified more than once). It also adds usage notes to the doxygen comment for createJITDylib method in ExecutionSession and LLJIT. http://llvm.org/PR41937 llvm-svn: 361322
* [FileSystem] Fix regression in FileSystem::ResolveJonas Devlieghere2019-05-211-8/+12
| | | | | | | | | | | | | | | | When I moved the resolve code from FileSpec to the FileSystem class, I introduced a regression. If you compare the two implementations, you'll notice that if the path doesn't exist, we should only reverse the effects of makeAbsolute, not the effects of tilde expansion. As a result, the logic to create the ~/.lldb directory broke, because we would resolve the path before creating it. Because the directory didn't exist yet, we'd call create_directories on the unresolved path, which failed. Differential revision: https://reviews.llvm.org/D62219 llvm-svn: 361321
* [NFC][AMDGPU] Autogenerate llvm.amdgcn.s.barrier.ll testRoman Lebedev2019-05-211-10/+93
| | | | llvm-svn: 361320
* [NFC][X86] Autogenerate ragreedy-hoist-spill.ll testRoman Lebedev2019-05-211-7/+302
| | | | llvm-svn: 361319
* [NFC][Thumb2] Autogenerate thumb2-ldr_pre.ll testRoman Lebedev2019-05-211-5/+17
| | | | llvm-svn: 361318
* [InstCombine] add more tests for shuffle folding; NFCSanjay Patel2019-05-211-0/+26
| | | | | | | | | As discussed in D62024, we want to limit any potential IR transforms of shuffles to cases where we know the SDAG conversion would result in equivalent patterns for these IR variants. llvm-svn: 361317
* [CommandInterpreter] Fix SkipAppInitFiles setterJonas Devlieghere2019-05-211-1/+1
| | | | | | The SkipAppInitFiles setter was ignoring its import argument. llvm-svn: 361316
* [X86] Add large integer comparison tests for PR41971; NFCNikita Popov2019-05-211-0/+870
| | | | | | | In these cases we would prefer a direct comparison over going through a vector type. llvm-svn: 361315
* [Driver] Verify GCCInstallation is validNick Desaulniers2019-05-212-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Values returned by GCCInstallation.getParentLibPath() and GCCInstallation.getTriple() are not valid unless GCCInstallation.isValid() returns true. This has previously been ignored, and the former two values were used without checking whether GCCInstallation is valid. This led to the bad path "/../bin" being added to the list of program paths. author: danielmentz "Daniel Mentz <danielmentz@google.com>" Reviewers: #clang, tstellar, srhines Reviewed By: srhines Subscribers: danielmentz, ormris, nickdesaulniers, srhines, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57930 llvm-svn: 361314
* [libFuzzer] Reduce flakiness of merge-sigusr.test.Matt Morehouse2019-05-211-3/+10
| | | | | | Double the number of files to merge, and use wait instead of sleep. llvm-svn: 361313
* Let -static-pie win if it is specified along with -pie or -static.Siva Chandra2019-05-213-7/+62
| | | | | | | | Also, disallow specifying -no-pie/-nopie along with -static-pie. Differential Revision: https://reviews.llvm.org/D59841 llvm-svn: 361312
* [NFC][InstCombine] Add unary fneg tests to operand-complexity.ll.Cameron McInally2019-05-211-0/+30
| | | | llvm-svn: 361311
* [Test] Fix conflicting test names.Jonas Devlieghere2019-05-211-1/+1
| | | | | | | Two tests having the same name creates a race condition when moving the trace files. llvm-svn: 361310
* [OpenMP] Add implementation to two OMPT API routinesJonathan Peyton2019-05-215-15/+182
| | | | | | | | | | | This change adds implementation to ompt_finalize_tool() and ompt_get_task_memory(). Patch by Hansang Bae Differential Revision: https://reviews.llvm.org/D61657 llvm-svn: 361309
* [NFC][InstCombine] Add unary FNeg tests to X86/x86-avx512.llCameron McInally2019-05-211-0/+82
| | | | llvm-svn: 361308
* build: enable CMake policy 0077Saleem Abdulrasool2019-05-211-0/+4
| | | | | | | | | | Enable CMake policy 77. This alters the behavior of option. The old behavior would remove the value of the option from the cache and create a new one. The new behavior does not create the variable if it is defined already. This ensures that subsequent reconfigures will behave identically. This seems better than the setting of OLD - the desire is to ensure that it is set to OLD or NEW. llvm-svn: 361307
* Move csr-save-restore-order.ll to the right placeYi-Hong Lyu2019-05-211-0/+0
| | | | llvm-svn: 361306
* [asan] clang-format parent patchVitaly Buka2019-05-211-3/+3
| | | | llvm-svn: 361305
* [asan] Replace assignments with internal_memcpy ErrorDescriptionVitaly Buka2019-05-212-3/+5
| | | | | | For consistency with nearby code and to avoid interceptors during reports. llvm-svn: 361304
* [NFC][X86][AArch64] Add tests for sinking of add/sub by constant through add/subRoman Lebedev2019-05-212-0/+435
| | | | | | | | | | Looks we can transform all 8 variants of the pattern: https://rise4fun.com/Alive/auH This comes up as an issue on the path towards https://bugs.llvm.org/show_bug.cgi?id=41952 llvm-svn: 361303
* Remove unicode character from testLeonard Chan2019-05-211-1/+2
| | | | llvm-svn: 361302
* Fix test failures after r361278 on non-Darwin platforms and whenRichard Smith2019-05-212-4/+6
| | | | | | CLANG_DEFAULT_STDLIB is defined to libstdc++. llvm-svn: 361301
* [c++20] P0780R2: Support pack-expansion of init-captures.Richard Smith2019-05-2131-246/+544
| | | | | | | | | | | This permits an init-capture to introduce a new pack: template<typename ...T> auto x = [...a = T()] { /* a is a pack */ }; To support this, the mechanism for allowing ParmVarDecls to be packs has been extended to support arbitrary local VarDecls. llvm-svn: 361300
OpenPOWER on IntegriCloud