Commit Graph

15618 Commits

Author SHA1 Message Date
Chris Lattner 6b7652fae5 Remove a dead function, which died when we got GAS emission working (phwew,
hold your nose!)

llvm-svn: 17869
2004-11-16 04:34:29 +00:00
Chris Lattner c927072b50 Implement a simple FIXME: if we are emitting a basic block address that has
already been emitted, we don't have to remember it and deal with it later,
just emit it directly.

llvm-svn: 17868
2004-11-16 04:30:51 +00:00
Chris Lattner 2e182fc39b * Merge some win32 ifdefs together
* Get rid of "emitMaybePCRelativeValue", either we want to emit a PC relative
  value or not: drop the maybe BS.  As it turns out, the only places where
  the bool was a variable coming in, the bool was a dynamic constant.

llvm-svn: 17867
2004-11-16 04:21:18 +00:00
Misha Brukman b4bd8de9a4 * Change test/projects => projects/llvm-test
* Add link to complete Command Guide in the "brief intro to major tools" section

llvm-svn: 17866
2004-11-15 23:20:51 +00:00
Chris Lattner 58d5b2a9bb Add an accessor
llvm-svn: 17865
2004-11-15 23:20:19 +00:00
Chris Lattner 1edd79a1bc Now that we have ghost linkage, we can force resolution of external symbols
immediately instead of lazily.

In this program, for example:

int main() {
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
}

We used to have to go through compilation callback 4 times (once for each
call to printf), now we don't go to it at all.

Thanks to Misha for noticing this, and for adding the initial ghost linkage
patches.

llvm-svn: 17864
2004-11-15 23:20:04 +00:00
Chris Lattner b264f7f428 There is no reason to try to materialize the function from bytecode if it
already has been.  This may be a small speedup.

llvm-svn: 17863
2004-11-15 23:18:09 +00:00
Chris Lattner 9cc2dac7c1 Add debug-only=jit printout, so we see when lazily resolved symbols are
set up.

llvm-svn: 17862
2004-11-15 23:16:55 +00:00
Chris Lattner 34b754d99b Simplify and rearrange long shift code
llvm-svn: 17861
2004-11-15 23:16:34 +00:00
Chris Lattner 97f5c0e5df Update to reflect recent change
llvm-svn: 17860
2004-11-15 22:54:50 +00:00
Chris Lattner 3b6bb48c16 Do not emit FunctionBlock blocks for external functions. This shrinks
bytecode files by about 8 bytes per external function

llvm-svn: 17859
2004-11-15 22:39:49 +00:00
Chris Lattner 642f8c5ed4 Use a per-function flag bit to indicate whether or not there is a function
body for the function.

llvm-svn: 17858
2004-11-15 22:38:52 +00:00
Chris Lattner 9b457e1c73 Disable this change, it was premature
llvm-svn: 17857
2004-11-15 21:56:33 +00:00
Chris Lattner 7d04cdab77 Make *SURE* to null out the pointer before throwing an exception, otherwise
the dtor for the BytecodeReader class will try to free it again!

llvm-svn: 17856
2004-11-15 21:55:33 +00:00
Chris Lattner 36c95e38b0 Cleanups. Null out pointer after freeing it for paranoia
llvm-svn: 17855
2004-11-15 21:55:06 +00:00
Chris Lattner 94bd315c3f If a function is external, do not output a FunctionBlock for the function
AT ALL.  This saves 11 bytes per external function from the bytecode file,
and is also required to make GhostLinkage work.

llvm-svn: 17854
2004-11-15 21:46:40 +00:00
Chris Lattner 55d85402f6 Make functions default to having external linkage if they have no
FunctionBlock.

llvm-svn: 17853
2004-11-15 21:43:03 +00:00
Reid Spencer 16d3f968ba Remove useless/confusing namespace qualifier.
llvm-svn: 17852
2004-11-15 21:27:05 +00:00
Misha Brukman a8c99d4daf Add BCTR and LWZU instruction opcodes
llvm-svn: 17851
2004-11-15 21:20:09 +00:00
Reid Spencer 38fcf309fc Merge content of RequiredSoftware.html into GettingStarted.html
Remove now defunct RequiredSoftware.html.

llvm-svn: 17850
2004-11-15 21:15:12 +00:00
Misha Brukman dca7238d56 * Add entry for Linux/PowerPC
* Mark MacOS X/PPC support as 32-bit-only
* Fix FreeBSD space usage -- it's in MB, not GB

llvm-svn: 17848
2004-11-15 21:05:08 +00:00
Misha Brukman ef8d601a53 Be less verbose when `The' and `command' just aren't necessary
llvm-svn: 17846
2004-11-15 20:39:30 +00:00
Misha Brukman 6c668c4fba No need for the verbose `the llvm-link command' when simply `llvm-link' will do
llvm-svn: 17845
2004-11-15 20:36:39 +00:00
Misha Brukman 16c9176043 Force a short link to gccld's man page
llvm-svn: 17844
2004-11-15 20:32:58 +00:00
Misha Brukman da25907381 Fix syntax within a B<> tag
llvm-svn: 17843
2004-11-15 20:30:19 +00:00
Reid Spencer e51e5724b7 Remove personal email address.
llvm-svn: 17842
2004-11-15 20:25:08 +00:00
Misha Brukman 4055d31868 Add the PowerPC 32-bit ABI output option
llvm-svn: 17840
2004-11-15 20:22:49 +00:00
Chris Lattner cc93ee5b45 Bump version. Shouldn't this come from somewhere else??
llvm-svn: 17839
2004-11-15 20:06:11 +00:00
Misha Brukman a8e1718932 * Add an entry for llvm-ranlib
* Add missing dashes

llvm-svn: 17838
2004-11-15 19:53:43 +00:00
Misha Brukman 774a6be462 This is llvm-ar, not llvm-as.
llvm-svn: 17837
2004-11-15 19:50:15 +00:00
Reid Spencer d4d25bdb2b Remove reference to llvm-ld.
llvm-svn: 17836
2004-11-15 19:47:20 +00:00
Reid Spencer 38f5a1c6c4 Terminate a list.
Remove reference to llvm-ld

llvm-svn: 17835
2004-11-15 19:45:29 +00:00
Misha Brukman d92f54ae6e Remove extra space char
llvm-svn: 17834
2004-11-15 19:30:05 +00:00
Tanya Lattner 8213dae317 This file was originally developed by the LLVM research group so this comment should stay. I also do NOT want my name explicity listed on src files. I am already mentioned in the credits.
llvm-svn: 17833
2004-11-15 19:21:49 +00:00
Reid Spencer bfa25440e7 Changes/corrections suggested from Chris Lattner's review.
llvm-svn: 17832
2004-11-15 19:12:06 +00:00
Chris Lattner a2b02a8b05 Warning fixes for VC++, contributed by Morten Ofstad!
llvm-svn: 17831
2004-11-15 19:02:35 +00:00
Reid Spencer 9339638e9c Remove unused variable for compilation by VC++.
Patch contributed by Morten Ofstad.

llvm-svn: 17830
2004-11-15 17:29:41 +00:00
Reid Spencer b40098e334 Updates to Visual C++ project files for building on win32.
Patch contributed by Morten Ofstad.

llvm-svn: 17829
2004-11-15 17:28:08 +00:00
Reid Spencer 6e886d051c Update relative files.
Patch contributed by Morten Ofstad.

llvm-svn: 17828
2004-11-15 17:27:00 +00:00
Reid Spencer 1ae1656363 Provide the ThrowErrno utility.
Patch contributed by Morten Ofstad

llvm-svn: 17827
2004-11-15 17:21:57 +00:00
Reid Spencer b96afe4b7e Adjust implementation to match new interface.
Patch provided by Morten Ofstad

llvm-svn: 17826
2004-11-15 17:20:28 +00:00
Chris Lattner 1890f94413 Minor cleanups. There is no reason for SCCP to derive from instvisitor anymore.
llvm-svn: 17825
2004-11-15 07:15:04 +00:00
Chris Lattner 9a038a3a5e Count more accurately
llvm-svn: 17824
2004-11-15 07:02:42 +00:00
Brian Gaeke 55157f0865 Update list of failing Benchmarks.
llvm-svn: 17823
2004-11-15 05:57:26 +00:00
Brian Gaeke 9dcb2fe161 Expand Defs to encompass all the possibly-call-clobbered regs.
llvm-svn: 17822
2004-11-15 05:56:53 +00:00
Chris Lattner 97013636cd Quiet warnings on the persephone tester
llvm-svn: 17821
2004-11-15 05:54:07 +00:00
Chris Lattner d18c16b842 Two minor improvements:
1. Speedup getValueState by having it not consider Arguments.  It's better
    to just add them before we start SCCP'ing.
 2. SCCP can delete the contents of dead blocks.  No really, it's ok!  This
    reduces the size of the IR for subsequent passes, even though
    simplifycfg would do the same job.  In practice, simplifycfg does not
    run until much later than sccp in gccas

llvm-svn: 17820
2004-11-15 05:45:33 +00:00
Misha Brukman b068167941 Replace the textual description with table specifying disk space requirements
llvm-svn: 17819
2004-11-15 05:19:53 +00:00
Chris Lattner 4f0316229c rename InstValue to LatticeValue, as it holds for more than instructions.
llvm-svn: 17818
2004-11-15 05:03:30 +00:00
Reid Spencer dacbf466c8 Actually get the #include correct so it compiles .. duh.
llvm-svn: 17817
2004-11-15 04:47:22 +00:00