oota-llvm.git
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agoAdd support for a new extension to the .file directive:
Nick Lewycky [Mon, 17 Oct 2011 23:05:28 +0000 (23:05 +0000)]
Add support for a new extension to the .file directive:

  .file filenumber "directory" "filename"

This removes one join+split of the directory+filename in MC internals. Because
bitcode files have independent fields for directory and filenames in debug info,
this patch may change the .o files written by existing .bc files.

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

12 years agoAdd a few FIXME comments.
Chad Rosier [Mon, 17 Oct 2011 22:54:23 +0000 (22:54 +0000)]
Add a few FIXME comments.

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

12 years agoTeach the ARC optimizer about the !clang.arc.copy_on_escape metadata
Dan Gohman [Mon, 17 Oct 2011 22:53:25 +0000 (22:53 +0000)]
Teach the ARC optimizer about the !clang.arc.copy_on_escape metadata
tag on objc_retainBlock calls, which indicates that they may be
optimized away. rdar://10211286.

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

12 years agoTidy up.
Jim Grosbach [Mon, 17 Oct 2011 22:41:42 +0000 (22:41 +0000)]
Tidy up.

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

12 years ago142288 broke the build:
Rafael Espindola [Mon, 17 Oct 2011 22:37:51 +0000 (22:37 +0000)]
142288 broke the build:

Linking CXX executable ../../bin/llvm-as
../../lib/libLLVMAsmParser.a(LLParser.cpp.o):/home/espindola/llvm/llvm/lib/AsmParser/LLParser.cpp:function llvm::LLParser::ParseTargetDefinition(): error: undefined reference to 'llvm::TargetData::parseSpecifier(llvm::StringRef, llvm::TargetData*)'
clang-3: error: linker command failed with exit code 1 (use -v to see invocation)

Revert "Validate target data layout strings."

This reverts commit 599d2d4c25d3aee63a21d9c67a88cd43bd971b7e.

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

12 years agoUpdate DebugInfoFinder to match recent debug info encoding changes.
Devang Patel [Mon, 17 Oct 2011 22:30:34 +0000 (22:30 +0000)]
Update DebugInfoFinder to match recent debug info encoding changes.

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

12 years agoNow Igor, throw the switch...give my creation life!
Bill Wendling [Mon, 17 Oct 2011 22:26:23 +0000 (22:26 +0000)]
Now Igor, throw the switch...give my creation life!

Use the custom inserter for the ARM setjmp intrinsics. Instead of creating the
SjLj dispatch table in IR, where it frequently violates serveral assumptions --
in particular assumptions made by the landingpad instruction about what can
branch to a landing pad and what cannot. Performing this in the back-end allows
us to violate these assumptions without the IR getting angry at us.

It also allows us to perform a small optimization. We can shove the address of
the dispatch's basic block into the function context and not have to add code
around the setjmp to check for the return value and jump to the dispatch.

Neat, huh?
<rdar://problem/10116753>

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

12 years agoARM NEON "vmov.i8" immediate assembly parsing and encoding.
Jim Grosbach [Mon, 17 Oct 2011 22:26:03 +0000 (22:26 +0000)]
ARM NEON "vmov.i8" immediate assembly parsing and encoding.

NEON immediates are "interesting". Start of the work to handle parsing them
in an 'as' compatible manner. Getting the matcher to play nicely with
these and the floating point immediates from VFP is an extra fun wrinkle.

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

12 years agoValidate target data layout strings.
Lang Hames [Mon, 17 Oct 2011 22:05:34 +0000 (22:05 +0000)]
Validate target data layout strings.
Invalid strings in asm files will result in parse errors. Invalid string literals passed to TargetData constructors will result in an assertion.

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

12 years agoWhen deleting a phi cycle after looking through copies, constrain the register
Cameron Zwarich [Mon, 17 Oct 2011 21:54:46 +0000 (21:54 +0000)]
When deleting a phi cycle after looking through copies, constrain the register
to match its final use.

With this change, all of test-suite compiles for Thumb2 with -verify-coalescing
enabled.

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

12 years agoFixed quoting on default data layout option.
Lang Hames [Mon, 17 Oct 2011 21:54:43 +0000 (21:54 +0000)]
Fixed quoting on default data layout option.

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

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