oota-llvm.git
12 years agoChange:
Richard Trieu [Wed, 21 Sep 2011 03:09:09 +0000 (03:09 +0000)]
Change:

  assert(!"error message");

To:

  assert(0 && "error message");

which is more consistant across the code base.

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

12 years agoAdd a base class for Mips TargetMachines and add Mips64 TargetMachines.
Akira Hatanaka [Wed, 21 Sep 2011 03:00:58 +0000 (03:00 +0000)]
Add a base class for Mips TargetMachines and add Mips64 TargetMachines.

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

12 years agoSet ABI if it hasn't been set on the command line.
Akira Hatanaka [Wed, 21 Sep 2011 02:45:29 +0000 (02:45 +0000)]
Set ABI if it hasn't been set on the command line.
Check if architecture & ABI combination is valid.

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

12 years agoFix typo.
Akira Hatanaka [Wed, 21 Sep 2011 02:24:25 +0000 (02:24 +0000)]
Fix typo.

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

12 years agoLower ARM adds/subs to add/sub after adding optional CPSR operand.
Andrew Trick [Wed, 21 Sep 2011 02:20:46 +0000 (02:20 +0000)]
Lower ARM adds/subs to add/sub after adding optional CPSR operand.

This is still a hack until we can teach tblgen to generate the
optional CPSR operand rather than an implicit CPSR def. But the
strangeness is now limited to the selection DAG. ADD/SUB MI's no
longer have implicit CPSR defs, nor do we allow flag setting variants
of these opcodes in machine code. There are several corner cases to
consider, and getting one wrong would previously lead to nasty
miscompilation. It's not the first time I've debugged one, so this
time I added enough verification to ensure it won't happen again.

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

12 years agowhitespace
Andrew Trick [Wed, 21 Sep 2011 02:17:37 +0000 (02:17 +0000)]
whitespace

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

12 years agollvm-objdump: Output line info next to the disassembly if available.
Benjamin Kramer [Wed, 21 Sep 2011 01:13:19 +0000 (01:13 +0000)]
llvm-objdump: Output line info next to the disassembly if available.

MachO-only at the moment, sorry.

Usage:
$ llvm-objdump -d -m -g -dsym=a.out.dSYM/Contents/Resources/DWARF/a.out a.out
_main:
100000e90: 55 pushq %rbp ## test.c:11:3


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

12 years agoDebugInfo: Add equality operators and default constructor to DILineInfo.
Benjamin Kramer [Wed, 21 Sep 2011 01:13:16 +0000 (01:13 +0000)]
DebugInfo: Add equality operators and default constructor to DILineInfo.

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

12 years agoRemove the rest of the compiler checking from the top level configure
Eric Christopher [Wed, 21 Sep 2011 00:53:42 +0000 (00:53 +0000)]
Remove the rest of the compiler checking from the top level configure
script. Only the testsuite project needs to know this information.

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

12 years agoIn the disassembler C API, be careful not to confuse the comment streamer that the...
Owen Anderson [Wed, 21 Sep 2011 00:25:23 +0000 (00:25 +0000)]
In the disassembler C API, be careful not to confuse the comment streamer that the disassembler outputs annotations on with the streamer that the InstPrinter will print them on.

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

12 years agoRemove llvm-gcc and various compiler handling from llvm. It's not needed
Eric Christopher [Tue, 20 Sep 2011 23:58:15 +0000 (23:58 +0000)]
Remove llvm-gcc and various compiler handling from llvm. It's not needed
here anymore and has been migrated to the test-suite project.

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

12 years agoChange the names of functions isMips* to hasMips*.
Akira Hatanaka [Tue, 20 Sep 2011 23:53:09 +0000 (23:53 +0000)]
Change the names of functions isMips* to hasMips*.

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

12 years agoThis test is completely invalid with the modern EH model. Delete.
Bill Wendling [Tue, 20 Sep 2011 23:52:09 +0000 (23:52 +0000)]
This test is completely invalid with the modern EH model. Delete.

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

12 years agoMake sure IPSCCP never marks a tracked call as overdefined in SCCPSolver::ResolvedUnd...
Eli Friedman [Tue, 20 Sep 2011 23:28:51 +0000 (23:28 +0000)]
Make sure IPSCCP never marks a tracked call as overdefined in SCCPSolver::ResolvedUndefsIn.  If we do, we can end up in a situation where a function is resolved to return a constant, but the caller is marked overdefined, which confuses the code later.

<rdar://problem/9956541> (again).

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

12 years agoAdd a DAGCombine for subvector extracts to remove useless chains of
Bruno Cardoso Lopes [Tue, 20 Sep 2011 23:19:33 +0000 (23:19 +0000)]
Add a DAGCombine for subvector extracts to remove useless chains of
subvector inserts and extracts. Initial patch by Rackover, Zvi with
some tweak done by me.

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

12 years agoRevert r140097, working on a better approach
Bruno Cardoso Lopes [Tue, 20 Sep 2011 23:19:29 +0000 (23:19 +0000)]
Revert r140097, working on a better approach

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

12 years agolib/Linker: add support of deps which does not end with ".so".
Ivan Krasin [Tue, 20 Sep 2011 22:52:35 +0000 (22:52 +0000)]
lib/Linker: add support of deps which does not end with ".so".
It happens (for example) when you want to have a dependency on the .so
with the specific version, like liblzma.so.1.0.0 or
libcrypto.so.0.9.8.

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

12 years agoSimplify max/minp[s|d] dagcombine matching
Bruno Cardoso Lopes [Tue, 20 Sep 2011 22:34:45 +0000 (22:34 +0000)]
Simplify max/minp[s|d] dagcombine matching

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

12 years agoUpdate this test to the new EH model.
Bill Wendling [Tue, 20 Sep 2011 22:29:43 +0000 (22:29 +0000)]
Update this test to the new EH model.

Though I think it may be obsolete with the loop extract changes. And I couldn't
get the old version of LLVM to compile so that I could reduce this testcase.

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

12 years agoRelax this condition.
Bill Wendling [Tue, 20 Sep 2011 22:28:17 +0000 (22:28 +0000)]
Relax this condition.

Some passes require breaking critical edges before they're called. Don't
segfault because of that.

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

12 years agoPlace the check for an exit landing pad where it will be run on both code paths throu...
Bill Wendling [Tue, 20 Sep 2011 22:27:16 +0000 (22:27 +0000)]
Place the check for an exit landing pad where it will be run on both code paths through the if-then-else.

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

12 years agoFix typos.
Eric Christopher [Tue, 20 Sep 2011 22:26:35 +0000 (22:26 +0000)]
Fix typos.

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

12 years agoOmit extracting a loop if one of the exits is a landing pad.
Bill Wendling [Tue, 20 Sep 2011 22:23:09 +0000 (22:23 +0000)]
Omit extracting a loop if one of the exits is a landing pad.

The landing pad must accompany the invoke when it's extracted. However, if it
does, then the loop isn't properly extracted. I.e., the resulting extraction has
a loop in it. The extracted function is then extracted, etc. resulting in an
infinite loop.

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

12 years agoRemove the hack to check UNAME_RELEASE when identifying the Darwin version.
Bob Wilson [Tue, 20 Sep 2011 22:05:56 +0000 (22:05 +0000)]
Remove the hack to check UNAME_RELEASE when identifying the Darwin version.

This was only needed to locate llvm-gcc's installation directory when clang
falls back to run llvm-gcc for i386 kexts.  As of clang svn r140187, we're
now just searching paths with several different Darwin versions on either
side of the current version, so this is no longer needed.

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

12 years agoTidy up a bit more, fix tab and remove trailing whitespaces
Bruno Cardoso Lopes [Tue, 20 Sep 2011 21:45:26 +0000 (21:45 +0000)]
Tidy up a bit more, fix tab and remove trailing whitespaces

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

12 years agoThe wrong relocation was being emitted for several SSSE3 instructions.
Bruno Cardoso Lopes [Tue, 20 Sep 2011 21:39:21 +0000 (21:39 +0000)]
The wrong relocation was being emitted for several SSSE3 instructions.
This fixes PR10963. Thanks to Benjamin for finding the wrong tablegen
declaration.

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

12 years agoTidy up code!
Bruno Cardoso Lopes [Tue, 20 Sep 2011 21:39:06 +0000 (21:39 +0000)]
Tidy up code!

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

12 years agoFix a bug introduced during refactoring a couple of months ago. Cortex-M3 does not...
Evan Cheng [Tue, 20 Sep 2011 21:38:18 +0000 (21:38 +0000)]
Fix a bug introduced during refactoring a couple of months ago. Cortex-M3 does not support Thumb2 dsp instructions. rdar://10152911.

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

12 years agoInitial Mips64 support. Patch by Liu with some modifications.
Akira Hatanaka [Tue, 20 Sep 2011 20:28:08 +0000 (20:28 +0000)]
Initial Mips64 support. Patch by Liu with some modifications.

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

12 years agoUpdate to new EH model.
Bill Wendling [Tue, 20 Sep 2011 20:21:16 +0000 (20:21 +0000)]
Update to new EH model.

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

12 years agoCheck the terminator, not the basic block.
Bill Wendling [Tue, 20 Sep 2011 20:20:50 +0000 (20:20 +0000)]
Check the terminator, not the basic block.

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

12 years agoWhen extracting a basic block that ends in an 'invoke' instruction, we need to
Bill Wendling [Tue, 20 Sep 2011 19:10:24 +0000 (19:10 +0000)]
When extracting a basic block that ends in an 'invoke' instruction, we need to
extract its associated landing pad block as well. However, that landing pad
block may have more than one predecessor. So split the landing pad block so that
individual landing pads have only one predecessor.

This type of transformation may produce a false positive with bugpoint.

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

12 years agoUse ArrayRef instead of an explicit 'const std::vector &'.
Bill Wendling [Tue, 20 Sep 2011 19:05:04 +0000 (19:05 +0000)]
Use ArrayRef instead of an explicit 'const std::vector &'.

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

12 years agoIf simple ownership works then friendship is not required.
Devang Patel [Tue, 20 Sep 2011 18:48:56 +0000 (18:48 +0000)]
If simple ownership works then friendship is not required.

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

12 years agoUse ArrayRef instead of 'const std::vector' to pass around the list of basic blocks...
Bill Wendling [Tue, 20 Sep 2011 18:42:07 +0000 (18:42 +0000)]
Use ArrayRef instead of 'const std::vector' to pass around the list of basic blocks to extract.

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

12 years agoUpdate GCOVLines to provide interfaces to write line table and calculate complete...
Devang Patel [Tue, 20 Sep 2011 18:35:00 +0000 (18:35 +0000)]
Update GCOVLines to provide interfaces to write line table and calculate complete length.

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

12 years agoU is good enough
Douglas Gregor [Tue, 20 Sep 2011 18:33:29 +0000 (18:33 +0000)]
U is good enough

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

12 years agoFix comments.
Bill Wendling [Tue, 20 Sep 2011 18:24:46 +0000 (18:24 +0000)]
Fix comments.

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

12 years agoRemove mention of llvm-gcc and llvm-g++. -Ministry of Truth
Bill Wendling [Tue, 20 Sep 2011 18:24:04 +0000 (18:24 +0000)]
Remove mention of llvm-gcc and llvm-g++. -Ministry of Truth

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

12 years agoRestore hasPostISelHook tblgen flag.
Andrew Trick [Tue, 20 Sep 2011 18:22:31 +0000 (18:22 +0000)]
Restore hasPostISelHook tblgen flag.

No functionality change. The hook makes it explicit which patterns
require "special" handling. i.e. it self-documents tblgen
deficiencies. I plan to add verification in ExpandISelPseudos and
Thumb2SizeReduce to catch any missing hasPostISelHooks. Otherwise it's
too fragile.

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

12 years agoEliminate sign-comparison warnings in APInt
Douglas Gregor [Tue, 20 Sep 2011 18:11:52 +0000 (18:11 +0000)]
Eliminate sign-comparison warnings in APInt

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

12 years agoAdd mips64 & mips64el to Triple. Patch by Liu with modifications.
Akira Hatanaka [Tue, 20 Sep 2011 18:09:37 +0000 (18:09 +0000)]
Add mips64 & mips64el to Triple. Patch by Liu with modifications.

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

12 years agoUpdate comment.
Devang Patel [Tue, 20 Sep 2011 18:05:45 +0000 (18:05 +0000)]
Update comment.

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

12 years agoUse StringRef instead of std::string.
Devang Patel [Tue, 20 Sep 2011 17:55:19 +0000 (17:55 +0000)]
Use StringRef instead of std::string.

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

12 years agollvm-objdump: factor code better, add comments.
Benjamin Kramer [Tue, 20 Sep 2011 17:53:01 +0000 (17:53 +0000)]
llvm-objdump: factor code better, add comments.

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

12 years agoPort over more Thumb2 encoding tests to decoding tests.
Owen Anderson [Tue, 20 Sep 2011 17:44:48 +0000 (17:44 +0000)]
Port over more Thumb2 encoding tests to decoding tests.

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

12 years agoEliminate unnecessary copy of FileName from GCOVLines.
Devang Patel [Tue, 20 Sep 2011 17:43:14 +0000 (17:43 +0000)]
Eliminate unnecessary copy of FileName from GCOVLines.
GCOVLines is always accessed through a StringMap where the key is FileName.

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

12 years agoThere is no need to write a local utility routine to find subprogram info if the...
Devang Patel [Tue, 20 Sep 2011 15:57:19 +0000 (15:57 +0000)]
There is no need to write a local utility routine to find subprogram info if the utility routine is already available in DebugInfo.

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

12 years agotest/CodeGen/X86/avx-minmax.ll: Unbreak Win32.
NAKAMURA Takumi [Tue, 20 Sep 2011 14:11:35 +0000 (14:11 +0000)]
test/CodeGen/X86/avx-minmax.ll: Unbreak Win32.

On Windows x64, 128-bit arguments are not passed by reg but by indirect. eg.

maxpd:
        vmovapd (%rcx), %xmm0
        vmaxpd  (%rdx), %xmm0, %xmm0

FIXME: I don't care YMM on x64 for now.

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

12 years agoExtend changes from r139986 to produce 256-bit AVX minps/minpd/maxps/maxpd.
Craig Topper [Tue, 20 Sep 2011 07:38:59 +0000 (07:38 +0000)]
Extend changes from r139986 to produce 256-bit AVX minps/minpd/maxps/maxpd.

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

12 years agoinclude/llvm/Config/llvm-config.h.in: Add the entry LLVM_PATH_XDOT_PY, for consistenc...
NAKAMURA Takumi [Tue, 20 Sep 2011 03:54:11 +0000 (03:54 +0000)]
include/llvm/Config/llvm-config.h.in: Add the entry LLVM_PATH_XDOT_PY, for consistency against llvm-config.h.cmake.

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

12 years agoinclude/llvm/Config: Reorder LLVM_HAS_ATOMICS along config.h.in for consistency.
NAKAMURA Takumi [Tue, 20 Sep 2011 03:54:05 +0000 (03:54 +0000)]
include/llvm/Config: Reorder LLVM_HAS_ATOMICS along config.h.in for consistency.

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

12 years agoinclude/llvm/Config/config.h.cmake: Unbreak CMake build to tweak LLVM_HAS_ATOMICS.
NAKAMURA Takumi [Tue, 20 Sep 2011 03:53:57 +0000 (03:53 +0000)]
include/llvm/Config/config.h.cmake: Unbreak CMake build to tweak LLVM_HAS_ATOMICS.

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

12 years agoARM isel bug fix for adds/subs operands.
Andrew Trick [Tue, 20 Sep 2011 03:17:40 +0000 (03:17 +0000)]
ARM isel bug fix for adds/subs operands.

Modified ARMISelLowering::AdjustInstrPostInstrSelection to handle the
full gamut of CPSR defs/uses including instructins whose "optional"
cc_out operand is not really optional. This allowed removal of the
hasPostISelHook to simplify the .td files and make the implementation
more robust.
Fixes rdar://10137436: sqlite3 miscompile

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

12 years agowhitespace
Andrew Trick [Tue, 20 Sep 2011 03:06:13 +0000 (03:06 +0000)]
whitespace

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

12 years agoRemove empty directories.
Benjamin Kramer [Tue, 20 Sep 2011 02:46:54 +0000 (02:46 +0000)]
Remove empty directories.

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

12 years agoRemove some missed references to dead intrinsics.
Bill Wendling [Tue, 20 Sep 2011 01:14:54 +0000 (01:14 +0000)]
Remove some missed references to dead intrinsics.

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

12 years agoUpdate the EH doc to reflect the new EH model.
Bill Wendling [Tue, 20 Sep 2011 01:08:53 +0000 (01:08 +0000)]
Update the EH doc to reflect the new EH model.

This basically involved removing references to llvm.eh.exception,
llvm.eh.selector, and llvm.eh.resume and replacing them with references to the
landingpad and resume instructions.

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

12 years agoNuke obsolete test file.
Jim Grosbach [Tue, 20 Sep 2011 01:03:51 +0000 (01:03 +0000)]
Nuke obsolete test file.

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

12 years agoThumb2 assembly parsing and encoding for WFE/WFI/YIELD.
Jim Grosbach [Tue, 20 Sep 2011 00:48:56 +0000 (00:48 +0000)]
Thumb2 assembly parsing and encoding for WFE/WFI/YIELD.

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

12 years agoThumb2 assembly parsing and encoding for UXTAB/UXTAB16/UXTH/UXTB/UXTB16/UXTH.
Jim Grosbach [Tue, 20 Sep 2011 00:46:54 +0000 (00:46 +0000)]
Thumb2 assembly parsing and encoding for UXTAB/UXTAB16/UXTH/UXTB/UXTB16/UXTH.

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

12 years agoMore llvmc bits. Spotted by Benjamin on IRC.
Eric Christopher [Tue, 20 Sep 2011 00:42:28 +0000 (00:42 +0000)]
More llvmc bits. Spotted by Benjamin on IRC.

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

12 years agoRemove from cmake too.
Eric Christopher [Tue, 20 Sep 2011 00:38:04 +0000 (00:38 +0000)]
Remove from cmake too.

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

12 years agoRemove more of llvmc and dependencies.
Eric Christopher [Tue, 20 Sep 2011 00:34:27 +0000 (00:34 +0000)]
Remove more of llvmc and dependencies.

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

12 years agoThumb2 assembly parsing and encoding for USUB8/USUB16.
Jim Grosbach [Tue, 20 Sep 2011 00:31:57 +0000 (00:31 +0000)]
Thumb2 assembly parsing and encoding for USUB8/USUB16.

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

12 years agoThumb2 assembly parsing and encoding for USAX.
Jim Grosbach [Tue, 20 Sep 2011 00:30:45 +0000 (00:30 +0000)]
Thumb2 assembly parsing and encoding for USAX.

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

12 years agoThumb2 assembly parsing and encoding for USAT16.
Jim Grosbach [Tue, 20 Sep 2011 00:28:25 +0000 (00:28 +0000)]
Thumb2 assembly parsing and encoding for USAT16.

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

12 years agoThumb2 assembly parsing and encoding for USAT.
Jim Grosbach [Tue, 20 Sep 2011 00:27:36 +0000 (00:27 +0000)]
Thumb2 assembly parsing and encoding for USAT.

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

12 years agoRemove incorrect comments. These are not disassmebly only patterns.
Jim Grosbach [Tue, 20 Sep 2011 00:26:34 +0000 (00:26 +0000)]
Remove incorrect comments. These are not disassmebly only patterns.

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

12 years agoTidy up.
Jim Grosbach [Tue, 20 Sep 2011 00:24:37 +0000 (00:24 +0000)]
Tidy up.

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

12 years agoThumb2 assembly parsing and encoding for UQSAD8/USADA8.
Jim Grosbach [Tue, 20 Sep 2011 00:23:51 +0000 (00:23 +0000)]
Thumb2 assembly parsing and encoding for UQSAD8/USADA8.

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

12 years agoThumb2 assembly parsing and encoding for UQSUB16/UQSUB8.
Jim Grosbach [Tue, 20 Sep 2011 00:20:44 +0000 (00:20 +0000)]
Thumb2 assembly parsing and encoding for UQSUB16/UQSUB8.

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

12 years agoThumb2 assembly parsing and encoding for UQASX/UQSAX.
Jim Grosbach [Tue, 20 Sep 2011 00:18:52 +0000 (00:18 +0000)]
Thumb2 assembly parsing and encoding for UQASX/UQSAX.

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

12 years agoThumb2 assembly parsing and encoding for UQADD16/UQADD8.
Jim Grosbach [Tue, 20 Sep 2011 00:15:03 +0000 (00:15 +0000)]
Thumb2 assembly parsing and encoding for UQADD16/UQADD8.

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

12 years agoRemove llvmc from CMake as well.
Eric Christopher [Tue, 20 Sep 2011 00:13:13 +0000 (00:13 +0000)]
Remove llvmc from CMake as well.

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

12 years agoThumb1 convenience aliases for disassembler round-trip testing. CPS instruction.
Jim Grosbach [Tue, 20 Sep 2011 00:10:37 +0000 (00:10 +0000)]
Thumb1 convenience aliases for disassembler round-trip testing. CPS instruction.

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

12 years agoAttempt to fix -mtriple=i686-{cygwin|mingw|win32} regressions. Nakamura,
Bruno Cardoso Lopes [Tue, 20 Sep 2011 00:08:12 +0000 (00:08 +0000)]
Attempt to fix -mtriple=i686-{cygwin|mingw|win32} regressions. Nakamura,
if this doesn't work, please provide more details.

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

12 years agoThumb CPS definition is not disassembler only.
Jim Grosbach [Tue, 20 Sep 2011 00:00:06 +0000 (00:00 +0000)]
Thumb CPS definition is not disassembler only.

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

12 years agoThumb2 range check on CPS mode immediate.
Jim Grosbach [Mon, 19 Sep 2011 23:58:31 +0000 (23:58 +0000)]
Thumb2 range check on CPS mode immediate.

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

12 years agotMOVSr is not allowed in an IT block either.
Owen Anderson [Mon, 19 Sep 2011 23:57:20 +0000 (23:57 +0000)]
tMOVSr is not allowed in an IT block either.

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

12 years agoUpdate to the new EH syntax.
Bill Wendling [Mon, 19 Sep 2011 23:50:34 +0000 (23:50 +0000)]
Update to the new EH syntax.

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

12 years agoCPS instructions are UNPREDICTABLE inside IT blocks.
Owen Anderson [Mon, 19 Sep 2011 23:47:10 +0000 (23:47 +0000)]
CPS instructions are UNPREDICTABLE inside IT blocks.

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

12 years agoDramatically reduce this testcase.
Bill Wendling [Mon, 19 Sep 2011 23:47:06 +0000 (23:47 +0000)]
Dramatically reduce this testcase.

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

12 years agoTidy up comments.
Jim Grosbach [Mon, 19 Sep 2011 23:38:34 +0000 (23:38 +0000)]
Tidy up comments.

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

12 years agoFix PR10949. Fix the encoding of VMOVPQIto64rr.
Bruno Cardoso Lopes [Mon, 19 Sep 2011 23:36:59 +0000 (23:36 +0000)]
Fix PR10949. Fix the encoding of VMOVPQIto64rr.

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

12 years agoBased on the small opt Zvi's patch was trying to achieve, eliminate
Bruno Cardoso Lopes [Mon, 19 Sep 2011 23:36:50 +0000 (23:36 +0000)]
Based on the small opt Zvi's patch was trying to achieve, eliminate
128-bit undef subvector insertion into a 256-bit vector

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

12 years agoTidy up a bit.
Jim Grosbach [Mon, 19 Sep 2011 23:34:18 +0000 (23:34 +0000)]
Tidy up a bit.

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

12 years agoThumb2 assembly parsing and encoding for UMAAL/UMLAL/UMULL.
Jim Grosbach [Mon, 19 Sep 2011 23:31:02 +0000 (23:31 +0000)]
Thumb2 assembly parsing and encoding for UMAAL/UMLAL/UMULL.

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

12 years agoRevert r140083 and r140084 until buildbots can be fixed.
Bill Wendling [Mon, 19 Sep 2011 23:30:41 +0000 (23:30 +0000)]
Revert r140083 and r140084 until buildbots can be fixed.

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

12 years agoRemove llvmc and assorted build machinery for it.
Eric Christopher [Mon, 19 Sep 2011 23:22:41 +0000 (23:22 +0000)]
Remove llvmc and assorted build machinery for it.

The problems that llvmc solved have largely been subsumed with the
tasks that the clang driver can accomplish, but llvmc lacks flexibility
and depends too heavily on the EOL'd llvm-gcc.

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

12 years agoThumb2 assembly parsing and encoding for UHSUB16/UHSUB8.
Jim Grosbach [Mon, 19 Sep 2011 23:15:36 +0000 (23:15 +0000)]
Thumb2 assembly parsing and encoding for UHSUB16/UHSUB8.

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

12 years agoThumb2 assembly parsing and encoding for UHASX/UHSAX.
Jim Grosbach [Mon, 19 Sep 2011 23:13:25 +0000 (23:13 +0000)]
Thumb2 assembly parsing and encoding for UHASX/UHSAX.

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

12 years agoThumb2 assembly parsing and encoding for UHADD16/UHADD8.
Jim Grosbach [Mon, 19 Sep 2011 23:08:24 +0000 (23:08 +0000)]
Thumb2 assembly parsing and encoding for UHADD16/UHADD8.

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

12 years agoThumb2 assembly parsing and encoding for UBFX.
Jim Grosbach [Mon, 19 Sep 2011 23:06:38 +0000 (23:06 +0000)]
Thumb2 assembly parsing and encoding for UBFX.

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

12 years agoThumb2 assembly parsing and encoding for UASX.
Jim Grosbach [Mon, 19 Sep 2011 23:05:22 +0000 (23:05 +0000)]
Thumb2 assembly parsing and encoding for UASX.

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

12 years agoUpdate test to remove the 'unwind' instruction.
Bill Wendling [Mon, 19 Sep 2011 23:01:11 +0000 (23:01 +0000)]
Update test to remove the 'unwind' instruction.

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

12 years agoIf we are extracting a basic block that ends in an invoke call, we must also
Bill Wendling [Mon, 19 Sep 2011 23:00:52 +0000 (23:00 +0000)]
If we are extracting a basic block that ends in an invoke call, we must also
extract the landing pad block. Otherwise, there will be a situation where the
invoke's unwind edge lands on a non-landing pad.

We also forbid the user from extracting the landing pad block by itself. Again,
this is not a valid transformation.

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

12 years agoFix copy/past-o. Gotta remember that 'modify' step...
Jim Grosbach [Mon, 19 Sep 2011 22:53:00 +0000 (22:53 +0000)]
Fix copy/past-o. Gotta remember that 'modify' step...

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

12 years agoThumb2 assembly parsing and encoding for UADD16/UADD8.
Jim Grosbach [Mon, 19 Sep 2011 22:52:27 +0000 (22:52 +0000)]
Thumb2 assembly parsing and encoding for UADD16/UADD8.

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

12 years agoThumb2 assembly parsing and encoding for TST.
Jim Grosbach [Mon, 19 Sep 2011 22:46:06 +0000 (22:46 +0000)]
Thumb2 assembly parsing and encoding for TST.

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