summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [OPENMP] Add support for cancel constructs in `target teams distributeAlexey Bataev2017-11-227-10/+38
| | | | | | | | | parallel for`. Add support for cancel/cancellation point directives inside `target teams distribute parallel for` directives. llvm-svn: 318881
* MachONormalizedFile.h: Remove unimplemented functionDavid Blaikie2017-11-221-9/+0
| | | | | | | dump had no definition, so op<< was never usable anyway - remove the definition of the latter and the declaration of the former. llvm-svn: 318880
* wasm/OutputSegment.h: Include missing headerDavid Blaikie2017-11-221-0/+1
| | | | llvm-svn: 318879
* IR printing improvement for loop passesFedor Sergeev2017-11-222-0/+86
| | | | | | | | | | | | | | | | | | | Summary: Loop-pass printing is somewhat deficient since it does not provide the context around the loop (e.g. preheader). This context information becomes pretty essential when analyzing transformations that move stuff out of the loop. Extending printLoop to cover preheader and exit blocks (if any). Reviewers: sanjoy, silvas, weimingz Reviewed By: sanjoy Subscribers: apilipenko, skatkov, llvm-commits Differential Revision: https://reviews.llvm.org/D40246 llvm-svn: 318878
* [Hexagon] Implement buildVector32 and buildVector64 as utility functionsKrzysztof Parzyszek2017-11-225-135/+158
| | | | | | | | | Change LowerBUILD_VECTOR to use those functions. This commit will tempora- rily affect constant vector generation (it will generate constant-extended values instead of non-extended combines), but the code for the general case should be better. The constant selection part will be fixed later. llvm-svn: 318877
* [Hexagon] Add patterns to select A2_combine_ll and its variantsKrzysztof Parzyszek2017-11-223-1/+54
| | | | llvm-svn: 318876
* [Hexagon] Remove trailing spaces, NFCKrzysztof Parzyszek2017-11-2213-16/+16
| | | | llvm-svn: 318875
* [demangler] Support for abi_tag attributeErik Pilkington2017-11-222-16/+82
| | | | | | Differential revision: https://reviews.llvm.org/D40279 llvm-svn: 318874
* Add a missing include found by modules bot.Paul Robinson2017-11-221-0/+1
| | | | llvm-svn: 318873
* [OPENMP] Add support for cancel constructs in [teams] distributeAlexey Bataev2017-11-2210-18/+80
| | | | | | | | | parallel for directives. Added codegen/sema support for cancel constructs in [teams] distribute parallel for directives. llvm-svn: 318872
* [X86] Support v32i16/v64i8 CTLZ using lookup table.Craig Topper2017-11-222-78/+66
| | | | | | Had to tweak the setcc's used by the code to use a vXi1 result type with a sign extend back to vector size. llvm-svn: 318871
* [X86] Move the BITALG setOperationAction code into the hasBWI section to ↵Craig Topper2017-11-221-5/+6
| | | | | | match what is done for VPOPCNTDQ in the AVX512F block. NFC llvm-svn: 318870
* [X86] Sink the MGATHER setOperationActions for AVX2 into the AVX block where ↵Craig Topper2017-11-221-7/+6
| | | | | | most of the rest of the AVX2 legalization lives. llvm-svn: 318869
* Remove unnecessary code.Rafael Espindola2017-11-221-3/+0
| | | | | | There is already an RAII in place to discard the temporary. llvm-svn: 318868
* Allow TempFile::discard to be called twice.Rafael Espindola2017-11-222-0/+27
| | | | | | | | | | We already allowed keep+discard. It is important to be able to discard a temporary if a rename fail. It is also convenient as it allows the use of RAII for discarding. Allow discarding twice for similar reasons. llvm-svn: 318867
* Revert "[CodeGen] Fix vtable not receiving hidden visibility when using ↵Petr Hosek2017-11-227-42/+19
| | | | | | | | push(visibility)" This reverts commit r318853: tests are failing on Windows bots llvm-svn: 318866
* [libcxx] Implement std::to_address for C++20Eric Fiselier2017-11-222-1/+160
| | | | | | | | | | | | | | Summary: Now implements P0653R2 - Utility to convert to raw pointer. Reviewers: mclow.lists, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D35470 llvm-svn: 318865
* Implement p0137r1 - std::launder. Reviewed as https://reviews.llvm.org/D40144Marshall Clow2017-11-226-0/+130
| | | | llvm-svn: 318864
* [libcxx][fixup] Mark std::basic_istream::getline tests as failing for ↵Volodymyr Sapsai2017-11-222-0/+16
| | | | | | | | | previous libcxx versions. r318862 added a fix for 0-termination input array in case of an error. Previous libcxx versions don't have the fix and corresponding tests should be failing. llvm-svn: 318863
* [libcxx] Make std::basic_istream::getline 0-terminate input array in case of ↵Volodymyr Sapsai2017-11-223-2/+112
| | | | | | | | | | | | | error. It covers the cases when the sentry object returns false and when an exception was thrown. Corresponding standard paragraph is C++14 [istream.unformatted]p21: In any case, if n is greater than zero, it then stores a null character (using charT()) into the next successive location of the array. Patch by Reimar Döffinger. llvm-svn: 318862
* Remove unnecessary include.Paul Robinson2017-11-221-1/+0
| | | | llvm-svn: 318861
* [OPENMP] Added missed checks for for [simd] based directives.Alexey Bataev2017-11-227-2/+405
| | | | | | | Added missed checks/analysis for safelen/simdlen clauses + linear clause in for [simd] based directives. llvm-svn: 318860
* [scudo] Overhaul hardware CRC32 feature detectionKostya Kortchinsky2017-11-224-116/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch aims at condensing the hardware CRC32 feature detection and making it slightly more effective on Android. The following changes are included: - remove the `CPUFeature` enum, and get rid of one level of nesting of functions: we only used CRC32, so we just implement and use `hasHardwareCRC32`; - allow for a weak `getauxval`: the Android toolchain is compiled at API level 14 for Android ARM, meaning no `getauxval` at compile time, yet we will run on API level 27+ devices. The `/proc/self/auxv` fallback can work but is worthless for a process like `init` where the proc filesystem doesn't exist yet. If a weak `getauxval` doesn't exist, then fallback. - couple of extra corrections. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: kubamracek, aemerson, srhines, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D40322 llvm-svn: 318859
* CachePruning: Allow limiting the number of files in the cache directory.Peter Collingbourne2017-11-224-20/+51
| | | | | | | | | | | The default limit is 1000000 but it can be configured with a cache policy. The motivation is that some filesystems (notably ext4) have a limit on the number of files that can be contained in a directory (separate from the inode limit). Differential Revision: https://reviews.llvm.org/D40327 llvm-svn: 318857
* [DwarfDump] -debug-line=offset applies to .dwo too.Paul Robinson2017-11-225-17/+100
| | | | llvm-svn: 318856
* [X86] Spell penryn correctly in some comments. NFCCraig Topper2017-11-221-3/+3
| | | | llvm-svn: 318855
* [CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)Petr Hosek2017-11-227-19/+42
| | | | | | | | | | This change should resolve https://bugs.llvm.org/show_bug.cgi?id=35022 Patch by Jake Ehrlich Differential Revision: https://reviews.llvm.org/D39627 llvm-svn: 318853
* Simplify as-needed handling.Rafael Espindola2017-11-225-8/+6
| | | | | | This is a reduction of a patch by Rui Ueyama. llvm-svn: 318852
* [OPENMP] General improvement of code, NFC.Alexey Bataev2017-11-222-14/+27
| | | | llvm-svn: 318849
* Fix for OMP doacross implementation on PowerJonas Hahnfeld2017-11-222-2/+9
| | | | | | | | | | Power has a weak consistency model so we need memory barriers to make writes (both from runtime and from user code) available for all threads. Differential Revision: https://reviews.llvm.org/D40175 llvm-svn: 318848
* [CMake] Re-enable libomptarget and restrict tests to Clang 6.0.0Jonas Hahnfeld2017-11-222-4/+24
| | | | | | | | | | We have just fixed the codegen of omp_is_initial_device() to reliably work when offloading to the same device, see commit r316001. This fixes the failing tests that were the reason why we disabled the library for 5.0. Differential Revision: https://reviews.llvm.org/D39052 llvm-svn: 318847
* Remove extra minuses from command optionTatyana Krasnukha2017-11-221-1/+1
| | | | | | | | | | | | Reviewers: labath, abidh, clayborg, ki.stfu Reviewed By: labath, abidh, clayborg, ki.stfu Subscribers: clayborg, ki.stfu, lldb-commits Differential Revision: https://reviews.llvm.org/D40022 llvm-svn: 318846
* [AMDGPU] Fix SITargetLowering::LowerCall for pointer info of byval argumentYaxun Liu2017-11-222-28/+30
| | | | | | | | | | | SITargetLowering::LowerCall uses dummy pointer info for byval argument, which causes flat load instead of buffer load. This patch fixes that. Differential Revision: https://reviews.llvm.org/D40040 llvm-svn: 318844
* [OPENMP] Do not mark captured variables as artificial in debug info.Alexey Bataev2017-11-223-6/+42
| | | | | | | Captured variables should not be marked as artificial parameters in outlined functions in debug info. llvm-svn: 318843
* [DebugInfo] Dump a .debug_line section, including line-number program,Paul Robinson2017-11-225-7/+143
| | | | | | | | without any compile units. Differential Revision: https://reviews.llvm.org/D40114 llvm-svn: 318842
* [AMDGPU][mc][tests] Updated generated lit tests for GFX8/9Dmitry Preobrazhensky2017-11-224-0/+9714
| | | | | | | | Summary: Added tests to better cover features introduced by commit rL318675. See http://llvm.org/viewvc/llvm-project?view=revision&revision=318675 llvm-svn: 318841
* [FindAllSymbols] Cache regexes, creating them is expensiveBenjamin Kramer2017-11-223-15/+27
| | | | | | | | This is a bit annoying because LLVM regexes are always mutable to store errors. Assert that there are never errors and fix broken hardcoded regexes. llvm-svn: 318840
* [DWARFv5] Support DW_FORM_strp in the .debug_line.dwo header.Paul Robinson2017-11-223-33/+177
| | | | | | | | | | | As a side effect, the .debug_line section will be dumped in physical order, rather than in the order that compile units refer to their associated portions of the .debug_line section. These are probably always the same order anyway, and no tests noticed the difference. Differential Revision: https://reviews.llvm.org/D39854 llvm-svn: 318839
* [DWARF] Fix handling of extended line-number opcodesPaul Robinson2017-11-223-7/+178
| | | | | | Differential Revision: https://reviews.llvm.org/D40200 llvm-svn: 318838
* [OpenMP] Adjust arguments of nvptx runtime functionsJonas Hahnfeld2017-11-225-25/+33
| | | | | | | | | | | | | In the future the compiler will analyze whether the OpenMP runtime needs to be (fully) initialized and avoid that overhead if possible. The functions already take an argument to transfer that information to the runtime, so pass in the default value 1. (This is needed for binary compatibility with libomptarget-nvptx currently being upstreamed.) Differential Revision: https://reviews.llvm.org/D40354 llvm-svn: 318836
* [OPENMP] Codegen for `target teams` directive.Alexey Bataev2017-11-224-11/+57
| | | | | | Added codegen of the clauses for `target teams` directive. llvm-svn: 318834
* Remove unused variable.Tatyana Krasnukha2017-11-221-1/+1
| | | | llvm-svn: 318833
* Test commit. Fix typo in comment.Tatyana Krasnukha2017-11-221-1/+1
| | | | llvm-svn: 318832
* [MIPS] Write PLT0 entry in case of linking N64 ABI codeSimon Atanasyan2017-11-222-2/+46
| | | | llvm-svn: 318831
* Add another test_macros.h include I missed to tuple.by.type.pass.cppBilly Robert O'Neal III2017-11-221-0/+1
| | | | llvm-svn: 318830
* AMDGPU: Consider memory dependencies with moved instructions in ↵Nicolai Haehnle2017-11-222-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SILoadStoreOptimizer Summary: This bug seems to have gone unnoticed because critical cases with LDS instructions are eliminated by the peephole optimizer. However, equivalent situations arise with buffer loads and stores as well, so this fixes regressions since r317751 ("AMDGPU: Merge S_BUFFER_LOAD_DWORD_IMM into x2, x4"). Fixes at least: KHR-GL45.shader_storage_buffer_object.basic-operations-case1-cs KHR-GL45.cull_distance.functional piglit tes-input-gl_ClipDistance.shader_test ... and probably more Change-Id: I0e371536288eb8e6afeaa241a185266fd45d129d Reviewers: arsenm, mareko, rampitec Subscribers: kzhuravl, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D40303 llvm-svn: 318829
* [ELF] Fix DT_MIPS_LOCAL_GOTNO value for thunks and linker scriptsJames Henderson2017-11-222-2/+56
| | | | | | | | | | | | | | | | | | The MIPS GOT section has a number of local entries based on the number of pages needed for output sections referenced by GOT page relocations. The number is recorded in the DT_MIPS_LOCAL_GOTNO dynamic section tag. However, the dynamic tag is added before assignAddresses has been called, meaning that any section size used to calculate the value will not include size modifications caused by, for example, linker scripts and thunks. This change moves the calculation of DT_MIPS_LOCAL_GOTNO until writeTo, by which time the output section sizes have been finalized. Reviewers: ruiu, rafael Differential Revision: https://reviews.llvm.org/D39493 llvm-svn: 318828
* [Docs] Update list of languages clang-format can formatMalcolm Parsons2017-11-221-1/+1
| | | | llvm-svn: 318827
* Return early. NFC.Rui Ueyama2017-11-221-6/+3
| | | | llvm-svn: 318826
* Add more blank lines to separate code chunks.Rui Ueyama2017-11-221-2/+9
| | | | llvm-svn: 318825
OpenPOWER on IntegriCloud