oota-llvm.git
12 years agoForgot to add the project name to the 'svn ls' command.
Bill Wendling [Mon, 17 Oct 2011 21:45:07 +0000 (21:45 +0000)]
Forgot to add the project name to the 'svn ls' command.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142282 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd message to svn mkdir command.
Bill Wendling [Mon, 17 Oct 2011 21:42:29 +0000 (21:42 +0000)]
Add message to svn mkdir command.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142280 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRewrite most of MachODump to work through the generic libObject interfaces rather...
Owen Anderson [Mon, 17 Oct 2011 21:37:35 +0000 (21:37 +0000)]
Rewrite most of MachODump to work through the generic libObject interfaces rather than accessing the MachO internals directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142263 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd an accessor to get the underlying MachO representation.
Owen Anderson [Mon, 17 Oct 2011 21:37:03 +0000 (21:37 +0000)]
Add an accessor to get the underlying MachO representation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142261 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUse a SmallVector for intrinsic argument types.
Benjamin Kramer [Mon, 17 Oct 2011 21:33:26 +0000 (21:33 +0000)]
Use a SmallVector for intrinsic argument types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142259 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDon't renumber the blocks here. This could cause problems later on if another
Bill Wendling [Mon, 17 Oct 2011 21:32:56 +0000 (21:32 +0000)]
Don't renumber the blocks here. This could cause problems later on if another
pass renumbers the blocks again.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142258 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUse the correct predicate for determining if a branch is conditional or not.
Owen Anderson [Mon, 17 Oct 2011 21:21:44 +0000 (21:21 +0000)]
Use the correct predicate for determining if a branch is conditional or not.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142257 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd support for the Objective-C personality function to the instruction
Bill Wendling [Mon, 17 Oct 2011 21:20:24 +0000 (21:20 +0000)]
Add support for the Objective-C personality function to the instruction
combining of the landingpad instruction. The ObjC personality function acts
almost identically to the C++ personality function. In particular, it uses
"null" as a "catch-all" value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142256 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPseudoinstructions should not be less constrained than the instruction they are
Cameron Zwarich [Mon, 17 Oct 2011 21:20:13 +0000 (21:20 +0000)]
Pseudoinstructions should not be less constrained than the instruction they are
lowered to. This fixes a lot of verifier failures on the test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142254 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMCOperand is pod-like.
Benjamin Kramer [Mon, 17 Oct 2011 21:18:03 +0000 (21:18 +0000)]
MCOperand is pod-like.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142253 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTidy up organization.
Jim Grosbach [Mon, 17 Oct 2011 21:00:11 +0000 (21:00 +0000)]
Tidy up organization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142248 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix handling of the From parameter in StringRef::find.
Benjamin Kramer [Mon, 17 Oct 2011 20:49:40 +0000 (20:49 +0000)]
Fix handling of the From parameter in StringRef::find.

Enable bounds checking to catch this kind of bug earlier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142247 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a call to EmitSjLjDispatchBlock.
Bill Wendling [Mon, 17 Oct 2011 20:37:20 +0000 (20:37 +0000)]
Add a call to EmitSjLjDispatchBlock.

Once the intrinsics are marked as having a custom inserter, it will call this
method to emit the dispatch table into the machine function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142245 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRemove mention of llvm-gcc and add mention of dragonegg.
Bill Wendling [Mon, 17 Oct 2011 20:28:54 +0000 (20:28 +0000)]
Remove mention of llvm-gcc and add mention of dragonegg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142243 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd CHECKs and document PR11158.
Nadav Rotem [Mon, 17 Oct 2011 20:23:23 +0000 (20:23 +0000)]
Add CHECKs and document PR11158.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142240 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix improperly formed assert() call.
Jim Grosbach [Mon, 17 Oct 2011 20:22:59 +0000 (20:22 +0000)]
Fix improperly formed assert() call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142239 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoObject: Fix redundant name.
Michael J. Spencer [Mon, 17 Oct 2011 20:19:29 +0000 (20:19 +0000)]
Object: Fix redundant name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142238 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoConstraint register class with constrainRegClass() to CSE a virtual into another...
Evan Cheng [Mon, 17 Oct 2011 19:50:12 +0000 (19:50 +0000)]
Constraint register class with constrainRegClass() to CSE a virtual into another. rdar://10293289

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142234 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agostabalize tests by specifying the exact sse level
Nadav Rotem [Mon, 17 Oct 2011 19:45:38 +0000 (19:45 +0000)]
stabalize tests by specifying the exact sse level

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142229 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd definitions of conditional moves with 64-bit operands. Comment out code for
Akira Hatanaka [Mon, 17 Oct 2011 18:53:29 +0000 (18:53 +0000)]
Add definitions of conditional moves with 64-bit operands. Comment out code for
expanding conditional moves, which is not needed since architectures that lack
support for conditional moves have been removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142226 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRevert change to function alignment b/c existing logic was fine
Hal Finkel [Mon, 17 Oct 2011 18:53:03 +0000 (18:53 +0000)]
Revert change to function alignment b/c existing logic was fine

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142224 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRemoved set, but unused variables.
Chad Rosier [Mon, 17 Oct 2011 18:48:30 +0000 (18:48 +0000)]
Removed set, but unused variables.

Patch by Joe Abbey <jabbey@arxan.com>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142223 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoSuppress partial retain+release elimination when there's a
Dan Gohman [Mon, 17 Oct 2011 18:48:25 +0000 (18:48 +0000)]
Suppress partial retain+release elimination when there's a
possibility that it will span multiple CFG diamonds/triangles which
could have different controlling predicates.  rdar://10282956

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142222 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCorrect over-zealous removal of hack.
Bill Wendling [Mon, 17 Oct 2011 18:43:40 +0000 (18:43 +0000)]
Correct over-zealous removal of hack.

Some code want to check that *any* call within a function has the 'returns
twice' attribute, not just that the current function has one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142221 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove class and instruction definitions for conditional moves to a seperate file.
Akira Hatanaka [Mon, 17 Oct 2011 18:43:19 +0000 (18:43 +0000)]
Move class and instruction definitions for conditional moves to a seperate file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142220 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRevert change made in r142205.
Akira Hatanaka [Mon, 17 Oct 2011 18:33:24 +0000 (18:33 +0000)]
Revert change made in r142205.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142217 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRedefine count-leading 0s and 1s instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:26:37 +0000 (18:26 +0000)]
Redefine count-leading 0s and 1s instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142216 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTemporarily XFAIL waiting for a fix.
Bill Wendling [Mon, 17 Oct 2011 18:25:32 +0000 (18:25 +0000)]
Temporarily XFAIL waiting for a fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142215 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRedefine mfhi/lo and mthi/lo instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:24:15 +0000 (18:24 +0000)]
Redefine mfhi/lo and mthi/lo instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142214 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd comments to TargetLowering.h indicating that the set*Alignment functions take...
Hal Finkel [Mon, 17 Oct 2011 18:23:13 +0000 (18:23 +0000)]
Add comments to TargetLowering.h indicating that the set*Alignment functions take arguments in log2(bytes)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142213 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoNow that we have the ReturnsTwice function attribute, this method is
Bill Wendling [Mon, 17 Oct 2011 18:22:52 +0000 (18:22 +0000)]
Now that we have the ReturnsTwice function attribute, this method is
obsolete. Check the attribute instead.
<rdar://problem/8031714>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142212 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRedefine multiply and divide instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:21:24 +0000 (18:21 +0000)]
Redefine multiply and divide instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142211 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd definition of a base class for logical shift/rotate instructions with two
Akira Hatanaka [Mon, 17 Oct 2011 18:17:58 +0000 (18:17 +0000)]
Add definition of a base class for logical shift/rotate instructions with two
source registers and redefine 32-bit and 64-bit instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142210 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRemove >80-col line and unicode
Hal Finkel [Mon, 17 Oct 2011 18:10:08 +0000 (18:10 +0000)]
Remove >80-col line and unicode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142209 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd definition of a base class for logical shift/rotate immediate instructions
Akira Hatanaka [Mon, 17 Oct 2011 18:06:56 +0000 (18:06 +0000)]
Add definition of a base class for logical shift/rotate immediate instructions
and have 32-bit and 64-bit instructions derive from it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142207 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRemoved set, but unused variable.
Chad Rosier [Mon, 17 Oct 2011 18:01:59 +0000 (18:01 +0000)]
Removed set, but unused variable.

Patch by Joe Abbey <jabbey@arxan.com>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142206 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.
Akira Hatanaka [Mon, 17 Oct 2011 18:01:00 +0000 (18:01 +0000)]
Add definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142205 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix CMake build.
Michael J. Spencer [Mon, 17 Oct 2011 17:50:39 +0000 (17:50 +0000)]
Fix CMake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142204 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoIt is safe to speculate load from GOT. This fixes performance regression caused by...
Devang Patel [Mon, 17 Oct 2011 17:35:01 +0000 (17:35 +0000)]
It is safe to speculate load from GOT. This fixes performance regression caused by r141689.

Radar 10281206.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142202 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdmonish that MI is not IR and virtual registers have constraints.
Jakob Stoklund Olesen [Mon, 17 Oct 2011 17:33:39 +0000 (17:33 +0000)]
Admonish that MI is not IR and virtual registers have constraints.

In machine code, you can't just replaceRegWith() the same way you can
replaceAllUsesWith() in IR.  Virtual registers may have different
register classes that need to be merged first.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142201 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agosvn mv Target/ARM/ARMGlobalMerge.cpp Transforms/Scalar/GlobalMerge.cpp
Devang Patel [Mon, 17 Oct 2011 17:17:43 +0000 (17:17 +0000)]
svn mv Target/ARM/ARMGlobalMerge.cpp Transforms/Scalar/GlobalMerge.cpp

There is no reason to have simple IR level pass in lib/Target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142200 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agollvm-objdump: Add -s, which prints the contents of each section.
Michael J. Spencer [Mon, 17 Oct 2011 17:13:22 +0000 (17:13 +0000)]
llvm-objdump: Add -s, which prints the contents of each section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142199 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agollvm-objdump: Add tests.
Michael J. Spencer [Mon, 17 Oct 2011 17:13:05 +0000 (17:13 +0000)]
llvm-objdump: Add tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142198 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoInstructions for Book E PPC should be word aligned, set function alignment to reflect...
Hal Finkel [Mon, 17 Oct 2011 17:01:41 +0000 (17:01 +0000)]
Instructions for Book E PPC should be word aligned, set function alignment to reflect this

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142194 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix unused variable warning in the rare circumstance that we have no feature-dependen...
Owen Anderson [Mon, 17 Oct 2011 16:56:47 +0000 (16:56 +0000)]
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142193 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPick low-hanging MatchEntry shrinkage fruit.
Benjamin Kramer [Mon, 17 Oct 2011 16:18:09 +0000 (16:18 +0000)]
Pick low-hanging MatchEntry shrinkage fruit.

Shaves 200k off Release-Asserts clang binaries on i386.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142191 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agouse FileCheck and not grep in new tests
Hal Finkel [Mon, 17 Oct 2011 16:01:41 +0000 (16:01 +0000)]
use FileCheck and not grep in new tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142189 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDon't download and compile compiler-rt, libcxx, and libcxxabi by default.
Bill Wendling [Mon, 17 Oct 2011 08:41:20 +0000 (08:41 +0000)]
Don't download and compile compiler-rt, libcxx, and libcxxabi by default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142185 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoClean the triple, add check lines.
Nadav Rotem [Mon, 17 Oct 2011 07:07:51 +0000 (07:07 +0000)]
Clean the triple, add check lines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142183 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPreviously v2i32 vectors were legalized to v4i32. Now, they are legalized to
Nadav Rotem [Mon, 17 Oct 2011 06:59:01 +0000 (06:59 +0000)]
Previously v2i32 vectors were legalized to v4i32. Now, they are legalized to
v2i64. These tests do not check MMX nor zmoving into them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142182 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDon't use inline assembly in 64-bit Visual Studio. Unfortunately, this means that...
Craig Topper [Mon, 17 Oct 2011 05:33:10 +0000 (05:33 +0000)]
Don't use inline assembly in 64-bit Visual Studio. Unfortunately, this means that cpuid leaf 7 can't be queried on versions of Visual Studio earlier than VS 2008 SP1. Fixes PR11147.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142177 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd comment explaining that the order of processing doesn't matter here.
Bill Wendling [Mon, 17 Oct 2011 05:25:09 +0000 (05:25 +0000)]
Add comment explaining that the order of processing doesn't matter here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142176 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUpdate to disable asserts. Build a phase 3 compiler, and compare phase 2 files agains...
Bill Wendling [Mon, 17 Oct 2011 04:46:54 +0000 (04:46 +0000)]
Update to disable asserts. Build a phase 3 compiler, and compare phase 2 files against phase 3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142173 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTest case for CanLowerReturn fix (r141981)
Hal Finkel [Mon, 17 Oct 2011 04:03:59 +0000 (04:03 +0000)]
Test case for CanLowerReturn fix (r141981)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142172 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd PPC 440 scheduler and some associated tests (new files)
Hal Finkel [Mon, 17 Oct 2011 04:03:55 +0000 (04:03 +0000)]
Add PPC 440 scheduler and some associated tests (new files)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142171 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd PPC 440 scheduler and some associated tests
Hal Finkel [Mon, 17 Oct 2011 04:03:49 +0000 (04:03 +0000)]
Add PPC 440 scheduler and some associated tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142170 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a routine to swap branch instruction operands, and update any
Chandler Carruth [Mon, 17 Oct 2011 01:11:57 +0000 (01:11 +0000)]
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/trunk@142168 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoOverhaul the 'test-release' script.
Bill Wendling [Sun, 16 Oct 2011 22:44:08 +0000 (22:44 +0000)]
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/trunk@142165 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDelete a dead member. Dunno if this was ever used, but the current code
Chandler Carruth [Sun, 16 Oct 2011 22:27:54 +0000 (22:27 +0000)]
Delete a dead member. Dunno if this was ever used, but the current code
directly manipulates the weights inside of the BranchProbabilityInfo
that is passed in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142163 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a proper LLVM banner to this file.
Chandler Carruth [Sun, 16 Oct 2011 22:15:07 +0000 (22:15 +0000)]
Add a proper LLVM banner to this file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142162 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd tripple and stabalize a few more tests.
Nadav Rotem [Sun, 16 Oct 2011 21:20:54 +0000 (21:20 +0000)]
Add tripple and stabalize a few more tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142158 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUpdate the tree before applying patch.
Bill Wendling [Sun, 16 Oct 2011 20:59:25 +0000 (20:59 +0000)]
Update the tree before applying patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142155 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd triple to tests.
Nadav Rotem [Sun, 16 Oct 2011 20:53:20 +0000 (20:53 +0000)]
Add triple to tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142154 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agofix a typo in the test
Nadav Rotem [Sun, 16 Oct 2011 20:43:41 +0000 (20:43 +0000)]
fix a typo in the test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142153 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoEnable element promotion type legalization by deafault.
Nadav Rotem [Sun, 16 Oct 2011 20:31:33 +0000 (20:31 +0000)]
Enable element promotion type legalization by deafault.
Changed tests which assumed that vectors are legalized by widening them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142152 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoOops! Fix testcase.
Nick Lewycky [Sun, 16 Oct 2011 20:20:15 +0000 (20:20 +0000)]
Oops! Fix testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142151 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoWhen looking for dependencies on the src pointer, scan the src pointer. Scanning
Nick Lewycky [Sun, 16 Oct 2011 20:13:32 +0000 (20:13 +0000)]
When looking for dependencies on the src pointer, scan the src pointer. Scanning
on the memcpy call will pull up other unrelated stuff. Fixes PR11142.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142150 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRemove the the test which checks the saving of a vector of booleans into memory.
Nadav Rotem [Sun, 16 Oct 2011 19:06:06 +0000 (19:06 +0000)]
Remove the the test which checks the saving of a vector of booleans into memory.

The decision was to pack the bits. Currently no codegen supports this.
Currently, all of the bits in the vector are saved into the same address
in memory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142149 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd X86 PEXTR and PDEP instructions.
Craig Topper [Sun, 16 Oct 2011 16:50:08 +0000 (16:50 +0000)]
Add X86 PEXTR and PDEP instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142141 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoLet printf do the formatting instead aligning strings ourselves.
Benjamin Kramer [Sun, 16 Oct 2011 16:30:34 +0000 (16:30 +0000)]
Let printf do the formatting instead aligning strings ourselves.

While at it, merge some format strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142140 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTwinify better.
Benjamin Kramer [Sun, 16 Oct 2011 15:46:29 +0000 (15:46 +0000)]
Twinify better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142139 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd AsmToken::getEndLoc and use it to add ranges to x86 asm register parsing.
Benjamin Kramer [Sun, 16 Oct 2011 12:10:27 +0000 (12:10 +0000)]
Add AsmToken::getEndLoc and use it to add ranges to x86 asm register parsing.

<stdin>:1:12: error: register %rax is only available in 64-bit mode
   incl    %rax
           ^~~~

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142137 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agotools/CMakeLists.txt: Fixup r142103. I don't remember why I had missed the line.
NAKAMURA Takumi [Sun, 16 Oct 2011 11:50:37 +0000 (11:50 +0000)]
tools/CMakeLists.txt: Fixup r142103. I don't remember why I had missed the line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142136 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoX86AsmParser: Synthesize EndLoc for tokens out of StartLoc + Length and print ranges...
Benjamin Kramer [Sun, 16 Oct 2011 11:28:29 +0000 (11:28 +0000)]
X86AsmParser: Synthesize EndLoc for tokens out of StartLoc + Length and print ranges for invalid operands.

<stdin>:1:4: error: invalid instruction mnemonic 'abc'
   abc incl    %edi
   ^~~

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142135 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPR11143: Save the old diagnostic handler and call it when munging diagnostics for...
Benjamin Kramer [Sun, 16 Oct 2011 10:48:29 +0000 (10:48 +0000)]
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/trunk@142132 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix a bug in LowerV2I64Splat, which generated a BUILD_VECTOR for which there was
Nadav Rotem [Sun, 16 Oct 2011 10:02:06 +0000 (10:02 +0000)]
Fix a bug in LowerV2I64Splat, which generated a BUILD_VECTOR for which there was
no pattern.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142130 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoInstall the PNG file as well. PR4780.
Bill Wendling [Sun, 16 Oct 2011 08:24:30 +0000 (08:24 +0000)]
Install the PNG file as well. PR4780.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142125 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUpdate tutorial to reflect the current APIs. Also correct a small omission in
Bill Wendling [Sun, 16 Oct 2011 08:06:54 +0000 (08:06 +0000)]
Update tutorial to reflect the current APIs. Also correct a small omission in
LangImpl6.html (it needed to defined the 'binary :' operator).
PR9052

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142123 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd X86 BZHI instruction as well as BMI2 feature detection.
Craig Topper [Sun, 16 Oct 2011 07:55:05 +0000 (07:55 +0000)]
Add X86 BZHI instruction as well as BMI2 feature detection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142122 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd X86 INVPCID instruction. Add 32/64-bit predicates to INVEPT, INVVPID, VMREAD...
Craig Topper [Sun, 16 Oct 2011 07:05:40 +0000 (07:05 +0000)]
Add X86 INVPCID instruction. Add 32/64-bit predicates to INVEPT, INVVPID, VMREAD, and VMWRITE to remove hack from X86RecognizableInstr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142117 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoEnable CREATE_SUBDIRS for a performance win, because there are a lot of files being...
Bill Wendling [Sun, 16 Oct 2011 06:43:10 +0000 (06:43 +0000)]
Enable CREATE_SUBDIRS for a performance win, because there are a lot of files being generated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142112 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd flags on Thumb2 indexed stores paralleling the flags on the indexed loads.
Cameron Zwarich [Sun, 16 Oct 2011 06:38:10 +0000 (06:38 +0000)]
Add flags on Thumb2 indexed stores paralleling the flags on the indexed loads.
These missing flags show up as errors when running -verify-coalescing on
test-suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142111 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix an obvious typo found when looking at nearby code.
Cameron Zwarich [Sun, 16 Oct 2011 06:38:06 +0000 (06:38 +0000)]
Fix an obvious typo found when looking at nearby code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142110 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoremove the dead 'ShowLine' argument from SMDiagnostic.
Chris Lattner [Sun, 16 Oct 2011 05:47:55 +0000 (05:47 +0000)]
remove the dead 'ShowLine' argument from SMDiagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142108 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake SMDiagnostic a little more sane. Instead of passing around note/warning/error...
Chris Lattner [Sun, 16 Oct 2011 05:43:57 +0000 (05:43 +0000)]
Make SMDiagnostic a little more sane.  Instead of passing around note/warning/error as a
string, pass it around as an enum.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142107 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoEnhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance
Chris Lattner [Sun, 16 Oct 2011 04:47:35 +0000 (04:47 +0000)]
Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does.  Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:

test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
              ^~~~~~~

It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142106 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd X86 BEXTR instruction. This instruction uses VEX.vvvv to encode Operand 3 instead...
Craig Topper [Sun, 16 Oct 2011 03:51:13 +0000 (03:51 +0000)]
Add X86 BEXTR instruction. This instruction uses VEX.vvvv to encode Operand 3 instead of Operand 2 so needs special casing in the disassembler and code emitter. Ultimately, should pass this information from tablegen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142105 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCMake: Introduce LLVM_CLANG_SOURCE_DIR, "tools/clang" by default. Clang will not...
NAKAMURA Takumi [Sun, 16 Oct 2011 02:54:33 +0000 (02:54 +0000)]
CMake: Introduce LLVM_CLANG_SOURCE_DIR, "tools/clang" by default. Clang will not be built if LLVM_CLANG_SOURCE_DIR="" or ${LLVM_CLANG_SOURCE_DIR}/CMakeLists.txt is not found.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142103 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoautoconf: Introduce --with-clang-srcdir, to build out-of-tree clang as tools/clang...
NAKAMURA Takumi [Sun, 16 Oct 2011 02:54:26 +0000 (02:54 +0000)]
autoconf: Introduce --with-clang-srcdir, to build out-of-tree clang as tools/clang on tools/Makefile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142102 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMakefile.rules: Let OPTIONAL_PARALLEL_DIRS accept out-of-tree absolute path.
NAKAMURA Takumi [Sun, 16 Oct 2011 02:54:19 +0000 (02:54 +0000)]
Makefile.rules: Let OPTIONAL_PARALLEL_DIRS accept out-of-tree absolute path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142101 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agotest/Makefile: Inspect $(PROJ_OBJ_ROOT)/tools/clang/Makefile instead of $(PROJ_SRC_RO...
NAKAMURA Takumi [Sun, 16 Oct 2011 02:54:14 +0000 (02:54 +0000)]
test/Makefile: Inspect $(PROJ_OBJ_ROOT)/tools/clang/Makefile instead of $(PROJ_SRC_ROOT)/tools/clang for "check-all".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142100 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a helper script to create branches and tag release candidates.
Bill Wendling [Sun, 16 Oct 2011 02:03:18 +0000 (02:03 +0000)]
Add a helper script to create branches and tag release candidates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142098 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd a script that helps merge changes into a release branch.
Bill Wendling [Sun, 16 Oct 2011 01:54:03 +0000 (01:54 +0000)]
Add a script that helps merge changes into a release branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142097 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd X86 feature detection support for BMI instructions. Added new cpuid function...
Craig Topper [Sun, 16 Oct 2011 00:21:51 +0000 (00:21 +0000)]
Add X86 feature detection support for BMI instructions. Added new cpuid function for accessing leafs with sub leafs specified in ECX. Also added code to keep track of the max cpuid level supported in both basic and extended leaves and qualified the existing cpuid calls and the new call to leaf 7.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142089 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd support for X86 blsr, blsmsk, and blsi instructions. Required extra work because...
Craig Topper [Sat, 15 Oct 2011 20:46:47 +0000 (20:46 +0000)]
Add support for X86 blsr, blsmsk, and blsi instructions. Required extra work because these are the first VEX encoded instructions to use the reg field as an opcode extension.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142082 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoThe CELL backend cannot select patterns for vector trunc-store and shl on v2i64...
Nadav Rotem [Sat, 15 Oct 2011 20:05:17 +0000 (20:05 +0000)]
The CELL backend cannot select patterns for  vector trunc-store and shl on v2i64; CellSPU/shift_ops.ll fails when promoting elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142081 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoARM cannot select a pattern for trunc-store v4i8; /ARM/vrev.ll fails when promoting...
Nadav Rotem [Sat, 15 Oct 2011 20:03:12 +0000 (20:03 +0000)]
ARM cannot select a pattern for trunc-store v4i8; /ARM/vrev.ll fails when promoting elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142080 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix extra whitespace in comment.
Nick Lewycky [Sat, 15 Oct 2011 19:36:45 +0000 (19:36 +0000)]
Fix extra whitespace in comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142079 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoLet this test pass even if 'int' is somewhere in its directory path.
Nico Weber [Sat, 15 Oct 2011 18:07:16 +0000 (18:07 +0000)]
Let this test pass even if 'int' is somewhere in its directory path.

On my machine, grep matched:

  ; ModuleID = '/Volumes/MacintoshHD2/src/chrome-git/src/third_party/llvm/test/Linker/2011-08-18-unique-debug-type.ll'
  !9 = metadata !{i32 720932, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]

Explicitly filter out the ModuleID line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142077 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoSmallVector -> array
Benjamin Kramer [Sat, 15 Oct 2011 13:28:31 +0000 (13:28 +0000)]
SmallVector -> array

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142073 91177308-0d34-0410-b5e6-96231b3b80d8