Chris Lattner [Tue, 6 Jan 2004 05:37:16 +0000 (05:37 +0000)]
* Implement set/show args
* Implement support for arguments to the 'run' command
* Minor cleanups and fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10703
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 6 Jan 2004 05:36:30 +0000 (05:36 +0000)]
implement the "null command" which repeats the last command
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10702
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 6 Jan 2004 05:33:02 +0000 (05:33 +0000)]
Add support for new intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10701
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 6 Jan 2004 05:32:17 +0000 (05:32 +0000)]
add new intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10700
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 6 Jan 2004 05:31:57 +0000 (05:31 +0000)]
add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10699
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 6 Jan 2004 05:31:32 +0000 (05:31 +0000)]
Add links to SLD from the LangRef.html doc
Clean up the SLD document a LOT
Fill in a lot of details in the SLD document
update the formats for the object descriptors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10698
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Mon, 5 Jan 2004 17:22:52 +0000 (17:22 +0000)]
Fix some typos and copy-and-paste-os in comments, and doxygenify.
Add <csignal> so that this file compiles on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10697
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Mon, 5 Jan 2004 08:24:57 +0000 (08:24 +0000)]
Remove simple coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10695
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:47:19 +0000 (05:47 +0000)]
/me slaps head
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10694
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:45:25 +0000 (05:45 +0000)]
/me slaps forehead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10693
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:42:17 +0000 (05:42 +0000)]
fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10692
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:36:30 +0000 (05:36 +0000)]
Add VMCore and code generator support for debugging intrinsics. By default
code generators completely ignore them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10691
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:35:34 +0000 (05:35 +0000)]
Add some intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10690
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:32:40 +0000 (05:32 +0000)]
An example testcase for use in the debugger. Currently you can do stuff like
stepping, next'ing, finish'ing, stacktraces, source listings, etc. You can't
print program variables yet though.
Oh, and I lost my nice commented version of funccall.ll :(
Test with:
llvm-as funccall.ll
llvm-db funccall.bc
<arguments>
This is not automatically testable yet, and the C front-end doesn't support
debug information yet. That said, it's a start.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10689
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:28:15 +0000 (05:28 +0000)]
Add new directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10688
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:27:31 +0000 (05:27 +0000)]
Initial checkin of the LLVM Source-Level Debugger. This is incomplete, but
a good start. The status is documented in docs/SourceLevelDebugging.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10687
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:25:59 +0000 (05:25 +0000)]
Add new dir
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10686
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:25:10 +0000 (05:25 +0000)]
Initial checkin of the LLVM source-level debugger. This is still not finished,
by any stretch of the imagination, but it is pretty cool and works :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10685
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:23:38 +0000 (05:23 +0000)]
Initial implementation of some source-level debugging stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10684
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 5 Jan 2004 05:06:33 +0000 (05:06 +0000)]
First version of this document. It is still missing some pretty big pieces, and
the debugging information formats will likely change, but it's a start, and I
have to move on to other things in the short-term, so it might be a while before
I get back to working on this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10683
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Mon, 5 Jan 2004 02:25:45 +0000 (02:25 +0000)]
Currently we cannot handle two-address instructions of the form:
A = B op C where A == C, but this cannot really occur in practice
because of SSA form. Add an assert to check that just to be safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10682
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 4 Jan 2004 23:09:24 +0000 (23:09 +0000)]
Update description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10681
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Thu, 1 Jan 2004 23:58:07 +0000 (23:58 +0000)]
Regression test for initializers with members of unknown size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10678
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Thu, 1 Jan 2004 15:14:28 +0000 (15:14 +0000)]
Not all platforms supports sighandler_t, so I changed it to use the older
return value from signal() (which should be the same type; it's just not
typedef'd).
This fixes the build on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10675
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 20:21:04 +0000 (20:21 +0000)]
Add new ExecutionEngine::getGlobalValueAtAddress method, which can efficiently
turn a memory address back into the LLVM global object that starts at that
address. Note that this won't cause any additional datastructures to be built
for clients of the EE that don't need this information.
Also modified some code to not access the GlobalAddress map directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10674
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 20:19:31 +0000 (20:19 +0000)]
Add new ExecutionEngine::getGlobalValueAtAddress method, which can efficiently
turn a memory address back into the LLVM global object that starts at that
address. Note that this won't cause any additional datastructures to be built
for clients of the EE that don't need this information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10673
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 10:20:38 +0000 (10:20 +0000)]
* Add a new helper progress method
* Make sure that the user sees the 100% mark
* Don't bother printing out X.0%, just print out X%
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10672
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 08:43:01 +0000 (08:43 +0000)]
Add some comments, add new getGlobalVariable method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10671
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 08:42:27 +0000 (08:42 +0000)]
Add some comments, add a new getGlobalVariable method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10670
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 07:31:10 +0000 (07:31 +0000)]
Add missing #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10669
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 07:09:33 +0000 (07:09 +0000)]
* Make Module::getTypeName const
* Add new Module::getTypeByName method
* Group methods in Module.cpp better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10668
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 07:08:19 +0000 (07:08 +0000)]
Make the lookup method const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10667
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 06:47:28 +0000 (06:47 +0000)]
Add a bunch of fine tunings that Reid contributed. Thanks Reid!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10666
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 06:16:02 +0000 (06:16 +0000)]
add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10665
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 06:15:37 +0000 (06:15 +0000)]
Add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10664
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 05:45:16 +0000 (05:45 +0000)]
clarify comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10663
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 05:40:02 +0000 (05:40 +0000)]
New class, useful for command-line interactive programs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10662
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 04:42:00 +0000 (04:42 +0000)]
doxygenify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10661
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 03:24:14 +0000 (03:24 +0000)]
testcase for PR198
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10660
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 03:19:37 +0000 (03:19 +0000)]
Fix PR198
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10659
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 02:50:02 +0000 (02:50 +0000)]
Add comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10658
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Dec 2003 02:18:11 +0000 (02:18 +0000)]
Minor code cleanups. The only bugfix is to the UR_DEBUG stuff which didn't
compile when enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10657
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 30 Dec 2003 17:55:05 +0000 (17:55 +0000)]
Updated from files in llvm/autoconf. This was done immediently following
the renaming of aclocal.m4 to acinclude.m4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10656
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 30 Dec 2003 17:50:54 +0000 (17:50 +0000)]
Moved aclocal.m4 to acinclude.m4. To re-generate the configure script,
do the following:
% cd llvm/autoconf
% aclocal
% autoconf -o ../configure
This changes facilitaties the following:
1) It should be easier to incorporate new autoconf macros.
2) It allows for conversion to Automake (should we ever desire it).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10655
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:55:21 +0000 (07:55 +0000)]
remove some useless #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10654
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:50:31 +0000 (07:50 +0000)]
Remove some pointless #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10653
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:48:17 +0000 (07:48 +0000)]
Use getFileSize() instead of sys/stat.h directly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10652
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:45:46 +0000 (07:45 +0000)]
Use new getFileSize function. Eliminate some using directives. Reorder #includes a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10651
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:40:35 +0000 (07:40 +0000)]
Use new getFileSize function instead of sys/stat.h directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10650
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:36:14 +0000 (07:36 +0000)]
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10649
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 07:35:47 +0000 (07:35 +0000)]
Add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10648
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 03:24:27 +0000 (03:24 +0000)]
Add a -disable-opt flag to gccas, so that we can use -Wa,-disable-opt just
like -Wl,-disable-opt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10647
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 02:45:16 +0000 (02:45 +0000)]
Further revisions of the FDHandle idea. In this version we use ownership
semantics that are the same as those used by std::auto_ptr. This allows
copying of FDHandle's, but copying transfers ownership.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10646
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Dec 2003 02:44:04 +0000 (02:44 +0000)]
Add a new class useful for providing fully materialized modules to ExecutionEngine's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10645
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Mon, 29 Dec 2003 22:02:12 +0000 (22:02 +0000)]
Allow C++ programs to end in .cc. This allows C++ test programs in the
test suite to compile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10644
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 29 Dec 2003 21:43:58 +0000 (21:43 +0000)]
Add trivial exception specs to produce better code since the methods cannot
be inlined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10643
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 29 Dec 2003 21:35:05 +0000 (21:35 +0000)]
Factor FDHandle out of the bytecode reader into the FileUtilities.h support
routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10642
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 29 Dec 2003 05:07:02 +0000 (05:07 +0000)]
implement new getToken function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10639
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 29 Dec 2003 05:06:38 +0000 (05:06 +0000)]
add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10638
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 23:04:17 +0000 (23:04 +0000)]
What do you know, we actually do accomplish some things around here :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10637
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 21:23:38 +0000 (21:23 +0000)]
Clean up a lot of the code I added yesterday by exposing the IntrinsicLowering
implementation from the TargetMachine directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10636
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 28 Dec 2003 18:03:52 +0000 (18:03 +0000)]
Reserve ECX and EDI instead of EBX and EDI. Since EBX is a callee
saved register it has a longer free range than ECX (which is defined
every time there is a fnuction call) which makes ECX a better register
to reserve.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10635
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 28 Dec 2003 17:58:18 +0000 (17:58 +0000)]
Add coalescing to register allocator. A hint is added to each interval
which denotes the register we would like to be assigned to (virtual or
physical). In register allocation, if this hint exists and we can map
it to a physical register (it is either a physical register or it is a
virtual register that already got assigned to a physical one) we use
that register if it is available instead of a random one in the free
pool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10634
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 28 Dec 2003 17:35:08 +0000 (17:35 +0000)]
Add TargetInstrInfo::isMoveInstr() to support coalescing in register
allocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10633
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:53:23 +0000 (09:53 +0000)]
Whoops, don't try to lower non intrinsic calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10632
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:51:04 +0000 (09:51 +0000)]
Pass extra arguments around n stuph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:48:17 +0000 (09:48 +0000)]
We may now pass IntrinsicLowering implementations into these methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10630
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:47:19 +0000 (09:47 +0000)]
implement support for the intrinsic lowering functionality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10629
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:46:33 +0000 (09:46 +0000)]
Eliminate some code that is not needed now that we have the intrinsic lowering pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10628
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:44:37 +0000 (09:44 +0000)]
Pass around IntrinsicLowering instances as appropriate.
Reimplement the Interpreters implementation of va_* to be more direct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10627
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:43:35 +0000 (09:43 +0000)]
Use the intrinsic lowering functionality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10626
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 09:42:49 +0000 (09:42 +0000)]
add argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10625
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 08:55:50 +0000 (08:55 +0000)]
ABC's must have virtual dtors! Shame on me!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10624
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 08:30:20 +0000 (08:30 +0000)]
Move into the VMCore library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10623
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 08:30:07 +0000 (08:30 +0000)]
Move header into top-level llvm dir
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10622
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 08:19:41 +0000 (08:19 +0000)]
Implement the default implementation of the intrinsic lowering class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10621
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 08:19:13 +0000 (08:19 +0000)]
Add new interface that allows removal of some code from the code generators,
provides for future extensibility, might help the LLVA project avoid having to
hack their own LLI, and provides support required for the experimental Venus
project.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10620
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 07:59:53 +0000 (07:59 +0000)]
finegrainify namespacification
minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10619
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 07:19:08 +0000 (07:19 +0000)]
Merging constants can cause further room for improvement. Iterate until
we converge
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10618
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Dec 2003 04:03:49 +0000 (04:03 +0000)]
Add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10617
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:50:30 +0000 (06:50 +0000)]
Factor code out of LLI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10616
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:50:15 +0000 (06:50 +0000)]
New method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10615
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:49:53 +0000 (06:49 +0000)]
Factor out code to ExecutionEngine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10614
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:36:20 +0000 (06:36 +0000)]
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10613
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:16:00 +0000 (06:16 +0000)]
minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10612
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:14:47 +0000 (06:14 +0000)]
* eliminate the -f argument to lli, as it was silly and never useful anyway
* Inline callMain function
* Remove hack from the ExecutionEngines where the 'run' method would automatically
run atExit functions. Fixing this requires explicitly calling exit if main returns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10611
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:13:47 +0000 (06:13 +0000)]
No longer run atExit functions from run()
rename run to runFunction
Genericize the runFunction code a little bit, though it still stinks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10610
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:13:05 +0000 (06:13 +0000)]
No longer run atExit functions from run()
rename run to runFunction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10609
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 06:12:25 +0000 (06:12 +0000)]
Rename 'run' to 'runFunction' to emphasize that it is usable to run any
function in a module, not just main
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10608
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Dec 2003 05:07:35 +0000 (05:07 +0000)]
update comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10607
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 24 Dec 2003 18:53:31 +0000 (18:53 +0000)]
Improve debugging output when choosing a register to spill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10604
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Wed, 24 Dec 2003 15:44:53 +0000 (15:44 +0000)]
Do a separate pass to compute spill weights because doing it inline
with live intervals was missing registers that were used before they
were defined (in the arbitrary order live intervals numbers
instructions).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10603
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Dec 2003 23:50:31 +0000 (23:50 +0000)]
boog fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10602
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Dec 2003 23:25:21 +0000 (23:25 +0000)]
Hrm is a really nasty ommission. The lack of this destructor was causing abstract
types to never be deleted, manifesting itself as many OpaqueType objects being
leaked. Whoops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10601
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 23 Dec 2003 22:22:10 +0000 (22:22 +0000)]
Corrected typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10600
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Dec 2003 22:18:36 +0000 (22:18 +0000)]
Right, fix the problem with invoke instructions, not just call instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10599
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Dec 2003 20:39:17 +0000 (20:39 +0000)]
Do not delete the type holder until after the call instruction has been
constructed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10598
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 23 Dec 2003 20:27:14 +0000 (20:27 +0000)]
Modified the logic so that library objects with main() are only linked in
if the program currently has main undefined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10597
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Dec 2003 20:05:15 +0000 (20:05 +0000)]
Minor cleanups, plug a minor memory leak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10596
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Tue, 23 Dec 2003 18:00:33 +0000 (18:00 +0000)]
Change the way free regusters are computed and perform better
allocation in the presence of preallocated intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10595
91177308-0d34-0410-b5e6-
96231b3b80d8