Chris Lattner
|
da5a7fd8d4
|
Various cleanups to this pass, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24846 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-19 00:46:20 +00:00 |
|
Chris Lattner
|
f53d0bfbfd
|
add bool truncstores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24845 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-19 00:19:21 +00:00 |
|
Chris Lattner
|
8ba0423660
|
Elimiante SP and FP, which weren't members of the IntRegs register class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24844 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-19 00:06:52 +00:00 |
|
Chris Lattner
|
e773673d8e
|
Make sure to relegalize new nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24843 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:54:29 +00:00 |
|
Chris Lattner
|
379e6c0369
|
The sun assembler only supports .xword in V9 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24842 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:36:45 +00:00 |
|
Chris Lattner
|
7a48e5018b
|
Configure the asmwriter to allow constant pools to be printed correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24841 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:35:05 +00:00 |
|
Chris Lattner
|
b04c5c8eb2
|
add support for integer extloads
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24840 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:18:37 +00:00 |
|
Chris Lattner
|
20ad53ffd7
|
Add support for undef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24839 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:10:57 +00:00 |
|
Chris Lattner
|
311f8c21d0
|
Add support for calls to external symbols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24838 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:07:11 +00:00 |
|
Chris Lattner
|
e90ac3a3e7
|
we have no memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24837 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 23:00:27 +00:00 |
|
Chris Lattner
|
b4d899e21c
|
Fix a crash on a call with no arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24836 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 22:57:47 +00:00 |
|
Jeff Cohen
|
18840db533
|
Keep VC++ happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24835 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 22:20:05 +00:00 |
|
Chris Lattner
|
cf198eca97
|
This is handled by the autogen'd code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24834 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 21:06:11 +00:00 |
|
Chris Lattner
|
5216c698de
|
Handle basic block nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24833 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 21:05:44 +00:00 |
|
Chris Lattner
|
dab05f0e19
|
Change return lowering so that we can autogen the matching code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24832 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 21:03:04 +00:00 |
|
Chris Lattner
|
bc149b2c98
|
Add an accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24831 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 21:00:53 +00:00 |
|
Chris Lattner
|
2db3ff66f1
|
Implement Calls for V8. This would be completely autogenerated except for
a small bug in tblgen. When that is fixed, we can remove the ISD::Call case
in Select.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24830 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 15:55:15 +00:00 |
|
Chris Lattner
|
dc464de9b0
|
More fixes for Selection of copyto/fromreg with a flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24829 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 15:45:51 +00:00 |
|
Chris Lattner
|
f1a47c3371
|
More corrections for flagged copyto/from reg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24828 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 15:36:21 +00:00 |
|
Chris Lattner
|
755dd09815
|
Select copytoreg and copyfromreg nodes that have flag operands correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24827 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 15:28:25 +00:00 |
|
Chris Lattner
|
7310fb11f2
|
legalize copytoreg and copyfromreg nodes that have flag operands correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24826 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 15:27:43 +00:00 |
|
Chris Lattner
|
384e5efc0e
|
Implement the full V8 ABI for incoming arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24825 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 13:33:06 +00:00 |
|
Chris Lattner
|
eee99bd459
|
Push ops list, asm string, and pattern all the way up to InstV8. Move the
InstV8 class to the InstrFormats file where it belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24824 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 08:21:00 +00:00 |
|
Chris Lattner
|
3308449afc
|
Give V8 select_cc, in the spirit of the PPC backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24823 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 08:13:54 +00:00 |
|
Chris Lattner
|
98f853698c
|
remove some unused instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24822 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 07:15:17 +00:00 |
|
Chris Lattner
|
065c896b7a
|
V8 doesn't have FP extload
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24821 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 07:13:32 +00:00 |
|
Chris Lattner
|
d5aae05281
|
simplifications, fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24820 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 07:09:06 +00:00 |
|
Chris Lattner
|
737f631532
|
add a node, for completeness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24819 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 07:05:21 +00:00 |
|
Chris Lattner
|
8fa54dc702
|
Add frameindex support
Add support for copying (e.g. returning) doubles
Add support for F<->I instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24818 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 06:59:57 +00:00 |
|
Chris Lattner
|
abfc2a7363
|
Tighten up some checks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24817 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 06:40:34 +00:00 |
|
Jim Laskey
|
bd2b621486
|
Fix a bug Sabre was having where the DAG root was a group. The group dominator
needed to be added to the ordering list, not the first member of the group.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24816 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 04:40:52 +00:00 |
|
Jim Laskey
|
9022ed955a
|
Groups were not emitted if the dominator node and the node in the ordering list
were not the same node. Ultimately the test was bogus.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24815 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 03:59:21 +00:00 |
|
Nate Begeman
|
6aa45292c6
|
Since extload can also be used by FP, split STDIntExtLoad into two parts,
one for use with extload, one for use with sextload and zextload, which
are integer only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24814 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 02:48:48 +00:00 |
|
Chris Lattner
|
76acc872b3
|
Add constant pool support, including folding into addresses.
Pretty print addresses a bit, to not print [%r1+%g0]: just print [%r1]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24813 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 02:37:35 +00:00 |
|
Chris Lattner
|
e1389ad43a
|
Teach the addressing mode stuff to fold "%lo" into 'ri' addressing modes,
allowing us to compile this:
to this:
%G1 = external global int
%G2 = external global int
void %test() {
%X = load int* %G1
store int %X, int* %G2
ret void
}
test:
save -96, %sp, %sp
sethi %hi(G1), %l0
ld [%l0+%lo(G1)], %l0
sethi %hi(G2), %l1
st %l0, [%l1+%lo(G2)]
restore %g0, %g0, %g0
retl
nop
instead of this:
test:
save -96, %sp, %sp
sethi %hi(G1), %l0
or %g0, %lo(G1), %l1
ld [%l1+%l0], %l0
sethi %hi(G2), %l1
or %g0, %lo(G2), %l2
st %l0, [%l2+%l1]
restore %g0, %g0, %g0
retl
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24812 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 02:27:00 +00:00 |
|
Chris Lattner
|
e357246c6b
|
Add initial support for global variables, and fix a bug in addr mode selection
where we didn't select the operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24811 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 02:10:39 +00:00 |
|
Chris Lattner
|
04dd673aea
|
Claiming that branch targets are registers is not very wholesome. Change them
to be basic blocks. Also, add uncond branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24810 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 01:46:58 +00:00 |
|
Chris Lattner
|
456b9400dc
|
Add unordered comparisons
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24809 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 01:41:39 +00:00 |
|
Chris Lattner
|
5b2dfc7cc1
|
Add patterns to the rest of the int condbranches and some of the fp branches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24808 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 01:38:19 +00:00 |
|
Chris Lattner
|
4d55aca87a
|
Add initial conditional branch support. This doesn't actually work yet due
to a bug in the scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24807 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 01:20:35 +00:00 |
|
Chris Lattner
|
a5282d8df2
|
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24806 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-18 01:03:46 +00:00 |
|
Chris Lattner
|
38abcb500f
|
Eliminate CMPri, which is a synonym for SUBCCri
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24805 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:52:08 +00:00 |
|
Chris Lattner
|
181b7a382f
|
allow custom expansion of BR_CC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24804 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:46:46 +00:00 |
|
Chris Lattner
|
294974bd57
|
add fneg,fabs,fsqrt instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24803 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:20:27 +00:00 |
|
Chris Lattner
|
b4d5172af9
|
Add patterns for fround/fextend and the funny fsmuld instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24802 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:14:30 +00:00 |
|
Chris Lattner
|
10c6aed73c
|
Add FP +,-,*,/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24801 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:10:46 +00:00 |
|
Chris Lattner
|
558bfe0cf5
|
Give patterns to F3_3 instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24800 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 23:05:35 +00:00 |
|
Chris Lattner
|
d19fc65345
|
Implement 64-bit add/sub, make sure to receive and return 64-bit args with
the right halves in the right regs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24799 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 22:55:57 +00:00 |
|
Chris Lattner
|
7087e57872
|
implement div and rem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24798 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 22:39:19 +00:00 |
|
Chris Lattner
|
ee3d5fba54
|
implement MULHU/MULHS for 64-bit multiplies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24797 91177308-0d34-0410-b5e6-96231b3b80d8
|
2005-12-17 22:30:00 +00:00 |
|