Chris Lattner [Sun, 2 Nov 2003 00:57:56 +0000 (00:57 +0000)]
New testcase for PR79
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9645
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 2 Nov 2003 00:22:27 +0000 (00:22 +0000)]
new testcase, for PR 81
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9644
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Nov 2003 23:42:08 +0000 (23:42 +0000)]
Regression test for PR 80
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9643
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 22:16:41 +0000 (22:16 +0000)]
Escape "'s, which are frequent visitors to C++ types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9642
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 21:05:58 +0000 (21:05 +0000)]
Strip off CPR's manually, because if we don't, the inliner doesn't delete dead
functions. GRR
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9641
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 21:05:12 +0000 (21:05 +0000)]
Make the call graph more precise despite the hated constantpointerrefs.
Do you detect the animosity I feel towards CPRs yet?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9640
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 18:38:06 +0000 (18:38 +0000)]
Did I mention that I _HATE_ CPRs?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9639
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 31 Oct 2003 18:37:20 +0000 (18:37 +0000)]
Use stylesheets as much as we can. I admit, I still cannot make CSS do what I
can do with tables, which annoys me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9638
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 18:06:32 +0000 (18:06 +0000)]
Obsolete file goes byebye
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9637
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 31 Oct 2003 18:01:30 +0000 (18:01 +0000)]
Use some style(sheets).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9636
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 17:51:16 +0000 (17:51 +0000)]
Constant pointer refs are causing these to fail unnecessarily, which is causing
a lot of code to be pessimized. I hate CPRs. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9635
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 31 Oct 2003 05:12:04 +0000 (05:12 +0000)]
Well, to be honest, -array-checks and -trace are gone, too. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9631
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 31 Oct 2003 03:02:34 +0000 (03:02 +0000)]
Use already existing classes for post order iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9629
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 31 Oct 2003 00:39:28 +0000 (00:39 +0000)]
* Not much point to indent the whole file
* Let CVS keep track of our last-modified timestamp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9628
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 31 Oct 2003 00:34:52 +0000 (00:34 +0000)]
The `-q' option has gone away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9627
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 00:34:05 +0000 (00:34 +0000)]
never print zero executions blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 00:20:09 +0000 (00:20 +0000)]
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9625
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 00:13:26 +0000 (00:13 +0000)]
Add percentage info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9624
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 31 Oct 2003 00:06:57 +0000 (00:06 +0000)]
Hrm, some of my counters are wrapping around 32 bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9623
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 23:44:28 +0000 (23:44 +0000)]
If only have function profile, don't print out "not executed" for all of the blocks :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9622
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 23:42:09 +0000 (23:42 +0000)]
Add the ability to print out llvm code when the -annotated-llvm option is given
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9621
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 23:41:19 +0000 (23:41 +0000)]
Expose new print methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9620
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 23:41:03 +0000 (23:41 +0000)]
Make use of the new AssemblyAnnotationWriter interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9619
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 23:39:52 +0000 (23:39 +0000)]
New interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9618
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 30 Oct 2003 21:21:33 +0000 (21:21 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9617
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 30 Oct 2003 21:21:22 +0000 (21:21 +0000)]
Make AllocState an enum.
Move the stringifying method for that enum into class AllocInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9616
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 30 Oct 2003 21:04:44 +0000 (21:04 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9615
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 30 Oct 2003 18:33:58 +0000 (18:33 +0000)]
Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9614
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 16:20:15 +0000 (16:20 +0000)]
Bugz fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9613
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 30 Oct 2003 15:03:49 +0000 (15:03 +0000)]
Apparently my Mac OS X fixes were not entirely compatible with SPARC...hmm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9612
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 05:17:30 +0000 (05:17 +0000)]
When someone includes CallGraph.h, make sure that they link in CallGraph.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9611
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 04:35:26 +0000 (04:35 +0000)]
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9610
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 01:43:33 +0000 (01:43 +0000)]
New bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9609
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 01:38:41 +0000 (01:38 +0000)]
Tighten up what we consider to be first class types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 01:38:18 +0000 (01:38 +0000)]
Make sure that PHI node operands are first class types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9607
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 01:31:37 +0000 (01:31 +0000)]
Clarify that all manipulatable values must be of first class type, and specifically
update the PHI node entry to mention this as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9606
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 30 Oct 2003 01:23:40 +0000 (01:23 +0000)]
* Send people to the LLVMdev archive/subscription page rather than just state
the address
* Somewhat standardize the footer of the page
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9605
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 01:20:42 +0000 (01:20 +0000)]
Another day, another bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9604
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 30 Oct 2003 01:19:16 +0000 (01:19 +0000)]
Add a link to the C/C++ front-end building instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9603
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 30 Oct 2003 01:16:18 +0000 (01:16 +0000)]
The answer to this question is "Yes". Let's make that absolutely clear even to
those just skimming the FAQ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9602
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 30 Oct 2003 01:13:56 +0000 (01:13 +0000)]
Call me picky, but it's not the state of Illinois' license, it's the
University's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9601
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 00:46:41 +0000 (00:46 +0000)]
Fix bug: 2003-10-29-CallSiteResolve.ll & PR70
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9600
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 00:39:25 +0000 (00:39 +0000)]
New testcase crashing the instruction combiner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9599
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 00:22:33 +0000 (00:22 +0000)]
Print the names of more opaque types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9598
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2003 00:12:51 +0000 (00:12 +0000)]
Make sure to print opaque types names if they are available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9597
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 21:51:00 +0000 (21:51 +0000)]
Pass unrecognized options into llvmprof
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9596
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 21:47:44 +0000 (21:47 +0000)]
Add the ability to synthesize function counts from block count information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9595
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 21:41:17 +0000 (21:41 +0000)]
Print the top 20 most frequently executed blocks. Fix sort predicate problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9594
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 21:24:22 +0000 (21:24 +0000)]
Refactor code, initial implementation of -insert-block-profiling pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9593
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 20:59:45 +0000 (20:59 +0000)]
More bugs fixed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9592
91177308-0d34-0410-b5e6-
96231b3b80d8
Dinakar Dhurjati [Wed, 29 Oct 2003 20:34:13 +0000 (20:34 +0000)]
Fixed LinkO, LinkP error in TOOLLINKOPTSB
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9591
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 29 Oct 2003 20:09:01 +0000 (20:09 +0000)]
Explicitly cast type, so we aren't passing output_vbr a size_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9590
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 29 Oct 2003 20:07:35 +0000 (20:07 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9589
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 29 Oct 2003 20:06:19 +0000 (20:06 +0000)]
Add support for utostr(unsigned long)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9588
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 19:18:48 +0000 (19:18 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9587
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 18:49:14 +0000 (18:49 +0000)]
Add two new bugs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9586
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 17:55:44 +0000 (17:55 +0000)]
Fix PR66 & ScalarRepl/2003-10-29-ArrayProblem.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9585
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 16:24:10 +0000 (16:24 +0000)]
New testcase distilled from:
UnitTests/2003-10-29-ScalarReplBug.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9584
91177308-0d34-0410-b5e6-
96231b3b80d8
Dinakar Dhurjati [Wed, 29 Oct 2003 14:28:35 +0000 (14:28 +0000)]
Added TOOLLINKOPTSB to pass options to the linker (e.g. adding search
path for external libraries).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9582
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 07:17:13 +0000 (07:17 +0000)]
New bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9581
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 06:05:55 +0000 (06:05 +0000)]
Another bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9580
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 06:01:26 +0000 (06:01 +0000)]
Fix bug: ConstantMerge/2003-10-28-MergeExternalConstants.ll & PR64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 05:51:03 +0000 (05:51 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9578
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 29 Oct 2003 04:25:48 +0000 (04:25 +0000)]
Pull in stdint.h here, if we have it. Some systems keep
the INT*_MAX macros there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9577
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 29 Oct 2003 04:24:09 +0000 (04:24 +0000)]
In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
because the Arch variable will likely be undefined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9576
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 29 Oct 2003 03:12:12 +0000 (03:12 +0000)]
Add more debugging info to help tracing the SlotCalculator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9575
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 01:26:07 +0000 (01:26 +0000)]
Yet another bugfix for 1.1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9574
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Oct 2003 01:23:01 +0000 (01:23 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9573
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 23:14:59 +0000 (23:14 +0000)]
Check in statistifying patch for Bill
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9572
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 23:13:03 +0000 (23:13 +0000)]
Add fixed PR
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9571
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 23:10:44 +0000 (23:10 +0000)]
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9570
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 23:09:45 +0000 (23:09 +0000)]
Fix PR62, and llvm/test/Regression/CBackend/2003-10-28-CastToPtrToStruct.ll
ConstantExpr's can use unrelated types, make sure to scan them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9569
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Tue, 28 Oct 2003 22:54:56 +0000 (22:54 +0000)]
New testcase, reduced from DOOM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9568
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:53:49 +0000 (22:53 +0000)]
Cleanup output a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9567
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:52:05 +0000 (22:52 +0000)]
Add option for block profiling, pass in the "correct" argv[0] to the program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9566
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:51:44 +0000 (22:51 +0000)]
Add the ability for users to specify a specific argv[0] to pass into the
program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9565
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:45:25 +0000 (22:45 +0000)]
Actually save and pass in argument information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9564
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:42:24 +0000 (22:42 +0000)]
Pass in argc & argv
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9563
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:30:37 +0000 (22:30 +0000)]
Print out command lines used to run the programs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9562
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Tue, 28 Oct 2003 22:22:16 +0000 (22:22 +0000)]
Fix extract to use the right TargetData, like Bugpoint does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 22:11:31 +0000 (22:11 +0000)]
Helper script for collecting profiling instrumentation. Simply run
$ profile.pl foo.bc <args>
... to instrument, run, then print a program profile!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9560
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 21:25:23 +0000 (21:25 +0000)]
Add support for reading block frequencies. Fix bug in attribution of counts
to functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9559
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 28 Oct 2003 21:09:29 +0000 (21:09 +0000)]
* 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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9558
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 21:08:18 +0000 (21:08 +0000)]
Provide an accessor for getting function count information. Print a simple
report
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9557
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 20:13:07 +0000 (20:13 +0000)]
Read in the bytecode and profile information, but don't do anything with
it yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9556
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 19:35:56 +0000 (19:35 +0000)]
We need to output the number of records we have, so we know how many to read in! Doh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9555
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 28 Oct 2003 19:21:11 +0000 (19:21 +0000)]
Generated autoconf script for Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9554
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 19:17:11 +0000 (19:17 +0000)]
Add profiling runtime and llvm-prof tools. Would someone please regen the
configure script for me? :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9553
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 19:16:49 +0000 (19:16 +0000)]
Build the llvm-prof directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9552
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 19:16:35 +0000 (19:16 +0000)]
Initial checkin of llvmprof stub
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9551
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Tue, 28 Oct 2003 19:11:29 +0000 (19:11 +0000)]
Remove __STDC_LIMIT_MACROS from here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9550
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Tue, 28 Oct 2003 19:09:28 +0000 (19:09 +0000)]
Add __STDC_LIMIT_MACROS here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9549
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 19:08:15 +0000 (19:08 +0000)]
Reorder #includes, drop unneeded one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9548
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 18:59:04 +0000 (18:59 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9547
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 18:56:51 +0000 (18:56 +0000)]
Initial checkin of function and block profiling runtime library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9546
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 28 Oct 2003 18:55:27 +0000 (18:55 +0000)]
Publications do not get distributed with docs/; hence, their stylesheet need not
be distributed either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9545
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 28 Oct 2003 18:37:24 +0000 (18:37 +0000)]
I'm tired of the nightly tester stopping, aren't you?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9544
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Oct 2003 21:44:09 +0000 (21:44 +0000)]
Eliminate using declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9543
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Oct 2003 21:09:00 +0000 (21:09 +0000)]
Propagating constants to arguments can make other arguments constant. For now
do something dumb, and inefficient, but more complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9542
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 27 Oct 2003 18:30:37 +0000 (18:30 +0000)]
Clarify what is a bug and what isn't
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9539
91177308-0d34-0410-b5e6-
96231b3b80d8