Commit Graph

7571 Commits

Author SHA1 Message Date
Chris Lattner 96cb8de142 Allow for "unsafe" replaceAllUsesWith operatations, for use during type resolution
llvm-svn: 8208
2003-08-29 05:36:05 +00:00
Chris Lattner 2f0f071105 Yet ANOTHER complication that the libstdc++ library runs into linking...
llvm-svn: 8207
2003-08-29 05:29:38 +00:00
Chris Lattner 6097d94295 Fix bug: Linker/2003-08-28-TypeResolvesGlobal2.ll
llvm-svn: 8206
2003-08-29 05:11:34 +00:00
Chris Lattner 9f15812e88 Refactor code to make it useful outside of Constants.cpp
llvm-svn: 8205
2003-08-29 05:09:37 +00:00
Chris Lattner ee3b99c585 Add new method
llvm-svn: 8204
2003-08-29 05:08:31 +00:00
Chris Lattner 8cbaf924b4 Ok, the last bug fix was not good enough to fix libstdc++. Maybe this one will be
llvm-svn: 8203
2003-08-29 04:54:23 +00:00
Chris Lattner ae77242011 Fix bug: Linker/2003-08-28-TypeResolvesGlobal.ll
llvm-svn: 8202
2003-08-29 04:49:54 +00:00
Chris Lattner b0afc5b06d New testcase which is preventing the linking of libstdc++
llvm-svn: 8201
2003-08-29 04:40:34 +00:00
Misha Brukman 9770b83509 * Use alloca() to force GCC not to eliminate frame pointer
* Break apart saving and restoring registers into separate functions
* Instead of saving single and double FP registers, just save the double
  registers -- aliasing helps preserve the single FP registers as well.
* Request just as much memory for a stub as we actually use

llvm-svn: 8200
2003-08-29 04:22:54 +00:00
Chris Lattner 965dd49815 NEw testcase
llvm-svn: 8199
2003-08-29 00:29:55 +00:00
Chris Lattner 55ab0f57db New testcase, not only possible of causing compilation failures, but could
also cause miscompilations!

llvm-svn: 8198
2003-08-29 00:03:45 +00:00
Misha Brukman bd779f7819 Renaming `dis' -> `llvm-dis'.
llvm-svn: 8197
2003-08-28 22:14:16 +00:00
Chris Lattner 8a18a8c307 Document the llvm.unwind intrinsic.
Clarify the documentation for the invoke instruction

llvm-svn: 8196
2003-08-28 22:12:25 +00:00
Misha Brukman abe1ecee6f Renaming `as' -> `llvm-as' and `dis' -> `llvm-dis'.
llvm-svn: 8195
2003-08-28 22:02:50 +00:00
Misha Brukman f74a779900 Near-term fix for renaming `as' -> `llvm-as' and `dis' -> `llvm-dis'.
llvm-svn: 8194
2003-08-28 21:46:34 +00:00
Misha Brukman fc8010c50c Start using `llvm-as' instead of `as'.
llvm-svn: 8193
2003-08-28 21:45:08 +00:00
Misha Brukman 84acf179dd Build llvm-as and llvm-dis as the upgrade path to renamed tools.
llvm-svn: 8192
2003-08-28 21:43:51 +00:00
John Criswell a4b09fe071 Fixed two double free bugs that caused llc to segfault or run forever.
llvm-svn: 8191
2003-08-28 21:43:17 +00:00
John Criswell a289abfc82 Added code to avoid checking for .bc when the filename is too short.
llvm-svn: 8190
2003-08-28 21:42:29 +00:00
Misha Brukman f12549d921 Renaming LLVM `dis' to `llvm-dis'.
llvm-svn: 8189
2003-08-28 21:34:13 +00:00
Misha Brukman 9893027b5e Renaming LLVM `as' to `llvm-as'.
llvm-svn: 8188
2003-08-28 21:32:57 +00:00
Chris Lattner 147b66cd2b Add support for the llvm.unwind intrinsic, which we codegen to just do an abort
until we implement unwinding.
Add support for the invoke instruction, which codegens just like a call with
a branch after it.

The end effect of this change is that programs using the invoke instruction,
but never unwinding, will work fine.  Programs that unwind will abort until
we get unwind support.

llvm-svn: 8187
2003-08-28 21:23:43 +00:00
Chris Lattner 0ca03c0139 Add another testcase I found lying around.
llvm-svn: 8186
2003-08-28 20:33:46 +00:00
Chris Lattner a9c1cd238a Add test for the last chapter of our C++ exception handling odyssey. llvmg++
now fully supports all C++ exception handling functionality.

llvm-svn: 8185
2003-08-28 20:32:36 +00:00
Chris Lattner 4f08308b9c * Add proper support for rethrown exceptions.
* Make catch_begin() produce a pointer that must be passed to catch_end()
* Eliminate the caught exception stack.
* Add optional debugging code that may be turned on.

llvm-svn: 8184
2003-08-28 19:58:51 +00:00
Chris Lattner 44cf3163a5 New testcases, all of which work with llvmg++!
This tests exception specifications, and also adds an "easy" rethrow test.

llvm-svn: 8183
2003-08-28 19:57:53 +00:00
Chris Lattner 49e96777bb Link to the C++ libraries. This is temporary
llvm-svn: 8182
2003-08-28 19:57:14 +00:00
Chris Lattner cbd234f26b Fix really nasty bugs in the CWriter, handling invoke instructions. Tracking
these down was NOT phun.

llvm-svn: 8181
2003-08-28 19:56:10 +00:00
Tanya Lattner 190b7a86ba Removing README
llvm-svn: 8180
2003-08-28 17:17:59 +00:00
Tanya Lattner 7efb18f49c Putting my revised version of ModuloScheduling in cvs. This is not complete...
llvm-svn: 8179
2003-08-28 17:12:14 +00:00
Chris Lattner 66cc0141b0 Fix bug where we considered function types equivalent even if they had differing numbers of arguments
llvm-svn: 8178
2003-08-28 16:42:50 +00:00
Chris Lattner aa6a44f501 Reorder #includes
Make sure that we veryify the result before writing it out!

llvm-svn: 8177
2003-08-28 16:25:34 +00:00
Tanya Lattner 44a1aff925 Moved index in BB to common graph class.
llvm-svn: 8175
2003-08-28 15:31:28 +00:00
Tanya Lattner 89860151b9 Moved index into BB to common graph class because its needed by ModuloSchedGraph.
llvm-svn: 8174
2003-08-28 15:30:40 +00:00
Tanya Lattner 57c70a62e0 First version of llvm-ar added to cvs repository.
llvm-svn: 8173
2003-08-28 15:22:38 +00:00
Chris Lattner 7234208d6c Convert C comments to C++
llvm-svn: 8172
2003-08-28 14:43:36 +00:00
Chris Lattner 3926a8329e New wrapper around the terminate call.
llvm-svn: 8171
2003-08-28 14:35:52 +00:00
Chris Lattner 1c725dda63 Squelch warning
llvm-svn: 8170
2003-08-28 14:35:12 +00:00
Chris Lattner 9dddce6864 Be more typesafe
Call terminate and unexpected where appropriate.
Interface to libstdc++ as appropriate
Initial cut at implementing function exception specifications

llvm-svn: 8169
2003-08-27 23:00:11 +00:00
Chris Lattner 83921b4dc6 Be more type-safe, add throw specs to all functions
llvm-svn: 8168
2003-08-27 22:59:15 +00:00
Chris Lattner 511c2cf0cc Add throw specs to the functions, remove (void) from the functions
llvm-svn: 8167
2003-08-27 22:58:51 +00:00
Chris Lattner 35312b2b6d Hack out libexception temporarily until the Sparc FE is improved
llvm-svn: 8166
2003-08-27 22:18:23 +00:00
Chris Lattner 9e911389a4 Move the testcase elsewhere
llvm-svn: 8165
2003-08-27 19:06:04 +00:00
Chris Lattner 7c95d2ffb9 Refactor code slightly. Make code compiled with llvmgcc use the warning options
as well.  Compile with -fshort-enums whether in debug or release mode, because it breaks the ABI

llvm-svn: 8164
2003-08-27 18:26:44 +00:00
Misha Brukman a26dd3ba05 Spell `incompatible' correctly.
llvm-svn: 8163
2003-08-27 18:26:28 +00:00
Chris Lattner 9ffbb367a4 New testcase. Unfortunately, native GCC gets this wrong. Someday we will have to figure out how to deal with this.
llvm-svn: 8162
2003-08-27 18:19:53 +00:00
Tanya Lattner 7d5b6526bb *** empty log message ***
llvm-svn: 8161
2003-08-27 15:52:23 +00:00
Tanya Lattner cf8851eb20 Added/removed header file
llvm-svn: 8160
2003-08-27 15:12:24 +00:00
John Criswell 3ec1fab3ad Added an option to TableGen that allows users to specify a directory in which
to find include files.  TableGen will load include files from this directory if
it cannot find them in the current directory.
This feature was needed for building code inside the object tree (a la autoconf
style).
TODO: Allow for multiple -I options to specify a list of directories to search.

llvm-svn: 8159
2003-08-27 13:41:57 +00:00
Chris Lattner 7b972a24e1 New testcases, which WORK with LLVMG++ and the CBE.
llvm-svn: 8158
2003-08-27 04:57:33 +00:00