oota-llvm.git
21 years agoFiles moved to the LoopSimplify directory
Chris Lattner [Sun, 12 Oct 2003 21:57:11 +0000 (21:57 +0000)]
Files moved to the LoopSimplify directory

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9062 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename loop preheaders pass to loop simplify
Chris Lattner [Sun, 12 Oct 2003 21:52:28 +0000 (21:52 +0000)]
Rename loop preheaders pass to loop simplify

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9061 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename -preheaders pass. Spelling fix
Chris Lattner [Sun, 12 Oct 2003 21:51:55 +0000 (21:51 +0000)]
Rename -preheaders pass.  Spelling fix

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9060 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFile is renamed to LoopSimplify.cpp
Chris Lattner [Sun, 12 Oct 2003 21:44:18 +0000 (21:44 +0000)]
File is renamed to LoopSimplify.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9059 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFirst step in renaming the preheaders pass to loopsimplify
Chris Lattner [Sun, 12 Oct 2003 21:43:28 +0000 (21:43 +0000)]
First step in renaming the preheaders pass to loopsimplify

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9058 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThe -preheaders pass is now known as -loopsimplify
Chris Lattner [Sun, 12 Oct 2003 21:42:35 +0000 (21:42 +0000)]
The -preheaders pass is now known as -loopsimplify

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9057 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThe preheader insertion pass only depends on the CFG. Mark it as such, which
Chris Lattner [Sun, 12 Oct 2003 19:33:10 +0000 (19:33 +0000)]
The preheader insertion pass only depends on the CFG.  Mark it as such, which
allows GCCAS to only run it once.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9056 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename method
Chris Lattner [Sun, 12 Oct 2003 18:52:12 +0000 (18:52 +0000)]
Rename method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9055 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename method to indicate what it does
Chris Lattner [Sun, 12 Oct 2003 18:51:53 +0000 (18:51 +0000)]
Rename method to indicate what it does

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9054 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Spell "necessary" correctly
Chris Lattner [Sun, 12 Oct 2003 08:12:58 +0000 (08:12 +0000)]
* Spell "necessary" correctly
* Print floating point values using C99 hexadecimal style FP if possible.
  This increases the number of floating point constants that may be emitted
  inline, and improves precision for global variable initializers which
  can not be emitted in integer form.

This fixes the Olden/Power benchmark with the CBE!!!!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9052 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoTest that we can emit global initializers that are not normal FP values
Chris Lattner [Sun, 12 Oct 2003 07:31:25 +0000 (07:31 +0000)]
Test that we can emit global initializers that are not normal FP values

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9050 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Be TBAA safe
Chris Lattner [Sun, 12 Oct 2003 04:36:29 +0000 (04:36 +0000)]
* Be TBAA safe
* Fix isFPCSafeToPrint to find more constants safe to print, which it was
  failing because ftostr was padding with leading space characters.
* Scan the entire module for global constants instead of each function at a
  time.  This has the advantage of allowing us to emit constants at global
  scope instead of function scope.  This speeds FP programs quite a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9048 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoGreatly expand documentation comment at head of file... I had to
Brian Gaeke [Sat, 11 Oct 2003 05:34:00 +0000 (05:34 +0000)]
Greatly expand documentation comment at head of file... I had to
 try to understand it; maybe this will help someone else do so too.
Default CVSRootDir to $CVSROOT first, then the path in ~vadve only if $CVSROOT
 was not set.
Checkout with -z3 if we might be checking out over ssh/rsh.
Check the filename of gnuplot to see if it is executable; if not, as a
 last resort, try just plain "gnuplot", hoping it is in the path somewhere.
Remove a little extra whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9046 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake mmap's fd for anonymous memory acquisition default to -1, except on
Brian Gaeke [Sat, 11 Oct 2003 03:51:18 +0000 (03:51 +0000)]
Make mmap's fd for anonymous memory acquisition default to -1, except on
Linux. This is consistent with what FreeBSD and Solaris both want.
This makes the JIT work on FreeBSD 5.1-RELEASE. Whee.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9045 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoQuote qmtest args in $(CONTEXT).
Brian Gaeke [Sat, 11 Oct 2003 00:10:05 +0000 (00:10 +0000)]
Quote qmtest args in $(CONTEXT).

I don't remember precisely what bug this fixed, but I remember that
it fixed a bug. Sorry. (I think one of these args had a Funny Shell Character
in it, or a space, or something, in my last build, and this seemed
like the obvious fix.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9044 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoActually pass in a pointer to the thrown object, not a pointer to the
Chris Lattner [Fri, 10 Oct 2003 22:55:55 +0000 (22:55 +0000)]
Actually pass in a pointer to the thrown object, not a pointer to the
exception header.  This is the final missing piece from the PR#27 puzzle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9043 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThis seems to work around some unobvious bug in gcc on sparc which was
Brian Gaeke [Fri, 10 Oct 2003 21:55:29 +0000 (21:55 +0000)]
This seems to work around some unobvious bug in gcc on sparc which was
causing the build of lib/Target/X86 to fail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9042 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemoved the AnalyzeTest class.
John Criswell [Fri, 10 Oct 2003 20:24:56 +0000 (20:24 +0000)]
Removed the AnalyzeTest class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9041 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake the clean target remove the QMTest temporary directory.
John Criswell [Fri, 10 Oct 2003 19:52:30 +0000 (19:52 +0000)]
Make the clean target remove the QMTest temporary directory.
Remove QMTest python classes which are no longer used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9040 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRenamed the feature subtests so that they do not begin with 'f'. It was
John Criswell [Fri, 10 Oct 2003 19:50:53 +0000 (19:50 +0000)]
Renamed the feature subtests so that they do not begin with 'f'.  It was
never necessary to do that to denote them as feature tests.
Removed the Feature.asm tests as they are the same as the Feature.mc
tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9039 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDon't include <stdlib.h>.
Brian Gaeke [Fri, 10 Oct 2003 19:12:45 +0000 (19:12 +0000)]
Don't include <stdlib.h>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9038 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDon't include "Config/stdlib.h".
Brian Gaeke [Fri, 10 Oct 2003 19:12:22 +0000 (19:12 +0000)]
Don't include "Config/stdlib.h".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9037 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInclude <cctype> and <cstdlib> instead of <ctype.h> and "Config/stdlib.h".
Brian Gaeke [Fri, 10 Oct 2003 19:12:08 +0000 (19:12 +0000)]
Include <cctype> and <cstdlib> instead of <ctype.h> and "Config/stdlib.h".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9036 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNo longer used anywhere.
Brian Gaeke [Fri, 10 Oct 2003 18:58:07 +0000 (18:58 +0000)]
No longer used anywhere.

Dead.

This is a dead header.

It's not pining! It's passed on! This header is no more! It has ceased
to be!  It's expired and gone to meet its maker! It's a stiff! Bereft
of life, it rests in peace! If you hadn't nailed it to the perch it'd
be pushing up the daisies! Its metabolic processes are now history! It's
off the twig! It's kicked the bucket! It's shuffled off its mortal coil,
run down the curtain, and joined the bleeding choir invisibile!! THIS IS
AN EX-HEADER!!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9035 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFixed spelling.
John Criswell [Fri, 10 Oct 2003 18:51:11 +0000 (18:51 +0000)]
Fixed spelling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9034 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRewrite head-of-file comment.
Brian Gaeke [Fri, 10 Oct 2003 18:47:08 +0000 (18:47 +0000)]
Rewrite head-of-file comment.
Include <cstdio> instead of <stdio.h>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9033 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInclude <cstdio> instead of <stdio.h>.
Brian Gaeke [Fri, 10 Oct 2003 18:46:52 +0000 (18:46 +0000)]
Include <cstdio> instead of <stdio.h>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9032 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDon't include Config/stdio.h or <stdio.h>.
Brian Gaeke [Fri, 10 Oct 2003 18:46:29 +0000 (18:46 +0000)]
Don't include Config/stdio.h or <stdio.h>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9031 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInitial checkin of Testing Guide.
John Criswell [Fri, 10 Oct 2003 18:42:49 +0000 (18:42 +0000)]
Initial checkin of Testing Guide.
Still very rough, IMHO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9030 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a new -disable-inlining option
Chris Lattner [Fri, 10 Oct 2003 18:18:53 +0000 (18:18 +0000)]
Add a new -disable-inlining option

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9028 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix spelling.
Misha Brukman [Fri, 10 Oct 2003 17:57:28 +0000 (17:57 +0000)]
Fix spelling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9027 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix grammar.
Misha Brukman [Fri, 10 Oct 2003 17:56:49 +0000 (17:56 +0000)]
Fix grammar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9026 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix spelling/grammar.
Misha Brukman [Fri, 10 Oct 2003 17:54:14 +0000 (17:54 +0000)]
Fix spelling/grammar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9023 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Tabs to spaces
Misha Brukman [Fri, 10 Oct 2003 17:45:12 +0000 (17:45 +0000)]
* Tabs to spaces
* Doxygenified function comments
* Added FIXMEs to solicit documentation for other functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9022 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix spelling.
Misha Brukman [Fri, 10 Oct 2003 17:42:19 +0000 (17:42 +0000)]
Fix spelling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9021 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Doxygenified comments
Misha Brukman [Fri, 10 Oct 2003 17:41:32 +0000 (17:41 +0000)]
* Doxygenified comments
* Wrap code at 80 columns
* Ordered includes according to LLVM style guide

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9020 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse 'F' for Function instead of 'M'.
Misha Brukman [Fri, 10 Oct 2003 17:38:31 +0000 (17:38 +0000)]
Use 'F' for Function instead of 'M'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9019 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoPrint out just the filename being compiled/linked, not the full path to it.
Misha Brukman [Fri, 10 Oct 2003 17:37:22 +0000 (17:37 +0000)]
Print out just the filename being compiled/linked, not the full path to it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9018 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRenamed dis.cpp => llvm-dis.cpp
Misha Brukman [Fri, 10 Oct 2003 17:30:10 +0000 (17:30 +0000)]
Renamed dis.cpp => llvm-dis.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9017 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRenamed as.cpp => llvm-as.cpp; this should've happened a long time ago.
Misha Brukman [Fri, 10 Oct 2003 17:28:53 +0000 (17:28 +0000)]
Renamed as.cpp => llvm-as.cpp; this should've happened a long time ago.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9016 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThe code that called strsignal is toast.
Brian Gaeke [Fri, 10 Oct 2003 17:04:43 +0000 (17:04 +0000)]
The code that called strsignal is toast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9015 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNever set any signal handlers.
Brian Gaeke [Fri, 10 Oct 2003 17:03:22 +0000 (17:03 +0000)]
Never set any signal handlers.
Never call setjmp(), longjmp() or strsignal().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9014 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRewrite head-of-file comment.
Brian Gaeke [Fri, 10 Oct 2003 17:03:10 +0000 (17:03 +0000)]
Rewrite head-of-file comment.
In lookupFunction():
 Change to use "F" for Function argument instead of ancient "M".
 Remove commented-out code.
 Change to use GetAddressOfSymbol instead of dlsym.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9013 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange to use GetAddressOfSymbol instead of dlsym.
Brian Gaeke [Fri, 10 Oct 2003 17:02:42 +0000 (17:02 +0000)]
Change to use GetAddressOfSymbol instead of dlsym.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9012 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange to use LinkDynamicObject instead of dlopen.
Brian Gaeke [Fri, 10 Oct 2003 17:01:49 +0000 (17:01 +0000)]
Change to use LinkDynamicObject instead of dlopen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9011 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange to use strtoul instead of strtoll.
Brian Gaeke [Fri, 10 Oct 2003 17:01:36 +0000 (17:01 +0000)]
Change to use strtoul instead of strtoll.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9010 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFixing the spelling of this filename.
Misha Brukman [Fri, 10 Oct 2003 16:57:31 +0000 (16:57 +0000)]
Fixing the spelling of this filename.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9009 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd my abstracted dynamic linker support files.
Brian Gaeke [Fri, 10 Oct 2003 16:55:42 +0000 (16:55 +0000)]
Add my abstracted dynamic linker support files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9008 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoReserve space for PHI operands
Chris Lattner [Fri, 10 Oct 2003 16:34:58 +0000 (16:34 +0000)]
Reserve space for PHI operands

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9007 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemoved information about compiling the GCC front end. This will be in a
John Criswell [Fri, 10 Oct 2003 16:17:19 +0000 (16:17 +0000)]
Removed information about compiling the GCC front end.  This will be in a
separate document that we will provide to people who request the source.
Updated the support architecture information to be a little more precise.
Added hyperlinks for all of the tools which are required for building LLVM.
This should make it easier for people to find and install these required
tools.
Italicized some of the "variables" that we use in place of absolute paths.
Added the --enable-spec2000 option to the quick start section.
Other minor changes/corrections/clarifications.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9006 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake the message stand out more
Chris Lattner [Fri, 10 Oct 2003 15:55:43 +0000 (15:55 +0000)]
Make the message stand out more

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9004 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRe-did some of the text wrapping (sorry).
John Criswell [Fri, 10 Oct 2003 14:26:14 +0000 (14:26 +0000)]
Re-did some of the text wrapping (sorry).
Made the "Getting Started Quickly" material its own section.  I think this makes
the document easier to read.
Added bars after every major section heading (to distinguish them more easily from
sub-section headings).
Renamed C front end to GCC front end, as we now support C and C++.
Updated material to reflect the new autoconf-style object root.
Added material about the llvm/runtime directory and the fact that you need to
install the GCC front end before building LLVM (before, it was optional).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9003 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoOk, the "fix" for this is to do a real associative container. Symbol tables
Chris Lattner [Fri, 10 Oct 2003 05:43:47 +0000 (05:43 +0000)]
Ok, the "fix" for this is to do a real associative container.  Symbol tables
are ordered by name, not by slot, so the previous solution wasn't any good.
On a large testcase, this reduces time to parse from 2.17s to 1.58s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9002 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd documentation for weak variables
Chris Lattner [Fri, 10 Oct 2003 05:01:39 +0000 (05:01 +0000)]
Add documentation for weak variables

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9001 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd support for the weak linkage specifier
Chris Lattner [Fri, 10 Oct 2003 04:56:26 +0000 (04:56 +0000)]
Add support for the weak linkage specifier

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9000 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agonew testcase. globaldce should not delete the global
Chris Lattner [Fri, 10 Oct 2003 04:54:23 +0000 (04:54 +0000)]
new testcase.  globaldce should not delete the global

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8999 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAccept 'weak' as a linkage type. For now, just turn it into linkonce linkage
Chris Lattner [Fri, 10 Oct 2003 04:54:02 +0000 (04:54 +0000)]
Accept 'weak' as a linkage type.  For now, just turn it into linkonce linkage

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8998 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Fri, 10 Oct 2003 04:05:29 +0000 (04:05 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8997 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd better checking
Chris Lattner [Fri, 10 Oct 2003 03:56:01 +0000 (03:56 +0000)]
Add better checking

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8996 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdded the eon and perlbmk benchmarks.
John Criswell [Fri, 10 Oct 2003 01:11:54 +0000 (01:11 +0000)]
Added the eon and perlbmk benchmarks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8995 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAnother 10% performance improvement by not using replaceAllUsesWith
Chris Lattner [Thu, 9 Oct 2003 23:10:14 +0000 (23:10 +0000)]
Another 10% performance improvement by not using replaceAllUsesWith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8994 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoReserve space for PHI nodes when we read them in. This provides a VERY
Chris Lattner [Thu, 9 Oct 2003 22:46:58 +0000 (22:46 +0000)]
Reserve space for PHI nodes when we read them in.  This provides a VERY
tasty 15% speedup on the testcase from Bill.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8993 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a method to reserve space for operands
Chris Lattner [Thu, 9 Oct 2003 22:45:59 +0000 (22:45 +0000)]
Add a method to reserve space for operands

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8992 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse the version of getValue that takes the type plane instead of the type
Chris Lattner [Thu, 9 Oct 2003 22:39:30 +0000 (22:39 +0000)]
Use the version of getValue that takes the type plane instead of the type
if possible.  This provides a consistent 8.5% speedup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8991 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoPass a vector around to reduce dynamic allocation
Chris Lattner [Thu, 9 Oct 2003 20:45:42 +0000 (20:45 +0000)]
Pass a vector around to reduce dynamic allocation
Throw the RawInst class in an anon namespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8990 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoKill warning when compiling in optimized mode
Chris Lattner [Thu, 9 Oct 2003 20:43:55 +0000 (20:43 +0000)]
Kill warning when compiling in optimized mode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8989 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange getConstantValue to throw an exception on error, not return null
Chris Lattner [Thu, 9 Oct 2003 20:41:16 +0000 (20:41 +0000)]
Change getConstantValue to throw an exception on error, not return null

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8988 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake getContainedType more efficient by not returning null if out of range!
Chris Lattner [Thu, 9 Oct 2003 20:35:15 +0000 (20:35 +0000)]
Make getContainedType more efficient by not returning null if out of range!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8987 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDo not read past the end of the contained type list
Chris Lattner [Thu, 9 Oct 2003 20:31:18 +0000 (20:31 +0000)]
Do not read past the end of the contained type list

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8986 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemove potentially N^2 algorithm from symbol table reader. No speedup
Chris Lattner [Thu, 9 Oct 2003 20:30:04 +0000 (20:30 +0000)]
Remove potentially N^2 algorithm from symbol table reader.  No speedup
in practice though

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8985 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMajor refactoring of the bytecode reader. This includes the following
Chris Lattner [Thu, 9 Oct 2003 20:22:47 +0000 (20:22 +0000)]
Major refactoring of the bytecode reader.  This includes the following
changes:
  * BytecodeReader::getType(...) used to return a null pointer
    on error.  This was only checked about half the time.  Now we convert
    it to throw an exception, and delete the half that checked for error.
    This was checked in before, but psmith crashed and lost the change :(
  * insertValue no longer returns -1 on error, so callers don't need to
    check for it.
  * Substantial rewrite of InstructionReader.cpp, to use more efficient,
    simpler, data structures.  This provides another 5% speedup.  This also
    makes the code much easier to read and understand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8984 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoSignificantly clean up parsing of instructions. This exceptionizes and
Chris Lattner [Thu, 9 Oct 2003 18:25:19 +0000 (18:25 +0000)]
Significantly clean up parsing of instructions.  This exceptionizes and
simplifies the control flow a bit.  This provides a small (~3%) speedup,
but it's primarily a cleanup exercise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8983 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInclude the new docs directory, whenever it gets added. www is gone
Chris Lattner [Thu, 9 Oct 2003 16:10:15 +0000 (16:10 +0000)]
Include the new docs directory, whenever it gets added.  www is gone

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8982 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdded 177.mesa to the list of Makefiles to propogate to the object root.
John Criswell [Thu, 9 Oct 2003 15:44:28 +0000 (15:44 +0000)]
Added 177.mesa to the list of Makefiles to propogate to the object root.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8981 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoEliminate the instruction placeholder. Simplify a bunch of code.
Chris Lattner [Thu, 9 Oct 2003 06:14:26 +0000 (06:14 +0000)]
Eliminate the instruction placeholder.  Simplify a bunch of code.
This results in no significant speedup, but does provide simpler code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8980 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoEliminate the old LateResolveValues data structure, replacing it with a
Chris Lattner [Thu, 9 Oct 2003 06:05:40 +0000 (06:05 +0000)]
Eliminate the old LateResolveValues data structure, replacing it with a
new, simpler, ForwardReferences data structure.  This is just the first
simple replacement, subsequent changes will improve the code more.

This simple change improves the performance of loading a file from HDF5
(contributed by Bill) from 2.36s to 1.93s, a 22% improvement.  This
presumably has to do with the fact that we only create ONE placeholder for
a particular forward referenced values, and also may be because the data
structure is much simpler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8979 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemove a dead method
Chris Lattner [Thu, 9 Oct 2003 05:25:34 +0000 (05:25 +0000)]
Remove a dead method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8978 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThis patch substantially simplifies and cleans up handling of basic blocks
Chris Lattner [Wed, 8 Oct 2003 22:52:54 +0000 (22:52 +0000)]
This patch substantially simplifies and cleans up handling of basic blocks
in the bytecode parser.  Before we tried to shoehorn basic blocks into the
"getValue" code path with other types of values.  For a variety of reasons
this was a bad idea, so this patch separates it out into its own data structure.

This simplifies the code, makes it fit in 80 columns, and is also much faster.
In a testcase provided by Bill, which has lots of PHI nodes, this patch speeds
up bytecode parsing from taking 6.9s to taking 2.32s.  More speedups to
follow later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8977 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInline the postResolveValues method. It was poorly named anyway
Chris Lattner [Wed, 8 Oct 2003 21:51:46 +0000 (21:51 +0000)]
Inline the postResolveValues method.  It was poorly named anyway

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8976 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agotest/Programs/NoSource and www are gone from the tree; don't try to configure
Brian Gaeke [Wed, 8 Oct 2003 21:48:26 +0000 (21:48 +0000)]
test/Programs/NoSource and www are gone from the tree; don't try to configure
 their Makefiles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8975 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse 3-arg form of AC_DEFINE.
Brian Gaeke [Wed, 8 Oct 2003 21:45:58 +0000 (21:45 +0000)]
Use 3-arg form of AC_DEFINE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8974 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse 3-arg form of AC_DEFINE.
Brian Gaeke [Wed, 8 Oct 2003 21:44:07 +0000 (21:44 +0000)]
Use 3-arg form of AC_DEFINE.
Check for strsignal(), which isn't found everywhere, and sys_siglist,
 which can be used to implement it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8973 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoI really meant to use that AUTOHEADER variable I put in there.
Brian Gaeke [Wed, 8 Oct 2003 21:38:35 +0000 (21:38 +0000)]
I really meant to use that AUTOHEADER variable I put in there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8972 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoVarious cleanups and simplifications. This speeds up reading a bytecode file
Chris Lattner [Wed, 8 Oct 2003 21:18:57 +0000 (21:18 +0000)]
Various cleanups and simplifications.  This speeds up reading a bytecode file
Bill gave me from 8.69s to 6.90s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8971 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDestroy allocated resources on exception.
Misha Brukman [Wed, 8 Oct 2003 19:55:47 +0000 (19:55 +0000)]
Destroy allocated resources on exception.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8969 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake more error messages have gccld's name in them.
Brian Gaeke [Wed, 8 Oct 2003 19:09:30 +0000 (19:09 +0000)]
Make more error messages have gccld's name in them.
Add a newline after "Cannot find <library>".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8968 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoold testcase
Chris Lattner [Wed, 8 Oct 2003 18:28:10 +0000 (18:28 +0000)]
old testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8967 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoCheckin an old bug, which appears to be fixed
Chris Lattner [Wed, 8 Oct 2003 18:26:10 +0000 (18:26 +0000)]
Checkin an old bug, which appears to be fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8966 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUpdate comment
Chris Lattner [Wed, 8 Oct 2003 16:56:11 +0000 (16:56 +0000)]
Update comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8965 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUse a set to keep track of which edges have been noticed as executable already
Chris Lattner [Wed, 8 Oct 2003 16:55:34 +0000 (16:55 +0000)]
Use a set to keep track of which edges have been noticed as executable already
to avoid reprocessing PHI nodes needlessly.  This speeds up the big bad PHI
testcase 43%: from 104.9826 to 73.5157s

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8964 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMinor fixes here and there
Chris Lattner [Wed, 8 Oct 2003 16:21:03 +0000 (16:21 +0000)]
Minor fixes here and there

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8963 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAvoid building data structures we don't really need. This improves the runtime
Chris Lattner [Wed, 8 Oct 2003 15:47:41 +0000 (15:47 +0000)]
Avoid building data structures we don't really need.  This improves the runtime
of a test that Bill Wendling sent me from 228.5s to 105s.  Obviously there is
more improvement to be had, but this is a nice speedup which should be "felt"
by many programs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8962 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoConvert over to short bug URLs
Chris Lattner [Wed, 8 Oct 2003 06:01:38 +0000 (06:01 +0000)]
Convert over to short bug URLs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8961 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs
Alkis Evlogimenos [Wed, 8 Oct 2003 05:20:08 +0000 (05:20 +0000)]
Change MRegisterDesc::AliasSet, TargetInstrDescriptor::ImplicitDefs
and TargetInstrDescriptor::ImplicitUses to always point to a null
terminated array and never be null. So there is no need to check for
pointer validity when iterating over those sets. Code that looked
like:

if (const unsigned* AS = TID.ImplicitDefs) {
  for (int i = 0; AS[i]; ++i) {
    // use AS[i]
  }
}

was changed to:

for (const unsigned* AS = TID.ImplicitDefs; *AS; ++AS) {
  // use *AS
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8960 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoProperly close anchor tags in column descriptions
Alkis Evlogimenos [Wed, 8 Oct 2003 05:09:52 +0000 (05:09 +0000)]
Properly close anchor tags in column descriptions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8959 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoForward declare class Type since it is used in this class and Type.h is not included
Alkis Evlogimenos [Wed, 8 Oct 2003 04:45:45 +0000 (04:45 +0000)]
Forward declare class Type since it is used in this class and Type.h is not included

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8958 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd rule for regenerating config.h.in using autoheader.
Brian Gaeke [Tue, 7 Oct 2003 23:44:10 +0000 (23:44 +0000)]
Add rule for regenerating config.h.in using autoheader.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8957 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRegenerated with (at top-level llvm directory):
Brian Gaeke [Tue, 7 Oct 2003 23:39:51 +0000 (23:39 +0000)]
Regenerated with (at top-level llvm directory):
 % autoheader -I autoconf autoconf/configure.ac

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8956 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agowhoops, don't accidentally lose variable names
Chris Lattner [Tue, 7 Oct 2003 22:58:41 +0000 (22:58 +0000)]
whoops, don't accidentally lose variable names

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8955 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: InstCombine/cast.ll:test11 / PR#7
Chris Lattner [Tue, 7 Oct 2003 22:54:13 +0000 (22:54 +0000)]
Fix bug: InstCombine/cast.ll:test11 / PR#7

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8954 91177308-0d34-0410-b5e6-96231b3b80d8