summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Only test compression when linked with zlib.David Blaikie2014-03-281-0/+2
| | | | | | | I'll implement error handling and a negative test in both llvm-mc and Clang soon. llvm-svn: 205016
* [ELF] Add --allow-multiple-definition option.Rui Ueyama2014-03-286-11/+76
| | | | | | | | | If --allow-multiple-definition option is given, LLD does not treat duplicate symbol error as a fatal error. GNU LD supports this option. Differential Revision: http://llvm-reviews.chandlerc.com/D3211 llvm-svn: 205015
* Add const to a method I missed in the previous commit.Rafael Espindola2014-03-281-7/+4
| | | | llvm-svn: 205014
* Add const.Rafael Espindola2014-03-285-8/+9
| | | | llvm-svn: 205013
* Link in profile library on Linux using --whole-archiveAlexey Samsonov2014-03-282-10/+11
| | | | llvm-svn: 205012
* clang-format: Fix aligning of comments and escaped newlines in macros.Daniel Jasper2014-03-282-0/+9
| | | | | | | | | | | | | | Before: #define A \ int i; /*a*/ \ int jjj; /*b*/ After: #define A \ int i; /*a*/ \ int jjj; /*b*/ llvm-svn: 205011
* Revert "InstCombine: merge constants in both operands of icmp."Erik Verbruggen2014-03-283-77/+12
| | | | | | | | | This reverts commit r204912, and follow-up commit r204948. This introduced a performance regression, and the fix is not completely clear yet. llvm-svn: 205010
* Revert "GVN: merge overflow intrinsics with non-overflow instructions."Erik Verbruggen2014-03-282-191/+58
| | | | | | | | | This reverts commit r203553, and follow-up commits r203558 and r203574. I will follow this up on the mailinglist to do it in a way that won't cause subtle PRE bugs. llvm-svn: 205009
* Add ARM big endian Target (armeb, thumbeb)Christian Pirker2014-03-289-46/+387
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D3096 llvm-svn: 205008
* Add ARM big endian Target (armeb, thumbeb)Christian Pirker2014-03-2823-103/+512
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D3095 llvm-svn: 205007
* [sanitizer] Fix Mac build.Evgeniy Stepanov2014-03-281-3/+3
| | | | llvm-svn: 205006
* R600: avoid calling std::next on an iterator that might be end()Tim Northover2014-03-281-3/+3
| | | | | | | | This was causing my llc to go into an infinite loop on CodeGen/R600/address-space.ll (just triggered recently by some allocator changes). llvm-svn: 205005
* [sanitizer] Intercept fgetpwent / fgetgrent.Evgeniy Stepanov2014-03-285-44/+209
| | | | | | | | These interceptors require deep unpoisoning of return values. While at it, we do the same for all other pw/gr interceptors to reduce dependency on libc implementation details. llvm-svn: 205004
* Intrinsics: expand semantics of LLVMExtendedVectorType (& trunc)Tim Northover2014-03-288-55/+74
| | | | | | | | | | | | These are used in the ARM backends to aid type-checking on patterns involving intrinsics. By making sure one argument is an extended/truncated version of another. However, there's no reason to limit them to just vectors types. For example AArch64 has the instruction "uqshrn sD, dN, #imm" which would naturally use an intrinsic taking an i64 and returning an i32. llvm-svn: 205003
* [sanitizer] Intercept setpwent/endpwent.Evgeniy Stepanov2014-03-282-0/+35
| | | | | | | | It's hard to write a reliable test for this code because they work with unpredictable memory locations. But this change should fix current failures in getpwent() tests on the sanitizer bots. llvm-svn: 205002
* [sanitizer] Intercept rand_r.Evgeniy Stepanov2014-03-283-0/+32
| | | | llvm-svn: 205001
* [sanitizer] Intercept getpwent/getgrent.Evgeniy Stepanov2014-03-283-0/+132
| | | | llvm-svn: 205000
* Add instrastructure for IEEE quad precision.Joerg Sonnenberger2014-03-281-6/+114
| | | | | | | | Based on patch from GuanHong Liu. Differential Revision: http://llvm-reviews.chandlerc.com/D2796 llvm-svn: 204999
* Use the correct trailing comment syntaxDmitri Gribenko2014-03-281-1/+1
| | | | llvm-svn: 204998
* Get rid of the adapted isLiteral method.Manuel Klimek2014-03-282-7/+6
| | | | | | We don't want to deviate from clang's standard terminology. llvm-svn: 204997
* [Allocator Cleanup] Sink the private data members and methods to theChandler Carruth2014-03-281-39/+40
| | | | | | | | | bottom of the interface to make it easier to scan and find the public API. No functionality changed. llvm-svn: 204996
* [Allocator Cleanup] Move generic pointer alignment helper out of anChandler Carruth2014-03-283-22/+17
| | | | | | | out-of-line private static method and into the collection of inline alignment helpers in MathExtras.h. llvm-svn: 204995
* [sanitizer] Intercept mktime.Evgeniy Stepanov2014-03-282-1/+42
| | | | llvm-svn: 204994
* [Allocator Cleanup] Make the growth of the "slab" size of theChandler Carruth2014-03-282-18/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | BumpPtrAllocator significantly less strange by making it a simple function of the number of slabs allocated rather than by making it a recurrance. I *think* the previous behavior was essentially that the size of the slabs would be doubled after the first 128 were allocated, and then doubled again each time 64 more were allocated, but only if every allocation packed perfectly into the slab size. If not, the wasted space wouldn't be counted toward increasing the size, but allocations over the size threshold *would*. And since the allocations over the size threshold might be much larger than the slab size, this could have somewhat surprising consequences where we rapidly grow the slab size. This currently requires adding state to the allocator to track the number of slabs currently allocated, but that isn't too bad. I'm planning further changes to the allocator that will make this state fall out even more naturally. It still doesn't fully decouple the growth rate from the allocations which are over the size threshold. That fix is coming later. This specific fix will allow making the entire thing into a more stateless device and lifting the parameters into template parameters rather than runtime parameters. llvm-svn: 204993
* [cleanup] Hoist the initialization and constants for slab sizes to theChandler Carruth2014-03-281-20/+17
| | | | | | | | top of the default jit memory manager. This will allow them to be used as template parameters rather than runtime parameters in a subsequent commit. llvm-svn: 204992
* [sanitizer] Intercept ftime.Evgeniy Stepanov2014-03-285-1/+45
| | | | llvm-svn: 204991
* clang-format: Recognize more ObjC blocks with parameters/return type.Daniel Jasper2014-03-282-2/+10
| | | | llvm-svn: 204990
* Fix format.Rui Ueyama2014-03-281-1/+1
| | | | llvm-svn: 204989
* [ELF] Remove class declarations that do nothing.Rui Ueyama2014-03-281-76/+0
| | | | | | | These classes are declared in a .cpp file but not used in the same compliation unit. They seems to have been copy-and-pasted from ELFReader.h. llvm-svn: 204988
* Replace nested switches with if.Rui Ueyama2014-03-281-15/+5
| | | | llvm-svn: 204987
* Remove extraneous parentheses.Rui Ueyama2014-03-281-2/+2
| | | | llvm-svn: 204986
* clang-cl wants MSVC-style win32Hans Wennborg2014-03-281-1/+3
| | | | | | | This should fix the clang-cl tests after the Windows target triple canonicalization (r204978) llvm-svn: 204985
* Fix typo.Rui Ueyama2014-03-281-1/+1
| | | | llvm-svn: 204984
* PBQP: Minor cleanups to r204857David Blaikie2014-03-271-5/+5
| | | | | | | | | * Use assignment instead of swap (since the original value is being destroyed anyway) * Rename "updateAdjEdgeId" to "setAdjEdgeId" llvm-svn: 204983
* Make anonymous namespace as small as possible.Rui Ueyama2014-03-278-57/+47
| | | | llvm-svn: 204982
* C++11: convert verbose loops to range-based loops.Adrian Prantl2014-03-271-7/+6
| | | | llvm-svn: 204981
* [PowerPC] Use a small cleanup pass to remove VSX self copiesHal Finkel2014-03-274-0/+105
| | | | | | | | | | | | As explained in r204976, because of how the allocation of VSX registers interacts with the call-lowering code, we sometimes end up generating self VSX copies. Specifically, things like this: %VSL2<def> = COPY %F2, %VSL2<imp-use,kill> (where %F2 is really a sub-register of %VSL2, and so this copy is a nop) This adds a small cleanup pass to remove these prior to post-RA scheduling. llvm-svn: 204980
* Provide a target override for the cost of using a callee-saved registerManman Ren2014-03-272-2/+11
| | | | | | | | | for the first time. Thanks Andy for the discussion. rdar://16162005 llvm-svn: 204979
* Use the new Windows environment for target detectionSaleem Abdulrasool2014-03-2712-84/+130
| | | | | | | | | This follows the LLVM change to canonicalise the Windows target triple spellings. Rather than treating each Windows environment as a single entity, the environments are now modelled properly as an environment. This is a mechanical change to convert the triple use to reflect that change. llvm-svn: 204978
* Canonicalise Windows target triple spellingsSaleem Abdulrasool2014-03-277-10/+93
| | | | | | | | | | | | | | | | | | | | | | | | | Construct a uniform Windows target triple nomenclature which is congruent to the Linux counterpart. The old triples are normalised to the new canonical form. This cleans up the long-standing issue of odd naming for various Windows environments. There are four different environments on Windows: MSVC: The MS ABI, MSVCRT environment as defined by Microsoft GNU: The MinGW32/MinGW32-W64 environment which uses MSVCRT and auxiliary libraries Itanium: The MSVCRT environment + libc++ built with Itanium ABI Cygnus: The Cygwin environment which uses custom libraries for everything The following spellings are now written as: i686-pc-win32 => i686-pc-windows-msvc i686-pc-mingw32 => i686-pc-windows-gnu i686-pc-cygwin => i686-pc-windows-cygnus This should be sufficiently flexible to allow us to target other windows environments in the future as necessary. llvm-svn: 204977
* [PowerPC] Don't remove self VSX copies in PPCInstrInfo::copyPhysRegHal Finkel2014-03-271-9/+13
| | | | | | | | | | | | | | | Because of how the allocation of VSX registers interacts with the call-lowering code, we sometimes end up generating self VSX copies. Specifically, things like this: %VSL2<def> = COPY %F2, %VSL2<imp-use,kill> (where %F2 is really a sub-register of %VSL2, and so this copy is a nop) The problem is that ExpandPostRAPseudos always assumes that *some* instruction has been inserted, and adds implicit defs to it. This is a problem if no copy was inserted because it can cause subtle problems during post-RA scheduling. These self copies will have to be removed some other way. llvm-svn: 204976
* Temporarily remove assert while I dig in to issues that it's causing for LLDB.Lang Hames2014-03-271-2/+0
| | | | | | <rdar://problem/16349536> llvm-svn: 204975
* Reverting r204968 and r204969; while more build bots are happy with the ↵Aaron Ballman2014-03-2713-155/+55
| | | | | | results, some still have link errors. llvm-svn: 204974
* Revert "[C++11] Do not check __GXX_EXPERIMENTAL_CXX0X__."Rui Ueyama2014-03-271-3/+5
| | | | | | | This reverts commit r204964 because it disabled "= delete", "constexpr" and "explicit" on GCC. llvm-svn: 204973
* [X86][Vector Cost Model] Add a comment to explain the workaroundQuentin Colombet2014-03-271-0/+5
| | | | | | | | in my previous commit (r204884). <rdar://problem/16381225> llvm-svn: 204972
* [PowerPC] Fix v2f64 vector extract and related patternsHal Finkel2014-03-273-4/+22
| | | | | | | | | First, v2f64 vector extract had not been declared legal (and so the existing patterns were not being used). Second, the patterns for that, and for scalar_to_vector, should really be a regclass copy, not a subregister operation, because the VSX registers directly hold both the vector and scalar data. llvm-svn: 204971
* Add a comment on kindLayoutBefore.Rui Ueyama2014-03-271-0/+3
| | | | llvm-svn: 204970
* Urgh. Amending r204968 which somehow missed this file!Aaron Ballman2014-03-271-0/+39
| | | | llvm-svn: 204969
* Reapplying r204952 with fixes which should hopefully resolve linking issues ↵Aaron Ballman2014-03-2712-55/+116
| | | | | | with non-MSVC compilers. llvm-svn: 204968
* Spelling corrections.Rui Ueyama2014-03-272-2/+2
| | | | llvm-svn: 204967
OpenPOWER on IntegriCloud