Chris Lattner [Tue, 2 Nov 2010 21:49:44 +0000 (21:49 +0000)]
merge two large parallel loops in EmitConvertToMCInst, no change
in the generated .inc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118083
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 21:47:03 +0000 (21:47 +0000)]
Add correct encodings for basic variants for vst3 and vst4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118082
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 2 Nov 2010 21:38:23 +0000 (21:38 +0000)]
Do relaxations with FT_Org fragments. Fixes the FIXME:
// FIXME: We should compute this sooner, we don't want to recurse here, and
// we would like to be more functional.
In MCAssembler::ComputeFragmentSize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118080
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 2 Nov 2010 21:34:19 +0000 (21:34 +0000)]
Removed obsolete section about VC++ project files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118072
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 2 Nov 2010 21:18:25 +0000 (21:18 +0000)]
Add NEON VST1-lane instructions. Partial fix for Radar
8599955.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118069
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 21:16:58 +0000 (21:16 +0000)]
Add correct encodings for the basic variants for vst2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118068
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 21:06:06 +0000 (21:06 +0000)]
Add correct encodings for the basic form of vst1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118067
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 2 Nov 2010 20:52:47 +0000 (20:52 +0000)]
Micro-optimize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118058
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 2 Nov 2010 20:49:48 +0000 (20:49 +0000)]
Don't append a dot on platforms which don't use exe suffixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118057
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:47:41 +0000 (20:47 +0000)]
llvmc: Fix tool finding logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118056
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 20:47:39 +0000 (20:47 +0000)]
Factor out a common encoding class for loads and stores with a lane parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118055
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 2 Nov 2010 20:41:13 +0000 (20:41 +0000)]
Fix DIType verifier. The element 3 is DIFile now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118054
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 20:40:59 +0000 (20:40 +0000)]
Add correct encodings for the rest of the vld instructions that we generate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118053
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:59 +0000 (20:32 +0000)]
GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.
This allows using GetDLLSuffix() with appendSuffix().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118051
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:52 +0000 (20:32 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118050
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:46 +0000 (20:32 +0000)]
FindExecutable: remove the executability check.
This makes the behaviour of FindExecutable more consistent across platforms, but
I'm not very happy with the name...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118049
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:39 +0000 (20:32 +0000)]
Make FindProgramByName return paths with slashes unmodified on Windows.
This makes its behaviour more consistent across platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118048
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:31 +0000 (20:32 +0000)]
80-col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118045
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 2 Nov 2010 20:32:26 +0000 (20:32 +0000)]
Path: Add GetEXESuffix() to complement GetDLLSuffix().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118042
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 2 Nov 2010 18:16:45 +0000 (18:16 +0000)]
Fixes <rdar://problem/
8612856>: During postRAsched, the antidependence
breaker needs to check all definitions of the antidepenent register to
avoid multiple defs of the same new register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118032
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Nov 2010 18:10:06 +0000 (18:10 +0000)]
a bunch of random cleanup, move a helper to CGT where it belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118031
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 2 Nov 2010 17:59:27 +0000 (17:59 +0000)]
Apply patch for use-after-free in InlineAsm constant handling,
PR 8522 /
8616046. Test reduction, analysis and patch by Tim Deegan!
(However, review by someone who understands the classes here better
is welcome. John Krum will return!)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118030
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 2 Nov 2010 17:59:04 +0000 (17:59 +0000)]
Sort bit assignments. Cosmetic change only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118029
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 2 Nov 2010 17:37:00 +0000 (17:37 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118027
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 2 Nov 2010 17:35:25 +0000 (17:35 +0000)]
Revert r114340 (improvements in Darwin function prologue/epilogue), as it broke
assumptions about stack layout. Specifically, LR must be saved next to FP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118026
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Nov 2010 17:34:28 +0000 (17:34 +0000)]
add and update comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118025
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Nov 2010 17:30:52 +0000 (17:30 +0000)]
refactor/cleanup MatchableInfo by eliminating the Tokens array,
merging it into a Token field in Operand, and moving the first
token to an explicit mnemonic field. These were parallel
arrays before (except for the mnemonic) which kept confusing me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118024
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 2 Nov 2010 17:22:24 +0000 (17:22 +0000)]
Add support for expressions in .sleb/.uleb directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118023
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 2 Nov 2010 17:19:03 +0000 (17:19 +0000)]
If value map does not have register for an argument then try to find frame index before giving up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118022
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 2 Nov 2010 17:01:30 +0000 (17:01 +0000)]
Use frameindex, if available, as a last resort to emit debug info for a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118020
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 2 Nov 2010 15:12:48 +0000 (15:12 +0000)]
Fix comment typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118016
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 2 Nov 2010 13:57:09 +0000 (13:57 +0000)]
Add some comments explaining what MVT and EVT are, and how they differ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118014
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 2 Nov 2010 13:43:07 +0000 (13:43 +0000)]
Remove trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118013
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 01:24:55 +0000 (01:24 +0000)]
Add correct NEON encodings for vld2, vld3, and vld4 basic variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117997
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 2 Nov 2010 01:24:49 +0000 (01:24 +0000)]
Remove an assert - it's possible to be hit, and we just want to avoid
handling those cases for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117996
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 2 Nov 2010 01:22:45 +0000 (01:22 +0000)]
Whitespeace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117995
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 2 Nov 2010 01:21:28 +0000 (01:21 +0000)]
No really, no thumb1 for arm fast isel. Also add an informative comment as
to what someone would need to do to support thumb1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117994
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Nov 2010 01:03:43 +0000 (01:03 +0000)]
rename operands -> asmoperands to be more descriptive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117993
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 2 Nov 2010 00:58:37 +0000 (00:58 +0000)]
Don't try to split weird critical edges that really aren't:
BB#1: derived from LLVM BB %bb.nph28
Live Ins: %AL
Predecessors according to CFG: BB#0
TEST8rr %reg16384<kill>, %reg16384, %EFLAGS<imp-def>; GR8:%reg16384
JNE_4 <BB#2>, %EFLAGS<imp-use,kill>
JMP_4 <BB#2>
Successors according to CFG: BB#2 BB#2
These double CFG edges only ever occur in bugpoint-generated code, so there is
no need to attempt something clever.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117992
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 00:24:52 +0000 (00:24 +0000)]
Attempt to provide correct encodings for a number of other vld1 variants, which we can't test
since we can neither generate nor parse them at the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117988
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 2 Nov 2010 00:16:39 +0000 (00:16 +0000)]
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117987
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 00:14:00 +0000 (00:14 +0000)]
Add aesthetic break.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117986
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 2 Nov 2010 00:13:15 +0000 (00:13 +0000)]
Tweak to fix spelling and grammar in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117985
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 2 Nov 2010 00:05:05 +0000 (00:05 +0000)]
Add correct NEON encodings for the "multiple single elements" form of vld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117984
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 23:59:55 +0000 (23:59 +0000)]
MachineLICM should not claim to be preserving the CFG when it can split critical
edges on demand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117982
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 23:59:53 +0000 (23:59 +0000)]
Be more precise about verifying missing kill flags.
It is legal for an instruction to have two operands using the same register,
only one a kill. This is interpreted as a kill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117981
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 23:59:48 +0000 (23:59 +0000)]
When inserting copies during splitting, always use the parent register as the
source, and let rewrite() clean it up.
This way, kill flags on the inserted copies are fixed as well during rewrite().
We can't just assume that all the copies we insert are going to be kills since
critical edges into loop headers sometimes require both source and dest to be
live out of a block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117980
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 23:57:23 +0000 (23:57 +0000)]
fix computation of ambiguous instructions to not ignore the mnemonic.
FWIW, X86 has 254 ambiguous instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117979
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 23:45:50 +0000 (23:45 +0000)]
Explicitly check for non-consant reference in an LDRi12 instruction. Add FIXME
for handling the fixup necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117978
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 23:40:56 +0000 (23:40 +0000)]
Remove unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117977
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 1 Nov 2010 23:40:51 +0000 (23:40 +0000)]
Add support for alignment operands on VLD1-lane instructions.
This is another part of the fix for Radar
8599955.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117976
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 1 Nov 2010 23:40:46 +0000 (23:40 +0000)]
Add VLD1-lane testcases for quad-register types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117975
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 23:17:54 +0000 (23:17 +0000)]
Missed reverting this bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117971
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 23:11:22 +0000 (23:11 +0000)]
Minor cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117969
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 23:08:02 +0000 (23:08 +0000)]
give MatchableInfo::Operand a constructor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117968
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 23:07:52 +0000 (23:07 +0000)]
rearrange a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117967
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 1 Nov 2010 22:04:05 +0000 (22:04 +0000)]
Add NEON VLD1-lane instructions. Partial fix for Radar
8599955.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117964
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 21:51:31 +0000 (21:51 +0000)]
Add kill flag verification.
At least X86FloatingPoint requires correct kill flags after register allocation,
and targets using register scavenging benefit. Conservative kill flags are not
enough.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117960
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 21:51:29 +0000 (21:51 +0000)]
Update kill flags while rewriting instructions after splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117959
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 21:17:06 +0000 (21:17 +0000)]
Move the machine operand MC encoding patterns to the parent classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117956
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 21:16:39 +0000 (21:16 +0000)]
Use ARM-style comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117955
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 21:08:20 +0000 (21:08 +0000)]
When folding away a (shl (shr)) pair, we need to check that the bits that will BECOME the low
bits are zero, not that the current low bits are zero. Fixes <rdar://problem/
8606771>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117953
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 21:06:34 +0000 (21:06 +0000)]
use our fancy new MnemonicAlias mechanism to remove a bunch of hacks
from X86AsmParser.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117952
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 20:41:43 +0000 (20:41 +0000)]
When we look at instructions to convert to setting the 's' flag, we need to look
at more than those which define CPSR. You can have this situation:
(1) subs ...
(2) sub r6, r5, r4
(3) movge ...
(4) cmp r6, 0
(5) movge ...
We cannot convert (2) to "subs" because (3) is using the CPSR set by
(1). There's an analogous situation here:
(1) sub r1, r2, r3
(2) sub r4, r5, r6
(3) cmp r4, ...
(5) movge ...
(6) cmp r1, ...
(7) movge ...
We cannot convert (1) to "subs" because of the intervening use of CPSR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117950
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 19:49:57 +0000 (19:49 +0000)]
Don't assign new registers created during a split to the same stack slot, but
give them individual stack slots once the are actually spilled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117945
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 1 Nov 2010 19:49:52 +0000 (19:49 +0000)]
Add basic LiveStacks verification.
When an instruction refers to a spill slot with a LiveStacks entry, check that
the spill slot is live at the instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117944
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 18:33:37 +0000 (18:33 +0000)]
Use ARM-style comment syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117941
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 1 Nov 2010 18:31:39 +0000 (18:31 +0000)]
NEON does not support truncating vector stores. Radar
8598391.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117940
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 18:30:39 +0000 (18:30 +0000)]
Covert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117939
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 18:26:43 +0000 (18:26 +0000)]
Convert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117938
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 18:13:11 +0000 (18:13 +0000)]
Covert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117937
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 18:11:14 +0000 (18:11 +0000)]
Add FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117936
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 18:03:16 +0000 (18:03 +0000)]
Covert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117935
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 1 Nov 2010 17:10:53 +0000 (17:10 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117932
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 17:08:58 +0000 (17:08 +0000)]
Add 'IsThumb' predicate to patterns marked as 'IsThumb1Only'. The latter gates
codegen using the patterns; the latter gates the assembler recognizing the
instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117931
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 1 Nov 2010 17:07:14 +0000 (17:07 +0000)]
Write the line info to .debug_line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117930
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 16:59:54 +0000 (16:59 +0000)]
Mark ARM subtarget features that are available for the assembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117929
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 16:44:21 +0000 (16:44 +0000)]
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117927
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 1 Nov 2010 16:27:31 +0000 (16:27 +0000)]
Move EmitInstruction to MCObjectStreamer so that ELF and MachO can share it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117925
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 1 Nov 2010 15:59:52 +0000 (15:59 +0000)]
The T2 extract/pack instructions are only valid in Thumb2 mode. Mark the
patterns as such
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117923
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 1 Nov 2010 15:29:07 +0000 (15:29 +0000)]
Add support for .value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117922
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 1 Nov 2010 14:28:48 +0000 (14:28 +0000)]
Implement .weakref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117911
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 06:00:39 +0000 (06:00 +0000)]
Move instruction encoding bits into the parent class and remove the temporary
*_Encode classes. These instructions are the only ones which use those classes,
so a subclass isn't necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117906
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 05:59:43 +0000 (05:59 +0000)]
More tests to XFAIL. The arm-and-txt-peephole.ll test passes even when the
peephole optimizer is disabled. That's not good at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117905
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 05:50:55 +0000 (05:50 +0000)]
The testcase is now XFAILed. Sorry about the breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117904
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 1 Nov 2010 05:48:44 +0000 (05:48 +0000)]
Disable because peephole is disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117903
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 05:41:10 +0000 (05:41 +0000)]
"mov[zs]x (mem), GR16" are not ambiguous: the mem
must be 8 bits. Support this memory form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117902
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 05:34:34 +0000 (05:34 +0000)]
Implement enough of the missing instalias support to get
aliases installed and working. They now work when the
matched pattern and the result instruction have exactly
the same operand list.
This is now enough for us to define proper aliases for
movzx and movsx, implementing rdar://
8017633 and PR7459.
Note that we do not accept instructions like:
movzx 0(%rsp), %rsi
GAS accepts this instruction, but it doesn't make any
sense because we don't know the size of the memory
operand. It could be 8/16/32 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117901
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 1 Nov 2010 05:23:58 +0000 (05:23 +0000)]
Convert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117900
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 05:06:45 +0000 (05:06 +0000)]
rename InstructionInfo -> MatchableInfo since it now
represents InstAliases as well. Rename
isAssemblerInstruction -> Validate since that is what
it does (modulo the ARM $lane hack).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117899
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 04:53:48 +0000 (04:53 +0000)]
refactor initialization of InstructionInfo to be sharable between
instructions and InstAliases. Start creating InstructionInfo's
for Aliases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117898
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 04:44:29 +0000 (04:44 +0000)]
make the asm matcher emitter reject instructions that have comments
in their asmstring. Fix the two x86 "NOREX" instructions that have them.
If these comments are important, the instlowering stuff can print them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117897
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 04:34:44 +0000 (04:34 +0000)]
refactor InstructionInfo to not have a pointer to CodeGenInstruction
member, and make isAssemblerInstruction() a method (pushing some code
around inside it).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117895
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 04:05:41 +0000 (04:05 +0000)]
define a new CodeGenInstAlias. It has an asmstring and operand list for now,
todo: the result field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117894
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 04:03:32 +0000 (04:03 +0000)]
factor the operand list (and related fields/operations) out of
CodeGenInstruction into its own helper class. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117893
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 03:19:09 +0000 (03:19 +0000)]
avoid needless throw/catch/rethrow, stringref'ize some simple stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117892
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 02:15:23 +0000 (02:15 +0000)]
eliminate the old InstFormatName which is always "AsmString",
simplify CodeGenInstruction. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117891
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 02:09:21 +0000 (02:09 +0000)]
all predicates on an MnemonicAlias must be AssemblerPredicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117890
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 01:47:07 +0000 (01:47 +0000)]
change the singleton register handling code to be based on Record*'s
instead of strings, simplifying it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117889
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Nov 2010 01:37:30 +0000 (01:37 +0000)]
Give AsmMatcherInfo a CodeGenTarget, which simplifies a bunch of
argument passing. Consolidate all SingletonRegister detection
and handling into a new
InstructionInfo::getSingletonRegisterForToken method instead of
having it scattered about. No change in generated .inc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117888
91177308-0d34-0410-b5e6-
96231b3b80d8