Jim Grosbach [Thu, 14 Jul 2011 21:19:17 +0000 (21:19 +0000)]
ARM MCR/MCR2 assembly parsing operand constraints.
The immediate operands are restricted to 0-7. Enforce that when parsing
assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135189
91177308-0d34-0410-b5e6-
96231b3b80d8
Nicolas Geoffray [Thu, 14 Jul 2011 21:04:35 +0000 (21:04 +0000)]
After type-system-rewrite branch update the Cpp backend to not use OpaqueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135186
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 21:02:23 +0000 (21:02 +0000)]
Enable some tests we now handle correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135185
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 14 Jul 2011 20:59:42 +0000 (20:59 +0000)]
Next round of MC refactoring. This patch factor MC table instantiations, MC
registeration and creation code into XXXMCDesc libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135184
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 20:23:05 +0000 (20:23 +0000)]
simplify this logic now that GlobalAlias::isDeclaration is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135183
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 20:22:18 +0000 (20:22 +0000)]
Fix GlobalValue::isDeclaration() to always consider aliases to be definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135182
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 14 Jul 2011 20:13:52 +0000 (20:13 +0000)]
Check register class matching instead of width of type matching
when determining validity of matching constraint. Allow i1
types access to the GR8 reg class for x86.
Fixes PR10352 and rdar://
9777108
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135180
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 19:47:47 +0000 (19:47 +0000)]
Reorganize ARM assembler aliases.
Consolidate the individual declarations together for ease of reference. This
mirrors the organization in X86, as well, so is good for consistency. No
functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135179
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 14 Jul 2011 19:09:08 +0000 (19:09 +0000)]
Add LLVMConstNamedStruct to the C api to let its users create constants
of named struct types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135178
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:58:40 +0000 (18:58 +0000)]
DebugLoc's don't hide any interesting types for TypeFinder to find.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135174
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:57:51 +0000 (18:57 +0000)]
manually copy debugloc over to a new instruction in clone() instead
of calling getAllMetadata(). This is semantically identical, but doing
it this way avoids unpacking the DebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135173
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:53:50 +0000 (18:53 +0000)]
Stop the ValueMapper from calling getAllMetadata, which unpacks DebugLoc into
an MDNode. This saves a bunch of time and memory in the IR linker, e.g. when
doing LTO of files with debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135172
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Thu, 14 Jul 2011 18:50:58 +0000 (18:50 +0000)]
Add 256-bit load/store recognition and matching in several places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135171
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 14 Jul 2011 18:41:22 +0000 (18:41 +0000)]
Don't leak operands when putting them into a shift.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135169
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 18:35:38 +0000 (18:35 +0000)]
Update ARM Assembly of LDM/STM.
ldm/stm are the cannonical spellings for ldmia/stmia, so use them as such.
Update the parsing/encoding tests accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135168
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:31:43 +0000 (18:31 +0000)]
The key of a StringMap can contain nul's in it, so having first() return
const char* doesn't make sense. Have it return StringRef instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135167
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:21:58 +0000 (18:21 +0000)]
though it isn't the case here, the key of a StringMap can
conceptually have nuls in it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135165
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:12:44 +0000 (18:12 +0000)]
add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135164
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:10:41 +0000 (18:10 +0000)]
consolidate GlobalValue::isDeclaration into one
non-virtual function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135163
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 18:02:25 +0000 (18:02 +0000)]
ARM ISB assembly parsing tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135158
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 18:01:49 +0000 (18:01 +0000)]
code cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135157
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 18:00:31 +0000 (18:00 +0000)]
ARM ISB instruction assembly parsing.
The ISB instruction takes an optional operand, just like DMB/DSB. Typically
only 'sy' is meaningful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135156
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 14 Jul 2011 17:45:39 +0000 (17:45 +0000)]
Change Intrinsic::getDeclaration and friends to take an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135154
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 16:20:28 +0000 (16:20 +0000)]
add a couple more missing C api, patch by Vitaly Lugovskiy!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135151
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Thu, 14 Jul 2011 14:03:48 +0000 (14:03 +0000)]
Update XCoreRegisterInfo::eliminateFrameIndex() to handle DBG_VALUE
instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135146
91177308-0d34-0410-b5e6-
96231b3b80d8
Frits van Bommel [Thu, 14 Jul 2011 11:44:09 +0000 (11:44 +0000)]
Simplify some functions in the C API by using an ArrayRef to directly reference the array passed to them instead of copying it to a std::vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135145
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Thu, 14 Jul 2011 11:11:14 +0000 (11:11 +0000)]
[VECTOR-SELECT]
During type legalization we often use the SIGN_EXTEND_INREG SDNode.
When this SDNode is legalized during the LegalizeVector phase, it is
scalarized because non-simple types are automatically marked to be expanded.
In this patch we add support for lowering SIGN_EXTEND_INREG manually.
This fixes CodeGen/X86/vec_sext.ll when running with the '-promote-elements'
flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135144
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Thu, 14 Jul 2011 10:37:54 +0000 (10:37 +0000)]
Add assertion for the chain value type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135143
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Thu, 14 Jul 2011 09:19:05 +0000 (09:19 +0000)]
Mention all API changes I've made since 2.9 was branched.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135142
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 14 Jul 2011 06:23:09 +0000 (06:23 +0000)]
Add a testcase for r135123.
Part of rdar://
9761830
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135133
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 14 Jul 2011 05:53:17 +0000 (05:53 +0000)]
add C api for hte new type system rewrite API. Patch by Vitaly Lugovskiy!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135132
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 14 Jul 2011 05:43:07 +0000 (05:43 +0000)]
Unfortunately several files in MC are badly violating layering rule by using
TargetAsmInfo, which in turn pulls in TargetRegisterInfo, etc. :-( There are
other cases of violations, but this is probably the worst.
This patch is but one small step towards fixing this. 500 more steps to go. :-(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135131
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 14 Jul 2011 05:35:11 +0000 (05:35 +0000)]
Reapply r135121 with a fixed copy constructor.
Original commit message:
Count references to interference cache entries.
Each InterferenceCache::Cursor instance references a cache entry. A
non-zero reference count guarantees that the entry won't be reused for a
new register.
This makes it possible to have multiple live cursors examining
interference for different physregs.
The total number of live cursors into a cache must be kept below
InterferenceCache::getMaxCursors().
Code generation should be unaffected by this change, and it doesn't seem
to affect the cache replacement strategy either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135130
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Jul 2011 01:52:45 +0000 (01:52 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135127
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 14 Jul 2011 01:38:42 +0000 (01:38 +0000)]
Don't emit a bit test if there is only one case the test can yield false. A simple SETNE is sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135126
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Jul 2011 01:14:57 +0000 (01:14 +0000)]
Simplify and delay extracting DebugLoc elements, scope and InlinedAt, as much as possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135124
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 14 Jul 2011 01:12:15 +0000 (01:12 +0000)]
Add a dag combine pattern for folding C2-(A+C1) -> (C2-C1)-A
Fixes rdar://
9761830
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135123
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 14 Jul 2011 00:58:38 +0000 (00:58 +0000)]
Revert r135121 which broke a gcc-4.2 builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135122
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 14 Jul 2011 00:31:14 +0000 (00:31 +0000)]
Count references to interference cache entries.
Each InterferenceCache::Cursor instance references a cache entry. A
non-zero reference count guarantees that the entry won't be reused for a
new register.
This makes it possible to have multiple live cursors examining
interference for different physregs.
The total number of live cursors into a cache must be kept below
InterferenceCache::getMaxCursors().
Code generation should be unaffected by this change, and it doesn't seem
to affect the cache replacement strategy either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135121
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 14 Jul 2011 00:22:31 +0000 (00:22 +0000)]
Fix up assertion in r135018 so it doesn't trigger on 32-bit; when we're in 32-bit, it doesn't matter whether the operation overflows because the computed address is not wider than the immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135120
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 00:22:21 +0000 (00:22 +0000)]
ARM tests for EOR instruction parsing and encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135119
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Jul 2011 00:20:24 +0000 (00:20 +0000)]
Simplify. Compile unit check inside hasValidLocation() did not add any value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135118
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 00:19:19 +0000 (00:19 +0000)]
Remove duplicate tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135117
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 00:18:13 +0000 (00:18 +0000)]
ARM Assembler support for DSB instruction.
Add instalias for default 'sy' option. Add tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135116
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 14 Jul 2011 00:17:10 +0000 (00:17 +0000)]
Reapply r135074 and r135080 with a fix.
The cache entry referenced by the best split candidate could become
clobbered by an unsuccessful candidate.
The correct fix here is to use reference counts on the cache entries.
Coming up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135113
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 Jul 2011 00:10:26 +0000 (00:10 +0000)]
DMB instalias needs the same predicate as the instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135112
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Jul 2011 00:04:53 +0000 (00:04 +0000)]
Fix typo in DEBUG message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135111
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 14 Jul 2011 00:03:58 +0000 (00:03 +0000)]
Add DEBUG messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135110
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 23:40:38 +0000 (23:40 +0000)]
ARM Assembler support for DMB instruction.
Flesh out the options supported for the instruction. Shuffle tests a bit and
add entries for the rest of the options. Add an alias to handle the default
operand of "sy".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135109
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 23:33:10 +0000 (23:33 +0000)]
Update comments. These are for assembler, too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135107
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 13 Jul 2011 23:22:26 +0000 (23:22 +0000)]
Add a target-indepedent entry to MCInstrDesc to describe the encoded size of an opcode. Switch ARM over to using that rather than its own special MCInstrDesc bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135106
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 13 Jul 2011 23:03:31 +0000 (23:03 +0000)]
Add code to handle a "frameless" unwind stack.
The frameless unwind stack has a special encoding, the algorithm for which is in
"permuteEncode".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135103
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:59:38 +0000 (22:59 +0000)]
ARM Assembler support for DBG instruction.
Add range checking and testing for parsing and encoding of DBG instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135102
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 13 Jul 2011 22:28:55 +0000 (22:28 +0000)]
We already support 256-bit packed ADD, SUB, DIV, MUL. Add testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135099
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:26:58 +0000 (22:26 +0000)]
ARM parsing and encoding tests for CMN/CMP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135098
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Wed, 13 Jul 2011 22:25:51 +0000 (22:25 +0000)]
struct Init -> class Init
Rename struct Init to class Init for consistency and in preparation
for making Init a FoldingSetNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135097
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 13 Jul 2011 22:20:09 +0000 (22:20 +0000)]
Revert r135074 and r135080. They broke clamscan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135096
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:19:10 +0000 (22:19 +0000)]
Shuffle ARM assembly tests a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135095
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:06:11 +0000 (22:06 +0000)]
Revert 135093. Think-o.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135094
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:03:11 +0000 (22:03 +0000)]
Correct range for thumb co-processor immediate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135093
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 22:01:08 +0000 (22:01 +0000)]
Range checking for CDP[2] immediates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135092
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 13 Jul 2011 21:36:51 +0000 (21:36 +0000)]
Make X86ISD::ANDNP more general and Codegen 256-bit VANDNP. A more
general version of X86ISD::ANDNP also opened the room for a little bit
of refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135088
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 13 Jul 2011 21:36:47 +0000 (21:36 +0000)]
The target specific node PANDN name is misleading. That happens because
it's later selected to a ANDNPD/ANDNPS instruction instead of the PANDN
instruction. Rename it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135087
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 21:35:10 +0000 (21:35 +0000)]
Cleanup Thumb co-processor instructions a bit.
Combine redundant base classes and such. No indended functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135085
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 13 Jul 2011 21:29:53 +0000 (21:29 +0000)]
Make sure we don't combine a large displacement and a frame index in the same addressing mode on x86-64. It can overflow, leading to a crash/miscompile.
<rdar://problem/
9763308>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135084
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 21:17:59 +0000 (21:17 +0000)]
Parameterize away the ARM T1Cop class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135082
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 21:14:23 +0000 (21:14 +0000)]
Fix predicates for Thumb co-processor instructions.
They're all Thumb2 only, not just some of them. More refactoring cleanup
coming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135081
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 13 Jul 2011 20:49:46 +0000 (20:49 +0000)]
Only keep the global split candidates that work out.
Some pysical registers create split solutions that would spill anywhere.
They should not even be considered in future multi-way global splits.
This does not affect code generation (yet).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135080
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Wed, 13 Jul 2011 20:44:23 +0000 (20:44 +0000)]
Refactor out checking for displacements on x86-64 addressing modes. No functionality change. Refactoring in preparation for an additional safety check in FoldOffsetIntoAddress.
Part of <rdar://problem/
9763308>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135079
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 20:25:46 +0000 (20:25 +0000)]
Testcases for ARM assembly BX/BXJ instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135078
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 20:25:01 +0000 (20:25 +0000)]
Fix encoding for ARM BXJ instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135077
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 20:21:31 +0000 (20:21 +0000)]
Fix encoding of predicate bits on ARM BX_pred.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135076
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 13 Jul 2011 20:14:52 +0000 (20:14 +0000)]
Move the InterferenceCache cursor into the GlobalSplitCand struct.
This is in preparation of supporting multiple global split candidates in
a single live range split operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135074
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 20:11:04 +0000 (20:11 +0000)]
Testcases for ARM assembly BLX/BL instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135072
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 20:10:10 +0000 (20:10 +0000)]
Range checking for 16-bit immediates in ARM assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135071
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 13 Jul 2011 20:05:31 +0000 (20:05 +0000)]
Revert r135042. As Chris pointed out, it had no effect, and was based on
a complete misunderstanding of the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135070
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Jul 2011 19:54:59 +0000 (19:54 +0000)]
Fix up TargetLoweringObjectFile ctors to properly initialize fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135068
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 19:24:09 +0000 (19:24 +0000)]
Give the ARM BKPT instruction the right operand type.
The immediate is of limited range and the operand type should reflect that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135066
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Jul 2011 19:19:44 +0000 (19:19 +0000)]
Change test case, one that actually failed before my commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135064
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 19:17:36 +0000 (19:17 +0000)]
Add tests for ARM parsing of 'BKPT' instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135063
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 19:16:30 +0000 (19:16 +0000)]
Fix copy-pasto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135062
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 19:12:32 +0000 (19:12 +0000)]
Add tests for ARM parsing of 'BIC' instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135061
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 19:10:23 +0000 (19:10 +0000)]
Add some FIXMEs.
Keeping the instructions in alphabetical order, just like in the ARM ARM.
Adding FIXMEs for skipped instructions when adding tests out of order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135060
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Jul 2011 19:09:08 +0000 (19:09 +0000)]
Revert accidental commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135059
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Jul 2011 19:08:16 +0000 (19:08 +0000)]
It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is another use of sqrt. rdar://
9763193
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135058
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 18:55:14 +0000 (18:55 +0000)]
Add tests for ARM parsing of 'AND' instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135056
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 18:49:30 +0000 (18:49 +0000)]
Improve ARM assembly parsing diagnostics a bit.
Catch potential cascading errors on a malformed so_reg operand and bail after
the first error.
Add some tests for the diagnostics we do want.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135055
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 18:12:46 +0000 (18:12 +0000)]
Add tests for ARM parsing of 'ADD' instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135053
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 17:57:17 +0000 (17:57 +0000)]
Destination register operand is optional for ADC and SBC ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135052
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 17:50:29 +0000 (17:50 +0000)]
Flesh out ARM Parser support for shifted-register operands.
Now works for parsing register shifted register and register shifted
immediate arithmetic instructions, including the 'rrx' rotate with extend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135049
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 17:25:55 +0000 (17:25 +0000)]
80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135047
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 13 Jul 2011 15:34:57 +0000 (15:34 +0000)]
Update MCParsedAsmOperand debug methods.
Update the debug output interface for MCParsedAsmOperand to have a print()
method which takes an output stream argument, an << operator which invokes
the print method using the given stream, and a dump() method which prints
the operand to the dbgs() stream. This makes the interface more consistent
with the rest of LLVM, and more convenient to use at the debugger command
line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135043
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 13 Jul 2011 10:39:49 +0000 (10:39 +0000)]
Really cache function types and anonymous struct types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135042
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 13 Jul 2011 10:26:04 +0000 (10:26 +0000)]
Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135040
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 13 Jul 2011 09:15:05 +0000 (09:15 +0000)]
Add some bits that I found useful when converting InsertValueInst and
ExtractValueInst APIs to use ArrayRef: a new constructor taking a
(begin, end) range, and operators == and != for element-wise comparison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135039
91177308-0d34-0410-b5e6-
96231b3b80d8
Danil Malyshev [Wed, 13 Jul 2011 07:57:58 +0000 (07:57 +0000)]
Add to RuntimeDyld support different object formats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135037
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 13 Jul 2011 04:22:39 +0000 (04:22 +0000)]
stop leaking all named struct types with an empty name. Thanks
to Benjamin Kramer for steering me in the right direction here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135031
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 13 Jul 2011 01:33:00 +0000 (01:33 +0000)]
Add an entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135024
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Wed, 13 Jul 2011 01:15:33 +0000 (01:15 +0000)]
AVX Codegen support for 256-bit versions of vandps, vandpd, vorps, vorpd, vxorps, vxorpd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135023
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 13 Jul 2011 00:49:09 +0000 (00:49 +0000)]
Don't emit the FDE end label if the last thing emitted was a compact unwind and
not the FDE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135020
91177308-0d34-0410-b5e6-
96231b3b80d8