Commit Graph

77078 Commits

Author SHA1 Message Date
Chandler Carruth 4c2eb565ec Fully merge mainline release notes onto the release branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@145545 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-01 00:41:59 +00:00
Bill Wendling 21a7e1ac70 Merging r143712:
------------------------------------------------------------------------
r143712 | efriedma | 2011-11-04 10:29:35 -0700 (Fri, 04 Nov 2011) | 3 lines

Add missing argument for atomic instructions in c++ backend.  PR11268, part 2.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143999 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-07 19:38:25 +00:00
Bill Wendling 39be04a27e Merging r143406:
------------------------------------------------------------------------
r143406 | efriedma | 2011-10-31 16:59:22 -0700 (Mon, 31 Oct 2011) | 3 lines

Add support for new atomics to cpp backend.  Misc other fixes while I'm here.  PR11268.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143998 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-07 19:38:01 +00:00
Bill Wendling 4866cedb43 Merging r143159:
------------------------------------------------------------------------
r143159 | efriedma | 2011-10-27 15:32:13 -0700 (Thu, 27 Oct 2011) | 3 lines

The default alias analysis is -noaa; update the docs to reflect that.  Patch by Michael Ilseman.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143681 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-04 06:30:50 +00:00
Bill Wendling b87d985ebf Merging r143349:
------------------------------------------------------------------------
r143349 | chapuni | 2011-10-31 06:04:26 -0700 (Mon, 31 Oct 2011) | 1 line

docs/*.html: Fix markups.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143610 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03 06:43:54 +00:00
Bill Wendling f9dc5f8b21 Merging r143348:
------------------------------------------------------------------------
r143348 | chapuni | 2011-10-31 04:21:59 -0700 (Mon, 31 Oct 2011) | 1 line

docs/*.html: Appease W3C Checker to add "charset=utf-8".
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143609 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03 06:43:23 +00:00
Bill Wendling f1e68a8084 Merging r143328:
------------------------------------------------------------------------
r143328 | nicholas | 2011-10-30 18:32:21 -0700 (Sun, 30 Oct 2011) | 2 lines

Close <div> that was indenting the rest of the page.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143608 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-03 06:42:43 +00:00
Bill Wendling c3deb510f8 Merging r143290:
------------------------------------------------------------------------
r143290 | d0k | 2011-10-29 12:43:38 -0700 (Sat, 29 Oct 2011) | 3 lines

PPC: Disable moves for all CR subregisters.

Should fix assertion failures on ppc buildbots.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143451 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 05:11:00 +00:00
Bill Wendling 3092965eb4 Merging r143303:
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143450 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 05:09:30 +00:00
Bill Wendling 31491eecf7 Merging r143194:
------------------------------------------------------------------------
r143194 | chapuni | 2011-10-28 07:12:22 -0700 (Fri, 28 Oct 2011) | 7 lines

Dwarf: [PR11022] Fix emitting DW_AT_const_value(>i64), to be host-endian-neutral.

Don't assume APInt::getRawData() would hold target-aware endianness nor host-compliant endianness. rawdata[0] holds most lower i64, even on big endian host.

FIXME: Add a testcase for big endian target.

FIXME: Ditto on CompileUnit::addConstantFPValue() ?
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143449 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 05:08:55 +00:00
Bill Wendling 0ea8aff0a2 Fixed in r143195. Still it is not "TARGETS" neutral.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143448 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 05:06:53 +00:00
Bill Wendling af31f9ff21 Fixes r142984, r143120 and r143191 for PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143447 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 05:05:06 +00:00
Bill Wendling fb4b8feca7 Update release notes to ToT. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143439 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 04:51:35 +00:00
Bill Wendling c6db06a8c4 Merging r143437:
------------------------------------------------------------------------
r143437 | efriedma | 2011-10-31 21:49:29 -0700 (Mon, 31 Oct 2011) | 3 lines

Make sure we use the right insertion point when instcombine replaces a PHI with another instruction.  (Specifically, don't insert an arbitrary instruction before a PHI.)  Fixes PR11275.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143438 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-01 04:51:01 +00:00
Bill Wendling 4e58659caf Merging r143302:
------------------------------------------------------------------------
r143302 | void | 2011-10-29 16:49:52 -0700 (Sat, 29 Oct 2011) | 1 line

Do a relative path ln command instead of an absolute path one. Some people strangely enough have different directory layouts...
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143303 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-29 23:50:44 +00:00
Bill Wendling 7834dbfe6a Merging r143247:
------------------------------------------------------------------------
r143247 | chapuni | 2011-10-28 16:11:03 -0700 (Fri, 28 Oct 2011) | 1 line

test/CodeGen/PowerPC/2008-10-17-AsmMatchingOperands.ll: [PR11218] Mark "REQUIRES: asserts" for now.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143272 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-29 01:20:35 +00:00
Bill Wendling 4b8ab37886 Merging r143222:
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143226 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-28 21:08:15 +00:00
Bill Wendling ac372324f8 Merging r142998:
------------------------------------------------------------------------
r142998 | efriedma | 2011-10-25 17:55:23 -0700 (Tue, 25 Oct 2011) | 3 lines

Add a note about the removal of the atomic intrinsics to the "Major Changes" section of the release notes.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143070 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26 22:36:46 +00:00
Bill Wendling ce7545f79d Merging r142994:
------------------------------------------------------------------------
r142994 | efriedma | 2011-10-25 17:36:41 -0700 (Tue, 25 Oct 2011) | 3 lines

Remove dead atomic intrinsics from LangRef.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143069 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26 22:35:59 +00:00
Bill Wendling 027113d1f6 Complete the missing parts of MIPS-JIT functionality. Patch by Petar Jovanovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143014 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26 04:27:18 +00:00
Bill Wendling ae66c2a154 Merging r143006:
------------------------------------------------------------------------
r143006 | stoklund | 2011-10-25 18:47:48 -0700 (Tue, 25 Oct 2011) | 8 lines

Don't use floating point to do an integer's job.

This code makes different decisions when compiled into x87 instructions
because of different rounding behavior.  That caused phase 2/3
miscompares on 32-bit Linux when the phase 1 compiler was built with gcc
(using x87), and the phase 2 compiler was built with clang (using SSE).

This fixes PR11200.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143013 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-26 04:25:53 +00:00
Bill Wendling f3e053947c Merging r142956:
------------------------------------------------------------------------
r142956 | grosbach | 2011-10-25 13:30:48 -0700 (Tue, 25 Oct 2011) | 4 lines

Make assert() message more informative.

PR11217.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142967 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-25 20:42:34 +00:00
Bill Wendling 3d9fd99521 Merging r142869:
------------------------------------------------------------------------
r142869 | void | 2011-10-24 16:05:43 -0700 (Mon, 24 Oct 2011) | 4 lines

Check the visibility of the global variable before placing it into the stubs
table. A hidden variable could potentially end up in both lists.
<rdar://problem/10336715>

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142870 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-24 23:06:48 +00:00
Bill Wendling 004c7309ca Merging r142841:
------------------------------------------------------------------------
r142841 | efriedma | 2011-10-24 13:24:21 -0700 (Mon, 24 Oct 2011) | 3 lines

Add support to the old JIT for acquire/release loads and stores on x86.  PR11207.


------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142842 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-24 20:27:56 +00:00
Bill Wendling 3ae900aeaa In LLVM 2.9, the GHC calling convention is only supported on x86-32,
x86-64. We (GHC team) would like this patch included as we've recently
added support to GHC for the ARM platform.
Patch by David Terei!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142820 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-24 18:08:38 +00:00
Bill Wendling f2e6e8eebf Merging r142806:
------------------------------------------------------------------------
r142806 | grosbach | 2011-10-24 10:26:26 -0700 (Mon, 24 Oct 2011) | 1 line

Update test for r142801.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142809 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-24 17:33:30 +00:00
Bill Wendling 0745155de6 Merging r142801:
------------------------------------------------------------------------
r142801 | grosbach | 2011-10-24 10:16:24 -0700 (Mon, 24 Oct 2011) | 4 lines

Thumb2 LDM instructions can target PC. Make sure to encode it.

PR11220

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142808 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-24 17:33:07 +00:00
Bill Wendling dce2875059 Patch to build win64 LLVM on Mingw. Patch by Ruben Van Boxem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142614 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-20 20:33:11 +00:00
Bill Wendling 97a5ec9b91 Merging r142574:
------------------------------------------------------------------------
r142574 | baldrick | 2011-10-20 01:57:54 -0700 (Thu, 20 Oct 2011) | 3 lines

Comment out or remove unused parameter names so as to avoid a slew of
compiler warnings.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142611 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-20 20:28:51 +00:00
Bill Wendling 3126e609c5 Merging r142573:
------------------------------------------------------------------------
r142573 | baldrick | 2011-10-20 01:56:41 -0700 (Thu, 20 Oct 2011) | 2 lines

Avoid warnings about the parameter G being unused.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142610 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-20 20:28:30 +00:00
Bill Wendling 17b2b19ca7 Merging r142350:
------------------------------------------------------------------------
r142350 | baldrick | 2011-10-18 05:44:00 -0700 (Tue, 18 Oct 2011) | 3 lines

Fix a bunch of unused variable warnings when doing a release
build with gcc-4.6.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142609 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-20 20:28:08 +00:00
Bill Wendling d1480b69d0 Merging r142559:
------------------------------------------------------------------------
r142559 | void | 2011-10-19 17:45:46 -0700 (Wed, 19 Oct 2011) | 1 line

Revamp the script to handle the 'TEST=simple' output.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142560 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-20 00:46:28 +00:00
Bill Wendling bab41201fb Merging r142550:
------------------------------------------------------------------------
r142550 | evancheng | 2011-10-19 15:22:54 -0700 (Wed, 19 Oct 2011) | 1 line

Fix TLS lowering bug. The CopyFromReg must be glued to the TLSCALL. rdar://10291355
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142555 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 23:49:38 +00:00
Bill Wendling 3b89f11c9f Merging r142493:
------------------------------------------------------------------------
r142493 | chandlerc | 2011-10-19 03:32:19 -0700 (Wed, 19 Oct 2011) | 5 lines

Generalize the reading of probability metadata to work for both branches
and switches, with arbitrary numbers of successors. Still optimized for
the common case of 2 successors for a conditional branch.

Add a test case for switch metadata showing up in the BlockFrequencyInfo pass.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142548 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 22:13:20 +00:00
Bill Wendling 9462243b87 Merging r142492:
------------------------------------------------------------------------
r142492 | chandlerc | 2011-10-19 03:30:30 -0700 (Wed, 19 Oct 2011) | 7 lines

Teach the BranchProbabilityInfo analysis pass to read any metadata
encoding of probabilities. In the absense of metadata, it continues to
fall back on static heuristics.

This allows __builtin_expect, after lowering through llvm.expect
a branch instruction's metadata, to actually enter the branch
probability model. This is one component of resolving PR2577.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142547 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 22:12:52 +00:00
Bill Wendling 3c1be9ddf9 Merging r142491:
------------------------------------------------------------------------
r142491 | chandlerc | 2011-10-19 03:12:41 -0700 (Wed, 19 Oct 2011) | 9 lines

Add pass printing support to BlockFrequencyInfo pass. The implementation
layer already had support for printing the results of this analysis, but
the wiring was missing.

Now that printing the analysis works, actually bring some of this
analysis, and the BranchProbabilityInfo analysis that it wraps, under
test! I'm planning on fixing some bugs and doing other work here, so
having a nice place to add regression tests and a way to observe the
results is really useful.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142546 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 22:12:25 +00:00
Bill Wendling a7dea542b6 Merging r142168:
------------------------------------------------------------------------
r142168 | chandlerc | 2011-10-16 18:11:57 -0700 (Sun, 16 Oct 2011) | 8 lines

Add a routine to swap branch instruction operands, and update any
profile metadata at the same time. Use it to preserve metadata attached
to a branch when re-writing it in InstCombine.

Add metadata to the canonicalize_branch InstCombine test, and check that
it is tranformed correctly.

Reviewed by Nick Lewycky!
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142545 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 22:11:55 +00:00
Bill Wendling 06bf8ff3f6 Merging r142537:
------------------------------------------------------------------------
r142537 | rafael | 2011-10-19 11:48:52 -0700 (Wed, 19 Oct 2011) | 1 line

Fix parsing of a line with only a # in it.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142539 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 19:48:46 +00:00
Bill Wendling d3ada9824f Merging r142489:
------------------------------------------------------------------------
r142489 | void | 2011-10-19 02:47:00 -0700 (Wed, 19 Oct 2011) | 1 line

Duncan pointed out that sometimes CC and CXX are used to specify the compiler. Also that the configure script takes care of finding an appropriate compiler if one's not specified.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142490 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 09:47:36 +00:00
Bill Wendling 2c3a1995cb Merging r142486:
------------------------------------------------------------------------
r142486 | void | 2011-10-19 02:25:49 -0700 (Wed, 19 Oct 2011) | 1 line

Use bash instead.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142487 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 09:26:28 +00:00
Bill Wendling c3cd912599 Merging r142482:
------------------------------------------------------------------------
r142482 | void | 2011-10-19 01:42:07 -0700 (Wed, 19 Oct 2011) | 1 line

Make changes so that this runs on FreeBSD.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142483 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 08:45:26 +00:00
Bill Wendling fb5b7455bb Merging r142243:
------------------------------------------------------------------------
r142243 | void | 2011-10-17 13:28:54 -0700 (Mon, 17 Oct 2011) | 1 line

Remove mention of llvm-gcc and add mention of dragonegg.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142244 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 20:32:14 +00:00
Bill Wendling 40930e0c2d Rough out the EH changes. Include here a sketch on how to use the new APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142181 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 06:31:58 +00:00
Bill Wendling beac60d66f Add the 3.0 release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142180 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 06:31:32 +00:00
Bill Wendling bef647c0d5 Formatting changes. No content change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142178 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 05:39:25 +00:00
Bill Wendling 70c2f2c9bc Apply r142132:
PR11143: Save the old diagnostic handler and call it when munging diagnostics for #line directives.

This reenables proper inline asm diagnostics in clang



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142169 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-17 03:47:20 +00:00
Bill Wendling c6f21f6c43 Merging r142165:
------------------------------------------------------------------------
r142165 | void | 2011-10-16 15:44:08 -0700 (Sun, 16 Oct 2011) | 5 lines

Overhaul the 'test-release' script.

This removes support for building llvm-gcc. It will eventually add support for
building other projects.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142166 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 22:47:07 +00:00
Bill Wendling 6b670624c5 This patch relies upon non-incorporated patches.
--- Reverse-merging r142156 into '.':
U    include/llvm/Support/SourceMgr.h
U    lib/MC/MCParser/AsmParser.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142161 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 21:58:10 +00:00
Bill Wendling e45a5dce89 Merging r142132:
------------------------------------------------------------------------
r142132 | d0k | 2011-10-16 03:48:29 -0700 (Sun, 16 Oct 2011) | 3 lines

PR11143: Save the old diagnostic handler and call it when munging diagnostics for #line directives.

This reenables proper inline asm diagnostics in clang
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142156 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 21:01:22 +00:00
Bill Wendling a4633fc90d Merging r142125:
------------------------------------------------------------------------
r142125 | void | 2011-10-16 01:24:30 -0700 (Sun, 16 Oct 2011) | 1 line

Install the PNG file as well. PR4780.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@142126 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 08:25:24 +00:00