oota-llvm.git
21 years agoDo not return success after checking only the FIRST USE of a gep instruction.
Chris Lattner [Fri, 12 Sep 2003 16:02:12 +0000 (16:02 +0000)]
Do not return success after checking only the FIRST USE of a gep instruction.
Instead, check all uses.
This fixes bug: ScalarRepl/2003-09-12-IncorrectPromote.ll
This also fixes the miscompilation of Ptrdist/bc

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

21 years agoInitial go at documentation for llc.
John Criswell [Fri, 12 Sep 2003 15:46:24 +0000 (15:46 +0000)]
Initial go at documentation for llc.
Pretty crufty.

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

21 years agoNew testcase, bug distilled from bc
Chris Lattner [Fri, 12 Sep 2003 15:44:01 +0000 (15:44 +0000)]
New testcase, bug distilled from bc

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

21 years agoMinor optimization efficiency improvement:
Chris Lattner [Fri, 12 Sep 2003 15:36:03 +0000 (15:36 +0000)]
Minor optimization efficiency improvement:
  - Run mem2reg promotion first
  - Only rerun passes if the previous thing changed something

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

21 years agoFixed spelling and grammar.
Misha Brukman [Thu, 11 Sep 2003 22:34:13 +0000 (22:34 +0000)]
Fixed spelling and grammar.

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

21 years agoSimplify code
Chris Lattner [Thu, 11 Sep 2003 22:24:54 +0000 (22:24 +0000)]
Simplify code
Implement InstCombine/mul.ll:test9

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

21 years agoNew testcase
Chris Lattner [Thu, 11 Sep 2003 22:23:48 +0000 (22:23 +0000)]
New testcase

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

21 years agoAdded the SetjmpLongjmp Makefile.
John Criswell [Thu, 11 Sep 2003 20:53:48 +0000 (20:53 +0000)]
Added the SetjmpLongjmp Makefile.

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

21 years agoModified the footer to be a link to the LLVM web page.
John Criswell [Thu, 11 Sep 2003 20:23:52 +0000 (20:23 +0000)]
Modified the footer to be a link to the LLVM web page.
Organized the commands into three distinct groups on the main page.
Fixed the hyperlinks in the main page.
Removed as and dis; they will not exist with those names by Release 1.

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

21 years agoAdding a skeleton for the LLVM Command Guide.
John Criswell [Thu, 11 Sep 2003 19:58:03 +0000 (19:58 +0000)]
Adding a skeleton for the LLVM Command Guide.
Hopefully the group as a whole will update this into a real guide.

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

21 years agoFixed spelling and grammar.
Misha Brukman [Thu, 11 Sep 2003 18:14:24 +0000 (18:14 +0000)]
Fixed spelling and grammar.

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

21 years agoFixed SPEC so that it would run correctly with the new autoconf-style object
John Criswell [Thu, 11 Sep 2003 18:04:30 +0000 (18:04 +0000)]
Fixed SPEC so that it would run correctly with the new autoconf-style object
directory.
Cleaned up the Makefile so that it uses VPATH to find source files.

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

21 years agoFixed SPEC so that it would run correctly with the new autoconf-style object
John Criswell [Thu, 11 Sep 2003 18:04:00 +0000 (18:04 +0000)]
Fixed SPEC so that it would run correctly with the new autoconf-style object
directory.
Added Makefile.spec to the list of files to copy to the object directory.

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

21 years agoFixed SPEC so that it would run correctly with the new autoconf-style object
John Criswell [Thu, 11 Sep 2003 18:03:50 +0000 (18:03 +0000)]
Fixed SPEC so that it would run correctly with the new autoconf-style object
directory.
Added Makefile.spec to the list of files to copy to the object directory.
Moved the configuration of $SourceDir to Makefile.config and corrected the
conditional that surrounds it.  This allows SPEC to reset it and get the correct
VPATH.

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

21 years agoApostrophes are only used for possession and quoting.
Misha Brukman [Thu, 11 Sep 2003 16:58:31 +0000 (16:58 +0000)]
Apostrophes are only used for possession and quoting.

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

21 years agoscalarrepl now includes mem2reg
Chris Lattner [Thu, 11 Sep 2003 16:46:10 +0000 (16:46 +0000)]
scalarrepl now includes mem2reg

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

21 years agoIntegrate functionality of the mem2reg pass directly into this pass to make
Chris Lattner [Thu, 11 Sep 2003 16:45:55 +0000 (16:45 +0000)]
Integrate functionality of the mem2reg pass directly into this pass to make
the combination more effective

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

21 years agoMove the -indvars pass much later to where it is more likely to do good stuff
Chris Lattner [Thu, 11 Sep 2003 16:34:07 +0000 (16:34 +0000)]
Move the -indvars pass much later to where it is more likely to do good stuff

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

21 years agoRenamed DominatorTree::Node::getNode() -> getBlock()
Chris Lattner [Thu, 11 Sep 2003 16:26:13 +0000 (16:26 +0000)]
Renamed DominatorTree::Node::getNode() -> getBlock()

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

21 years agoGet rid of the whole "Node2" business, rename getNode() ->getBlock() to
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

21 years agoSpell `definite' correctly.
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

21 years agoSpell `definitely' correctly.
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

21 years agoRemoved the aposthrophes endings and the elipses suffixes from build output.
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

21 years agoCheck in the fix I meant to apply here, but mistakenly applied to
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

21 years ago* Move include files from middle of file to the top where they belong, moving
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

21 years agoUnwind instructions are intrinsically alive, just like returns
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

21 years agoRework dominator interfaces to handle changes in the post-dominance
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

21 years agoRework post dominator information so that we do not have to
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

21 years agoRework dominator and post dominator information so that we do not have to
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

21 years agoUpdate for new UnifyFunction... API
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

21 years agoRemove #include
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

21 years agoExpand the pass to unify all of the unwind blocks as well
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

21 years agoRemove a bunch of warnings from the CBE generated C code
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

21 years ago"the one true solution for compatibility with GCC 3.3+"
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

21 years agoBe a little more specific about what is begin generated. Only print
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

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