oota-llvm.git
20 years agoRemove standard C header wrappers
Chris Lattner [Sat, 10 Jan 2004 19:15:38 +0000 (19:15 +0000)]
Remove standard C header wrappers

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

20 years agoRemove config wrapper around <cerrno>
Chris Lattner [Sat, 10 Jan 2004 19:15:14 +0000 (19:15 +0000)]
Remove config wrapper around <cerrno>

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

20 years agoRemove standard C file wrapper
Chris Lattner [Sat, 10 Jan 2004 19:15:00 +0000 (19:15 +0000)]
Remove standard C file wrapper

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

20 years agoRemove wrapper for standard C file, use <cstdlib> instead
Chris Lattner [Sat, 10 Jan 2004 19:12:44 +0000 (19:12 +0000)]
Remove wrapper for standard C file, use <cstdlib> instead

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

20 years agoRemove wrappers around std c files
Chris Lattner [Sat, 10 Jan 2004 19:12:09 +0000 (19:12 +0000)]
Remove wrappers around std c files

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

20 years agoDead file, use <cstring> instead of this.
Chris Lattner [Sat, 10 Jan 2004 19:10:22 +0000 (19:10 +0000)]
Dead file, use <cstring> instead of this.

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

20 years agoErr, we don't need Config/*.h files for things that are standard C++
Chris Lattner [Sat, 10 Jan 2004 19:10:01 +0000 (19:10 +0000)]
Err, we don't need Config/*.h files for things that are standard C++

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

20 years agominor comment tweaks
Chris Lattner [Sat, 10 Jan 2004 19:07:06 +0000 (19:07 +0000)]
minor comment tweaks

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

20 years agoremove obsolete file
Chris Lattner [Sat, 10 Jan 2004 19:00:26 +0000 (19:00 +0000)]
remove obsolete file

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

20 years ago* finegrainify namespacification of ArchiveReader.cpp
Chris Lattner [Sat, 10 Jan 2004 19:00:15 +0000 (19:00 +0000)]
* finegrainify namespacification of ArchiveReader.cpp
* Refactor reader stuff out of include/llvm/Bytecode/Primitives.h.  This is
  internal implementation details for the reader, not public interfaces!

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

20 years agoRefactor writer stuff out of include/llvm/Bytecode/Primitives.h. This is
Chris Lattner [Sat, 10 Jan 2004 18:56:59 +0000 (18:56 +0000)]
Refactor writer stuff out of include/llvm/Bytecode/Primitives.h.  This is
internal implementation details for the writer, not public interfaces!

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

20 years agoFinegrainify namespacification
Chris Lattner [Sat, 10 Jan 2004 18:49:43 +0000 (18:49 +0000)]
Finegrainify namespacification

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

20 years agoFix annoying warnings. W doesn't have a revision number
Chris Lattner [Fri, 9 Jan 2004 18:39:04 +0000 (18:39 +0000)]
Fix annoying warnings.  W doesn't have a revision number

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

20 years agoLive var is now in lib/Target/Sparc
Chris Lattner [Fri, 9 Jan 2004 18:16:20 +0000 (18:16 +0000)]
Live var is now in lib/Target/Sparc

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

20 years agoMove sparc-specific code into lib/Target/Sparc
Chris Lattner [Fri, 9 Jan 2004 18:15:56 +0000 (18:15 +0000)]
Move sparc-specific code into lib/Target/Sparc

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

20 years agoMove sparc-specific livevar code into lib/Target/Sparc
Chris Lattner [Fri, 9 Jan 2004 18:15:24 +0000 (18:15 +0000)]
Move sparc-specific livevar code into lib/Target/Sparc

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

20 years agoFix more incestuous #includage.
Chris Lattner [Fri, 9 Jan 2004 16:17:09 +0000 (16:17 +0000)]
Fix more incestuous #includage.

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

20 years agoFinegrainify namespacification.
Chris Lattner [Fri, 9 Jan 2004 06:30:18 +0000 (06:30 +0000)]
Finegrainify namespacification.
This should get hunked over to the Sparc backend, along with
MachineCodeForInstruction and a bunch of files in include/llvm/Codegen,
but those battles will have to wait for a later time.

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

20 years agoMove InstrSelection into lib/Target/Sparc, as it's sparc specific
Chris Lattner [Fri, 9 Jan 2004 06:24:06 +0000 (06:24 +0000)]
Move InstrSelection into lib/Target/Sparc, as it's sparc specific

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

20 years agoMove InstrSelection into lib/Target/Sparc, as it's sparc specific. This
Chris Lattner [Fri, 9 Jan 2004 06:22:34 +0000 (06:22 +0000)]
Move InstrSelection into lib/Target/Sparc, as it's sparc specific.  This
makes the incestuous #include'ing of sparc internal headers much less
disturbing.  :)

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

20 years agoMove lib/Codegen/RegAlloc into lib/Target/Sparc, as it is sparc specific
Chris Lattner [Fri, 9 Jan 2004 06:17:12 +0000 (06:17 +0000)]
Move lib/Codegen/RegAlloc into lib/Target/Sparc, as it is sparc specific

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

20 years agoFinegrainify namespacification
Chris Lattner [Fri, 9 Jan 2004 06:12:26 +0000 (06:12 +0000)]
Finegrainify namespacification

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

20 years agoRemove dependence on structure index type. s/MT/FT
Chris Lattner [Fri, 9 Jan 2004 06:02:51 +0000 (06:02 +0000)]
Remove dependence on structure index type.  s/MT/FT

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

20 years agoFinegrainify namespacification
Chris Lattner [Fri, 9 Jan 2004 06:02:20 +0000 (06:02 +0000)]
Finegrainify namespacification

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

20 years agoFinegrainify namespacification
Chris Lattner [Fri, 9 Jan 2004 05:53:38 +0000 (05:53 +0000)]
Finegrainify namespacification
add flags for PR82

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

20 years agoRemove an obsolete method, including its _long_ out of date comment.
Chris Lattner [Fri, 9 Jan 2004 05:45:58 +0000 (05:45 +0000)]
Remove an obsolete method, including its _long_ out of date comment.
This is an incremental step towards fixing PR82

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

20 years agoInching towards fixing PR82
Chris Lattner [Fri, 9 Jan 2004 05:44:50 +0000 (05:44 +0000)]
Inching towards fixing PR82

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

20 years agoInching our way towards fixing PR82
Chris Lattner [Fri, 9 Jan 2004 05:42:34 +0000 (05:42 +0000)]
Inching our way towards fixing PR82

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

20 years agoRemove yet another obsolete comment :)
Chris Lattner [Thu, 8 Jan 2004 22:28:45 +0000 (22:28 +0000)]
Remove yet another obsolete comment :)

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

20 years agoFix typos. Rewrite head-of-file comment.
Brian Gaeke [Thu, 8 Jan 2004 22:21:59 +0000 (22:21 +0000)]
Fix typos. Rewrite head-of-file comment.

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

20 years agoFix typos. Regularize include guard.
Brian Gaeke [Thu, 8 Jan 2004 22:21:58 +0000 (22:21 +0000)]
Fix typos. Regularize include guard.

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

20 years agoNew bugs fixed
Chris Lattner [Thu, 8 Jan 2004 17:20:50 +0000 (17:20 +0000)]
New bugs fixed

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

20 years agoTestcase for PR202
Chris Lattner [Thu, 8 Jan 2004 17:15:09 +0000 (17:15 +0000)]
Testcase for PR202

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

20 years agoImprove encapsulation in the Loop and LoopInfo classes by eliminating the
Chris Lattner [Thu, 8 Jan 2004 00:09:44 +0000 (00:09 +0000)]
Improve encapsulation in the Loop and LoopInfo classes by eliminating the
getSubLoops/getTopLevelLoops methods, replacing them with iterator-based
accessors.

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

20 years agoexplain the jump for llvm-db
Chris Lattner [Wed, 7 Jan 2004 18:33:14 +0000 (18:33 +0000)]
explain the jump for llvm-db

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

20 years agoAdd a separate list of fixed intervals. This improves the running time
Alkis Evlogimenos [Wed, 7 Jan 2004 09:20:58 +0000 (09:20 +0000)]
Add a separate list of fixed intervals. This improves the running time
of the register allocator as follows:

       before   after
mesa   2.3790  1.5994
vpr    2.6008  1.2078
gcc    1.9840  0.5273
mcf    0.2569  0.0470
eon    1.8468  1.4359
twolf  0.9475  0.2004
burg   1.6807  1.3300
lambda 1.2191  0.3764

Speedups range anyware from 30% to over 400% :-)

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

20 years agoMinor cleanups.
Alkis Evlogimenos [Wed, 7 Jan 2004 05:31:12 +0000 (05:31 +0000)]
Minor cleanups.

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

20 years agoRemove declared but undefined method.
Alkis Evlogimenos [Wed, 7 Jan 2004 02:29:33 +0000 (02:29 +0000)]
Remove declared but undefined method.

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

20 years agoChange perl interpreter path to the standard /usr/bin/perl.
Alkis Evlogimenos [Wed, 7 Jan 2004 01:48:26 +0000 (01:48 +0000)]
Change perl interpreter path to the standard /usr/bin/perl.

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

20 years agoChange implementation of LiveIntervals::overlap(). This results in a
Alkis Evlogimenos [Wed, 7 Jan 2004 01:45:58 +0000 (01:45 +0000)]
Change implementation of LiveIntervals::overlap(). This results in a
30-50% decrease in running time of the linear scan register allocator.

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

20 years agoUgh, fix some copy and pasted code that somehow never got compiled or something
Chris Lattner [Tue, 6 Jan 2004 23:46:17 +0000 (23:46 +0000)]
Ugh, fix some copy and pasted code that somehow never got compiled or something
:(

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

20 years agoPass std::string to constructor as const reference to avoid multiple
Alkis Evlogimenos [Tue, 6 Jan 2004 09:16:02 +0000 (09:16 +0000)]
Pass std::string to constructor as const reference to avoid multiple
copies.

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

20 years agorestore comments to this file
Chris Lattner [Tue, 6 Jan 2004 05:37:45 +0000 (05:37 +0000)]
restore comments to this file

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

20 years ago* Implement set/show args
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

20 years agoimplement the "null command" which repeats the last command
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

20 years agoAdd support for new intrinsic
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

20 years agoadd new intrinsic
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

20 years agoadd new method
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

20 years agoAdd links to SLD from the LangRef.html doc
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

20 years agoFix some typos and copy-and-paste-os in comments, and doxygenify.
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

20 years agoRemove simple coalescing.
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

20 years ago/me slaps head
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

20 years ago/me slaps forehead
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

20 years agofix warning
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

20 years agoAdd VMCore and code generator support for debugging intrinsics. By default
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

20 years agoAdd some intrinsics
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

20 years agoAn example testcase for use in the debugger. Currently you can do stuff like
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

20 years agoAdd new directory
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

20 years agoInitial checkin of the LLVM Source-Level Debugger. This is incomplete, but
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

20 years agoAdd new dir
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

20 years agoInitial checkin of the LLVM source-level debugger. This is still not finished,
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

20 years agoInitial implementation of some source-level debugging stuff
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

20 years agoFirst version of this document. It is still missing some pretty big pieces, and
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

20 years agoCurrently we cannot handle two-address instructions of the form:
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

20 years agoUpdate description.
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

20 years agoRegression test for initializers with members of unknown size.
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

20 years agoNot all platforms supports sighandler_t, so I changed it to use the older
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

20 years agoAdd new ExecutionEngine::getGlobalValueAtAddress method, which can efficiently
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

20 years agoAdd new ExecutionEngine::getGlobalValueAtAddress method, which can efficiently
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

20 years ago* Add a new helper progress method
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

20 years agoAdd some comments, add new getGlobalVariable method
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

20 years agoAdd some comments, add a new getGlobalVariable method
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

20 years agoAdd missing #include
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

20 years ago* Make Module::getTypeName const
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

20 years agoMake the lookup method const.
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

20 years agoAdd a bunch of fine tunings that Reid contributed. Thanks Reid!
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

20 years agoadd new function
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

20 years agoAdd new function
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

20 years agoclarify comments
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

20 years agoNew class, useful for command-line interactive programs.
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

20 years agodoxygenify
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

20 years agotestcase for PR198
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

20 years agoFix PR198
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

20 years agoAdd comments
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

20 years agoMinor code cleanups. The only bugfix is to the UR_DEBUG stuff which didn't
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

20 years agoUpdated from files in llvm/autoconf. This was done immediently following
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

20 years agoMoved aclocal.m4 to acinclude.m4. To re-generate the configure script,
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

20 years agoremove some useless #includes
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

20 years agoRemove some pointless #includes
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

20 years agoUse getFileSize() instead of sys/stat.h directly
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

20 years agoUse new getFileSize function. Eliminate some using directives. Reorder #includes...
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

20 years agoUse new getFileSize function instead of sys/stat.h directly.
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

20 years agoAdd new method
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

20 years agoAdd new function
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

20 years agoAdd a -disable-opt flag to gccas, so that we can use -Wa,-disable-opt just
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

20 years agoFurther revisions of the FDHandle idea. In this version we use ownership
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

20 years agoAdd a new class useful for providing fully materialized modules to ExecutionEngine's
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

20 years agoAllow C++ programs to end in .cc. This allows C++ test programs in the
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

20 years agoAdd trivial exception specs to produce better code since the methods cannot
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

20 years agoFactor FDHandle out of the bytecode reader into the FileUtilities.h support
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