oota-llvm.git
21 years agoOnly emit inter-field-padding if the amount of padding is != 0
Chris Lattner [Wed, 10 Sep 2003 19:52:24 +0000 (19:52 +0000)]
Only emit inter-field-padding if the amount of padding is != 0

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

21 years agoClean up header, remove extra #include
Chris Lattner [Wed, 10 Sep 2003 19:42:51 +0000 (19:42 +0000)]
Clean up header, remove extra #include

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

21 years agoAvoid dumping runtime library bytecode files into lib/Bytecode if building
Chris Lattner [Wed, 10 Sep 2003 19:37:51 +0000 (19:37 +0000)]
Avoid dumping runtime library bytecode files into lib/Bytecode if building
into the source directory

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

21 years agoMake createVerifierPass return a FunctionPass *.
Brian Gaeke [Wed, 10 Sep 2003 19:37:04 +0000 (19:37 +0000)]
Make createVerifierPass return a FunctionPass *.

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

21 years agoUpdated to reflect the new locations of SingleSource tests.
John Criswell [Wed, 10 Sep 2003 18:38:44 +0000 (18:38 +0000)]
Updated to reflect the new locations of SingleSource tests.

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

21 years agoRemove using declarations
Chris Lattner [Wed, 10 Sep 2003 16:08:03 +0000 (16:08 +0000)]
Remove using declarations

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

21 years agoNew testcase
Chris Lattner [Wed, 10 Sep 2003 15:33:33 +0000 (15:33 +0000)]
New testcase

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

21 years agoRegenerated for Chris's updates, which adds several runtime library
John Criswell [Wed, 10 Sep 2003 15:17:25 +0000 (15:17 +0000)]
Regenerated for Chris's updates, which adds several runtime library
directories.

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

21 years agoAdd missing runtime directories
Chris Lattner [Wed, 10 Sep 2003 15:13:21 +0000 (15:13 +0000)]
Add missing runtime directories

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

21 years agoFix warning when _POSIX_MAPPED_FILES is already defined in unistd.h
Misha Brukman [Wed, 10 Sep 2003 15:09:45 +0000 (15:09 +0000)]
Fix warning when _POSIX_MAPPED_FILES is already defined in unistd.h

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

21 years agoanother trivial cleanup
Chris Lattner [Wed, 10 Sep 2003 14:55:05 +0000 (14:55 +0000)]
another trivial cleanup

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

21 years agoSimplification of trip counting machinery.
Chris Lattner [Wed, 10 Sep 2003 14:51:49 +0000 (14:51 +0000)]
Simplification of trip counting machinery.
  - make sure to check the indvar type before anything else (efficiency)
  - Make sure to insert the 'add' into the program, even though it'll be
    dead
  - Wrap code at 80 columns
  - Other minor cleanups to reduce indentation level

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

21 years agoDon't explicitly use $SourceDir to find the tblgen files. This causes make
John Criswell [Wed, 10 Sep 2003 14:10:44 +0000 (14:10 +0000)]
Don't explicitly use $SourceDir to find the tblgen files.  This causes make
some confusion when trying to generate files (it probably couldn't tell that
./file and $(SourceDir)/file may be the same file).
Now, just let VPATH find everything, and list the primary tblgen file first in
the list of dependencies so that we can just use $< to reference it in the make
rule.

This should hopefully fix the nightly tester.

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

21 years agoFix spello
Chris Lattner [Wed, 10 Sep 2003 05:30:09 +0000 (05:30 +0000)]
Fix spello

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

21 years agoFix spell-o's
Chris Lattner [Wed, 10 Sep 2003 05:29:43 +0000 (05:29 +0000)]
Fix spell-o's

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

21 years agoSpelling fixes. I think that "cannonical" is ok, but "canonical" appears to
Chris Lattner [Wed, 10 Sep 2003 05:24:46 +0000 (05:24 +0000)]
Spelling fixes.  I think that "cannonical" is ok, but "canonical" appears to
be the canonical form for the word

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

21 years agoSpelling fixes
Chris Lattner [Wed, 10 Sep 2003 05:24:09 +0000 (05:24 +0000)]
Spelling fixes

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

21 years agoFix up file header
Chris Lattner [Wed, 10 Sep 2003 05:10:34 +0000 (05:10 +0000)]
Fix up file header

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

21 years agoclean up file header comment
Chris Lattner [Wed, 10 Sep 2003 05:08:19 +0000 (05:08 +0000)]
clean up file header comment

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

21 years agoSimplify some code
Chris Lattner [Wed, 10 Sep 2003 04:49:10 +0000 (04:49 +0000)]
Simplify some code

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

21 years agoSpell `occurrence' correctly.
Misha Brukman [Tue, 9 Sep 2003 21:54:45 +0000 (21:54 +0000)]
Spell `occurrence' correctly.

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

21 years agoUpdated to find source files using VPATH. This makes writing build rules
John Criswell [Tue, 9 Sep 2003 20:57:03 +0000 (20:57 +0000)]
Updated to find source files using VPATH.  This makes writing build rules
much cleaner and easier.
Labeled .td as a suffix for tblgen files in Makefile.rules.
Modified build rules so that source files generated during the build are placed
in the build directory and not the source directory (and not in a Debug
directory).  This makes the system cleaner and allows us to have a read-only
source tree.

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

21 years agoRemoved Makefiles for directories that no longer exist.
John Criswell [Tue, 9 Sep 2003 20:52:17 +0000 (20:52 +0000)]
Removed Makefiles for directories that no longer exist.

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

21 years agoFix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Chris Lattner [Tue, 9 Sep 2003 18:16:08 +0000 (18:16 +0000)]
Fix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Loads "mayWriteToMemory" if they are volatile

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

21 years agoNew testcase: do not DCE volatile loads!
Chris Lattner [Tue, 9 Sep 2003 18:15:45 +0000 (18:15 +0000)]
New testcase: do not DCE volatile loads!

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

21 years agoUpdate testcases to be more modern
Chris Lattner [Tue, 9 Sep 2003 18:14:37 +0000 (18:14 +0000)]
Update testcases to be more modern

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

21 years agoReverting back to the previous revision.
John Criswell [Tue, 9 Sep 2003 16:58:41 +0000 (16:58 +0000)]
Reverting back to the previous revision.
We want to check for length 5 because we might get the "llvm." string as the
name.  That string is in the LLVM namespace and should be checked as such.
We also don't have to worry about garbage data because (I believe) the string
class will return a valid value.  So, the switch statement will work and we
don't have to worry about the code wandering into segfault land.

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

21 years agoModified the check for intrinsic functions. All intrinsic functions have to
John Criswell [Tue, 9 Sep 2003 16:36:09 +0000 (16:36 +0000)]
Modified the check for intrinsic functions.  All intrinsic functions have to
be at least 6 characters, since something must follow the "llvm." string in the
function name.
This seems to fix an assertion failure with the SingleSource tests, too.

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

21 years ago* Simplify printConstantValueOnly by moving the tail padding stuff directly
Chris Lattner [Tue, 9 Sep 2003 16:23:36 +0000 (16:23 +0000)]
* Simplify printConstantValueOnly by moving the tail padding stuff directly
  into the struct case.
* Extend printConstantValueOnly to print .zero's if the initializer is zero
* Delete dead isConstantFunctionPointerRef function
* Emit the appropriate assembly for the various linkage types!

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

21 years agoUpdated the log of changes (as required by the Burg copyright) to give an
John Criswell [Tue, 9 Sep 2003 15:27:40 +0000 (15:27 +0000)]
Updated the log of changes (as required by the Burg copyright) to give an
overview of what we changed (which is probably all that the author was looking
for).

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

21 years agoModified the code so that we exit() with a non-zero value instead of calling
John Criswell [Tue, 9 Sep 2003 14:37:48 +0000 (14:37 +0000)]
Modified the code so that we exit() with a non-zero value instead of calling
abort() when we can't open the input filename.  The abort() function generates
a core dump if possible and is meant for handling errors so grand that even the
program knows that debugging is necessary.

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

21 years agoAdded the .t implicit rule. You can now run an individual set of QMTests by
John Criswell [Mon, 8 Sep 2003 21:25:35 +0000 (21:25 +0000)]
Added the .t implicit rule.  You can now run an individual set of QMTests by
specifying "make <test>.t"
For example, make feature.t will run the feature tests.
Removed the QMTESTS variable since it is no longer used.

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

21 years agoOops, look at the VOLATILE marker, not the opcode
Chris Lattner [Mon, 8 Sep 2003 20:29:46 +0000 (20:29 +0000)]
Oops, look at the VOLATILE marker, not the opcode

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

21 years agoEliminate the unwind intrinsic, it is now an instruction
Chris Lattner [Mon, 8 Sep 2003 19:44:47 +0000 (19:44 +0000)]
Eliminate the unwind intrinsic, it is now an instruction

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

21 years agoEliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
Chris Lattner [Mon, 8 Sep 2003 19:44:26 +0000 (19:44 +0000)]
Eliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead

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

21 years agoFix bug
Chris Lattner [Mon, 8 Sep 2003 19:43:46 +0000 (19:43 +0000)]
Fix bug

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

21 years agoShould invokify is always true
Chris Lattner [Mon, 8 Sep 2003 19:00:30 +0000 (19:00 +0000)]
Should invokify is always true

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

21 years agoAdd support for the unwind instruction
Chris Lattner [Mon, 8 Sep 2003 18:54:55 +0000 (18:54 +0000)]
Add support for the unwind instruction

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

21 years agoAdd support for unwind
Chris Lattner [Mon, 8 Sep 2003 18:54:36 +0000 (18:54 +0000)]
Add support for unwind

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

21 years agoadd support for the unwind inst
Chris Lattner [Mon, 8 Sep 2003 18:54:16 +0000 (18:54 +0000)]
add support for the unwind inst

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

21 years agoAdd the unwind instruction class
Chris Lattner [Mon, 8 Sep 2003 18:54:09 +0000 (18:54 +0000)]
Add the unwind instruction class

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

21 years agoAdd new unwind instruction. Happily there was a slot leftover from when the
Chris Lattner [Mon, 8 Sep 2003 18:54:01 +0000 (18:54 +0000)]
Add new unwind instruction.  Happily there was a slot leftover from when the
'not' instruction was removed long ago

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

21 years agoAdd info about volatile loads/stores
Chris Lattner [Mon, 8 Sep 2003 18:27:49 +0000 (18:27 +0000)]
Add info about volatile loads/stores

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

21 years agoParse volatile loads/stores
Chris Lattner [Mon, 8 Sep 2003 18:20:29 +0000 (18:20 +0000)]
Parse volatile loads/stores

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

21 years agoRead volatile loads/stores
Chris Lattner [Mon, 8 Sep 2003 18:20:14 +0000 (18:20 +0000)]
Read volatile loads/stores

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

21 years agoRemove a bunch of unneeded stuph
Chris Lattner [Mon, 8 Sep 2003 18:19:58 +0000 (18:19 +0000)]
Remove a bunch of unneeded stuph

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

21 years agoDo not hoist volatile loads
Chris Lattner [Mon, 8 Sep 2003 18:17:14 +0000 (18:17 +0000)]
Do not hoist volatile loads

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

21 years agoFix bug: RLE-Preserve-Volatile.ll
Chris Lattner [Mon, 8 Sep 2003 18:13:58 +0000 (18:13 +0000)]
Fix bug: RLE-Preserve-Volatile.ll
Volatile loads and stores must not be value numbered

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

21 years agosyntax highlightify
Chris Lattner [Mon, 8 Sep 2003 18:08:11 +0000 (18:08 +0000)]
syntax highlightify

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

21 years agoSyntax hilight
Chris Lattner [Mon, 8 Sep 2003 18:07:57 +0000 (18:07 +0000)]
Syntax hilight

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

21 years agoRemove a gross hack that was there to support bytecode files that are over a year...
Chris Lattner [Mon, 8 Sep 2003 18:04:16 +0000 (18:04 +0000)]
Remove a gross hack that was there to support bytecode files that are over a year old.
If you still have these suckers laying around, you have GOT to rebuild them.  geeze.

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

21 years agoAdd support for writing volatile load/stores
Chris Lattner [Mon, 8 Sep 2003 17:58:37 +0000 (17:58 +0000)]
Add support for writing volatile load/stores

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

21 years agoAdd support for volatile loads/stores
Chris Lattner [Mon, 8 Sep 2003 17:45:59 +0000 (17:45 +0000)]
Add support for volatile loads/stores

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

21 years agoFix grammar-o
Chris Lattner [Mon, 8 Sep 2003 17:45:18 +0000 (17:45 +0000)]
Fix grammar-o

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

21 years agoNew testcase
Chris Lattner [Mon, 8 Sep 2003 17:43:36 +0000 (17:43 +0000)]
New testcase

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

21 years agoFix old style test
Chris Lattner [Mon, 8 Sep 2003 16:29:02 +0000 (16:29 +0000)]
Fix old style test

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

21 years agoFix syntax error when makellvm is run in an invalid directory.
Vikram S. Adve [Mon, 8 Sep 2003 15:32:47 +0000 (15:32 +0000)]
Fix syntax error when makellvm is run in an invalid directory.
Add debugging support.

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

21 years agoSpell `occurrence' correctly.
Misha Brukman [Mon, 8 Sep 2003 03:08:43 +0000 (03:08 +0000)]
Spell `occurrence' correctly.

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

21 years agoFixed spelling of `intentionally'.
Misha Brukman [Sun, 7 Sep 2003 20:12:52 +0000 (20:12 +0000)]
Fixed spelling of `intentionally'.

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

21 years agoRemove unneeded #include
Chris Lattner [Sun, 7 Sep 2003 05:09:32 +0000 (05:09 +0000)]
Remove unneeded #include

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 15:20:15 +0000 (15:20 +0000)]
Checkin of autoconf-style object root.

Updated Makefile for new autoconf-style object root.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 15:17:13 +0000 (15:17 +0000)]
Checkin of autoconf-style object root.

Copies Makefiles into the new object root directory from the source directory.
Removed the --with-objroot option.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 15:15:04 +0000 (15:15 +0000)]
Checkin of autoconf-style object root.

Updated TestRunner tests so that they work correctly in a separate object root
directory.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 15:12:21 +0000 (15:12 +0000)]
Checkin of autoconf-style object root.

Use QMTest for the feature and Regression tests.
Continue using the Makefile system for the Programs tests.
Adjusted the Makefile rules to handle building outside the source directory.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 15:03:24 +0000 (15:03 +0000)]
Checkin of autoconf-style object root.
Modified Makefiles to use the new Makefile setup in LLVM.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 14:50:22 +0000 (14:50 +0000)]
Checkin of autoconf-style object root.
Adjusted Makefile to work with new autoconf-style object root.
Specifically, use the new -I option of tblgen to find include files.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 14:46:19 +0000 (14:46 +0000)]
Checkin of autoconf-style object root.
Added the AC_CONFIG_MAKEFILE macro to configure akefiles which don't need .in
templates.
Removed the --with-objroot option.
Added commands to configure.ac to configure all of the LLVM Makefiles.  Oof.

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

21 years agoCheckin of autoconf-style object root.
John Criswell [Sat, 6 Sep 2003 14:44:17 +0000 (14:44 +0000)]
Checkin of autoconf-style object root.
Moved Makefile.common to Makefile.rules.  This makes project Makefiles easier
to support, and allows for easier overriding of default configuration values
that used to be in Makefile.common.
Modified Makefile.config.in to determine paths for directories (like
LLVM_SRC_ROOT) and to use the pwd binary as opposed to the shell builtin (this
works better for symbolic links).

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

21 years agoAdded some optimizations:
Misha Brukman [Fri, 5 Sep 2003 22:59:31 +0000 (22:59 +0000)]
Added some optimizations:
* Generate a single BA instead of 6-instruction JUMP if possible
  (this occurs both in the creation and overwriting of the stub code)
* If possible, rewrite the ORIGINAL call to call the generated function
  directly, thus bypassing the stub entirely

Also added some statistics on how often calls are overwritten and how often the
CompilationCallback is invoked.

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

21 years agoReorder #includes to follow LLVM conventions
Chris Lattner [Fri, 5 Sep 2003 20:08:15 +0000 (20:08 +0000)]
Reorder #includes to follow LLVM conventions

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

21 years agoNo longer used
Brian Gaeke [Fri, 5 Sep 2003 19:43:45 +0000 (19:43 +0000)]
No longer used

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

21 years agoCorrect comments
Brian Gaeke [Fri, 5 Sep 2003 19:43:19 +0000 (19:43 +0000)]
Correct comments
Don't include InstLoops.h
Don't export factory functions for these passes

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

21 years agoInterpreter, JIT moved to lib/ExecutionEngine (includes -> llvm/ExecutionEngine)
Brian Gaeke [Fri, 5 Sep 2003 19:42:34 +0000 (19:42 +0000)]
Interpreter, JIT moved to lib/ExecutionEngine (includes -> llvm/ExecutionEngine)
Build lli using executionengine library

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

21 years agoAdd ExecutionEngine directory.
Brian Gaeke [Fri, 5 Sep 2003 19:39:49 +0000 (19:39 +0000)]
Add ExecutionEngine directory.

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

21 years agoExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/
Brian Gaeke [Fri, 5 Sep 2003 19:39:22 +0000 (19:39 +0000)]
ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/
Build ExecutionEngine as library.

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

21 years ago-abort-on-exception is gone. Rebuild your gccld shell scripts, folks! :-)
Brian Gaeke [Fri, 5 Sep 2003 19:23:03 +0000 (19:23 +0000)]
-abort-on-exception is gone. Rebuild your gccld shell scripts, folks! :-)

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

21 years agoMake getOperandValue and executeCastOperation methods of Interpreter.
Brian Gaeke [Fri, 5 Sep 2003 18:55:03 +0000 (18:55 +0000)]
Make getOperandValue and executeCastOperation methods of Interpreter.
This lets us protect a few more ExecutionEngine methods.

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

21 years agoMake CreateArgv part of lli rather than part of ExecutionEngine.
Brian Gaeke [Fri, 5 Sep 2003 18:42:01 +0000 (18:42 +0000)]
Make CreateArgv part of lli rather than part of ExecutionEngine.
Switch Interpreter and JIT's "run" methods to take a Function and a vector of
 GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
 into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
 isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
 more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".

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

21 years agoFix reading of invoke instrs
Chris Lattner [Fri, 5 Sep 2003 18:25:29 +0000 (18:25 +0000)]
Fix reading of invoke instrs

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

21 years agoZap some more unused static method decls
Brian Gaeke [Fri, 5 Sep 2003 06:10:50 +0000 (06:10 +0000)]
Zap some more unused static method decls

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

21 years agoWhoa, we were misreading invoke instructions "normal" destinations quite badly.
Chris Lattner [Fri, 5 Sep 2003 05:27:58 +0000 (05:27 +0000)]
Whoa, we were misreading invoke instructions "normal" destinations quite badly.

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

21 years agoRemove printOperandInfo(), and simplify run().
Brian Gaeke [Fri, 5 Sep 2003 05:22:08 +0000 (05:22 +0000)]
Remove printOperandInfo(), and simplify run().

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

21 years agoAdd asserts, move code around. This gets the dropAllTypeUses partially implemented
Chris Lattner [Fri, 5 Sep 2003 05:10:04 +0000 (05:10 +0000)]
Add asserts, move code around.  This gets the dropAllTypeUses partially implemented

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

21 years agoRemove support for printing values from a module by name, only used
Brian Gaeke [Fri, 5 Sep 2003 05:04:32 +0000 (05:04 +0000)]
Remove support for printing values from a module by name, only used
 w/ interactive keyboard entry of names.
With that, Support.cpp is history.

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

21 years agoRemove support for interactive (step finish next) instructions.
Brian Gaeke [Fri, 5 Sep 2003 04:46:26 +0000 (04:46 +0000)]
Remove support for interactive (step finish next) instructions.
Remove printCurrentInstruction, printStackFrame and infoValue
 (only used interactively) and other unused methods of Interpreter.
Fold UserInput.cpp containing only callMainFunction() into Interpreter.cpp.
Remove unused Profile flag.

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

21 years agoMove functionality preserving changes.
Chris Lattner [Fri, 5 Sep 2003 02:39:52 +0000 (02:39 +0000)]
Move functionality preserving changes.
Inline containsEquivalent
Remove some //'s

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

21 years agoRefactor what has effectively become copy-and-pasted code
Chris Lattner [Fri, 5 Sep 2003 02:30:47 +0000 (02:30 +0000)]
Refactor what has effectively become copy-and-pasted code

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

21 years agoGet friendly
Chris Lattner [Fri, 5 Sep 2003 02:30:18 +0000 (02:30 +0000)]
Get friendly

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

21 years agoCheck in a bunch of minor fixes, plus a whole lot of #if 0'd out code, which will...
Chris Lattner [Fri, 5 Sep 2003 02:21:39 +0000 (02:21 +0000)]
Check in a bunch of minor fixes, plus a whole lot of #if 0'd out code, which will hopefully be enabled in the near future
This does not make any functionality changes

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

21 years agoReshuffling of APIs
Chris Lattner [Fri, 5 Sep 2003 02:15:36 +0000 (02:15 +0000)]
Reshuffling of APIs

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

21 years agocontainsEquivalent never returns its argument
Chris Lattner [Thu, 4 Sep 2003 23:49:53 +0000 (23:49 +0000)]
containsEquivalent never returns its argument

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

21 years agoNon-functional change
Chris Lattner [Thu, 4 Sep 2003 23:47:07 +0000 (23:47 +0000)]
Non-functional change

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

21 years agoRemove needless usage of getDescription()
Chris Lattner [Thu, 4 Sep 2003 23:46:03 +0000 (23:46 +0000)]
Remove needless usage of getDescription()

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

21 years agoInline method
Chris Lattner [Thu, 4 Sep 2003 23:43:40 +0000 (23:43 +0000)]
Inline method

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

21 years agoRemove method
Chris Lattner [Thu, 4 Sep 2003 23:43:35 +0000 (23:43 +0000)]
Remove method

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

21 years agoDon't try to be sneaky, breaking recursive types in the process
Chris Lattner [Thu, 4 Sep 2003 23:41:03 +0000 (23:41 +0000)]
Don't try to be sneaky, breaking recursive types in the process

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

21 years agoThis is now unnecessary
Chris Lattner [Thu, 4 Sep 2003 23:38:22 +0000 (23:38 +0000)]
This is now unnecessary

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

21 years agoRemove support for breakpoints (not used).
Brian Gaeke [Thu, 4 Sep 2003 23:15:40 +0000 (23:15 +0000)]
Remove support for breakpoints (not used).
Remove some dead code and whitespace.

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

21 years agoMove EE dtor where it belongs
Brian Gaeke [Thu, 4 Sep 2003 22:57:27 +0000 (22:57 +0000)]
Move EE dtor where it belongs

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

21 years agoInterpreter cleanups:
Brian Gaeke [Thu, 4 Sep 2003 22:21:24 +0000 (22:21 +0000)]
Interpreter cleanups:

Get rid of support for DebugMode (make it always off).
Mung some comments.
Get rid of interpreter's PROFILE_STRUCTURE_FIELDS and PerformExitStuff
 which have been disabled forever.
Get rid of -abort-on-exception (make it always on).
Get rid of user interaction stuff (debug mode innards).
Simplify Interpreter's callMainFunction().

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