Chris Lattner
9c9e9dfe6d
Reduced testcase for PR 110
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9917 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 16:24:30 +00:00
Chris Lattner
579de71d08
Detect problems with PHI node operands!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9916 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 07:13:37 +00:00
Chris Lattner
6a45da0de6
Restore the -llvm option
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9915 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:59:59 +00:00
Chris Lattner
d8ea8a5027
Print return nodes for graphs with multiple functions in them correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9914 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:58:19 +00:00
Chris Lattner
9dc4185763
Don't crash if no gg
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9913 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:57:58 +00:00
Chris Lattner
9b29bde341
PR107 is now fixed
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9912 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:42:37 +00:00
Chris Lattner
15b697214e
Fix bug PR107, patch contributed by Reid Spencer!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9911 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:40:30 +00:00
Chris Lattner
400b89628e
New testcase for PR107
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9910 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 04:40:11 +00:00
Brian Gaeke
2e09698ffd
I don't think this was supposed to have gotten into the namespaceify patch, but
...
it did. Oops!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9908 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 01:11:54 +00:00
Chris Lattner
c5f0afad2c
Cleanups
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9907 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-12 00:40:34 +00:00
Chris Lattner
2a77f2daa7
reword a bit, be less aggressive with my link
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9906 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 23:46:35 +00:00
Chris Lattner
5f6fbeb64c
Add a link to the llvmdev posting
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9905 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 23:45:03 +00:00
Brian Gaeke
360c2663fa
Mention that all LLVM C++ code has been moved into the 'llvm' C++ namespace.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9904 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 22:45:41 +00:00
Brian Gaeke
d0fde30ce8
Put all LLVM code into the llvm namespace, as per bug 109.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 22:41:34 +00:00
Brian Gaeke
0d723acf15
Move IsArchive, IsBytecode to FileUtilities. Fix up some method comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9902 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 21:54:01 +00:00
Brian Gaeke
a2302ffe78
Move IsArchive and IsBytecode here from gccld. Refactor into CheckMagic.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9901 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 21:53:50 +00:00
Brian Gaeke
f33d00f0d8
Add prototypes for CheckMagic, IsArchive, and IsBytecode.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9900 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 21:53:29 +00:00
Brian Gaeke
7879206b0f
Add another fixed bug.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9899 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 21:52:34 +00:00
Chris Lattner
413406c068
Compute node offsets correctly
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9895 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 20:12:32 +00:00
Misha Brukman
aab9ca73fd
'Tis quite silly to check for a cached version of the entire executable. That
...
amounts to checking for a completely-native version. We'll cache on a
function-by-function basis instead (in the JIT's CodeEmitter).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9894 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 18:38:56 +00:00
Brian Gaeke
ee8adb1955
This version of Linker.cpp works a lot better, but it's a little messy. Sorry.
...
Use FileOpenable() instead of FileExists().
Create IsBytecode() predicate -- like IsArchive(), but for bytecode files.
Use IsBytecode() before trying to load any file as a bytecode file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9893 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 18:27:37 +00:00
Brian Gaeke
56be7ffe58
Add implementation of FileOpenable().
...
Refactor MakeFileExecutable() & MakeFileExecutable() into AddPermissionsBits().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9892 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 18:27:21 +00:00
Brian Gaeke
6a9127ec00
VS: ----------------------------------------------------------------------
...
Add prototype for FileOpenable().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9891 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 18:27:11 +00:00
Misha Brukman
fa33a13232
The caching will not live in LLEE's execve() handler; that's suboptimal.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9890 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 18:23:09 +00:00
Chris Lattner
400433dfea
Add new method for computing node mappings. This is used by the pool allocator
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9880 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 05:08:59 +00:00
Chris Lattner
3b120be94f
Add new method
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9879 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 05:08:36 +00:00
Misha Brukman
4bf44c294b
Added link to ``CVS Branching and Tags Primer''.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9875 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 00:14:41 +00:00
Misha Brukman
2fe6909be6
Shorten the "updating Makefile" status print-out.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9874 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-11 00:05:29 +00:00
Brian Gaeke
e9414cab00
Fix problems linking against the reoptimizer; _llvm_regAllocState must have
...
externally-visible linkage, and SaveStateToModule must default to true for llc.
I don't remember why I made it const; perhaps it should be deconstified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9858 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 07:12:01 +00:00
Chris Lattner
363ca610d1
Reorganize code for locality, improve comments
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9857 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:42:42 +00:00
Chris Lattner
aeef8c70f0
Include forms of SplitCriticalEdge which work correctly with pred/succ iterators
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9856 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:42:13 +00:00
Chris Lattner
33e0a7575d
No really, I'm not on crack
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9855 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:23:52 +00:00
Chris Lattner
b977ef2d54
Helper method
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9854 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:16:50 +00:00
Chris Lattner
d23520cd94
Adjust to new critical edge interface
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9853 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:10:50 +00:00
Chris Lattner
d9c5c5e12f
Move isCriticalEdge & SplitCritical into this file. While we're at it, change
...
the interface to SplitCriticalEdge so that it splits an edge if it is critical,
otherwise just returns false and noops if not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9852 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:10:27 +00:00
Chris Lattner
4a05ba0ab5
Move isCriticalEdge & SplitCritical edge out of this file, which is only
...
for passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9851 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 04:09:44 +00:00
Brian Gaeke
9058349aa4
Regenerated.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9850 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 03:06:28 +00:00
Brian Gaeke
278a4ac603
Patch to fix PR102, contributed by Reid Spencer.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9849 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 03:06:09 +00:00
Brian Gaeke
75920ee460
add Reid Spencer
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9848 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 03:05:36 +00:00
Brian Gaeke
213904133d
Operand numbers are now ints. Save the register allocation of the value
...
each instruction produces as "operand" -1, and the other operands as 0
.. n, as before. PhyRegAlloc::saveState() is refactored into
PhyRegAlloc::saveStateForValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9842 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-10 00:05:26 +00:00
Misha Brukman
4f7a8cf8c2
If the source tree's Makefile is more up-to-date, copy it over into the build
...
tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9836 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 21:36:19 +00:00
Chris Lattner
cc650b615d
Give gccld more guts
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9835 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 19:55:09 +00:00
Chris Lattner
ccc4b1a2d3
More additions
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9834 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 19:54:30 +00:00
Chris Lattner
11dde85095
Bugz bugz bugz
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9833 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 19:44:07 +00:00
Chris Lattner
d5b1245e8c
Fix PR95. I'm checking this patch in for Reid Spencer, who figured it out
...
and wrote it up. Thanks!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9832 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 19:39:48 +00:00
Chris Lattner
54baafd286
Add an assertion
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9831 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 15:51:07 +00:00
Brian Gaeke
1654bdba0b
Fix PR103
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9830 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 07:08:34 +00:00
Chris Lattner
786cfa59ba
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9829 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 07:05:02 +00:00
Chris Lattner
d77922f1a2
Do NOT inline self recursive calls into other functions. This is causing the
...
pool allocator no end of trouble, and doesn't make a lot of sense anyway. This
does not solve the problem with mutually recursive functions, but they are much less common.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9828 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 05:05:36 +00:00
Chris Lattner
b045e14111
Untypo
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9827 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-09 05:04:25 +00:00