oota-llvm.git
13 years agoFix Name Access
David Greene [Wed, 19 Oct 2011 13:02:52 +0000 (13:02 +0000)]
Fix Name Access

Ask for the record name as a string explicitly to avoid a potential
assert.

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

13 years agoFix Name Check
David Greene [Wed, 19 Oct 2011 13:02:48 +0000 (13:02 +0000)]
Fix Name Check

Avoid a potential assert by asking for record names as strings explicitly.

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

13 years agoFix Name Check
David Greene [Wed, 19 Oct 2011 13:02:47 +0000 (13:02 +0000)]
Fix Name Check

Record names may not be fully resolved at this point so ask for the
record name as a string explicitly.  This avoids a potential assert.

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

13 years agoAdd Record Init
David Greene [Wed, 19 Oct 2011 13:02:45 +0000 (13:02 +0000)]
Add Record Init

Add an init function to be shared among Record constructors.

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

13 years agoMake Template Arg Names Inits
David Greene [Wed, 19 Oct 2011 13:02:42 +0000 (13:02 +0000)]
Make Template Arg Names Inits

Allow template arg names to be Inits.  This is further work to
implement paste as it allows template names to participate in paste
operations.

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

13 years agoLet SetValue Take and Init Name
David Greene [Wed, 19 Oct 2011 13:02:39 +0000 (13:02 +0000)]
Let SetValue Take and Init Name

Convert SetValue to take the value name as an Init.  This allows us to
set values for variables whose names are not yet fully resolved.

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

13 years agoAdd Utility to Scope Names
David Greene [Wed, 19 Oct 2011 13:02:36 +0000 (13:02 +0000)]
Add Utility to Scope Names

Add a couple of utility functions to take a variable name and qualify
it with the namespace of the enclosing class and/or multiclass.  This
is inpreparation for making template arg names first-class Inits.

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

13 years agoMake VarInit Name an Init
David Greene [Wed, 19 Oct 2011 13:02:33 +0000 (13:02 +0000)]
Make VarInit Name an Init

Make the VarInit name an Init itself.  We need this to implement paste
functionality so we can reference variables whose names are not yet
completely resolved.

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

13 years agoAdd Value Accessors
David Greene [Wed, 19 Oct 2011 13:02:29 +0000 (13:02 +0000)]
Add Value Accessors

Add accessors to get Record values by Init name.  This lets us look up
Record values whose names are not yet fully resolved.  More work
toward paste.

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

13 years agoAdd Name Init Accessors
David Greene [Wed, 19 Oct 2011 13:02:28 +0000 (13:02 +0000)]
Add Name Init Accessors

Add a utility to get the name init and get the string representation
of the name.  This will be used for paste functionality.

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

13 years agoAdd Init Accessors
David Greene [Wed, 19 Oct 2011 13:02:22 +0000 (13:02 +0000)]
Add Init Accessors

Add a couple of utility functions to get at the name init and return
the name init as a string.  This will be used for paste functionality.

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

13 years agoGeneralize the reading of probability metadata to work for both branches
Chandler Carruth [Wed, 19 Oct 2011 10:32:19 +0000 (10:32 +0000)]
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/trunk@142493 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTeach the BranchProbabilityInfo analysis pass to read any metadata
Chandler Carruth [Wed, 19 Oct 2011 10:30:30 +0000 (10:30 +0000)]
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/trunk@142492 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd pass printing support to BlockFrequencyInfo pass. The implementation
Chandler Carruth [Wed, 19 Oct 2011 10:12:41 +0000 (10:12 +0000)]
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/trunk@142491 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDuncan pointed out that sometimes CC and CXX are used to specify the compiler. Also...
Bill Wendling [Wed, 19 Oct 2011 09:47:00 +0000 (09:47 +0000)]
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/trunk@142489 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd support for the vector-widening of vselect and vector-setcc
Nadav Rotem [Wed, 19 Oct 2011 09:45:11 +0000 (09:45 +0000)]
Add support for the vector-widening of vselect and vector-setcc

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

13 years agoUse bash instead.
Bill Wendling [Wed, 19 Oct 2011 09:25:49 +0000 (09:25 +0000)]
Use bash instead.

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

13 years agoMake sure we emit the 'movw' and 'movt' only if it's supported. Otherwise, use a...
Bill Wendling [Wed, 19 Oct 2011 09:24:02 +0000 (09:24 +0000)]
Make sure we emit the 'movw' and 'movt' only if it's supported. Otherwise, use a constant pool.

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

13 years agoRemove some dead code.
Bill Wendling [Wed, 19 Oct 2011 09:04:11 +0000 (09:04 +0000)]
Remove some dead code.

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

13 years agoMake changes so that this runs on FreeBSD.
Bill Wendling [Wed, 19 Oct 2011 08:42:07 +0000 (08:42 +0000)]
Make changes so that this runs on FreeBSD.

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

13 years agoRename PEXTR to PEXT. Add intrinsics for BMI instructions.
Craig Topper [Wed, 19 Oct 2011 07:48:35 +0000 (07:48 +0000)]
Rename PEXTR to PEXT. Add intrinsics for BMI instructions.

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

13 years agoAdding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.
Joe Abbey [Wed, 19 Oct 2011 00:13:13 +0000 (00:13 +0000)]
Adding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.

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

13 years agoAdded testcase for <rdar://problem/10215997>
Lang Hames [Tue, 18 Oct 2011 23:50:52 +0000 (23:50 +0000)]
Added testcase for <rdar://problem/10215997>

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

13 years agoEmit the MOVT instruction only if the # LPads is > 64K.
Bill Wendling [Tue, 18 Oct 2011 23:19:55 +0000 (23:19 +0000)]
Emit the MOVT instruction only if the # LPads is > 64K.

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

13 years agoFor Thumb mode, we need to use a constant pool if the value is too large to be
Bill Wendling [Tue, 18 Oct 2011 23:11:05 +0000 (23:11 +0000)]
For Thumb mode, we need to use a constant pool if the value is too large to be
used with the CMP instruction.

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

13 years agoRegenerate projects/sample/configure.
Daniel Dunbar [Tue, 18 Oct 2011 23:10:58 +0000 (23:10 +0000)]
Regenerate projects/sample/configure.

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

13 years agoprojects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that...
Daniel Dunbar [Tue, 18 Oct 2011 23:10:47 +0000 (23:10 +0000)]
projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup.
 - This currently just moves over all of the behavior from LLVM. Eventually all of the configure checks that are directly needed by the LLVM build setup should probably go away, and the project should manage their own configuration checks if necessary.

 - This is the 1st half of this work, the actual Makefile.common hasn't moved over yet. I've tried to stage this in such a way that incremental builds will properly reconfigure for most active developers (the Makefiles don't handle reconfiguring in a perfectly reliable way, and I haven't found an easy way to make them do so).

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

13 years agoRevert "Turn on the vzeroupper pass by default."
Eric Christopher [Tue, 18 Oct 2011 23:10:11 +0000 (23:10 +0000)]
Revert "Turn on the vzeroupper pass by default."

This reverts commit 494f7ac3e8d2ab3d94e52317abf9c42a949fe1f3.

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

13 years agoAdd additional element-promotion tests.
Nadav Rotem [Tue, 18 Oct 2011 23:05:33 +0000 (23:05 +0000)]
Add additional element-promotion tests.

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

13 years agoARM VTBL (one register) assembly parsing and encoding.
Jim Grosbach [Tue, 18 Oct 2011 23:02:30 +0000 (23:02 +0000)]
ARM VTBL (one register) assembly parsing and encoding.

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

13 years agoUse the integer compare when the value is small enough. Use the "move into a
Bill Wendling [Tue, 18 Oct 2011 22:52:20 +0000 (22:52 +0000)]
Use the integer compare when the value is small enough. Use the "move into a
register and then compare against that" method when it's too large. We have to
move the value into the register in the "movw, movt" pair of instructions.

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

13 years agoTurn on the vzeroupper pass by default.
Eric Christopher [Tue, 18 Oct 2011 22:50:17 +0000 (22:50 +0000)]
Turn on the vzeroupper pass by default.

I'll remove/rename the option in a few days.

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

13 years agoWhitespace.
Eric Christopher [Tue, 18 Oct 2011 22:50:13 +0000 (22:50 +0000)]
Whitespace.

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

13 years agoUse the integer compare when the value is small enough. Use the "move into a
Bill Wendling [Tue, 18 Oct 2011 22:49:07 +0000 (22:49 +0000)]
Use the integer compare when the value is small enough. Use the "move into a
register and then compare against that" method when it's too large. We have to
move the value into the register in the "movw, movt" pair of instructions.

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

13 years agoMissed a spot!
Nick Lewycky [Tue, 18 Oct 2011 22:40:18 +0000 (22:40 +0000)]
Missed a spot!

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

13 years agoFix some typo/formatting issues. No functionality change.
Nick Lewycky [Tue, 18 Oct 2011 22:39:43 +0000 (22:39 +0000)]
Fix some typo/formatting issues. No functionality change.

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

13 years agoFix a bug in the legalization of vector anyext-load and trunc-store. Mem Index starts...
Nadav Rotem [Tue, 18 Oct 2011 22:32:43 +0000 (22:32 +0000)]
Fix a bug in the legalization of vector anyext-load and trunc-store. Mem Index starts with zero.

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

13 years agoTeach fast isel about vector stores, and make DoSelectCall return false when it fails...
Lang Hames [Tue, 18 Oct 2011 22:11:33 +0000 (22:11 +0000)]
Teach fast isel about vector stores, and make DoSelectCall return false when it fails to emit a store. This fixes <rdar://problem/10215997>.

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

13 years agoThe value we're comparing against may be too large for the ARM CMP
Bill Wendling [Tue, 18 Oct 2011 22:11:18 +0000 (22:11 +0000)]
The value we're comparing against may be too large for the ARM CMP
instruction. Move the value into a register and then use that for the CMP.
<rdar://problem/10305266>

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

13 years agoThe immediate may be too large for the CMP instruction. Move it into a register
Bill Wendling [Tue, 18 Oct 2011 21:55:58 +0000 (21:55 +0000)]
The immediate may be too large for the CMP instruction. Move it into a register
and use that in the CMP.
<rdar://problem/10305266>

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

13 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 21:09:01 +0000 (21:09 +0000)]
Tidy up formatting.

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

13 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 21:08:16 +0000 (21:08 +0000)]
Tidy up formatting.

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

13 years agoYet more ARM NEON assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:21:17 +0000 (20:21 +0000)]
Yet more ARM NEON assembly parsing for the lane index operand.

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

13 years agoEnable more encoded immediate tests.
Jim Grosbach [Tue, 18 Oct 2011 20:20:51 +0000 (20:20 +0000)]
Enable more encoded immediate tests.

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

13 years agoMore vmov lane testcases.
Jim Grosbach [Tue, 18 Oct 2011 20:19:48 +0000 (20:19 +0000)]
More vmov lane testcases.

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

13 years agoARM vmla/vmls assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:14:56 +0000 (20:14 +0000)]
ARM vmla/vmls assembly parsing for the lane index operand.

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

13 years agoARM vmov assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 20:10:47 +0000 (20:10 +0000)]
ARM vmov assembly parsing for the lane index operand.

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

13 years agoThe MCJITMemoryManager takes ownership of the JMM, so don't leak it.
Jim Grosbach [Tue, 18 Oct 2011 19:57:38 +0000 (19:57 +0000)]
The MCJITMemoryManager takes ownership of the JMM, so don't leak it.

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

13 years agoObject/COFF: Remove useless test.
Michael J. Spencer [Tue, 18 Oct 2011 19:51:36 +0000 (19:51 +0000)]
Object/COFF: Remove useless test.

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

13 years agollvm-objdump: Add static symbol table dumping.
Michael J. Spencer [Tue, 18 Oct 2011 19:32:17 +0000 (19:32 +0000)]
llvm-objdump: Add static symbol table dumping.

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

13 years agoObject/COFF: Change type from a struct to a uint16_t. The struct would be
Michael J. Spencer [Tue, 18 Oct 2011 19:31:59 +0000 (19:31 +0000)]
Object/COFF: Change type from a struct to a uint16_t. The struct would be
incorrect for bigendian systems.

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

13 years agobuild: Tidy up a bunch of tool Makefiles, and simplify where possible using the
Daniel Dunbar [Tue, 18 Oct 2011 19:27:24 +0000 (19:27 +0000)]
build: Tidy up a bunch of tool Makefiles, and simplify where possible using the
new all-targets pseudo-component.

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

13 years agollvm-ar: Remove local test target, this is no longer useful.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:10 +0000 (19:27 +0000)]
llvm-ar: Remove local test target, this is no longer useful.

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

13 years agollvm-config: Add an all-targets pseudo-component.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:08 +0000 (19:27 +0000)]
llvm-config: Add an all-targets pseudo-component.

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

13 years agobuild: Remove some unused code.
Daniel Dunbar [Tue, 18 Oct 2011 19:27:04 +0000 (19:27 +0000)]
build: Remove some unused code.

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

13 years agoUse ARM/t2PseudoInst class from ARM/Thumb2 special adds/subs patterns.
Andrew Trick [Tue, 18 Oct 2011 19:18:52 +0000 (19:18 +0000)]
Use ARM/t2PseudoInst class from ARM/Thumb2 special adds/subs patterns.

Clean up the patterns, fix comments, and avoid confusing both tools
and coders. Note that the special adds/subs SelectionDAG nodes no
longer have the dummy cc_out operand.

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

13 years agoUse isIntN and isUIntN to check for valid signed/unsigned numbers.
Bob Wilson [Tue, 18 Oct 2011 18:46:49 +0000 (18:46 +0000)]
Use isIntN and isUIntN to check for valid signed/unsigned numbers.

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

13 years agowhitespace
Andrew Trick [Tue, 18 Oct 2011 18:40:53 +0000 (18:40 +0000)]
whitespace

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

13 years agoA landing pad could have more than one predecessor. In that case, we want that
Bill Wendling [Tue, 18 Oct 2011 18:30:49 +0000 (18:30 +0000)]
A landing pad could have more than one predecessor. In that case, we want that
predecessor to remove the jump to it as well. Delay clearing the 'landing pad'
flag until after the jumps have been removed. (There is an implicit assumption
in several modules that an MBB which jumps to a landing pad has only two
successors.)
<rdar://problem/10304224>

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

13 years agoARM vmla/vmls assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:27:07 +0000 (18:27 +0000)]
ARM vmla/vmls assembly parsing for the lane index operand.

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

13 years agoAnother failing encoding.
Owen Anderson [Tue, 18 Oct 2011 18:23:03 +0000 (18:23 +0000)]
Another failing encoding.

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

13 years agoFix NEON mul encoding tests. Wrong file contents previously.
Jim Grosbach [Tue, 18 Oct 2011 18:14:55 +0000 (18:14 +0000)]
Fix NEON mul encoding tests. Wrong file contents previously.

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

13 years agoARM vqdmulh assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:12:09 +0000 (18:12 +0000)]
ARM vqdmulh assembly parsing for the lane index operand.

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

13 years agoRemove duplicate test.
Jim Grosbach [Tue, 18 Oct 2011 18:05:50 +0000 (18:05 +0000)]
Remove duplicate test.

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

13 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 18:05:16 +0000 (18:05 +0000)]
Tidy up formatting.

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

13 years agoARM vmul assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 18:01:52 +0000 (18:01 +0000)]
ARM vmul assembly parsing for the lane index operand.

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

13 years agoTidy up.
Jim Grosbach [Tue, 18 Oct 2011 18:01:09 +0000 (18:01 +0000)]
Tidy up.

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

13 years agoAdd a few more testcases.
Owen Anderson [Tue, 18 Oct 2011 17:57:31 +0000 (17:57 +0000)]
Add a few more testcases.

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

13 years agoFinal patch that completes old JIT support for Mips:
Bruno Cardoso Lopes [Tue, 18 Oct 2011 17:50:36 +0000 (17:50 +0000)]
Final patch that completes old JIT support for Mips:

-Fix binary codes and rename operands in .td files so that automatically
generated function MipsCodeEmitter::getBinaryCodeForInstr gives correct
encoding for instructions.
-Define new class FMem for instructions that access memory.
-Define new class FFRGPR for instructions that move data between GPR and
FPU general and control registers.
-Define custom encoder methods for memory operands, and also for size
operands of ext and ins instructions.
-Only static relocation model is currently implemented.

Patch by Sasa Stankovic

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

13 years agoAdd several FIXME cases for ARM encodings.
Owen Anderson [Tue, 18 Oct 2011 17:50:22 +0000 (17:50 +0000)]
Add several FIXME cases for ARM encodings.

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

13 years agoFix incorrect check for sign-extended constant BUILD_VECTOR.
Bob Wilson [Tue, 18 Oct 2011 17:34:51 +0000 (17:34 +0000)]
Fix incorrect check for sign-extended constant BUILD_VECTOR.
<rdar://problem/10298332>

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

13 years agoFix a DAG combiner assertion failure when constant folding BUILD_VECTORS.
Bob Wilson [Tue, 18 Oct 2011 17:34:47 +0000 (17:34 +0000)]
Fix a DAG combiner assertion failure when constant folding BUILD_VECTORS.

svn r139159 caused SelectionDAG::getConstant() to promote BUILD_VECTOR operands
with illegal types, even before type legalization.  For this testcase, that led
to one BUILD_VECTOR with i16 operands and another with promoted i32 operands,
which triggered the assertion.

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

13 years agoDon't exit just because some early commands fail. Use the -k flag when running the...
Bill Wendling [Tue, 18 Oct 2011 17:27:12 +0000 (17:27 +0000)]
Don't exit just because some early commands fail. Use the -k flag when running the checks.

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

13 years agoTests for 142365.
Jim Grosbach [Tue, 18 Oct 2011 17:23:34 +0000 (17:23 +0000)]
Tests for 142365.

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

13 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 17:22:53 +0000 (17:22 +0000)]
Tidy up formatting.

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

13 years agoARM vqdmlal assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 17:16:30 +0000 (17:16 +0000)]
ARM vqdmlal assembly parsing for the lane index operand.

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

13 years agoThumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it.
Jim Grosbach [Tue, 18 Oct 2011 17:09:35 +0000 (17:09 +0000)]
Thumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it.

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

13 years agoARM assembly parsing and encoding for VMOV.i64.
Jim Grosbach [Tue, 18 Oct 2011 16:18:11 +0000 (16:18 +0000)]
ARM assembly parsing and encoding for VMOV.i64.

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

13 years agoPTX: Fix disabling of MAD instruction selection
Justin Holewinski [Tue, 18 Oct 2011 13:39:20 +0000 (13:39 +0000)]
PTX: Fix disabling of MAD instruction selection

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

13 years agoFix a bunch of unused variable warnings when doing a release
Duncan Sands [Tue, 18 Oct 2011 12:44:00 +0000 (12:44 +0000)]
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/trunk@142350 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCoding style cleanups. No functionality change.
Bill Wendling [Tue, 18 Oct 2011 07:40:22 +0000 (07:40 +0000)]
Coding style cleanups. No functionality change.

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

13 years agoRemove NaClMode
David Meyer [Tue, 18 Oct 2011 05:29:23 +0000 (05:29 +0000)]
Remove NaClMode

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

13 years agoAdd support for dynamic stack realignment when in thumb1 mode.
Chad Rosier [Tue, 18 Oct 2011 05:28:00 +0000 (05:28 +0000)]
Add support for dynamic stack realignment when in thumb1 mode.
rdar://10288916

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

13 years agoCommit test, capitalizing store... keep it simple.
Joe Abbey [Tue, 18 Oct 2011 04:44:36 +0000 (04:44 +0000)]
Commit test, capitalizing store... keep it simple.

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

13 years agoFix comment to refer to correct instruction
Hal Finkel [Tue, 18 Oct 2011 03:51:57 +0000 (03:51 +0000)]
Fix comment to refer to correct instruction

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

13 years agoFix misc warnings. Patch by Joe Abbey.
Eli Friedman [Tue, 18 Oct 2011 03:17:34 +0000 (03:17 +0000)]
Fix misc warnings.  Patch by Joe Abbey.

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

13 years agoBacking out patch. Will refactor to remove the AsmParser dependency on Target.
Lang Hames [Tue, 18 Oct 2011 00:23:49 +0000 (00:23 +0000)]
Backing out patch. Will refactor to remove the AsmParser dependency on Target.

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

13 years agoARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i32.
Jim Grosbach [Tue, 18 Oct 2011 00:22:00 +0000 (00:22 +0000)]
ARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i32.

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

13 years agoRevert "llvm-objdump: Add static symbol table dumping."
Michael J. Spencer [Tue, 18 Oct 2011 00:17:04 +0000 (00:17 +0000)]
Revert "llvm-objdump: Add static symbol table dumping."

This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596.

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

13 years agollvm-objdump: Add static symbol table dumping.
Michael J. Spencer [Mon, 17 Oct 2011 23:55:22 +0000 (23:55 +0000)]
llvm-objdump: Add static symbol table dumping.

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

13 years agoObject: Add some types to SymbolRef::Type.
Michael J. Spencer [Mon, 17 Oct 2011 23:55:06 +0000 (23:55 +0000)]
Object: Add some types to SymbolRef::Type.

Some of these can be true at the same time and there are a lot to add,
so this should be turned into a bitfield. Some of the other accessors
should probably be folded into this.

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

13 years agoObject: Add isSymbolAbsolute and getSymbolSection.
Michael J. Spencer [Mon, 17 Oct 2011 23:54:46 +0000 (23:54 +0000)]
Object: Add isSymbolAbsolute and getSymbolSection.

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

13 years agoObject: Add isSymbolWeak.
Michael J. Spencer [Mon, 17 Oct 2011 23:54:22 +0000 (23:54 +0000)]
Object: Add isSymbolWeak.

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

13 years agoObject/COFF: Expose more data in the public API.
Michael J. Spencer [Mon, 17 Oct 2011 23:53:56 +0000 (23:53 +0000)]
Object/COFF: Expose more data in the public API.

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

13 years agoObject: Implement casting for concrete classes.
Michael J. Spencer [Mon, 17 Oct 2011 23:53:37 +0000 (23:53 +0000)]
Object: Implement casting for concrete classes.

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

13 years agoEnable a few more NEON immediate tests.
Jim Grosbach [Mon, 17 Oct 2011 23:50:19 +0000 (23:50 +0000)]
Enable a few more NEON immediate tests.

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

13 years ago80-col.
Michael J. Spencer [Mon, 17 Oct 2011 23:37:43 +0000 (23:37 +0000)]
80-col.

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

13 years agoMinor style cleanup, no functionality change.
Nick Lewycky [Mon, 17 Oct 2011 23:27:36 +0000 (23:27 +0000)]
Minor style cleanup, no functionality change.

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

13 years agoRe-applying the target data layout verification patch from r142288, plus appropriate...
Lang Hames [Mon, 17 Oct 2011 23:24:48 +0000 (23:24 +0000)]
Re-applying the target data layout verification patch from r142288, plus appropriate CMake dependencies.
Thanks to Raphael Espindola for tracking down the CMake issues.

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

13 years agoARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i16.
Jim Grosbach [Mon, 17 Oct 2011 23:09:09 +0000 (23:09 +0000)]
ARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i16.

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