Chris Lattner
4a5f7be077
fix CodeGenTarget::getRegisterVTs to not return the
...
same vt multiple times for a register. For example,
ECX is in 5 different i32 reg classes, just return
1 i32 instead of 5.
llvm-svn: 99727
2010-03-27 20:32:26 +00:00
Chris Lattner
7bc5d9b576
hoist some funky logic into CodeGenInstruction
...
from two places in CodeGenDAGPatterns.cpp, and
use it in DAGISelMatcherGen.cpp instead of using
an incorrect predicate that happened to get lucky
on our current targets.
llvm-svn: 99726
2010-03-27 20:09:24 +00:00
Chris Lattner
d44966f26d
continue pushing tblgen's support for nodes with multiple
...
results forward. We can now handle an instruction that
produces one implicit def and one result instead of one or
the other when not at the root of the pattern.
llvm-svn: 99725
2010-03-27 19:15:02 +00:00
Chris Lattner
decc73d4bc
improve -debug-only=isel comments for cases when we don't enter a
...
scope due to obviously false predicate.
llvm-svn: 99723
2010-03-27 18:54:50 +00:00
Chris Lattner
e7e9f06d3b
fix a bug in my recent patch that increased opcode size to 2 bytes:
...
the index comments nested under OPC_SwitchOpcode were off by one.
This fixes the comments.
llvm-svn: 99722
2010-03-27 18:49:33 +00:00
Chris Lattner
273f31d08d
revert r99719 which is breaking the botz.
...
llvm-svn: 99721
2010-03-27 18:01:10 +00:00
Dan Gohman
ec9e342d04
Make llvm-ld remove its output files in the event of an error.
...
llvm-svn: 99719
2010-03-27 16:49:51 +00:00
Dan Gohman
8c172a51d8
Give FileRemover a default constructor to allow FileRemovers to be created
...
and initialized separately.
llvm-svn: 99717
2010-03-27 16:39:56 +00:00
Dan Gohman
99ac24d1e3
No need to check the same condition twice.
...
llvm-svn: 99716
2010-03-27 16:36:08 +00:00
Dan Gohman
eff5583908
Add a comment.
...
llvm-svn: 99715
2010-03-27 16:34:32 +00:00
Dan Gohman
dcc8cd96f2
Remove an unnecessary #include.
...
llvm-svn: 99714
2010-03-27 16:33:36 +00:00
Jeffrey Yasskin
12fd516e51
Remove another memory leak from ABCD by using Edges by value instead of
...
pointer. There was also a SmallPtrSet whose settiness wasn't being used, so I
changed it to a SmallVector.
llvm-svn: 99713
2010-03-27 09:09:17 +00:00
Jeffrey Yasskin
97e613b6da
In ABCD, change the non-null Bound*s to Bound&s.
...
llvm-svn: 99711
2010-03-27 08:15:46 +00:00
Jeffrey Yasskin
33bc7e4cb5
Fix a memory leak in ABCD by giving ownership of Bound objects to the
...
MemoizedResultChart.
llvm-svn: 99710
2010-03-27 08:09:24 +00:00
Jeffrey Yasskin
b832e3276a
XFAIL a new tblgen test for memory leak checking.
...
llvm-svn: 99707
2010-03-27 04:59:47 +00:00
Jeffrey Yasskin
a4044332a9
Avoid leaking the memory allocated for GlobalVariables in the interpreter, by
...
freeing that memory when the GV is destroyed.
llvm-svn: 99706
2010-03-27 04:53:56 +00:00
Bob Wilson
0f8a02830a
Fix indentation.
...
llvm-svn: 99705
2010-03-27 04:01:23 +00:00
Bob Wilson
cf603fb1c5
Add a format argument to the N3V and N3VX classes, removing the N3Vf class.
...
llvm-svn: 99704
2010-03-27 03:56:52 +00:00
Chris Lattner
5c2182ef77
remove parallel support.
...
llvm-svn: 99703
2010-03-27 02:53:27 +00:00
Chris Lattner
07943af506
eliminate the last of the parallel's!
...
llvm-svn: 99700
2010-03-27 02:47:14 +00:00
Eric Christopher
81c03447fc
When we promote a load of an argument make sure to take the alignment
...
of the previous load - it's usually important. For example, we don't want
to blindly turn an unaligned load into an aligned one.
llvm-svn: 99699
2010-03-27 01:54:00 +00:00
Bill Wendling
6888e798d3
Forgot the part where we handle the ".llvm.eh.catch.all.value".
...
llvm-svn: 99697
2010-03-27 01:24:30 +00:00
Bill Wendling
ec8b44adeb
Return if we changed anything or not.
...
llvm-svn: 99695
2010-03-27 01:22:38 +00:00
Bill Wendling
f2c1f40e95
If a selector has a call to ".llvm.eh.catch.all.value" that we haven't
...
converted, then use the initializer, since using the name itself won't work.
llvm-svn: 99692
2010-03-27 01:19:12 +00:00
Johnny Chen
6094cdab9f
Add NVMulSLFrm to represent "3-register multiply with scalar" operations and set
...
it as the format for the appropriate N3V*SL*<> classes. These instructions
require special handling of the M:Vm field which encodes the restricted Dm and
the lane index within Dm.
Examples are A8.6.325 VMLA, VMLAL, VMLS, VMLSL (by scalar):
vmlal.s32 q3, d2, d10[0]
llvm-svn: 99690
2010-03-27 01:03:13 +00:00
Chris Lattner
c5e20d9031
eliminate almost all the rest of the x86-32 parallels.
...
llvm-svn: 99686
2010-03-27 00:45:04 +00:00
Chris Lattner
e9189422be
bump FIRST_TARGET_MEMORY_OPCODE back up, there is no reason to make it a tight bound anymore.
...
llvm-svn: 99685
2010-03-27 00:29:41 +00:00
Jim Grosbach
44313db557
Thumb2 storeFrom/LoadToStackSlot() need to handle tGPR regs directly, not pass
...
through to the generic version. The generic functions use STR/LDR, but T2
needs the t2STR/t2LDR instead so we get the addressing mode correct.
llvm-svn: 99678
2010-03-27 00:09:12 +00:00
Chris Lattner
35a069b3a5
improve portability to minix, patch by
...
Kees van Reeuwijk for PR6704
llvm-svn: 99677
2010-03-26 23:54:15 +00:00
Johnny Chen
93acfbf441
Remove the duplicate multiclass N3VSh_QHSD and use N3VInt_QHSD which is modified
...
to now take a format argument. N3VDInt<> and N3VQInt<> are modified to take a
format argument as well.
llvm-svn: 99676
2010-03-26 23:49:07 +00:00
Bill Wendling
d1aa77c37d
If we mark clean-ups as clean-ups, then it could break when inlining through an
...
'invoke' instruction. You will get a situation like this:
bb:
%ehptr = eh.exception()
%sel = eh.selector(%ehptr, @per, 0);
...
bb2:
invoke _Unwind_Resume_or_Rethrow(%ehptr) %normal unwind to %lpad
lpad:
...
The unwinder will see the %sel call as a clean-up and, if it doesn't have a
catch further up the call stack, it will skip running it. But there *is* another
catch up the stack -- the catch for the %lpad. However, we can't see that. This
is fixed in code-gen, where we detect this situation, and convert the "clean-up"
selector call into a "catch-all" selector call. This gives us the correct
semantics.
llvm-svn: 99671
2010-03-26 23:41:30 +00:00
Johnny Chen
0b57de3c4c
Add NVExtFrm to represent NEON Vector Extract Instructions, that uses Inst{11-8}
...
to encode the byte location of the extracted result in the concatenation of the
operands, from the least significant end.
Modify VEXTd and VEXTq classes to use the format.
llvm-svn: 99659
2010-03-26 22:28:56 +00:00
Chris Lattner
574907ed88
remove a constructor implementation that isn't declared
...
in the header. How can both clang and gcc accept this?
PR6703
llvm-svn: 99658
2010-03-26 22:17:24 +00:00
Anton Korobeynikov
2f072e95e6
Add few missed libcalls and correct names for others.
...
llvm-svn: 99656
2010-03-26 21:32:14 +00:00
Johnny Chen
2cf04957c2
Add N3RegVShFrm to represent 3-Register Vector Shift Instructions, which do not
...
follow the N3RegFrm's operand order of D:Vd N:Vn M:Vm. The operand order of
N3RegVShFrm is D:Vd M:Vm N:Vn (notice that M:Vm is the first src operand).
Add a parent class N3Vf which requires passing a Format argument and which the
N3V class is modified to inherit from. N3V class represents the "normal"
3-Register NEON Instructions with N3RegFrm.
Also add a multiclass N3VSh_QHSD to represent clusters of NEON 3-Register Shift
Instructions and replace 8 invocations with it.
llvm-svn: 99655
2010-03-26 21:26:28 +00:00
Gabor Greif
108abc6726
fix iterator name
...
llvm-svn: 99646
2010-03-26 19:59:25 +00:00
Dan Gohman
aedde1e4c0
Minor grammar and html fixes.
...
llvm-svn: 99644
2010-03-26 19:51:14 +00:00
Gabor Greif
853daf4848
some more tweaks
...
llvm-svn: 99643
2010-03-26 19:40:38 +00:00
Dan Gohman
37027c30ec
Tell "the rest of the story" about LLVM's iterators' implicit conversions.
...
llvm-svn: 99642
2010-03-26 19:39:05 +00:00
Gabor Greif
450dfeba64
fix formatting and a validation fail
...
llvm-svn: 99640
2010-03-26 19:35:48 +00:00
Gabor Greif
6d6cf8ff00
add a blurb on const versions of chain traversals and a word of caution
...
llvm-svn: 99638
2010-03-26 19:30:47 +00:00
Dale Johannesen
6096d5a279
Debug info shouldn't affect kills.
...
llvm-svn: 99637
2010-03-26 19:21:26 +00:00
Devang Patel
5bc1c4bd4e
Add a paragram describing how to extract line number information.
...
llvm-svn: 99636
2010-03-26 19:08:36 +00:00
Gabor Greif
66de04936b
http://englishplus.com/grammar/00000296.htm
...
llvm-svn: 99635
2010-03-26 19:04:42 +00:00
Dan Gohman
42e77df78c
Fix SmallVector's insert to handle non-random-access iterators.
...
llvm-svn: 99633
2010-03-26 18:53:37 +00:00
Jim Grosbach
bf59859b2b
vldm/vstm can only do up to 16 double-word registers at a time.
...
Radar 7797856
llvm-svn: 99630
2010-03-26 18:41:09 +00:00
Johnny Chen
8fc94d6362
Add N3RegFrm to represent "NEON 3 vector register format" instructions.
...
Examples are VABA (Vector Absolute Difference and Accumulate), VABAL (Vector
Absolute Difference and Accumulate Long), and VABD (Vector Absolute Difference).
llvm-svn: 99628
2010-03-26 18:32:20 +00:00
Evan Cheng
3365fb1412
Do not sibcall if stack needs to be dynamically aligned.
...
llvm-svn: 99620
2010-03-26 16:26:03 +00:00
Evan Cheng
00a620c61e
Allow trivial sibcall of vararg callee when no arguments are being passed.
...
llvm-svn: 99598
2010-03-26 02:13:13 +00:00
Evan Cheng
eb50ac5ccc
LiveVariables should clear kill / dead markers first. This allows us to remove a hack in the scheduler.
...
llvm-svn: 99597
2010-03-26 02:12:24 +00:00