Chris Lattner [Thu, 11 Sep 2003 16:25:06 +0000 (16:25 +0000)]
Get rid of the whole "Node2" business, rename getNode() ->getBlock() to
be more descriptive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8468
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Sep 2003 15:32:37 +0000 (15:32 +0000)]
Spell `definite' correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8467
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 11 Sep 2003 15:31:17 +0000 (15:31 +0000)]
Spell `definitely' correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8466
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Thu, 11 Sep 2003 15:15:53 +0000 (15:15 +0000)]
Removed the aposthrophes endings and the elipses suffixes from build output.
This makes the output more consistent, and I just find aposthrophes annoying.
:)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8465
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Sep 2003 21:11:42 +0000 (21:11 +0000)]
Check in the fix I meant to apply here, but mistakenly applied to
tools/extract instead..... heh
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8464
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Wed, 10 Sep 2003 20:52:05 +0000 (20:52 +0000)]
* Move include files from middle of file to the top where they belong, moving
the #define up there too
* Since we're including system headers, use the ones in include/llvm/Config
* While we're here, use the canonical LLVM header ordering algorithm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8463
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:38:14 +0000 (20:38 +0000)]
Unwind instructions are intrinsically alive, just like returns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8462
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:37:51 +0000 (20:37 +0000)]
Rework dominator interfaces to handle changes in the post-dominance
construction. Now there may be multiple root blocks, and null is a
special node used to mark the "virtual" exit node of a CFG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8461
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:37:08 +0000 (20:37 +0000)]
Rework post dominator information so that we do not have to
unify all exit nodes of a function to compute post-dominance information.
This does not work with functions that have both unwind and return nodes,
because we cannot unify these blocks. The new implementation is better
anyway. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8460
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:36:51 +0000 (20:36 +0000)]
Rework dominator and post dominator information so that we do not have to
unify all exit nodes of a function to compute post-dominance information.
This does not work with functions that have both unwind and return nodes,
because we cannot unify these blocks. The new implementation is better
anyway. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8459
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:35:33 +0000 (20:35 +0000)]
Update for new UnifyFunction... API
Remove using decl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8458
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:35:21 +0000 (20:35 +0000)]
Remove #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8457
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:34:51 +0000 (20:34 +0000)]
Expand the pass to unify all of the unwind blocks as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8456
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:12:09 +0000 (20:12 +0000)]
Remove a bunch of warnings from the CBE generated C code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8455
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 20:08:00 +0000 (20:08 +0000)]
"the one true solution for compatibility with GCC 3.3+"
... or so I hope
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8454
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Sep 2003 19:52:54 +0000 (19:52 +0000)]
Be a little more specific about what is begin generated. Only print
command line if VERBOSE=1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8453
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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