summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [PowerPC] - No SExt/ZExt needed for count trailing zerosNemanja Ivanovic2016-10-272-2/+58
| | | | | | | | | This patch corresponds to review: https://reviews.llvm.org/D25896 It just eliminates the redundant ZExt after a count trailing zeros instruction. llvm-svn: 285267
* [XRay] Check in Clang whether XRay supports the target when ↵Dean Michael Berris2016-10-274-1/+20
| | | | | | | | | | | | | | | -fxray-instrument is passed Summary: Added the code which explicitly emits an error in Clang in case `-fxray-instrument` is passed, but XRay is not supported for the selected target. Reviewers: rsmith, aaron.ballman, rnk, dberris Differential Revision: https://reviews.llvm.org/D24799 llvm-svn: 285266
* Atomics library: provide operations for __int128 when it is available.Richard Smith2016-10-271-2/+9
| | | | llvm-svn: 285265
* Remove check for -o option in offloading actions builder.Samuel Antao2016-10-272-18/+3
| | | | | | This check is also present when jobs are built, so the offloading builder check is not needed anymore. llvm-svn: 285264
* Fix bug when compiling CUDA code with -emit-llvm and -o. Samuel Antao2016-10-272-1/+8
| | | | | | | In this case the device code is not injected into an host action and therefore the user should get an error as -o can't be used when generating two outputs. llvm-svn: 285263
* [libFuzzer] speculatively trying to fix the Mac build; second attemptKostya Serebryany2016-10-272-14/+4
| | | | llvm-svn: 285262
* xray-extract.cc: Quick fix for mingw, to avoid errc::protocol_error.NAKAMURA Takumi2016-10-271-2/+2
| | | | | | errc::protocol_error is winsock-oriented and mingw doesn't include it. (MS does, though) llvm-svn: 285261
* [libFuzzer] revert 285259 -- hit commit too soonKostya Serebryany2016-10-271-4/+1
| | | | llvm-svn: 285260
* [libFuzzer] speculatively trying to fix the Mac buildKostya Serebryany2016-10-271-1/+4
| | | | llvm-svn: 285259
* Refactor call emission to package the function pointer together withJohn McCall2016-10-2626-355/+634
| | | | | | | | | | | abstract information about the callee. NFC. The goal here is to make it easier to recognize indirect calls and trigger additional logic in certain cases. That logic will come in a later patch; in the meantime, I felt that this was a significant improvement to the code. llvm-svn: 285258
* [IR] Retire unused getGEPReturnType overload. NFCI.Davide Italiano2016-10-261-5/+0
| | | | llvm-svn: 285257
* [APFloat] Fix APFloat::getExactInverse when the input is nullptr. This is a ↵Tim Shen2016-10-261-1/+1
| | | | | | | | | | | | regression introduced by r285105. Reviewers: kbarton, echristo, iteratee, eugenis Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D26017 llvm-svn: 285256
* [sanitizers] Set Darwin specific linker and compiler flags for all testsAnna Zaks2016-10-262-1/+10
| | | | | | | | | | | | | | | | Looks like we are missing these flags only in tsan and sanitizer-common. This results in linker warnings in some settings as it can cause the Unit tests to be built with a different SDK version than that was used to build the runtime. For example, we are not setting the minimal deployment target on the tests but are setting the minimal deployment target for the sanitizer library, which leads to the following warning on some bots: ld: warning: object file (sanitizer_posix_test.cc.i386.o) was built for newer OSX version (10.12) than being linked (10.11). Differential Revision: https://reviews.llvm.org/D25860 https://reviews.llvm.org/D25352 llvm-svn: 285255
* Unconditionally pass `-lto_library` to the linker on DarwinMehdi Amini2016-10-262-18/+18
| | | | | | | | | | | We're only doing it with -flto currently, however it never "hurt" to pass it, and users that are linking without -flto can get in trouble if one of the dependency (a static library for instance) contains bitcode. Differential Revision: https://reviews.llvm.org/D25932 llvm-svn: 285254
* [analyzer] Report CFNumberGetValue API misuseAnna Zaks2016-10-263-42/+63
| | | | | | | | | | | | This patch contains 2 improvements to the CFNumber checker: - Checking of CFNumberGetValue misuse. - Treating all CFNumber API misuse errors as non-fatal. (Previously we treated errors that could cause uninitialized memory as syncs and the truncation errors as non-fatal.) This implements a subset of functionality from https://reviews.llvm.org/D17954. Differential Revision: https://reviews.llvm.org/D25876 llvm-svn: 285253
* llvm-objdump: Make some error messages more consistentJustin Bogner2016-10-263-15/+15
| | | | | | | | | Most of the version of report_error were quoting the filename and printing a colon between the file name and the error message, but this one wasn't doing either of those. Fix the output to be more consistent. llvm-svn: 285252
* [CUDA] Move device placement new definitions into a wrapper header.Justin Lebar2016-10-263-18/+48
| | | | | | | Previously, these were always included -- after this change, you have to #include <new>, which is consistent with how things ought to work. llvm-svn: 285251
* [CUDA] Switch cuda_wrappers/complex to use a proper include guard instead of ↵Justin Lebar2016-10-261-1/+4
| | | | | | | | #pragma once. This is consistent with the rest of our internal headers. llvm-svn: 285250
* [utils] Add a '--unified-report' option to the code coverage prep scriptVedant Kumar2016-10-261-12/+29
| | | | | | | | | | | In --unified-report mode, a single coverage report is prepared for all specified binaries and written to *report_dir*. This mode is compatible with all existing script options, including the --restrict mode which is used to limit coverage reporting to certain files or directories. This should not break any existing users of the script. llvm-svn: 285249
* [utils] Use print_function in the code coverage prep script, NFC.Vedant Kumar2016-10-261-5/+7
| | | | llvm-svn: 285248
* [utils] Add an '--only-merge' option to the code coverage prep scriptVedant Kumar2016-10-261-3/+11
| | | | | | | | | | | In --only-merge mode, the script terminates after the profile merging step. This makes the script less stateful: it's more natural to split the merge out into a separate step instead of relying on the first invocation of the script to do it. This should not break any existing users of the script. llvm-svn: 285247
* [AArch64] Create feature set for Samsung Exynos-M2Evandro Menezes2016-10-261-13/+24
| | | | | | | | Since Exynos-M2 improved the FP square root unit a bit over the one in Exynos-M1, it does not benefit from using the Newton series for such operations. llvm-svn: 285246
* Fixing typos in __kmp_release_deps trace outputsJonathan Peyton2016-10-261-4/+4
| | | | | | | | Patch by Victor Campos Differential Revision: https://reviews.llvm.org/D25972 llvm-svn: 285244
* Use getpagesize() instead of PAGE_SIZE macro when KMP_OS_LINUX is trueJonathan Peyton2016-10-263-14/+20
| | | | | | | | Patch by Victor Campos Differential Revision: https://reviews.llvm.org/D26001 llvm-svn: 285243
* DebugInfo: fix incorrect alignment type (NFC)Victor Leschuk2016-10-266-25/+36
| | | | | | | | | Change type of some missed DebugInfo-related alignment variables, that are still uint64_t, to uint32_t. Original change introduced in r284482. llvm-svn: 285242
* Have on addRegular forward to another. NFC.Rafael Espindola2016-10-263-21/+21
| | | | | | Another step in making it easier to create symbols without an ELf_Sym. llvm-svn: 285241
* Remove a constructor to simplify.Rui Ueyama2016-10-261-7/+3
| | | | llvm-svn: 285240
* [RecursiveASTVisitor] Visit the implicit expression of a CXXDefaultArgExprMalcolm Parsons2016-10-262-1/+21
| | | | | | | | | | | | | | | | | Summary: The matcher varDecl(hasDescendant( callExpr(hasDeclaration(functionDecl(unless(isNoThrow())))))) didn't match calls from default arguments because the expression for a CXXDefaultArgExpr was not visited. Reviewers: klimek, jdennett, alexfh, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: https://reviews.llvm.org/D25992 llvm-svn: 285239
* Make the DefinedRegular constructors more regular. NFC.Rafael Espindola2016-10-261-18/+22
| | | | | | | All the global ones now just forward to the same constructor. This makes it easier to construct them without creating a Elf_Sym. llvm-svn: 285238
* [lit] Work around Windows MSys command line tokenization bugReid Kleckner2016-10-262-0/+63
| | | | | | | | | | | | | | Summary: This will allow us to revert LLD r284768, which added spaces to get MSys echo to print what we want. Reviewers: ruiu, inglorion, rafael Subscribers: modocache, llvm-commits Differential Revision: https://reviews.llvm.org/D26009 llvm-svn: 285237
* Fix build breakage.Rui Ueyama2016-10-261-3/+3
| | | | llvm-svn: 285236
* Add comments.Rui Ueyama2016-10-262-4/+6
| | | | llvm-svn: 285235
* Cleanup nonportable behavior in tests for std::anyCasey Carter2016-10-263-8/+4
| | | | | | | | | | | | | | | | | Fixes MS issues 63, 64, and 65. test/std/utilities/any/any.class/any.cons/move.pass.cpp: * "Moves are always destructive" is not a portable assumption; check with LIBCPP_ASSERT. test/std/utilities/any/any.class/any.cons/value.pass.cpp: * The standard does not forbid initializing std::any from any pointer-to-function type. Remove the non-conforming "DecayTag" test. test/std/utilities/any/any.class/any.modifiers/swap.pass.cpp: * Self-swap is not specified to perform no moves; check with LIBCPP_ASSERT. Differential Revision: https://reviews.llvm.org/D26007 llvm-svn: 285234
* [PPC] Remove testcase from incorrect directoryEhsan Amiri2016-10-261-71/+0
| | | | | | | During my last commit this testcase was put in an incorrect directory. Removing it. Will put it in the right directory when I can verify everything is correct. llvm-svn: 285233
* ARM: don't rely on push/pop reglists being in order when folding SP adjust.Tim Northover2016-10-262-8/+33
| | | | | | | | | | | | | | | | | | It would be a very nice invariant to rely on, but unfortunately it doesn't necessarily hold (and the causes of mis-sorted reglists appear to be quite varied) so to be robust the frame lowering code can't assume that the first register in the list is also the first one that actually gets pushed. Should fix an issue where we were turning something like: push {r8, r4, r7, lr} sub sp, #24 into nonsense like: push {r2, r3, r4, r5, r6, r7, r8, r4, r7, lr} llvm-svn: 285232
* Do not assume that FP vector operands are never legalized by expandingNemanja Ivanovic2016-10-262-1/+76
| | | | | | | | | | | This patch ensures that if a floating point vector operand is legalized by expanding, it is legalized through the stack rather than by calling DAGTypeLegalizer::IntegerToVector which will cause a failure since the operand is a non-integer type. This fixes PR 30715. llvm-svn: 285231
* [PowerPC] Implement vector_insert_exp builtins - clang portionNemanja Ivanovic2016-10-263-0/+51
| | | | | | | This patch corresponds to review https://reviews.llvm.org/D25956. Committing on behalf of Zaara Syeda. llvm-svn: 285229
* Simplify `x >=u x >> y` and `x >=u x udiv y`Sanjoy Das2016-10-262-0/+43
| | | | | | | | | | | | | | | | | | | Summary: Extends InstSimplify to handle both `x >=u x >> y` and `x >=u x udiv y`. This is a folloup of rL258422 and https://github.com/rust-lang/rust/pull/30917 where llvm failed to optimize away the bounds checking in a binary search. Patch by Arthur Silva! Reviewers: sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25941 llvm-svn: 285228
* Revert "[AliasSetTracker] Make AST smarter about intrinsics that don't ↵Chad Rosier2016-10-262-69/+0
| | | | | | | | | | | actually affect memory." This reverts commit r285191. LICM appears to rely on the Alias Set Tracker hitting lifetime markers to prevent code from being moved outside of the original scope. llvm-svn: 285227
* Fix an issue where frame variable -s <varname> would not show the scope even ↵Enrico Granata2016-10-265-36/+68
| | | | | | | | though the user asked for it Part of rdar://28434047 llvm-svn: 285226
* [PowerPC] Implement vec_insert_exp builtins - llvm portionNemanja Ivanovic2016-10-263-2/+32
| | | | | | | This revision corresponds to review: https://reviews.llvm.org/D25957. Committing on behalf of Zaara Syeda. llvm-svn: 285225
* Call _exit.Rafael Espindola2016-10-269-7/+27
| | | | | | | | | | | | | As the state of lld gets more complicated, shutting down gets more expensive. In a normal lld run we can just call _exit immediately after renaming the temporary output file. We still want the ability to run a full shutdown since that is useful for detecting memory leaks. This patch adds a --full-shutdown flag and changes lit to use it. llvm-svn: 285224
* [libFuzzer] simplify TracePC::HandleTrace even further. Also, when dealing ↵Kostya Serebryany2016-10-263-29/+5
| | | | | | with -exit_on_src_pos, symbolize every PC only once llvm-svn: 285223
* Fix test from r285217.Chad Rosier2016-10-261-1/+1
| | | | llvm-svn: 285222
* Pass a InputSectionData to classoff.Rafael Espindola2016-10-262-12/+12
| | | | | | This allows a non template class to hold input sections. llvm-svn: 285221
* Move a helper function that doesn't depend on a class out of the class.Rui Ueyama2016-10-262-10/+7
| | | | llvm-svn: 285220
* Define a helper function to demangle symbols.Rui Ueyama2016-10-264-10/+15
| | | | llvm-svn: 285219
* [PPC] Implement vector reverse elements builtins (vec_reve)Nemanja Ivanovic2016-10-263-0/+132
| | | | | | | This patch corresponds to review https://reviews.llvm.org/D25906. Committing on behalf of Tony Jiang. llvm-svn: 285218
* [AArch64] Avoid materializing constant 1 when generating cneg instructions.Chad Rosier2016-10-262-2/+24
| | | | | | | | | | | | | | | | | Instead of cmp w0, #1 orr w8, wzr, #0x1 cneg w0, w8, ne we now generate cmp w0, #1 csinv w0, w0, wzr, eq PR28965 llvm-svn: 285217
* Actually use = delete to mark constructors and operators we want to not ↵Enrico Granata2016-10-261-2/+2
| | | | | | | | exist. Just declaring them as private works, but it can confuse certain tools as it doesn't actually declare intent, and the C++11 way is more expressive anyway, so this is pure win rdar://28960209 llvm-svn: 285216
OpenPOWER on IntegriCloud