Chris Lattner
e3ef0a8b9f
Simplify this code, use the proper shift amount
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21861 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:21:31 +00:00
Duraid Madina
63bbed536c
add the popcount instruction and support this in the isel
...
the primary user of this will probably end up being find-first-set-bit/find-
last-set-bit, which i'll get around to...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21860 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:16:09 +00:00
Chris Lattner
9b583b4910
Legalize this correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21859 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:09:47 +00:00
Chris Lattner
1f38e5c431
No really IA*64* :)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21858 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:03:56 +00:00
Chris Lattner
c610d4267f
X86 has more than just 32-bit registers
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21857 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 05:00:34 +00:00
Chris Lattner
edb1add9a0
implement expansion of ctpop nodes, implementing CodeGen/Generic/llvm-ct-intrinsics.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21856 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 04:51:16 +00:00
Chris Lattner
276260b16d
Print bit count nodes correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21855 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 04:50:30 +00:00
Chris Lattner
3c8a3b1393
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21854 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 04:22:47 +00:00
Chris Lattner
5eb9f0d56c
update this to reflect the new selection daggy world
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21853 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 03:53:53 +00:00
Chris Lattner
590cff389d
don't duplicate information, particularly when it's out of date!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21852 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-11 03:35:57 +00:00
Chris Lattner
6d5857e139
Do not use "" as a sentinal for a missing argument! This fixes PR560.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21850 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 23:20:17 +00:00
Chris Lattner
47f9607e56
new testcase for PR562
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21849 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:32:29 +00:00
Misha Brukman
c74fd7af26
Remove vim modeline; this should go into ~/.vimrc
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21848 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:06:41 +00:00
Misha Brukman
bff8cc42b4
Remove vim modeline, this belongs in ~/.vimrc
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21847 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:06:14 +00:00
Misha Brukman
c43d914175
Consistently surround `cl::' code structures with <b> and <tt> to make them
...
stand out as code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21846 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:05:27 +00:00
Misha Brukman
b5cd8459df
Why output multiple strings, let the compiler concatenate them for us for free
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21845 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:03:50 +00:00
Misha Brukman
5a2a3826ef
* Convert tabs to spaces, fix code alignment
...
* Remove trailing whitespace
* Wrap long lines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21844 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 22:02:28 +00:00
Duraid Madina
e8714afaa5
note HP-UX support
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21841 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 06:57:53 +00:00
Chris Lattner
6415bb4c29
Convert feature of the simple isel over for the pattern isel to use.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21840 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 03:53:18 +00:00
Chris Lattner
641f02f10f
Fix Reassociate/shifttest.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21839 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 03:39:25 +00:00
Jeff Cohen
19bb2283e6
Silence some VC++ warnings
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21838 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 02:22:38 +00:00
Chris Lattner
780b6d08ab
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21837 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-10 00:33:36 +00:00
Chris Lattner
7f78f218fd
If a function contains no allocas, all of the calls in it are trivially
...
suitable for tail calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21836 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 23:51:13 +00:00
Chris Lattner
ef311aa7cf
The semantics of cast X to bool are a comparison against zero, not a truncation!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21833 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 22:17:13 +00:00
Chris Lattner
edcee6f5fd
testcase I've had in my tree
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21832 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 21:21:10 +00:00
Chris Lattner
966cdfb600
Implement READPORT/WRITEPORT, implementing the last X86 regression tests
...
that were failing with the pattern selector. Note that the support that
existed in the simple selector was clearly broken in several ways though
(which has also been fixed).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21831 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 21:17:38 +00:00
Chris Lattner
cecd67b432
do not emit illegal instructions
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21830 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 21:06:04 +00:00
Chris Lattner
82c7897f49
Fix the syntax of the i/o instructions, these are obviously unused.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21829 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:49:20 +00:00
Chris Lattner
4e6ce5f9c7
legalize readio/writeio into load/stores, fixing CodeGen/X86/io.llx with
...
the pattern isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21828 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:37:29 +00:00
Chris Lattner
6d5b8e1646
legalize readio/writeio into a load/store if requested
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21827 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:36:57 +00:00
Chris Lattner
52d08bd9d8
legalize READPORT, WRITEPORT, READIO, WRITEIO, at least in the basic cases
...
where they are directly supported by the architecture. Wrap a bunch of
long lines :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21826 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:23:03 +00:00
Chris Lattner
d0f6c1f52d
Add support for matching the READPORT, WRITEPORT, READIO, WRITEIO intrinsics
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21825 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:22:36 +00:00
Chris Lattner
3c6910153c
Add support for READPORT, WRITEPORT, READIO, WRITEIO
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21824 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:22:17 +00:00
Chris Lattner
21074f43ed
Add READPORT, WRITEPORT, READIO, WRITEIO nodes, wrap long lines
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21823 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 20:21:27 +00:00
John Criswell
f13c334536
Tell tblgen exactly where to find the include file.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21822 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 19:32:08 +00:00
Chris Lattner
a0dbf181e0
restore some non-dead code I removed last night breaking double casts to
...
uint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21821 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 18:37:02 +00:00
Chris Lattner
cafb67b250
fold and (shl X, C1), C2 -> rlwinm when possible. Many other cases are possible,
...
include and (srl) and the inverses (shl and) etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21820 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 17:39:48 +00:00
Chris Lattner
bd8b13dec3
new testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21819 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 17:09:31 +00:00
Chris Lattner
57aa5961a9
Fold shifts into subsequent SHL's. These shifts often arise due to addrses
...
arithmetic lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21818 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 17:06:45 +00:00
John Criswell
7516255795
Updated the list of code generators for LLVM 1.5.
...
Added information on getting LLVM 1.5 from CVS (hopefully readers will
understand that the label will work *after* LLVM 1.5 is released).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21817 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 16:49:59 +00:00
John Criswell
838bce56d2
Little corrections.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21816 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 16:39:27 +00:00
Chris Lattner
e0c1317f8a
Fix bug noticed by Tzu-Chien Chiu, thanks!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21815 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 15:41:03 +00:00
Duraid Madina
8a3042c872
fix and cleanup constmul code a bit, this fixes mediabench/toast and
...
probably a couple of other tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21814 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 13:18:34 +00:00
Chris Lattner
f2c7af2cb0
tweak test to accept the (good) code emitted by the pattern isel
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21812 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 05:54:27 +00:00
Chris Lattner
a80d2bd89c
Wrap long lines, remove dead code that is now handled by legalize
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21811 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 05:40:26 +00:00
Chris Lattner
2afa1910d4
Fix FP -> bool casts
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21810 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 05:33:18 +00:00
Chris Lattner
6e4c6495eb
implement and.ll:test33
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21809 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:58:36 +00:00
Chris Lattner
2f2c3e4392
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21808 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:54:18 +00:00
Reid Spencer
87bb7c61ac
Add note to self to complete the testing of all intrinsic functions as
...
specified in the LangRef document.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21807 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:47:32 +00:00
Chris Lattner
fd414a27fd
Don't use the load/store instruction as the source pointer, use the pointer
...
being stored/loaded through!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21806 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-09 04:28:51 +00:00