Commit Graph

9357 Commits

Author SHA1 Message Date
Brian Gaeke a730103518 Add a warning about not "new"ing or "delete"ing CallSites
llvm-svn: 9782
2003-11-07 19:25:22 +00:00
Misha Brukman d3af61d883 Added ability to register FunctionPasses as optimizations, with
TargetMachine-accepting constructors (thanks to Chris).

llvm-svn: 9781
2003-11-07 18:56:32 +00:00
Misha Brukman 7120c837fb Make the page footer consistent with the rest of the site.
llvm-svn: 9779
2003-11-07 18:11:14 +00:00
Misha Brukman 2c3068026a Switch to emitting MachineConstantPool the way it was meant to be done.
llvm-svn: 9777
2003-11-07 18:06:26 +00:00
Misha Brukman 2133b0513d Switch to using the standard representation of the constant pool -- namely, the
MachineConstantPool. This involved refactoring the two classes involved in
printing out Sparc assembly. In fact, they should share all this code anyway.

llvm-svn: 9776
2003-11-07 17:45:28 +00:00
Misha Brukman faa42d264f We accept TargetMachine as a const reference.
llvm-svn: 9775
2003-11-07 17:44:18 +00:00
Misha Brukman bd4a8ed139 PreSelection and PeepholeOpts are now FunctionPasses.
llvm-svn: 9774
2003-11-07 17:43:43 +00:00
Misha Brukman 81c748c1e2 * Stop making a global for each constant that cannot live in an instruction;
it will be converted to a MachineConstantPool index during instruction
  selection
* This is now eligible to become a FunctionPass since it does not have any side
  effects outside of the function it is processing.

llvm-svn: 9773
2003-11-07 17:31:22 +00:00
Misha Brukman bf9ed7ac1f * Use the MachineConstantPool for storing constants instead of a hash_set;
* Do not create new globals for constants!

Also, order #includes as per coding style guide

llvm-svn: 9772
2003-11-07 17:29:48 +00:00
Misha Brukman c16149d7dd Use `basename $<` to get just the filename, not full path, for ease of reading.
llvm-svn: 9770
2003-11-07 17:26:27 +00:00
Misha Brukman ad03afcb34 Declare FunctionPasses as such so that they can be used in FunctionPassManager.
llvm-svn: 9768
2003-11-07 17:20:18 +00:00
Misha Brukman 53b3d182d1 Declare FunctionPasses as such.
llvm-svn: 9767
2003-11-07 17:19:39 +00:00
Chris Lattner fc42785a60 Add some ctors for this allocator
llvm-svn: 9766
2003-11-07 15:20:06 +00:00
Brian Gaeke 65cac90a92 Refactor the return-from-function code into popStackAndReturnValueToCaller().
Make external function calls slightly less special; now they get a stack frame.

llvm-svn: 9765
2003-11-07 05:22:49 +00:00
Chris Lattner 34596d7048 Add bugz
llvm-svn: 9764
2003-11-07 04:46:56 +00:00
Chris Lattner cd4f3e601c Fix a really bad build problem for users who have .o in their build directory!
Thanks to Reid Spencer for figuring this out!  :)

llvm-svn: 9763
2003-11-07 04:39:53 +00:00
Chris Lattner 5285e9c9a0 Hopefully this will fix PR98
llvm-svn: 9762
2003-11-07 00:38:09 +00:00
Chris Lattner 395aef6bbe Hopefully fix the objdir != srcdir issue
llvm-svn: 9761
2003-11-07 00:34:33 +00:00
Misha Brukman 6c91a333ea * Added a "contents"-like list of questions at the beginning of the file
* Use stylsheets. Really, people, work with me here.
* Stop using those silly <dl> and <dt> and whatever else tags
* Close tags

llvm-svn: 9760
2003-11-06 21:55:44 +00:00
Chris Lattner cd213197dc fix warnings on sparc
llvm-svn: 9759
2003-11-06 21:30:15 +00:00
Chris Lattner 72a4db8b92 Fix warnings building on sparc
llvm-svn: 9758
2003-11-06 21:30:05 +00:00
Brian Gaeke 18027874ef All 'llvmgcc' tests should specify %llvmgcc so that the path is passed
in by qmtest.

llvm-svn: 9757
2003-11-06 21:13:45 +00:00
Chris Lattner 2a09659109 No wonder noone can set up LLVMGCCDIR correctly!
llvm-svn: 9756
2003-11-06 20:51:45 +00:00
Chris Lattner dc79f6c776 Add new commandline option
llvm-svn: 9755
2003-11-06 20:29:33 +00:00
Chris Lattner 7985d3664d Add new command line option
llvm-svn: 9754
2003-11-06 20:29:25 +00:00
Chris Lattner 38cd27e450 Various cleanups and efficiency improvements
llvm-svn: 9753
2003-11-06 19:46:29 +00:00
Chris Lattner b0a4b49b23 Fix bug: PR93
llvm-svn: 9752
2003-11-06 19:18:49 +00:00
Misha Brukman b4ad4c3d4c * Make the comment header 80 columns long
* Alphabetize #includes

llvm-svn: 9751
2003-11-06 18:06:13 +00:00
Misha Brukman 2b8724acc6 Let's not forget about our friends -- Constant Pool indices.
llvm-svn: 9750
2003-11-06 00:04:11 +00:00
Brian Gaeke 6f54518e08 Give this header file an Emacs mode-line.
llvm-svn: 9749
2003-11-05 22:13:10 +00:00
Brian Gaeke 1d9515b0a1 Do not assume the first file is a bytecode file. Instead, construct a dummy
Module and link things into that.

Also, fix a typo in an error message.

llvm-svn: 9748
2003-11-05 22:13:00 +00:00
Brian Gaeke 31af708ef6 Shorten and correct some function-header comments.
Make "verbose" output MUCH nicer. Now it tells you when you are linking a
bytecode file, or an archive, and whether it's because you called it by name,
or because you gave it a -l option, and it says "Trying" before it takes
action and prints a message in the past tense afterwards.

Make LinkFiles not skip the first file in Files.

Make LinkFiles warn you if it can't find a file and LLVM_LIB_SEARCH_PATH is
unset.

llvm-svn: 9747
2003-11-05 22:12:52 +00:00
Chris Lattner 83bc0a06b6 new testcase
llvm-svn: 9746
2003-11-05 22:06:03 +00:00
Chris Lattner 4e1b467594 Fix the problem with running cleanups in bugpoint: We were deleting arguments
of intrinsic functions, causing the verifier to fail.

llvm-svn: 9745
2003-11-05 21:53:41 +00:00
Chris Lattner a616c55ba9 Bugpoint no longer has this option
llvm-svn: 9744
2003-11-05 21:46:13 +00:00
Chris Lattner 2920100e4d I hate it when bugpoint is all ready to give me a bytecode file, then crashes
in final cleanups.  Then you had to run the whole mess again with
-disable-final-cleanups.

This makes bugpoint run the cleanups in a protected environment so that if
they crash, bugpoint itself doesn't crash.  This makes things much happier,
implements a FIXME, and gets rid of YABPO (yet another bugpoint option).

llvm-svn: 9743
2003-11-05 21:45:35 +00:00
Chris Lattner a2e48a82fe Split the DAE pass into DAE and DAH passes
llvm-svn: 9742
2003-11-05 21:43:42 +00:00
Chris Lattner 9e60aced2e Split behavior into two pieces
llvm-svn: 9741
2003-11-05 21:43:02 +00:00
Chris Lattner debac38f5e Simplify the performFinalCleanups interface
llvm-svn: 9740
2003-11-05 21:15:19 +00:00
Chris Lattner 8055fb3afa Yet more fixes for constant expr shifts
llvm-svn: 9739
2003-11-05 20:43:58 +00:00
Chris Lattner ba55bd37fe Further fixes for PR93
llvm-svn: 9738
2003-11-05 20:37:01 +00:00
Brian Gaeke 7f3327fc2c A few handy methods that seem to mesh well with what CallSite already provides.
llvm-svn: 9737
2003-11-05 20:25:33 +00:00
Chris Lattner c3d6f21bbe no need for endl
llvm-svn: 9736
2003-11-05 19:53:32 +00:00
Chris Lattner b36e8a1a2e Add support for constant expr shifts
llvm-svn: 9735
2003-11-05 19:53:03 +00:00
Misha Brukman 07b385da27 Since this function returns an int, let's actually return something.
llvm-svn: 9734
2003-11-05 19:48:05 +00:00
Chris Lattner 51b560602e New testcase
llvm-svn: 9733
2003-11-05 19:43:36 +00:00
Chris Lattner e225507193 If we're not checking, don't check!
llvm-svn: 9732
2003-11-05 19:09:40 +00:00
Chris Lattner 7c94d1171a Fix flawed logic that was breaking several SPEC benchmarks, including gzip and crafty.
llvm-svn: 9731
2003-11-05 17:31:36 +00:00
Misha Brukman e5b358c829 We know exactly what the value of $< is, so instead of using `basename $<` to
get just the filename and not the full path, just use the filename directly.

llvm-svn: 9730
2003-11-05 06:43:36 +00:00
Misha Brukman 8330f2be73 Output only the .y filename, not the full path to it for ease of reading.
llvm-svn: 9729
2003-11-05 06:41:14 +00:00
Chris Lattner ab77bc588d Add three more bugs
llvm-svn: 9728
2003-11-05 06:30:04 +00:00
Chris Lattner a9e7fe9ea2 Do not use a class before it is defined.
Be gcc 3.4 clean

llvm-svn: 9727
2003-11-05 06:25:06 +00:00
Chris Lattner b5b9ba6ff6 Be friendly to gcc 3.4... good compiler. Nice compiler.
llvm-svn: 9726
2003-11-05 06:20:27 +00:00
Chris Lattner 813ec04735 Be gcc 3.4 clean
llvm-svn: 9725
2003-11-05 06:12:18 +00:00
Chris Lattner c17fe1cdfe Make -r work, fixing PR 91
llvm-svn: 9724
2003-11-05 06:05:21 +00:00
Alkis Evlogimenos 43b0bbe12c Add std::pair tier. This is a much simplified version of boost::tie
that works only for std::pair.

llvm-svn: 9723
2003-11-05 05:58:26 +00:00
Chris Lattner 5f6463c041 Fix name collision
llvm-svn: 9722
2003-11-05 05:55:45 +00:00
Chris Lattner 21c7894ea0 Add a dtor to ensure that they are called the right number of times.
llvm-svn: 9721
2003-11-05 05:31:24 +00:00
Chris Lattner b3a9b6626f NEw testcase
llvm-svn: 9720
2003-11-05 05:22:15 +00:00
Chris Lattner 41baa98478 Make code gcc 3.4 clean
llvm-svn: 9719
2003-11-05 05:15:42 +00:00
Chris Lattner d4741c5ee9 New testcase
llvm-svn: 9718
2003-11-05 01:36:49 +00:00
Chris Lattner 2b553e69d8 This works with GCC 3.4 also
llvm-svn: 9717
2003-11-05 01:31:12 +00:00
Brian Gaeke 4e106f0649 Abort when the user program calls abort, instead of printing a funny message and calling exit(1).
llvm-svn: 9716
2003-11-05 01:18:49 +00:00
Chris Lattner 8f2f598024 Fix bug with previous implementation:
-      // ~(c-X) == X-(c-1) == X+(-c+1)
+      // ~(c-X) == X-c-1 == X+(-c-1)

Implement: C - ~X == X + (1+C)
llvm-svn: 9715
2003-11-05 01:06:05 +00:00
Chris Lattner b6ca46e0f9 New testcase for the other side
llvm-svn: 9714
2003-11-05 01:05:22 +00:00
Brian Gaeke 221827ab07 Use regular old malloc to emulate malloc/alloca instructions.
llvm-svn: 9713
2003-11-05 01:02:14 +00:00
Brian Gaeke 175018317e Remove a comment which no longer applies.
llvm-svn: 9712
2003-11-05 00:59:28 +00:00
Chris Lattner e580666532 Minor cleanup, plus implement InstCombine/xor.ll:test17
llvm-svn: 9711
2003-11-04 23:50:51 +00:00
Chris Lattner f6368c803c Since we're in the neighborhood, test for the inverse
llvm-svn: 9710
2003-11-04 23:49:53 +00:00
Chris Lattner d6a5d90ae2 Fix spello
Add negate overload

llvm-svn: 9709
2003-11-04 23:37:40 +00:00
Chris Lattner 0f68fa6569 Implement InstCombine/xor.ll:test(15|16)
llvm-svn: 9708
2003-11-04 23:37:10 +00:00
Chris Lattner e3a932c6d0 Add a generalization of the previous case
llvm-svn: 9707
2003-11-04 23:36:50 +00:00
Chris Lattner f622d7c31e New testcase for masking operation that frequently occurs in the pool allocator
for converting a number that is a power of two into a mask

llvm-svn: 9706
2003-11-04 23:21:22 +00:00
Alkis Evlogimenos 20d03bb166 Update documentation since it was misleading: make it clear that a
negative instruction count is returned if instructions are removed
from a basic block.

llvm-svn: 9705
2003-11-04 23:07:00 +00:00
Alkis Evlogimenos 9118a426d3 Change all machine basic block modifier functions in MRegisterInfo to
return the number of instructions added to/removed from the basic block
passed as their first argument.

Note: This is only needed because we use a std::vector instead of an
ilist to keep MachineBasicBlock instructions. Inserting an instruction
to a MachineBasicBlock invalidates all iterators to the basic
block. The return value can be used to update an index to the machine
basic block instruction vector and circumvent the iterator elimination
problem but this is really not needed if we move to a better
representation.

llvm-svn: 9704
2003-11-04 22:57:09 +00:00
Brian Gaeke 69c2841b2a Update verifySavedState()'s comment, so that it reflects its current
status.  In doFinalization(), skip over external functions, just like
Anand's mapping info does.

llvm-svn: 9703
2003-11-04 22:42:41 +00:00
Chris Lattner ee0ba89dd1 New file, for use by the pool allocator project
llvm-svn: 9702
2003-11-04 22:38:28 +00:00
Chris Lattner c679fbbab4 Substantial release notes updates
llvm-svn: 9700
2003-11-04 20:06:53 +00:00
Chris Lattner 12d304d4d8 New testcase for PR80
llvm-svn: 9699
2003-11-04 18:52:01 +00:00
Chris Lattner ba4b1c47c1 New testcase
llvm-svn: 9698
2003-11-04 18:34:05 +00:00
Brian Gaeke 2a262ef095 Add comments.
llvm-svn: 9697
2003-11-04 18:25:56 +00:00
Chris Lattner 604ac9cfc0 While working on the pool allocator, I noticed that basicaa is failing a scary
number of simple cases.  Someday when I get a chance to work on it again, this
testcase should be corrected.

llvm-svn: 9695
2003-11-04 16:40:40 +00:00
Chris Lattner 47dfa641c3 Fix problems in previous changes. This fixes several regressions last night.
llvm-svn: 9694
2003-11-04 16:04:32 +00:00
John Criswell 81587e798a Checking in Chris's suggestions:
Added assert() to ensure symbol table is well formed.
Added code to remember the value that was found; resolving types can change
the symbol table and invalidate the value of the iterator.
Added comments to the ResolveTypes() function (mainly for my own benefit).
Please feel free to correct the comments if they are not accurate.

llvm-svn: 9693
2003-11-04 15:22:26 +00:00
Chris Lattner 72974ffdbf New testcase for PR84
llvm-svn: 9690
2003-11-03 21:37:08 +00:00
John Criswell 28f8fc669d Modified build rules so that a messages appears before and after linking.
This helps to disambiguate when linking begins and when the library/program
is linked and ready to be used.
This is sort of as preference thing, so feel free to modify/revert the change.

llvm-svn: 9687
2003-11-03 21:12:49 +00:00
Chris Lattner b71c3f7430 Significantly simplify constant emission by unifying the stuff which used to build up
strings with the stuff that used to print to an ostream directly.  We now NEVER build
up big strings, only to print them once they are formed.

llvm-svn: 9686
2003-11-03 20:19:49 +00:00
Chris Lattner ef114d52e8 updates to release notes
llvm-svn: 9685
2003-11-03 20:08:08 +00:00
Chris Lattner 469e404370 Incorporate printSingleConstantValue into its single caller
llvm-svn: 9684
2003-11-03 19:44:05 +00:00
Chris Lattner 72e516f0d1 * Reformat some code
* Emit bools as 1/0 instead of true/false, fixing compilation of eon and
  PR 83 & Jello/2003-11-03-GlobalBool.llx

llvm-svn: 9683
2003-11-03 19:33:45 +00:00
Chris Lattner bf1b435d04 New testcase
llvm-svn: 9682
2003-11-03 19:27:17 +00:00
Chris Lattner 7c18b18c46 Fix InstCombine/2003-11-03-VarargsCallBug.ll
llvm-svn: 9681
2003-11-03 18:44:58 +00:00
Chris Lattner 05f448173e New testcase for a bug in instcombine
llvm-svn: 9680
2003-11-03 18:33:44 +00:00
Chris Lattner 39c0a19894 Work around a bug in GCC where it can't handle common variables marked weak.
llvm-svn: 9679
2003-11-03 17:35:00 +00:00
Chris Lattner e4e2595f71 Fix bugs with attribute weak emission
llvm-svn: 9678
2003-11-03 17:32:38 +00:00
Chris Lattner cbf2aeb684 If linking a library, do not link other libraries, like libc, into it!
This fixes lots of annoying warnings and error messages

llvm-svn: 9677
2003-11-03 17:27:17 +00:00
John Criswell 907720dfe1 Closed the h2 header for the LLVM Test Suite Organization section.
llvm-svn: 9676
2003-11-03 14:59:59 +00:00
Chris Lattner d33bc06316 More testcases
llvm-svn: 9675
2003-11-03 05:42:50 +00:00
Chris Lattner e600cec9ec Move a test from cast-set to a new bit-tracking.ll file. Update file comments
llvm-svn: 9674
2003-11-03 05:30:34 +00:00
Chris Lattner 6444c37488 Implement InstCombine/cast-set.ll:test6[a]. This improves code generated for
a hot function in em3d

llvm-svn: 9673
2003-11-03 05:17:03 +00:00
Chris Lattner 11bea4f7c7 Add another case, which an implementation of test6 must be sure to handle
correctly.

llvm-svn: 9672
2003-11-03 05:08:53 +00:00
Chris Lattner 7be3ab2fb7 This simplifies the CWriter code, makes the generated code easier to read,
and makes the output work with the intel compiler.  Overall, a win.

llvm-svn: 9671
2003-11-03 04:31:54 +00:00
Chris Lattner 1693079e92 Implement InstCombine/cast-set.ll: test1, test2, test7
llvm-svn: 9670
2003-11-03 04:25:02 +00:00
Chris Lattner efde768bf5 Add the testcase from PR8
llvm-svn: 9669
2003-11-03 03:52:34 +00:00
Chris Lattner c75cfac56d Add another case, which occurs in em3d
llvm-svn: 9668
2003-11-03 03:51:26 +00:00
Chris Lattner af7893203b Fix bug with zero sized casts
llvm-svn: 9667
2003-11-03 01:29:41 +00:00
Chris Lattner 7af7d94df2 Eliminate the silly namedContext member of printType
llvm-svn: 9666
2003-11-03 01:01:59 +00:00
Chris Lattner 2e8d28d082 Allow CallSites to be used as the key of a map
llvm-svn: 9660
2003-11-02 23:04:33 +00:00
Chris Lattner 2b9926fc8e All DSGraphs keep a reference to the targetdata they are created with. This is
used to eliminate the hard coded, hacked in, sparc specific, global TargetData.
Changing the TargetData used to actually match the code fixes problems, and
eliminates a crash.

llvm-svn: 9659
2003-11-02 22:27:28 +00:00
Chris Lattner 53e8fab411 Fix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
llvm-svn: 9658
2003-11-02 21:02:20 +00:00
Chris Lattner 175c0839ca New testcase for DSA which is improperly collapsed!
llvm-svn: 9657
2003-11-02 20:43:10 +00:00
Chris Lattner d4d987dd4a Fix bug in previous checkin
llvm-svn: 9656
2003-11-02 06:54:48 +00:00
Chris Lattner 1f30e93306 The 'thefunc' function should not have weak linkage, it should have linkonce linkage.
llvm-svn: 9655
2003-11-02 06:30:39 +00:00
Chris Lattner f4ad165e8b Implement transmogriphication of allocation instructions
llvm-svn: 9654
2003-11-02 05:57:39 +00:00
Chris Lattner fd2183a9cc Add test for instcombine transmogrifying allocation instructions
llvm-svn: 9653
2003-11-02 05:56:58 +00:00
Chris Lattner 38e692da04 Add note about profile.sh
llvm-svn: 9652
2003-11-02 05:20:44 +00:00
Chris Lattner 5d8e552cf1 Add -help option
llvm-svn: 9651
2003-11-02 05:17:32 +00:00
Chris Lattner dd024a09d9 Bugz fixed
llvm-svn: 9650
2003-11-02 02:15:11 +00:00
Chris Lattner d57aa5e8a5 Checkin an initial version of the llvm-prof documentation
llvm-svn: 9649
2003-11-02 02:10:54 +00:00
Chris Lattner 7f7285bab7 Fix PR78
llvm-svn: 9648
2003-11-02 02:06:27 +00:00
Chris Lattner 4fa54568a3 The "correct" fix for CBackend/2003-10-23-UnusedType.ll is to not even try
to emit types which are not used.

llvm-svn: 9647
2003-11-02 01:29:27 +00:00
Chris Lattner 7949bf0d54 Including the symbol table in the FindUsedTypes analysis was the WRONG way
to fix test/Regression/CBackend/2003-10-23-UnusedType.ll.  This completely
neutered the deadtypeelim pass.

llvm-svn: 9646
2003-11-02 01:28:41 +00:00
Chris Lattner 91d79bb4be New testcase for PR79
llvm-svn: 9645
2003-11-02 00:57:56 +00:00
Chris Lattner 22c19cdf99 new testcase, for PR 81
llvm-svn: 9644
2003-11-02 00:22:27 +00:00
Chris Lattner ecbf07b6cd Regression test for PR 80
llvm-svn: 9643
2003-11-01 23:42:08 +00:00
Chris Lattner e9cdb46520 Escape "'s, which are frequent visitors to C++ types
llvm-svn: 9642
2003-10-31 22:16:41 +00:00
Chris Lattner b45d9077cb Strip off CPR's manually, because if we don't, the inliner doesn't delete dead
functions.  GRR

llvm-svn: 9641
2003-10-31 21:05:58 +00:00
Chris Lattner 9c4a58b780 Make the call graph more precise despite the hated constantpointerrefs.
Do you detect the animosity I feel towards CPRs yet?

llvm-svn: 9640
2003-10-31 21:05:12 +00:00
Chris Lattner 9157ec025b Did I mention that I _HATE_ CPRs?
llvm-svn: 9639
2003-10-31 18:38:06 +00:00
Misha Brukman ff91940879 Use stylesheets as much as we can. I admit, I still cannot make CSS do what I
can do with tables, which annoys me.

llvm-svn: 9638
2003-10-31 18:37:20 +00:00
Chris Lattner 0989953b31 Obsolete file goes byebye
llvm-svn: 9637
2003-10-31 18:06:32 +00:00
Misha Brukman 9dc2a3d05c Use some style(sheets).
llvm-svn: 9636
2003-10-31 18:01:30 +00:00
Chris Lattner f6925da295 Constant pointer refs are causing these to fail unnecessarily, which is causing
a lot of code to be pessimized.  I hate CPRs.  :(

llvm-svn: 9635
2003-10-31 17:51:16 +00:00
Brian Gaeke b8c28f3553 Well, to be honest, -array-checks and -trace are gone, too. :-)
llvm-svn: 9631
2003-10-31 05:12:04 +00:00
Alkis Evlogimenos 6029d4032c Use already existing classes for post order iterator.
llvm-svn: 9629
2003-10-31 03:02:34 +00:00
Misha Brukman 47e7fd2c0f * Not much point to indent the whole file
* Let CVS keep track of our last-modified timestamp

llvm-svn: 9628
2003-10-31 00:39:28 +00:00
Misha Brukman c64b74554a The `-q' option has gone away.
llvm-svn: 9627
2003-10-31 00:34:52 +00:00
Chris Lattner 9061d70325 never print zero executions blocks
llvm-svn: 9626
2003-10-31 00:34:05 +00:00
Chris Lattner a36f81a3ea Simplify code
llvm-svn: 9625
2003-10-31 00:20:09 +00:00
Chris Lattner 34e1549e1b Add percentage info
llvm-svn: 9624
2003-10-31 00:13:26 +00:00
Chris Lattner 0575f97e4b Hrm, some of my counters are wrapping around 32 bits
llvm-svn: 9623
2003-10-31 00:06:57 +00:00
Chris Lattner babc99cf80 If only have function profile, don't print out "not executed" for all of the blocks :)
llvm-svn: 9622
2003-10-30 23:44:28 +00:00
Chris Lattner 2a5767e4f1 Add the ability to print out llvm code when the -annotated-llvm option is given
llvm-svn: 9621
2003-10-30 23:42:09 +00:00
Chris Lattner eeabc3f846 Expose new print methods
llvm-svn: 9620
2003-10-30 23:41:19 +00:00
Chris Lattner 8339f7d379 Make use of the new AssemblyAnnotationWriter interface
llvm-svn: 9619
2003-10-30 23:41:03 +00:00
Chris Lattner de171b3d18 New interface
llvm-svn: 9618
2003-10-30 23:39:52 +00:00
Brian Gaeke 8541bd9db9 Include llvm/CodeGen/MachineCodeForInstruction.h. Use it to start
implementing verifySavedState().

In saveState(), use the new AllocInfo::AllocStateTy enum, and increment
Insn each time through the loop.

llvm-svn: 9617
2003-10-30 21:21:33 +00:00
Brian Gaeke 727ec9bec5 Make AllocState an enum.
Move the stringifying method for that enum into class AllocInfo.

llvm-svn: 9616
2003-10-30 21:21:22 +00:00
Alkis Evlogimenos 5a320efd3b Output types in reverse postorder. This will allow the ByteCode/Reader
to create the minimum number of opaque types for each type with a
cycle in its type graph.

llvm-svn: 9615
2003-10-30 21:04:44 +00:00
Alkis Evlogimenos 404beb98ef Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles.

llvm-svn: 9614
2003-10-30 18:33:58 +00:00
Chris Lattner b45e1f990c Bugz fixed
llvm-svn: 9613
2003-10-30 16:20:15 +00:00
Brian Gaeke 8d09fd1ea6 Apparently my Mac OS X fixes were not entirely compatible with SPARC...hmm.
llvm-svn: 9612
2003-10-30 15:03:49 +00:00
Chris Lattner dd63f9e22b When someone includes CallGraph.h, make sure that they link in CallGraph.cpp
llvm-svn: 9611
2003-10-30 05:17:30 +00:00
Chris Lattner 30aad2a98e Fix typo
llvm-svn: 9610
2003-10-30 04:35:26 +00:00
Chris Lattner a306dd2c05 New bug
llvm-svn: 9609
2003-10-30 01:43:33 +00:00
Chris Lattner 9e167cd6ab Tighten up what we consider to be first class types.
llvm-svn: 9608
2003-10-30 01:38:41 +00:00
Chris Lattner 0fc43a6048 Make sure that PHI node operands are first class types
llvm-svn: 9607
2003-10-30 01:38:18 +00:00
Chris Lattner 78293b7023 Clarify that all manipulatable values must be of first class type, and specifically
update the PHI node entry to mention this as well.

llvm-svn: 9606
2003-10-30 01:31:37 +00:00
Misha Brukman d8c3ba3315 * Send people to the LLVMdev archive/subscription page rather than just state
the address
* Somewhat standardize the footer of the page

llvm-svn: 9605
2003-10-30 01:23:40 +00:00
Chris Lattner a2bd4e07ee Another day, another bug
llvm-svn: 9604
2003-10-30 01:20:42 +00:00
Misha Brukman da6f521ab0 Add a link to the C/C++ front-end building instructions.
llvm-svn: 9603
2003-10-30 01:19:16 +00:00
Misha Brukman 5b4dea338e The answer to this question is "Yes". Let's make that absolutely clear even to
those just skimming the FAQ.

llvm-svn: 9602
2003-10-30 01:16:18 +00:00
Misha Brukman 8a98cd1097 Call me picky, but it's not the state of Illinois' license, it's the
University's.

llvm-svn: 9601
2003-10-30 01:13:56 +00:00
Chris Lattner 686767f3f6 Fix bug: 2003-10-29-CallSiteResolve.ll & PR70
llvm-svn: 9600
2003-10-30 00:46:41 +00:00
Chris Lattner 3cffc56451 New testcase crashing the instruction combiner
llvm-svn: 9599
2003-10-30 00:39:25 +00:00
Chris Lattner f14ead9210 Print the names of more opaque types
llvm-svn: 9598
2003-10-30 00:22:33 +00:00
Chris Lattner 92d60539c8 Make sure to print opaque types names if they are available.
llvm-svn: 9597
2003-10-30 00:12:51 +00:00
Chris Lattner 3538c9d2d3 Pass unrecognized options into llvmprof
llvm-svn: 9596
2003-10-29 21:51:00 +00:00
Chris Lattner a79d2b54d2 Add the ability to synthesize function counts from block count information
llvm-svn: 9595
2003-10-29 21:47:44 +00:00
Chris Lattner e4fb19033e Print the top 20 most frequently executed blocks. Fix sort predicate problem
llvm-svn: 9594
2003-10-29 21:41:17 +00:00
Chris Lattner 3420137e63 Refactor code, initial implementation of -insert-block-profiling pass
llvm-svn: 9593
2003-10-29 21:24:22 +00:00
Chris Lattner ab8873dde3 More bugs fixed!
llvm-svn: 9592
2003-10-29 20:59:45 +00:00
Dinakar Dhurjati 043b4b0bc3 Fixed LinkO, LinkP error in TOOLLINKOPTSB
llvm-svn: 9591
2003-10-29 20:34:13 +00:00
Brian Gaeke 45eb2eeb74 Explicitly cast type, so we aren't passing output_vbr a size_t.
llvm-svn: 9590
2003-10-29 20:09:01 +00:00
Brian Gaeke adc07972bc Tweak sed commands so that they filter out more # stuff and also
work on Mac OS X. Also turn ${...} into $(...); we do not speak BSD
Make.

llvm-svn: 9589
2003-10-29 20:07:35 +00:00
Brian Gaeke 7086bbb33c Add support for utostr(unsigned long)
llvm-svn: 9588
2003-10-29 20:06:19 +00:00
Chris Lattner cbeda5ad9b New testcase
llvm-svn: 9587
2003-10-29 19:18:48 +00:00
Chris Lattner 5b83b56e17 Add two new bugs
llvm-svn: 9586
2003-10-29 18:49:14 +00:00
Chris Lattner bcb0f4bf2e Fix PR66 & ScalarRepl/2003-10-29-ArrayProblem.ll
llvm-svn: 9585
2003-10-29 17:55:44 +00:00
Chris Lattner 9e761b40af New testcase distilled from:
UnitTests/2003-10-29-ScalarReplBug.c

llvm-svn: 9584
2003-10-29 16:24:10 +00:00
Dinakar Dhurjati 3ac83a9bb3 Added TOOLLINKOPTSB to pass options to the linker (e.g. adding search
path for external libraries).

llvm-svn: 9582
2003-10-29 14:28:35 +00:00
Chris Lattner a1a090eff4 New bug fixed
llvm-svn: 9581
2003-10-29 07:17:13 +00:00
Chris Lattner 5f6286f1e4 Another bug fixed
llvm-svn: 9580
2003-10-29 06:05:55 +00:00
Chris Lattner e5f15cdc5f Fix bug: ConstantMerge/2003-10-28-MergeExternalConstants.ll & PR64
llvm-svn: 9579
2003-10-29 06:01:26 +00:00
Chris Lattner fa979bd78b New testcase
llvm-svn: 9578
2003-10-29 05:51:03 +00:00
Brian Gaeke 0a82d78d8c Pull in stdint.h here, if we have it. Some systems keep
the INT*_MAX macros there.

llvm-svn: 9577
2003-10-29 04:25:48 +00:00
Brian Gaeke 9d2020003b In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
because the Arch variable will likely be undefined.

llvm-svn: 9576
2003-10-29 04:24:09 +00:00
Alkis Evlogimenos d478d3d19c Add more debugging info to help tracing the SlotCalculator.
llvm-svn: 9575
2003-10-29 03:12:12 +00:00
Chris Lattner 56df0a53af Yet another bugfix for 1.1
llvm-svn: 9574
2003-10-29 01:26:07 +00:00
Chris Lattner c0a9905d1d New testcase
llvm-svn: 9573
2003-10-29 01:23:01 +00:00
Chris Lattner 3e5ff2568c Check in statistifying patch for Bill
llvm-svn: 9572
2003-10-28 23:14:59 +00:00
Chris Lattner 36213c7f97 Add fixed PR
llvm-svn: 9571
2003-10-28 23:13:03 +00:00
Chris Lattner 8d1464e2d6 Add new method
llvm-svn: 9570
2003-10-28 23:10:44 +00:00
Chris Lattner 54ac910a5c Fix PR62, and llvm/test/Regression/CBackend/2003-10-28-CastToPtrToStruct.ll
ConstantExpr's can use unrelated types, make sure to scan them.

llvm-svn: 9569
2003-10-28 23:09:45 +00:00
Brian Gaeke 329265fa87 New testcase, reduced from DOOM.
llvm-svn: 9568
2003-10-28 22:54:56 +00:00
Chris Lattner c88f7bb317 Cleanup output a bit
llvm-svn: 9567
2003-10-28 22:53:49 +00:00
Chris Lattner 2c14d253c4 Add option for block profiling, pass in the "correct" argv[0] to the program
llvm-svn: 9566
2003-10-28 22:52:05 +00:00
Chris Lattner 5564406f6e Add the ability for users to specify a specific argv[0] to pass into the
program

llvm-svn: 9565
2003-10-28 22:51:44 +00:00
Chris Lattner 3e659233aa Actually save and pass in argument information
llvm-svn: 9564
2003-10-28 22:45:25 +00:00
Chris Lattner 183fa7ceb3 Pass in argc & argv
llvm-svn: 9563
2003-10-28 22:42:24 +00:00
Chris Lattner 2343a0eed2 Print out command lines used to run the programs
llvm-svn: 9562
2003-10-28 22:30:37 +00:00
Brian Gaeke 8fb7af1ee7 Fix extract to use the right TargetData, like Bugpoint does.
llvm-svn: 9561
2003-10-28 22:22:16 +00:00
Chris Lattner 10c91cccff Helper script for collecting profiling instrumentation. Simply run
$ profile.pl foo.bc <args>

... to instrument, run, then print a program profile!

llvm-svn: 9560
2003-10-28 22:11:31 +00:00
Chris Lattner 2091cc4310 Add support for reading block frequencies. Fix bug in attribution of counts
to functions

llvm-svn: 9559
2003-10-28 21:25:23 +00:00
Misha Brukman b7c3b6dc4d * Put LLVM in title of page so readers know which CFE we're talking about
* Use <ol> instead of <ul> if we're gonna number the list items
* Close <li> tags
* Stylize the document footer to be consistent

llvm-svn: 9558
2003-10-28 21:09:29 +00:00
Chris Lattner 8b8a777e41 Provide an accessor for getting function count information. Print a simple
report

llvm-svn: 9557
2003-10-28 21:08:18 +00:00
Chris Lattner fc8bd0622f Read in the bytecode and profile information, but don't do anything with
it yet.

llvm-svn: 9556
2003-10-28 20:13:07 +00:00
Chris Lattner 5b78ea3473 We need to output the number of records we have, so we know how many to read in! Doh.
llvm-svn: 9555
2003-10-28 19:35:56 +00:00
John Criswell c3ee97dc76 Generated autoconf script for Chris.
llvm-svn: 9554
2003-10-28 19:21:11 +00:00
Chris Lattner cccd090942 Add profiling runtime and llvm-prof tools. Would someone please regen the
configure script for me?  :)

llvm-svn: 9553
2003-10-28 19:17:11 +00:00
Chris Lattner f6c89c91ae Build the llvm-prof directory
llvm-svn: 9552
2003-10-28 19:16:49 +00:00
Chris Lattner 14b392fdea Initial checkin of llvmprof stub
llvm-svn: 9551
2003-10-28 19:16:35 +00:00
Brian Gaeke c4fdf65e5a Remove __STDC_LIMIT_MACROS from here.
llvm-svn: 9550
2003-10-28 19:11:29 +00:00
Brian Gaeke be9e03f0e4 Add __STDC_LIMIT_MACROS here.
llvm-svn: 9549
2003-10-28 19:09:28 +00:00
Chris Lattner 3c0254e47e Reorder #includes, drop unneeded one
llvm-svn: 9548
2003-10-28 19:08:15 +00:00
Chris Lattner c8ba0672ac Initial checkin of profiling instrumentation pass. So far, despite the
file name, we only support function profiling.  This will be fixed in the
near future.

llvm-svn: 9547
2003-10-28 18:59:04 +00:00
Chris Lattner fa5846a33f Initial checkin of function and block profiling runtime library
llvm-svn: 9546
2003-10-28 18:56:51 +00:00
Misha Brukman 11d1f015af Publications do not get distributed with docs/; hence, their stylesheet need not
be distributed either.

llvm-svn: 9545
2003-10-28 18:55:27 +00:00
Chris Lattner d09f339bed I'm tired of the nightly tester stopping, aren't you?
llvm-svn: 9544
2003-10-28 18:37:24 +00:00
Chris Lattner 233989316c Eliminate using declarations
llvm-svn: 9543
2003-10-27 21:44:09 +00:00
Chris Lattner 5e004e8ce0 Propagating constants to arguments can make other arguments constant. For now
do something dumb, and inefficient, but more complete.

llvm-svn: 9542
2003-10-27 21:09:00 +00:00
Chris Lattner d2a7427caa Clarify what is a bug and what isn't
llvm-svn: 9539
2003-10-27 18:30:37 +00:00
John Criswell f531f319d2 Merged in RELEASE_1.
llvm-svn: 9538
2003-10-27 18:18:16 +00:00
John Criswell 867d59abbc Merged in RELEASE_1.
llvm-svn: 9537
2003-10-27 18:02:06 +00:00
Chris Lattner d16d975ac3 Add a new bugfix
llvm-svn: 9536
2003-10-27 17:58:57 +00:00
John Criswell 8f04bf6426 Merged in RELEASE_1.
llvm-svn: 9535
2003-10-27 17:56:26 +00:00
Chris Lattner 2a4349e1bd New testcase which crashes the C++ FE
llvm-svn: 9534
2003-10-27 17:51:31 +00:00
John Criswell cdde075fa9 Merged RELEASE_1.
llvm-svn: 9533
2003-10-27 17:46:42 +00:00
John Criswell 9d977d58db Updated with Vikram's comments.
llvm-svn: 9532
2003-10-27 17:41:53 +00:00
Chris Lattner 639579c884 Update release notes for recent bug fixes
llvm-svn: 9531
2003-10-27 17:06:39 +00:00
Chris Lattner b727fb2663 Fix test: Linker/2003-10-27-LinkOncePromote.ll
Fix PR58

llvm-svn: 9530
2003-10-27 16:39:39 +00:00
Chris Lattner f38da836f0 Fix initializers to match
llvm-svn: 9529
2003-10-27 16:30:29 +00:00
Chris Lattner eba4dbf28d New testcase
llvm-svn: 9528
2003-10-27 16:18:28 +00:00
Chris Lattner 25fd5c107f Update release notes
llvm-svn: 9527
2003-10-27 05:41:39 +00:00
Chris Lattner d9f4ffdf5e Get the list of PHI node values before the basic block is split. Also, add
PHI node entries for unwind instructions just like for call instructions which
became invokes!  This fixes PR57, tested by
Inline/2003-10-26-InlineInvokeExceptionDestPhi.ll

llvm-svn: 9526
2003-10-27 05:33:09 +00:00
Chris Lattner 0fd9c24e56 New testcase.
llvm-svn: 9525
2003-10-27 05:13:47 +00:00
Chris Lattner 9b3c460a1e Make sure to syntax hilight the 'unwind' keyword!
llvm-svn: 9524
2003-10-27 05:09:15 +00:00
Chris Lattner 4f50ebda32 Do not print out lists with thousands of elements in them, that's kinda silly
llvm-svn: 9523
2003-10-27 04:44:59 +00:00
Chris Lattner 7c4bd1d30f Bump the release number, add a skeleton to be filled in as stuff changes.
llvm-svn: 9521
2003-10-27 01:31:14 +00:00
Chris Lattner ffcc4ddd68 This file is obsolete
llvm-svn: 9520
2003-10-27 01:25:58 +00:00
Vikram S. Adve 227e6191fb Gotta use gmake, not make. make on Solaris is Sun's make which does not work.
llvm-svn: 9510
2003-10-26 13:41:18 +00:00
Chris Lattner 276db4acf7 Add a link to the bug tracker
llvm-svn: 9509
2003-10-25 18:41:16 +00:00
Vikram S. Adve 4da8cb0da7 Rephrase the OSI answer.
llvm-svn: 9508
2003-10-25 17:22:08 +00:00
Vikram S. Adve a2274887e8 Dang...these different file locations make it a pain to get the URLs right.
llvm-svn: 9507
2003-10-25 17:20:38 +00:00
Vikram S. Adve c021b23041 Fix license URL and typo.
llvm-svn: 9506
2003-10-25 17:19:21 +00:00
Vikram S. Adve 26c901ed88 Improve formatting of licensing section.
llvm-svn: 9505
2003-10-25 17:14:52 +00:00
Vikram S. Adve 71e433ef98 Add a section on licensing questions.
llvm-svn: 9504
2003-10-25 17:06:55 +00:00
Chris Lattner 4d5767c703 Attempt to provide support for those without RTLD_DEFAULT.
llvm-svn: 9503
2003-10-25 16:55:32 +00:00
Chris Lattner 37edb43831 Unbreak the build
llvm-svn: 9502
2003-10-25 16:18:03 +00:00
John Criswell ebe140be16 Added answers to test suite questions.
llvm-svn: 9501
2003-10-24 22:48:20 +00:00
Brian Gaeke eca381c7e8 Publicize the type of FnAllocState.
Prototype option to save state in a global instead of as a Constant in
 the Module. (Turned off, for now, with the on/off switch welded in the off
 position. You get the idea.)

llvm-svn: 9500
2003-10-24 21:21:58 +00:00
Chris Lattner 9ab7fbef60 standardize command line option names
llvm-svn: 9496
2003-10-24 20:05:58 +00:00
Brian Gaeke 055148bdc1 TraceMode, as you may have heard, is history.
ExecutionEngine::create no longer takes a TraceMode argument.

llvm-svn: 9495
2003-10-24 20:00:17 +00:00
Brian Gaeke 275811125d lli -q is history. Rebuild your gccld shell scripts, folks!
llvm-svn: 9494
2003-10-24 20:00:06 +00:00
Brian Gaeke b77e589bd1 ExecutionEngine::create no longer takes a TraceMode argument.
CurFrame, TraceMode, and the CachedWriter are history.
The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.
ExecutionContext now keeps Values for each stack frame in a std::map.
printValue() and print() are history.
executeInstruction() is now part of run().

llvm-svn: 9493
2003-10-24 19:59:37 +00:00
Brian Gaeke 65c60e24cd ExecutionEngine::create no longer takes a TraceMode argument.
CurFrame, TraceMode, and the CachedWriter are history.

llvm-svn: 9492
2003-10-24 19:59:28 +00:00
Misha Brukman c86e8b1261 * Use stylesheets and <div>s for layout instead of <ul>
* Close <a>, <li>, and <p> tags
* This isn't quite HTML 4.01 Strict-compliant, but it's almost there.

llvm-svn: 9491
2003-10-24 19:59:21 +00:00
Brian Gaeke 759ba76905 The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.
llvm-svn: 9490
2003-10-24 19:59:18 +00:00
Brian Gaeke e278c22380 Reduce the number of #includes.
CurFrame, TraceMode, and the CachedWriter are history.
ArrayChecksEnabled and non-QuietMode are history.
The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.
ExecutionContext now keeps Values for each stack frame in a std::map.
Stop pre-initializing Values on the stack to 42.
Remove some dead variables, excess whitespace and commented-out code.
executeInstruction() is now part of run().
printValue() and print() are history.

llvm-svn: 9489
2003-10-24 19:59:01 +00:00
Brian Gaeke 65cd504822 ExecutionEngine::create no longer takes a TraceMode argument.
llvm-svn: 9488
2003-10-24 19:58:38 +00:00
Misha Brukman f314a4b7aa Added a style for making test red, which is used in CommandLine.html
llvm-svn: 9487
2003-10-24 19:58:36 +00:00
Chris Lattner b1e8187c31 Turn on the inliner by default at link-time
llvm-svn: 9477
2003-10-24 18:09:23 +00:00
Misha Brukman 084a3a0773 This is now valid HTML 4.01 Strict.
llvm-svn: 9475
2003-10-24 18:06:11 +00:00
Misha Brukman f196dbb65c * Use HTML 4.01 Strict DTD
* Stop using UTF-8, the webserver sends out iso-8859-1 anyway
* Use style sheets and <div>s instead of <font> tags
* Stop using <ul> for layout

llvm-svn: 9474
2003-10-24 17:57:33 +00:00
Misha Brukman 2ca41fb2c2 Add a style for document footers.
llvm-svn: 9473
2003-10-24 17:56:09 +00:00
Misha Brukman 03d4b0f9af * Made into valid CSS that W3C accepts
* Added document subsubsection styles for usage in documentation

llvm-svn: 9472
2003-10-24 17:34:50 +00:00
Chris Lattner d6f136c6b1 Add note about multilibs. THis should go into the 1.0 release if possible
llvm-svn: 9467
2003-10-24 16:02:34 +00:00
Chris Lattner b28c3289df Update list of passes and buglist.
llvm-svn: 9460
2003-10-24 04:03:19 +00:00
Brian Gaeke 98b618270a Destroy MachineFunction for any Function that we are about to
recompile and relink. This keeps it from failing an assertion when
it goes and tries to construct a new MachineFunction for that Function.

llvm-svn: 9459
2003-10-24 03:55:37 +00:00
Vikram S. Adve 3326329b03 Organized in 4 parts. The last two are the same as before: LLVM Docs and
Mailing Lists.  The first two are ""Getting Started" and "Getting Help."

llvm-svn: 9457
2003-10-24 02:36:15 +00:00
Brian Gaeke 24fb8f07f3 Move the implementations of ==, != on AllocInfos here, from UnpackTraceFunction.
llvm-svn: 9452
2003-10-23 20:39:18 +00:00
Brian Gaeke 390d31cde4 Move AllocInfo structure to a private AllocInfo.h header file.
Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants.
Give doFinalization a method comment, and let it do the work of converting
 AllocInfos to LLVM Constants.

llvm-svn: 9451
2003-10-23 20:32:55 +00:00
Brian Gaeke a6bfe8eb9e Make FnAllocState contain vectors of AllocInfo, instead of LLVM Constants.
llvm-svn: 9450
2003-10-23 20:32:02 +00:00
Brian Gaeke 8e766c7ab3 New file, containing AllocInfo structure.
llvm-svn: 9449
2003-10-23 20:31:51 +00:00
Chris Lattner 0e18c62fa5 Recommend using -z3
llvm-svn: 9445
2003-10-23 19:49:01 +00:00
Chris Lattner 4541bf7206 Remove explicit paths
llvm-svn: 9444
2003-10-23 19:48:11 +00:00
Chris Lattner 97b5b1fd58 Add assertions
llvm-svn: 9443
2003-10-23 19:33:49 +00:00
Chris Lattner 7eb71b4bd8 Fix bug in eon hopefully
llvm-svn: 9442
2003-10-23 19:33:44 +00:00
Chris Lattner fb8e19b7ca Fix bug: CBackend/2003-10-23-UnusedType.ll and hopefully 252.eon
llvm-svn: 9441
2003-10-23 19:30:30 +00:00
Chris Lattner 70a3b9024e New testcase, which failes to compile. 252.eon hits this problem
llvm-svn: 9440
2003-10-23 19:25:53 +00:00
John Criswell dae507c903 Updated configure script.
llvm-svn: 9438
2003-10-23 19:16:12 +00:00
Chris Lattner 12b78db685 We might as well strip off any CPRs before propagation
llvm-svn: 9437
2003-10-23 18:49:23 +00:00
Chris Lattner bf9584b041 Fail gracefully if we have a zero arg varargs function
llvm-svn: 9436
2003-10-23 18:39:22 +00:00
Chris Lattner 95ee0b0288 Turn on the IPCP pass by default. It has passed all of the tests
llvm-svn: 9435
2003-10-23 18:25:57 +00:00
Brian Gaeke 739811da0e Reformat. A few minor edits.
llvm-svn: 9434
2003-10-23 18:10:28 +00:00
Misha Brukman 88df876012 * Eliminate `using' directive
* Fix order of #includes
* Make code layout more consistent
* Eliminate extraneous whitespace and comment-lines

llvm-svn: 9433
2003-10-23 18:10:02 +00:00
Misha Brukman dc07775d58 * Fix order of #include files
* Doxygen-ify method comments

llvm-svn: 9432
2003-10-23 18:06:27 +00:00
Misha Brukman 0b624fefb7 * Order #includes as per style guide
* Doxygen-ify comments
* Make code layout more consistent

llvm-svn: 9431
2003-10-23 18:03:50 +00:00
Misha Brukman 28ba80e648 * Use C++ style comments instead of C-style
* Make file description more readable
* Make code layout more consistent, include comment in assert so it's visible
  during execution if it hits

llvm-svn: 9430
2003-10-23 18:02:47 +00:00
Misha Brukman ad44de185d * Eliminate `using' directive
* Order #includes as per style guide

llvm-svn: 9429
2003-10-23 18:00:34 +00:00
Chris Lattner 05c71fb3e6 * We were forgetting to pass varargs arguments through a call
* Add a work around for bug PR56, gross but necessary for now.

llvm-svn: 9428
2003-10-23 17:44:53 +00:00
Misha Brukman 7d56d2c6fb * Eliminate `using' directive
* Make code layout more consistent

llvm-svn: 9427
2003-10-23 17:43:17 +00:00
Misha Brukman c7b1bce283 Make code layout more consistent.
llvm-svn: 9426
2003-10-23 17:39:37 +00:00
Chris Lattner 5bdcd0315b Zero arg varargs functions are legal in LLVM, but not in C.
llvm-svn: 9425
2003-10-23 17:31:33 +00:00
Chris Lattner 37f4a4c184 Delete unused EmitByteSwap method
Implement mul/div/rem constant expressions

llvm-svn: 9424
2003-10-23 17:21:43 +00:00
Chris Lattner f516c698ff Check in initial version of ipcp
llvm-svn: 9423
2003-10-23 16:52:27 +00:00
Chris Lattner e4511db45a Include new prototype
llvm-svn: 9422
2003-10-23 16:51:49 +00:00
Misha Brukman 3f45389172 Make code layout more consistent.
llvm-svn: 9418
2003-10-23 16:48:30 +00:00
Chris Lattner 6f92cdd0cf Actually share constants local to a function!
llvm-svn: 9417
2003-10-23 16:29:12 +00:00
Misha Brukman 998cabe4ff * Order includes according to style guide
* Convert tabs to spaces
* Make code fit within 80 columns

llvm-svn: 9416
2003-10-23 16:22:08 +00:00
Misha Brukman 79c14a65e4 * Stop referring to llvmbugs mailing list, point them to Bugzilla
* Use ASCII (c) instead of the special character, which may not display
  correctly for everyone
* Wrap at 80 columns

llvm-svn: 9415
2003-10-23 16:18:51 +00:00
Chris Lattner 5368576589 Update test
llvm-svn: 9414
2003-10-23 16:01:03 +00:00
Chris Lattner cad69cd450 document real source of bug
llvm-svn: 9413
2003-10-23 16:00:59 +00:00
John Criswell e80ea4b9fe Added new license information in preparation for LLVM 1.0.
llvm-svn: 9410
2003-10-23 15:57:59 +00:00
Chris Lattner 2bbd0265ce fix test
llvm-svn: 9409
2003-10-23 15:57:45 +00:00
Chris Lattner 3c2c81df1c Fix test
llvm-svn: 9408
2003-10-23 15:51:55 +00:00
Chris Lattner 6398b6cc5b Fix buggy test
llvm-svn: 9407
2003-10-23 15:46:42 +00:00
Chris Lattner f3e8f97d7e Fix an assertion failure in Bugpoint
llvm-svn: 9406
2003-10-23 15:42:55 +00:00
John Criswell c82fb1520e Do not report errors if QMTest returns a non-zero value.
llvm-svn: 9404
2003-10-23 14:11:53 +00:00
Chris Lattner 8a55262c76 Fix bug: instcombine/2003-10-23-InstcombineNullFail.ll
llvm-svn: 9403
2003-10-23 05:21:48 +00:00
Chris Lattner 04f1163148 A new testcase for an instcombine miscompilation!
llvm-svn: 9402
2003-10-23 05:10:53 +00:00
Brian Gaeke 3ab0bb144e Fix apparent typo in head-of-file comment.
llvm-svn: 9400
2003-10-23 04:01:49 +00:00
Chris Lattner f9b7118ba0 Minor edits
llvm-svn: 9399
2003-10-23 03:55:23 +00:00
Chris Lattner 0658cc20bd Make this pass substantially stronger by having it delete dead return values
as well as arguments.  Now it can delete arguments and return values which are
only passed into other arguments or are returned, if they are dead.  This causes
it to delete several hundred extra args/retvals from the C++ hello world program,
shrinking it by about 2K.

llvm-svn: 9398
2003-10-23 03:48:17 +00:00
Chris Lattner 57be5fa3e7 To say this file is obsolete to understate the obvious
llvm-svn: 9397
2003-10-23 03:30:55 +00:00
Misha Brukman 9782b036fc Really close the <li> tags.
llvm-svn: 9396
2003-10-23 02:29:42 +00:00
Misha Brukman 90827ecc18 Remove extraneous comments.
llvm-svn: 9395
2003-10-23 01:50:39 +00:00
Misha Brukman f1e6b1526c * Quote a value in <font> tag.
* Let CVS figure out the last-modified-date for us

llvm-svn: 9394
2003-10-23 01:49:47 +00:00
Misha Brukman 0ccf519eac * Use UTF-8 instead of ISO-8859-1
* Use stylesheet instead of explicit <font> formatting
* Stop using <ul> for layout
* Close <li> tags

llvm-svn: 9393
2003-10-23 01:48:33 +00:00
Misha Brukman 283ff6937f * Use UTF-8 instead of soon-to-be-extinct ISO-8859-1 ;)
* Use stylesheets instead of explicit <font> tags
* Stop using <ul> for spacing layout
* Close <a> and <p> tags

llvm-svn: 9392
2003-10-22 23:27:16 +00:00
Misha Brukman b8363bbcb0 We will distributed this stylesheet with the documentation, as well as use it
(via import) in the online version.

* Added styles for documentation headers, sections, etc.

llvm-svn: 9391
2003-10-22 23:23:49 +00:00
Chris Lattner 9e8fe49c37 This important patch fixes two warnings in the linker which can occur from linking
valid pieces of code

llvm-svn: 9390
2003-10-22 23:03:38 +00:00
Chris Lattner b7c3faabcd New testcase for the deadreturnvalue deletion extension to -deadargelim
llvm-svn: 9389
2003-10-22 22:33:59 +00:00
Brian Gaeke f140b28c16 Change the type of FnAllocState.
llvm-svn: 9388
2003-10-22 20:44:29 +00:00
Brian Gaeke 41fe18cbaa Don't worry about converting each function's reg. alloc. state into One Big
Constant early on, because we can do it in doFinalization.

Tighten up a comment.

llvm-svn: 9387
2003-10-22 20:44:23 +00:00
Brian Gaeke f29231ec3a Add prototype for verifySavedState().
llvm-svn: 9386
2003-10-22 20:23:13 +00:00
Brian Gaeke e3cf072d9e Doxygenify method comments.
Try to improve method comments a little.
Get rid of some excess whitespace; put braces on previous line when possible.
Add stub for method to verify the work of saveState().

llvm-svn: 9385
2003-10-22 20:22:53 +00:00
Chris Lattner 5987ab8677 This is a disgusting hack that improves code substantially, by making
callgraphSCC passes more effective.

llvm-svn: 9384
2003-10-22 18:53:31 +00:00
Brian Gaeke 7b51ed5668 Clarify our testing experience.
llvm-svn: 9383
2003-10-22 18:19:08 +00:00
Brian Gaeke 663fba3997 Do not check for strings.h. This is an old, old, old pre-C89 header that
absolutely nothing should be using (and it looks like nothing IS using it).

llvm-svn: 9381
2003-10-22 17:52:56 +00:00
Brian Gaeke a2c22523d2 I think this file is not included by anything.
llvm-svn: 9380
2003-10-22 17:51:28 +00:00
Misha Brukman b00e1061e1 * Changed URL referring to zion to use llvm instead
* Close <li> tags

llvm-svn: 9378
2003-10-22 17:01:44 +00:00
Chris Lattner ac4238f7bc Do not add unreachable code to a natural loop!
llvm-svn: 9377
2003-10-22 16:41:21 +00:00
Chris Lattner aa81dce20c Make sure to print labels on nodes without names
llvm-svn: 9376
2003-10-22 16:30:58 +00:00
Chris Lattner 9d63afdea5 If the basic block has no name, make sure to print the % number of it
llvm-svn: 9375
2003-10-22 16:22:42 +00:00
Chris Lattner a93d11bc1d Implement the Function::viewCFG* methods, for use in a debugger. Also, the
-print-cfg pass now lives here.

llvm-svn: 9374
2003-10-22 16:03:49 +00:00
Chris Lattner 2262fd252e Add two new function stubs for viewing the CFG of a function inside of the
debugger

llvm-svn: 9373
2003-10-22 16:03:20 +00:00
Chris Lattner 638b5374d8 Delete the -print-cfg pass from this file
llvm-svn: 9372
2003-10-22 16:02:58 +00:00
John Criswell 56a850ad06 Added information on using Bugzilla.
Removed information on using llvm-bugs to report bugs.

llvm-svn: 9371
2003-10-22 15:06:11 +00:00
Misha Brukman dbe73c5d6d Add comments to describe what these functions actually do.
llvm-svn: 9370
2003-10-22 05:50:40 +00:00
Misha Brukman 8c0608cf0d * Use <cmath> instead of <math.h>
* Order #includes according to LLVM coding standards

llvm-svn: 9369
2003-10-22 05:09:56 +00:00
Misha Brukman cc0d34223d Removed completely duplicated function comment (an identical one appears later).
llvm-svn: 9368
2003-10-22 04:55:09 +00:00
Misha Brukman 980d74c752 No, really, order the #includes correctly.
llvm-svn: 9367
2003-10-22 04:51:36 +00:00
Chris Lattner 6d3425e87a Update the 'used' flag correctly
llvm-svn: 9366
2003-10-22 04:43:18 +00:00
Chris Lattner 12b3593dea Loop over the module, not the symbol table. This makes the code handle
unused external functions again

llvm-svn: 9365
2003-10-22 04:42:20 +00:00
Chris Lattner f1a80fc54e New library needed
llvm-svn: 9364
2003-10-22 03:40:33 +00:00
Chris Lattner 4cd99ffa57 Implement FunctionResolve/2003-10-21-GlobalResolveHack.ll
llvm-svn: 9363
2003-10-22 03:35:34 +00:00
Chris Lattner 21c505f95e New testcase for fun hack that is absolutely necessary for the C++ stdlib.
llvm-svn: 9362
2003-10-22 03:35:18 +00:00
Misha Brukman 88be700644 * Fix order of #includes to follow style guide
* It's no longer a BasicBlock pass: update comment on run() method
* Fix placement of braces to be consistent
* Delete extraneous whitespace

llvm-svn: 9361
2003-10-22 03:27:45 +00:00
Misha Brukman 53d8490186 Converted tabs to spaces.
llvm-svn: 9360
2003-10-22 03:10:26 +00:00
Chris Lattner af2c00bf14 Fix bug: FunctionResolve/2003-10-21-GlobalTypeDifference.ll
llvm-svn: 9359
2003-10-21 23:17:56 +00:00
Chris Lattner de20d44b3e New testcase: globals should be linked if they are the wrong type. We should
just moan loudly.

llvm-svn: 9358
2003-10-21 23:17:45 +00:00
Chris Lattner 4f2581f828 Fix bug: Linker/2003-10-21-ConflictingTypesTolerance.ll
llvm-svn: 9357
2003-10-21 22:46:38 +00:00
Chris Lattner 1de1483e38 New testcase. The linker should not consider it an error if two types
disagree.  It should grumble, then go ahead and do it.

llvm-svn: 9356
2003-10-21 22:46:22 +00:00
Brian Gaeke 0142c1e5a0 Add C/C++ build instructions, first draft.
llvm-svn: 9355
2003-10-21 21:58:38 +00:00
Chris Lattner 9bc22b7439 Fix message to make more sense and confuse Chris less
llvm-svn: 9354
2003-10-21 21:52:20 +00:00
Chris Lattner 1e0c213eab New testcase, fixed in the C++ frontend
llvm-svn: 9353
2003-10-21 21:33:18 +00:00
John Criswell 9d6053158b Added the name of the public CVS repository.
Removed the use of CVSROOTDIR as it is no longer used.
Fixed some word wrapping.

llvm-svn: 9352
2003-10-21 21:24:38 +00:00
Brian Gaeke 9e10b9a96f Fix off-by-one error in processing of libraries named on command line.
llvm-svn: 9351
2003-10-21 21:07:12 +00:00
John Criswell b920fe79ba Adding information on what testing support is provided by the LLVM build
system.  Currently, it is not much.

llvm-svn: 9348
2003-10-21 19:35:06 +00:00
Misha Brukman 5014715d83 Add dummy content for libgdbm.
llvm-svn: 9344
2003-10-21 18:26:07 +00:00
Misha Brukman 1a1f2b977b Fix libm's name to be `libm'
llvm-svn: 9343
2003-10-21 18:25:37 +00:00
Misha Brukman 8719ea2732 Fix library name and fix line to fit within 80 columns.
llvm-svn: 9342
2003-10-21 18:22:34 +00:00
Brian Gaeke 030474f284 Add tools-only target, for bootstrapping the C/C++ front end.
llvm-svn: 9341
2003-10-21 18:08:10 +00:00
Chris Lattner 59607b0a40 This was not a lower-switch bug, it was a preselection bug
llvm-svn: 9340
2003-10-21 18:02:17 +00:00
Chris Lattner 8aaa7f77c7 When linking the runtime libraries, do not link -lc and -lgcc into the libraries
llvm-svn: 9339
2003-10-21 18:00:37 +00:00
Chris Lattner 5382729e0c Fix strcpy implementation and trie
llvm-svn: 9338
2003-10-21 17:53:16 +00:00
Brian Gaeke 9a0bdb1aca Fix the first FIXME in this file: automatically pick a "good"
interpreter by default, by picking the first one that works
from a hard-coded list.

llvm-svn: 9337
2003-10-21 17:41:35 +00:00
Chris Lattner 2c35b1c94c Make sure to add a type for va_next operands, which may not other wise
occur in the module

llvm-svn: 9336
2003-10-21 17:40:54 +00:00
Chris Lattner 7267b352fb Fix problem which effected linking apache
llvm-svn: 9335
2003-10-21 17:39:59 +00:00
Chris Lattner 73d9355fea Hrm, unbreak stuph :(
llvm-svn: 9334
2003-10-21 17:22:23 +00:00
Chris Lattner a62228d01a Fix preselection/lowerswitches bug
llvm-svn: 9333
2003-10-21 16:29:23 +00:00
Chris Lattner 4439aee504 Pull the PHI special case into it's own visit* method
llvm-svn: 9332
2003-10-21 16:09:23 +00:00
Chris Lattner 898a42afde The lastOp operand is never used
llvm-svn: 9331
2003-10-21 16:06:07 +00:00
Chris Lattner 518f3fd74f Add more space!
llvm-svn: 9330
2003-10-21 15:47:31 +00:00
Chris Lattner 3daeff5ce8 Hrm, for some reason, my fingers like typing va_begin. Weird
llvm-svn: 9329
2003-10-21 15:43:55 +00:00
Chris Lattner 6ffa75a1ac Syntax highlight the new operators
llvm-svn: 9328
2003-10-21 15:37:09 +00:00
Chris Lattner 7231f7c431 Update test to new style
llvm-svn: 9327
2003-10-21 15:36:21 +00:00
John Criswell 3ea4445600 Removed LLVM copyright from sample Makefile.
llvm-svn: 9326
2003-10-21 15:33:12 +00:00
John Criswell f9924ce362 Removed LLVM copyright notice from sample Makefile.
llvm-svn: 9325
2003-10-21 15:31:36 +00:00
John Criswell 9583cfafc5 Added LLVM copyright notice.
llvm-svn: 9324
2003-10-21 15:29:18 +00:00
John Criswell 29265fe981 Added LLVM copyright header.
llvm-svn: 9321
2003-10-21 15:17:13 +00:00
Chris Lattner 2e2a0ed7e1 Preselection is _not_ a basicblock pass, because it adds global variables to
the module.  This change converts it from being a basic block pass to being
a simple pass.  This allows elimination of the annotation and simplification
of the logic for moving constants into global variables.

llvm-svn: 9320
2003-10-21 14:49:19 +00:00
John Criswell 23e43fb12b Added LLVM copyright notice.
llvm-svn: 9319
2003-10-21 14:33:46 +00:00
Vikram S. Adve 8264e29e01 When opcodes like ADD were split into reg. and immed. versions (ADDi and ADDr),
this code wasn't fixed correctly so it missed copy operations that used ADDi.

llvm-svn: 9318
2003-10-21 12:29:45 +00:00
Vikram S. Adve 64e8a13b7b Why does g++ not even generate a warning when you miss a break statement?
llvm-svn: 9317
2003-10-21 12:28:27 +00:00
Vikram S. Adve af2df5b7f9 Implement the new varargs instructions and intrinsics.
llvm-svn: 9316
2003-10-21 11:25:09 +00:00
Misha Brukman 4947c42086 Only fails on the Sparc, only when run via the JIT.
And yet, it's a failure in the ``LowerSwitch'' pass.

llvm-svn: 9315
2003-10-21 04:13:37 +00:00
John Criswell abe5cdcf21 Added LLVM copyright to Makefiles.
llvm-svn: 9314
2003-10-20 22:29:16 +00:00
John Criswell ac028f18af Added LLVM copyrights to Makefiles.
llvm-svn: 9313
2003-10-20 22:28:01 +00:00
John Criswell 4436c49787 Added LLVM copyright notice to Makefiles.
llvm-svn: 9312
2003-10-20 22:26:57 +00:00
Chris Lattner 826afe939d Add a new map
llvm-svn: 9311
2003-10-20 20:55:13 +00:00
Chris Lattner dcd1466a80 Convert this code from using annotations to using a local map
llvm-svn: 9310
2003-10-20 20:52:23 +00:00
Brian Gaeke e7621515c0 Goodbye, AddRegNumToValues
llvm-svn: 9309
2003-10-20 20:44:03 +00:00
John Criswell 567fe2f312 Removed extraneous comment line.
llvm-svn: 9308
2003-10-20 20:40:30 +00:00
Chris Lattner 93fa46476b Remove using declaration
llvm-svn: 9307
2003-10-20 20:38:17 +00:00
Chris Lattner 80e6f5db8f This #include is no longer necessary
llvm-svn: 9306
2003-10-20 20:29:44 +00:00
John Criswell d3032037f1 Added LLVM copyright header.
llvm-svn: 9305
2003-10-20 20:20:30 +00:00
John Criswell b644598b37 Added LLVM copyright header (for lack of a better term).
llvm-svn: 9304
2003-10-20 20:19:47 +00:00
John Criswell 6be819840b Oops. Typo.
llvm-svn: 9303
2003-10-20 20:16:14 +00:00
John Criswell 4c8472d705 Added LLVM header notice.
llvm-svn: 9302
2003-10-20 20:11:43 +00:00
Misha Brukman 774b94a74b Fixed the documentation to coincide with the code.
llvm-svn: 9301
2003-10-20 19:47:25 +00:00
John Criswell dd04329da2 Added LLVM notice.
llvm-svn: 9300
2003-10-20 19:46:57 +00:00
Misha Brukman 098cafd62b Made error message more comprehensible.
llvm-svn: 9299
2003-10-20 19:43:47 +00:00
John Criswell 482202a601 Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.

llvm-svn: 9298
2003-10-20 19:43:21 +00:00
Chris Lattner d77dd78c52 "Function"[0] == 'F', not 'M'
llvm-svn: 9297
2003-10-20 19:10:06 +00:00
Chris Lattner a623e48b71 Update release notes
llvm-svn: 9296
2003-10-20 19:05:03 +00:00
Brian Gaeke ca1789d3f5 Minor leftover fixups from replaceMachineCodeForFunction () change.
llvm-svn: 9295
2003-10-20 17:59:09 +00:00
Chris Lattner 8f71f04961 fix file header
llvm-svn: 9294
2003-10-20 17:58:43 +00:00
Chris Lattner ebec8030d6 fix file headers
llvm-svn: 9293
2003-10-20 17:57:13 +00:00
Chris Lattner 22feb17ea4 Fix file header
llvm-svn: 9292
2003-10-20 17:52:11 +00:00
John Criswell 09344dcf97 Added copyright header to all C++ source files.
llvm-svn: 9291
2003-10-20 17:47:21 +00:00
John Criswell ca342f5f83 Made the Requirements information its own major section and moved it
between the "Getting Started Quickly" and "Getting Started Slowly" sections.
:)
Removed some of the nit-picky requirements information (i.e. GNU tar and
GNU zip).
Attempted to compact the requirements information so that it is less scary.

llvm-svn: 9290
2003-10-20 16:39:52 +00:00
Brian Gaeke 4bc3958c7b Make replaceMachineCodeForFunction() return void.
llvm-svn: 9289
2003-10-20 15:17:12 +00:00
Brian Gaeke 67a5a865ae Make replaceMachineCodeForFunction return void.
llvm-svn: 9288
2003-10-20 15:15:17 +00:00
Brian Gaeke a585d7e768 Make replaceMachineCodeForFunction return void.
Make it assert by default.

llvm-svn: 9287
2003-10-20 15:14:33 +00:00
Chris Lattner f187b7691d Apparently the dependencies are wrong for this file, so it didn't rebuild it
when changing Instruction.def.  :(

llvm-svn: 9286
2003-10-20 14:12:52 +00:00
Chris Lattner 2d9c117e21 Reorder for minor efficiency gain
llvm-svn: 9285
2003-10-20 05:54:26 +00:00
Chris Lattner 6acb1bedb1 Emit x86 instructions for: A = B op C, where A and B are 16-bit registers,
C is a constant which can be sign-extended from 8 bits without value loss,
and op is one of: add, sub, imul, and, or, xor.

This allows the JIT to emit the one byte version of the constant instead of
the two or 4 byte version.  Because these instructions are very common, this
can save a LOT of code space.  For example, I sampled two benchmarks, 176.gcc
and 254.gap.

BM        Old     New    Reduction
176.gcc 2673621 2548962  4.89%
254.gap  498261  475104  4.87%

Note that while the percentage is not spectacular, this did eliminate
124.6 _KILOBYTES_ of codespace from gcc.  Not bad.

Note that this doesn't effect the llc version at all, because the assembler
already does this optimization.

llvm-svn: 9284
2003-10-20 05:53:31 +00:00
Chris Lattner f2a34aa278 Hrm, a relic from the past. How cute :)
llvm-svn: 9283
2003-10-20 05:45:49 +00:00
Chris Lattner 369246d855 Further cleanups and simplifications
llvm-svn: 9282
2003-10-20 04:48:06 +00:00
Chris Lattner 358e7c3edb Eliminate code for pointer size and endianness emulation.
llvm-svn: 9281
2003-10-20 04:11:23 +00:00
Misha Brukman 42856eb1bd The Grammar Police was here.
llvm-svn: 9280
2003-10-20 04:03:10 +00:00
Misha Brukman c265fdc3bb * Fixed grammar in header
* Added description of `mem2reg'

llvm-svn: 9279
2003-10-20 03:59:05 +00:00
Chris Lattner 97e1b55723 * Rename X86::IMULr16 -> X86::IMULrr16
* Implement R1 = R2 * C where R1 and R2 are 32 or 16 bits. This avoids an
  extra copy into a register, reducing register pressure.

llvm-svn: 9278
2003-10-20 03:42:58 +00:00
Chris Lattner 4705141f28 Don't bother forwarding function references which are external to the program entirely
llvm-svn: 9274
2003-10-19 23:32:50 +00:00
Chris Lattner 2b97d6e7cd Ok, return an explicit path to the shared object, unbreaking code generator
debugging with the JIT

llvm-svn: 9273
2003-10-19 21:54:13 +00:00
Chris Lattner a4004f6678 Fix iterator invalidation problem
llvm-svn: 9272
2003-10-19 21:48:27 +00:00
Chris Lattner 24c67e8553 Eliminate unused class
llvm-svn: 9270
2003-10-19 21:39:41 +00:00
Chris Lattner b94550e537 Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
llvm-svn: 9269
2003-10-19 21:34:28 +00:00
Chris Lattner fc0bf07db4 Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.
This allows removal of a special case from the instvisitor

llvm-svn: 9268
2003-10-19 21:34:11 +00:00
Chris Lattner bf87734fa0 * Multiplications by 2^X are turned into shifts. This factors code out of the
getelementptr code path for use by other code paths (like malloc and alloca).
* Optimize comparisons with zero
* Generate neg, not, inc, and dec instructions, when possible.

This gives some code size wins, which might translate into performance.  We'll
see tommorow in the nightly tester.

llvm-svn: 9267
2003-10-19 21:09:10 +00:00
Chris Lattner 55a8ef0cc8 Add some new instructions. Wheee
llvm-svn: 9266
2003-10-19 19:25:35 +00:00
Brian Gaeke 98e1f50d0c Change it to match llvmgcc.html ... why do we have separate pages for these two?
llvm-svn: 9265
2003-10-19 18:23:05 +00:00
Brian Gaeke 7c49d984d2 Clarify the roles of gccld and gccas.
Mention that they should really read the gcc manual.

llvm-svn: 9264
2003-10-19 18:15:18 +00:00
Brian Gaeke cfd030726c Minor edits; also expand description of '-v' option.
llvm-svn: 9263
2003-10-19 18:09:24 +00:00
Brian Gaeke e4cea8cd34 Tweak -plugin description to match bugpoint.html
llvm-svn: 9262
2003-10-19 18:08:57 +00:00
Brian Gaeke 70e81e2320 Mostly rewritten.
llvm-svn: 9261
2003-10-19 18:03:11 +00:00
Chris Lattner d46f945b43 A minor fix
llvm-svn: 9260
2003-10-19 17:37:33 +00:00
Brian Gaeke c852194dec Take out extra paragraph tag.
llvm-svn: 9259
2003-10-19 17:37:12 +00:00
Brian Gaeke 8ef235e2fc Make this (-run) set look like the other (-disable) set.
llvm-svn: 9258
2003-10-19 17:35:35 +00:00
Brian Gaeke 33534d7ba9 Always say "the test program", part 2.
Refer to the various "modules" of bugpoint as "debuggers", not
 "debugging modes" or "modules". I think this is more evocative of
 how they typically act, and it's shorter.
Add a note about how a linker bug can crash bugpoint early.

llvm-svn: 9257
2003-10-19 17:30:36 +00:00
Chris Lattner 90f86a79c4 Two minor fixes
llvm-svn: 9256
2003-10-19 17:27:12 +00:00
Brian Gaeke abe08a6ee0 Minor edits to Description section.
Add Design Philosophy as a separate subsection.  Clarify its last sentence.
Give Automatic Mode Selection a uniquely-named anchor.
Always call the program the "test program", instead of the "initial program",
 the "LLVM program", the "test case", the "resultant module", etc.
Try to explain the assumptions a little more, instead of just describing the
 process.

llvm-svn: 9255
2003-10-19 17:20:15 +00:00
Brian Gaeke c8cff0e914 Spell-check.
Many minor edits.
Rewrite some of the options section for grammatical parallelism,
 clarity, and brevity.

llvm-svn: 9254
2003-10-19 17:03:59 +00:00
Chris Lattner eb9d2155f3 DeHTMLify the email so that it only gets sent out if something changes.
Add printouts about failed building and testing.

llvm-svn: 9253
2003-10-19 16:54:00 +00:00
Chris Lattner 406ac8e741 .string adds an implicit zero at the end. This is not what we wanted.
This fixes PR#44.

llvm-svn: 9252
2003-10-19 02:51:01 +00:00
Chris Lattner 4aad8b9ed8 Add debugtype, make output marginally more nice
llvm-svn: 9251
2003-10-19 02:27:40 +00:00
Chris Lattner 97d7f8373c Fix PR #47
llvm-svn: 9250
2003-10-19 02:14:58 +00:00
Chris Lattner ee898b35a1 Fix bug: Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx
This also fixes miscompilation of 176.gcc.

llvm-svn: 9249
2003-10-19 00:26:11 +00:00