Chris Lattner [Sun, 22 Feb 2004 06:25:38 +0000 (06:25 +0000)]
Get all instruction definitions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11706
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 05:53:54 +0000 (05:53 +0000)]
Wow this is out of date. When we have _real_ code generator documentation,
this should be folded into it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11705
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 22 Feb 2004 05:46:04 +0000 (05:46 +0000)]
Print basic block boundaries in machine instruction debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11704
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 05:45:02 +0000 (05:45 +0000)]
Link to most recent "LLVM document"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11703
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 05:25:17 +0000 (05:25 +0000)]
Implement Transforms/InstCombine/cast.ll:test13, a case which occurs in a
hot 164.gzip loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11702
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 05:24:09 +0000 (05:24 +0000)]
Test that the instruction combiner can fold away a cast in a GEP instruction.
This occurs in 164.gzip, as a result of it declaring arrays extern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11701
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 04:44:58 +0000 (04:44 +0000)]
The two address pass cannot handle two addr instructions where one incoming
value is a physreg and one is a virtreg. For this reason, disable copy folding
entirely for physregs. Also, use the new isMoveInstr target hook which gives us
folding of FP moves as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11700
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 22 Feb 2004 04:05:13 +0000 (04:05 +0000)]
Abstract merging of ranges away from number of slots per instruction.
Also make it less aggressive as the current implementation breaks in
some cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11696
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 22 Feb 2004 00:53:54 +0000 (00:53 +0000)]
Use isNull instead of getNode() to test for existence of a node, this is cheaper.
FIX MAJOR BUG, whereby we didn't merge null edges correctly. Correcting this
fixes poolallocation on 175.vpr, and possibly others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11695
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Feb 2004 22:28:26 +0000 (22:28 +0000)]
Fix an iterator invalidation problem which was causing some nodes to not be
correctly merged over!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11693
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Feb 2004 22:27:31 +0000 (22:27 +0000)]
Use handy method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11692
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Feb 2004 22:27:20 +0000 (22:27 +0000)]
Update comments and add warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11691
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 21 Feb 2004 21:51:41 +0000 (21:51 +0000)]
`cat' is usually in /bin, not /usr/bin, at least on our systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11690
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Feb 2004 21:06:19 +0000 (21:06 +0000)]
When printing a stack trace, demangle it if possible. Since we are potentially
in a signal handler, allocating memory or doing other unsafe things is bad,
which means we should do it in a different process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11689
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 21 Feb 2004 18:07:33 +0000 (18:07 +0000)]
Make 'fold' statistic's description the same in both allocators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11687
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 21 Feb 2004 00:30:28 +0000 (00:30 +0000)]
Instead of cloning the globals for main into the globals graph at the end of
BU propagation, clone the globals into the GG of EACH FUNCTION that finishes
processing! The GlobalsGraph *must* include all globals and effects from
all functions in the program. Fixing this makes pool allocation work better
on 175.vpr, but it still ultimately crashes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11686
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 23:52:15 +0000 (23:52 +0000)]
There is no need to merge the globals graph into the function graphs at the
end of the BU and CBU passes. The globals will be marked incomplete, so it
doesn't matter if they are missing some info, and merging isn't guaranteed
to bring everything in anyway!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11684
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 23:27:09 +0000 (23:27 +0000)]
Add two missing returns, which caused us to be very pessimistic about the
printf and scanf families!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11683
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 23:05:43 +0000 (23:05 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11682
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 20 Feb 2004 22:30:46 +0000 (22:30 +0000)]
Added the POVRAY_ROOT to locate Povray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11681
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 20 Feb 2004 22:30:22 +0000 (22:30 +0000)]
Added an option for configuring Povray. By default, it should find my local
installation of Povray (and not do anything for people who don't have it).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11680
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 20 Feb 2004 21:26:46 +0000 (21:26 +0000)]
Build an archive for use with Povray.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11678
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 20:53:26 +0000 (20:53 +0000)]
Some more statistics improvements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11676
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 20:46:49 +0000 (20:46 +0000)]
Disambiguate statistic descriptions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11675
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 20:43:08 +0000 (20:43 +0000)]
Rename statistic and add another one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11674
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 20:27:11 +0000 (20:27 +0000)]
Add support for some string functions, the scanf family, and sprintf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11673
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 20:15:47 +0000 (20:15 +0000)]
Add a simple implementation of strncpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11672
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 19:08:12 +0000 (19:08 +0000)]
New testcase, do not emit a call to __builtin_sqrt, emit a call to sqrt instead!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11668
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 17:41:35 +0000 (17:41 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11662
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 17:32:24 +0000 (17:32 +0000)]
PR244: [llvm-gcc] miscompilation when a function is re-declared as static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11661
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 20 Feb 2004 06:41:59 +0000 (06:41 +0000)]
Add checks for <execinfo.h> and backtrace().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11660
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 06:41:12 +0000 (06:41 +0000)]
Fix crash in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11659
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 20 Feb 2004 06:40:59 +0000 (06:40 +0000)]
Use backtrace() and include execinfo.h, if they were detected by autoconf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11658
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 20 Feb 2004 06:40:58 +0000 (06:40 +0000)]
Regenerated using autoheader-2.57.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11657
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 20 Feb 2004 06:40:57 +0000 (06:40 +0000)]
Regenerated using autoconf-2.57.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11656
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 06:29:51 +0000 (06:29 +0000)]
Fix instruction numbering in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11655
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Fri, 20 Feb 2004 06:15:40 +0000 (06:15 +0000)]
Too many changes in one commit:
1. LiveIntervals now implement a 4 slot per instruction model. Load,
Use, Def and a Store slot. This is required in order to correctly
represent caller saved register clobbering on function calls,
register reuse in the same instruction (def resues last use) and
also spill code added later by the allocator. The previous
representation (2 slots per instruction) was insufficient and as a
result was causing subtle bugs.
2. Fixes in spill code generation. This was the major cause of
failures in the test suite.
3. Linear scan now has core support for folding memory operands. This
is untested and not enabled (the live interval update function does
not attempt to fold loads/stores in instructions).
4. Lots of improvements in the debugging output of both live intervals
and linear scan. Give it a try... it is beautiful :-)
In summary the above fixes all the issues with the recent reserved
register elimination changes and get the allocator very close to the
next big step: folding memory operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11654
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 06:12:58 +0000 (06:12 +0000)]
If bugpoint can't match the reference output, at LEAST provide the output
we can get.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11653
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 05:58:58 +0000 (05:58 +0000)]
Wild and passionate uncontrolled goose chases are amusing to watch, but not
very helpful. Let bugpoint favor being helpful instead of determined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11652
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 05:56:48 +0000 (05:56 +0000)]
Format a bit more nicely
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11651
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 20 Feb 2004 05:49:22 +0000 (05:49 +0000)]
It is totally unacceptable to print out (literally) millions of zeros when
compiling 129.compress... so don't!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11649
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 21:44:41 +0000 (21:44 +0000)]
Add strndup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11638
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 21:27:50 +0000 (21:27 +0000)]
Add a method useful for updating DSA
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11636
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 21:21:23 +0000 (21:21 +0000)]
Disable the stack trace thing until we can get an autoconf test for it. This
call breaks on sparcs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11635
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 20:33:00 +0000 (20:33 +0000)]
Make sure to print a stack trace whenever an error signal is delivered
to the tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11634
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 20:32:39 +0000 (20:32 +0000)]
Make sure to print a stack trace whenever an error signal is delivered to
the tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11633
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 20:32:12 +0000 (20:32 +0000)]
Make sure to print a stack trace whenever an error signal is delivered to the
tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11632
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 20:03:14 +0000 (20:03 +0000)]
Implement new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 20:03:08 +0000 (20:03 +0000)]
Add a new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11630
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 19 Feb 2004 19:24:17 +0000 (19:24 +0000)]
Fix RA::verifyAssignment()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11629
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 18:34:02 +0000 (18:34 +0000)]
Fix problem fusing spill code into instructions: we didn't update the live
variable information to take into account the change of instruction
address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11628
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 18:32:29 +0000 (18:32 +0000)]
Fix an iterator invalidation problem. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11627
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 18:28:22 +0000 (18:28 +0000)]
ADd a method for when an instruction moves
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11626
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 18:28:02 +0000 (18:28 +0000)]
Add method to update livevar when an instruction moves
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11625
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 17:03:49 +0000 (17:03 +0000)]
Be a bit more robust. Explicitly check for a code generator crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11624
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 16:17:08 +0000 (16:17 +0000)]
Fix a __LONG__ term annoyance of mine: symbolic registers weren't being printed
by operator<< on MachineInstr's, and looking up what register "24" is all of the
time was greatly annoying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11623
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 19 Feb 2004 16:13:54 +0000 (16:13 +0000)]
Add a MachineBasicBlock::getParent() method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11622
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 19 Feb 2004 07:39:26 +0000 (07:39 +0000)]
Make ToolExecutionError inherit std::exception and implement its
interface: getMessage() is gone, use what() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11621
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 19 Feb 2004 07:36:35 +0000 (07:36 +0000)]
Print stacktrace in STDERR before dying on a fatal signal. Currently
the symbols are not demangled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11620
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 19 Feb 2004 06:19:09 +0000 (06:19 +0000)]
Rename reloads/spills to loads/stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11619
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Thu, 19 Feb 2004 01:10:55 +0000 (01:10 +0000)]
This is needed by assignment verification in linear-scan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11618
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:59:11 +0000 (23:59 +0000)]
Fix the "horribly N^2'd" problem when deleting individual instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11617
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:30:21 +0000 (23:30 +0000)]
Document the code generator debugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11616
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:30:02 +0000 (23:30 +0000)]
document the -march=c option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11615
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:26:28 +0000 (23:26 +0000)]
* Predicate the optimizer crash debugger on a function.
* Implement a new code generator crash debugger which uses this predicate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11614
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:25:22 +0000 (23:25 +0000)]
Add a new method for use by the code generator crash debugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11613
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:24:56 +0000 (23:24 +0000)]
Don't crash if there are no passes in the PassesToRun list
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11612
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:24:41 +0000 (23:24 +0000)]
Add support for just running the code generator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11611
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 23:24:29 +0000 (23:24 +0000)]
Add support for just compiling a program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11610
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 23:15:23 +0000 (23:15 +0000)]
Implement assignment correctness verification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11609
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 23:14:52 +0000 (23:14 +0000)]
Move unused typedefs in private section. Add method to return interval
given a register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11608
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 22:01:21 +0000 (22:01 +0000)]
Make the executeProgram method exception safe, not leaving around bytecode
files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11607
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 21:50:26 +0000 (21:50 +0000)]
Make more stuff public. Make the instruction argument to
deleteInstructionFromProgram be const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11606
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 21:35:28 +0000 (21:35 +0000)]
make a bunch of methods public
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11605
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 21:29:46 +0000 (21:29 +0000)]
A couple of minor cleanups: don't forward declare private classes, put private
classes in an anon namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11604
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 21:24:48 +0000 (21:24 +0000)]
Cleanup and simplify manipulation of the program, eliminate the need for so
many 'friends' of bugdriver.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11603
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 21:02:04 +0000 (21:02 +0000)]
Add a stub for debugging code generator crashes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11602
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:58:00 +0000 (20:58 +0000)]
indent correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11601
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:57:38 +0000 (20:57 +0000)]
Don't yell. BUGPOINT should yell, not the tool runner :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11600
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:52:02 +0000 (20:52 +0000)]
Update comments, if we are running with the CBE, make sure the Interpreter
variable and the CBE variable are pointer equal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11599
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:38:12 +0000 (20:38 +0000)]
Byebye method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11598
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:38:00 +0000 (20:38 +0000)]
If there is an error running a tool, include the error message (e.g. assertion failure) in the exception
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11597
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:27:06 +0000 (20:27 +0000)]
Add a label for the bump when we started counting llvm/projects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11596
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:22:25 +0000 (20:22 +0000)]
ctor arguments changed order
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11595
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:22:11 +0000 (20:22 +0000)]
Catch exception and print message as appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11594
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:21:57 +0000 (20:21 +0000)]
When an error occurs executing a tool, we now throw an exception instead
of calling exit(1).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11593
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 20:20:52 +0000 (20:20 +0000)]
Change the order of the arguments to the ctor, allowing us to make the boolean default to true
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11592
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 18 Feb 2004 20:00:05 +0000 (20:00 +0000)]
Pre-emptive commit of cfrac license information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11588
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 17:32:54 +0000 (17:32 +0000)]
Bugpoint will be throwing exceptions soon, perpare for the worst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11584
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 17:17:10 +0000 (17:17 +0000)]
This class got moved to FileUtilities.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11583
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 17:16:17 +0000 (17:16 +0000)]
Move a helper class out of bugpoint to here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11582
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 16:55:29 +0000 (16:55 +0000)]
Extract has new options
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11581
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 16:53:59 +0000 (16:53 +0000)]
Give extract -o and -f options, just like every other tool!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11580
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 16:45:22 +0000 (16:45 +0000)]
eliminate a pair of really inefficient methods now that noone uses them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 16:43:51 +0000 (16:43 +0000)]
Eliminate operator[] is deprecated warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11578
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 18 Feb 2004 16:38:18 +0000 (16:38 +0000)]
Fix deprecated operator[] warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11577
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 16:20:40 +0000 (16:20 +0000)]
Fix argument size for MOVSX and MOVZX instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11576
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 04:38:37 +0000 (04:38 +0000)]
Be more agressive when joining ranges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11575
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 03:35:38 +0000 (03:35 +0000)]
Fix overly conservative spill interval computation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11574
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 18 Feb 2004 00:35:06 +0000 (00:35 +0000)]
Beautify debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11573
91177308-0d34-0410-b5e6-
96231b3b80d8