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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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