Chris Lattner
|
4f0d8e4018
|
If a target specified a stack pointer with setStackPointerRegisterToSaveRestore,
lower STACKSAVE/STACKRESTORE into a copy from/to that register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25276 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 17:48:44 +00:00 |
|
Chris Lattner
|
d90ef9ef2b
|
Provide an interface for Targets to specify their stack pointer register
for llvm.stacksave/restore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25275 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 17:47:52 +00:00 |
|
Duraid Madina
|
544cbbd479
|
don't be a doofus - this fixes storing bools
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25274 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 10:28:25 +00:00 |
|
Chris Lattner
|
140d53c99c
|
Compile llvm.stacksave/restore into STACKSAVE/STACKRESTORE nodes, and allow
targets to custom expand them as they desire.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25273 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:50:02 +00:00 |
|
Chris Lattner
|
b99329e8a0
|
expand unsupported stacksave/stackrestore nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25272 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:42:53 +00:00 |
|
Chris Lattner
|
33f79df40c
|
new nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25271 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:40:58 +00:00 |
|
Chris Lattner
|
5a67afc118
|
add stacksave/stackrestore nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25270 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:39:42 +00:00 |
|
Chris Lattner
|
929db42702
|
testcase for the llvm.stacksave/llvm.stackrestore intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25269 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:25:08 +00:00 |
|
Chris Lattner
|
e8f7a4bbee
|
Add "support" for stacksave/stackrestore to the dag isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25268 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:24:42 +00:00 |
|
Chris Lattner
|
0c067bc11d
|
Add "support" for the llvm.stacksave/stackrestore intrinsics, this is
used by the C backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25267 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:22:08 +00:00 |
|
Chris Lattner
|
71d0e3de8d
|
Add recognition and verification of new llvm.stacksave/llvm.stackrestore intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25266 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:15:39 +00:00 |
|
Chris Lattner
|
2113db8b3f
|
add new llvm.stacksave/llvm.stackrestore intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25265 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:15:02 +00:00 |
|
Chris Lattner
|
57e1f39713
|
Add llvm.stacksave and llvm.stackrestore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25264 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 02:03:13 +00:00 |
|
Evan Cheng
|
e08c270623
|
Minor update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25263 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:20:42 +00:00 |
|
Chris Lattner
|
fcf39d4589
|
void* is not legal in LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25262 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:20:27 +00:00 |
|
Evan Cheng
|
80ebe38118
|
More typo's. I need new eye glasses...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25261 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:17:24 +00:00 |
|
Evan Cheng
|
189d01e8cc
|
Oops. Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25260 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:06:49 +00:00 |
|
Evan Cheng
|
1bcee3602e
|
Fix a SETCC / BRCOND folding bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25259 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:03:02 +00:00 |
|
Evan Cheng
|
2085a9d99b
|
Test case for a SETCC / BRCOND folding bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25258 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-13 01:02:22 +00:00 |
|
Evan Cheng
|
a3195e8643
|
Fix sint_to_fp (fild*) support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25257 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 22:54:21 +00:00 |
|
Chris Lattner
|
4aafb4ff92
|
Add a simple missing fold to produce this:
subfic r3, r2, 33
instead of this:
subfic r2, r2, 32
addi r3, r2, 1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25255 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 20:22:43 +00:00 |
|
Evan Cheng
|
77e9043b84
|
Specify transformation from GlobalAddress to TargetGlobalAddress and
ExternalSymbol to TargetExternalSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25253 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 19:36:31 +00:00 |
|
Evan Cheng
|
f805c2ed7f
|
Allow transformation from GlobalAddress to TargetGlobalAddress and
ExternalSymbol to TargetExternalSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25252 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 19:35:54 +00:00 |
|
Chris Lattner
|
5166b82866
|
If using __main, emit global ctor/dtor list like any other global
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25251 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 19:17:23 +00:00 |
|
Chris Lattner
|
af551bcf6b
|
Don't create rotate instructions in unsupported types, because we don't have
promote/expand code yet. This fixes the 177.mesa failure on PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25250 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 18:57:33 +00:00 |
|
Chris Lattner
|
4bb91024ac
|
Fix branches on FP compares
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25249 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 17:05:32 +00:00 |
|
Chris Lattner
|
d9d681d128
|
Patch #10 from Saem:
"Extracts a few more methods, reduces some redundancy in the code at
the same time."
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25248 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 16:48:23 +00:00 |
|
Evan Cheng
|
5ee4ccce5b
|
X86ISD::SETCC (e.g. SETEr) produces a flag (so multiple SETCC can be
linked together).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25247 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 08:27:59 +00:00 |
|
Evan Cheng
|
002fe9baf2
|
* Materialize GlobalAddress and ExternalSym with MOV32ri rather than
LEA32r.
* Do not lower GlobalAddress to TargetGlobalAddress. Let isel does it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25246 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 07:56:47 +00:00 |
|
Evan Cheng
|
bb48e33bcd
|
GlobalAddress -> TargetGlobalAddress; ExternalSymbol -> TargetExternalSymbol
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25245 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 07:54:57 +00:00 |
|
Chris Lattner
|
138d322e96
|
fix a bug in my previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25244 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 07:38:04 +00:00 |
|
Chris Lattner
|
72878a463b
|
Give V8ISD nodes symbolic names in dumps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25243 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 07:31:15 +00:00 |
|
Chris Lattner
|
0b2192c99b
|
Convert the verifier over to use ETForest instead of DominatorSet. Patch
by Daniel Berlin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25242 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 06:17:59 +00:00 |
|
Duraid Madina
|
a5959bfdfa
|
sabre's (correct) fix means these guys need to be flagged as well (else
the scheduler will complain)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25241 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 03:28:40 +00:00 |
|
Duraid Madina
|
8d4acd715a
|
verily, sabre did leave
and yea! Saem said "ARRR."
meanwhile, the pinksias and the campfires and the ET forests glowed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25240 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 02:50:34 +00:00 |
|
Chris Lattner
|
a613d267ea
|
ahem :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25239 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 02:05:36 +00:00 |
|
Chris Lattner
|
e699ef5618
|
these cases are autogenerated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25238 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 02:01:45 +00:00 |
|
Chris Lattner
|
17e82d2858
|
remove dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25237 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 01:54:15 +00:00 |
|
Chris Lattner
|
05f1fe8d44
|
Goodbye PPC pattern isel. You have served us well, but it is now time for
you to ride off into the sunset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25236 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 01:46:07 +00:00 |
|
Chris Lattner
|
271426a99a
|
Fix an itanium call lowering bug for duraid
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25235 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 01:33:08 +00:00 |
|
Chris Lattner
|
b3c77152c8
|
invert the sense of this switch and its name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25234 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-12 01:28:56 +00:00 |
|
Nate Begeman
|
c3f8c2eaac
|
Missed a spot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25233 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 23:20:28 +00:00 |
|
Evan Cheng
|
eb422a7234
|
Added ROTL and ROTR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25232 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 23:20:05 +00:00 |
|
Chris Lattner
|
ba625726a1
|
Fix an off-by-one error that Nate's eagle eyes caught
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25231 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 23:16:29 +00:00 |
|
Chris Lattner
|
c6d48d36a3
|
Use the auto-insert BuildMI constructor to avoid an explicit insert. No
functionality change, just code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25230 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 23:07:57 +00:00 |
|
Chris Lattner
|
64da172b14
|
If a function has a non-zero sized frame, use an add to adjust the stack
pointer in the epilog, not a load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25229 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 23:03:54 +00:00 |
|
Nate Begeman
|
cfde3c19c7
|
Add testcase for rotate by register and rotate by immediate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25228 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 22:58:12 +00:00 |
|
Evan Cheng
|
b2c6d4957a
|
Some minor fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25227 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 22:16:13 +00:00 |
|
Evan Cheng
|
67f92a7649
|
Support for MEMCPY and MEMSET.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25226 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 22:15:48 +00:00 |
|
Evan Cheng
|
38262cad0a
|
Select DYNAMIC_STACKALLOC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25225 91177308-0d34-0410-b5e6-96231b3b80d8
|
2006-01-11 22:15:18 +00:00 |
|