oota-llvm.git
18 years agoFix spilling and reloading of CR regs to reload the right values. This fixes
Chris Lattner [Mon, 12 Jun 2006 21:50:57 +0000 (21:50 +0000)]
Fix spilling and reloading of CR regs to reload the right values.  This fixes
Olden/power (and probably others) with -regalloc=local.

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

18 years agoReapply my 6/9 changes. The bug Evan saw no longer occurs.
Owen Anderson [Mon, 12 Jun 2006 21:49:21 +0000 (21:49 +0000)]
Reapply my 6/9 changes.  The bug Evan saw no longer occurs.

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

18 years agoFix an infinite loop on Transforms/SimplifyCFG/2006-06-12-InfLoop.ll
Chris Lattner [Mon, 12 Jun 2006 20:18:01 +0000 (20:18 +0000)]
Fix an infinite loop on Transforms/SimplifyCFG/2006-06-12-InfLoop.ll

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

18 years agoTEstcase that makes simplifycfg infloop.
Chris Lattner [Mon, 12 Jun 2006 20:17:44 +0000 (20:17 +0000)]
TEstcase that makes simplifycfg infloop.

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

18 years agoAdd a new -compileflags options, remove old externals location specifiers.
Chris Lattner [Mon, 12 Jun 2006 19:03:17 +0000 (19:03 +0000)]
Add a new -compileflags options, remove old externals location specifiers.
People should just use -with-externals.

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

18 years agoMake sure to update the CFG correctly if a switch only has a default dest.
Chris Lattner [Mon, 12 Jun 2006 18:25:29 +0000 (18:25 +0000)]
Make sure to update the CFG correctly if a switch only has a default dest.
This fixes CodeGen/Generic/2006-06-12-LowerSwitchCrash.ll

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

18 years agoNew testcase that crashes llc
Chris Lattner [Mon, 12 Jun 2006 18:24:32 +0000 (18:24 +0000)]
New testcase that crashes llc

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

18 years agoLet the alpha breakage begin. First Formals and RET. next Calls
Andrew Lenharth [Mon, 12 Jun 2006 18:09:24 +0000 (18:09 +0000)]
Let the alpha breakage begin.  First Formals and RET.  next Calls

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

18 years agoStart on my todo list
Andrew Lenharth [Mon, 12 Jun 2006 16:07:18 +0000 (16:07 +0000)]
Start on my todo list

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

18 years agolower more then 4 formal arguments. The offset is currently hard coded.
Rafael Espindola [Mon, 12 Jun 2006 12:28:08 +0000 (12:28 +0000)]
lower more then 4 formal arguments. The offset is currently hard coded.
implement SelectFrameIndex

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

18 years agoFix for 2006-06-26-MultipleExitsSingleBlock.
Owen Anderson [Mon, 12 Jun 2006 07:10:16 +0000 (07:10 +0000)]
Fix for 2006-06-26-MultipleExitsSingleBlock.

If a single exit block has multiple predecessors within the loop, it will
appear in the exit blocks list more than once.  LCSSA needs to take that into
account so that it doesn't double process that exit block.

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

18 years agoMake sure that LCSSA works properly when it encounters an exit block that has
Owen Anderson [Mon, 12 Jun 2006 07:05:47 +0000 (07:05 +0000)]
Make sure that LCSSA works properly when it encounters an exit block that has
more than one predecessor inside the loop.

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

18 years agoRe-commit the safe parts of my 6/9 patch. Still working on fixing the unsafe parts.
Owen Anderson [Sun, 11 Jun 2006 19:22:28 +0000 (19:22 +0000)]
Re-commit the safe parts of my 6/9 patch.  Still working on fixing the unsafe parts.

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

18 years agoBack out Owen's 6/9 changes. They broke MultiSource/Benchmarks/Prolangs-C/bison ...
Evan Cheng [Sun, 11 Jun 2006 09:32:57 +0000 (09:32 +0000)]
Back out Owen's 6/9 changes. They broke MultiSource/Benchmarks/Prolangs-C/bison (and perhaps others).

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

18 years agoAdd a missing assertion that would have helped out Reid
Chris Lattner [Sat, 10 Jun 2006 04:16:23 +0000 (04:16 +0000)]
Add a missing assertion that would have helped out Reid

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

18 years agoWork around a nasty tblgen bug where it doesn't add operands for varargs
Chris Lattner [Sat, 10 Jun 2006 01:15:02 +0000 (01:15 +0000)]
Work around a nasty tblgen bug where it doesn't add operands for varargs
nodes correctly.

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

18 years agoFix a problem exposed by the local allocator. CALL instructions are not marked
Chris Lattner [Sat, 10 Jun 2006 01:14:28 +0000 (01:14 +0000)]
Fix a problem exposed by the local allocator.  CALL instructions are not marked
as using incoming argument registers, so the local allocator would clobber them
between their set and use.  To fix this, we give the call instructions a variable
number of uses in the CALL MachineInstr itself, so live variables understands
the live ranges of these register arguments.

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

18 years agoWrap to 80 cols
Chris Lattner [Fri, 9 Jun 2006 23:59:44 +0000 (23:59 +0000)]
Wrap to 80 cols

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

18 years agoAfter telling GCC to type of the input file with -x asm/-x c, switch back to
Chris Lattner [Fri, 9 Jun 2006 21:31:53 +0000 (21:31 +0000)]
After telling GCC to type of the input file with -x asm/-x c, switch back to
-x none, to not foul up autodetection of .a file or .dylibs.

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

18 years agoDon't pull in environ, not always safe. Global variables are bad anyway.
Evan Cheng [Fri, 9 Jun 2006 20:43:11 +0000 (20:43 +0000)]
Don't pull in environ, not always safe. Global variables are bad anyway.
Use execve when explicit environment variables ptr is available. Otherwise
just use execv.

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

18 years agoAdd LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
Owen Anderson [Fri, 9 Jun 2006 18:40:32 +0000 (18:40 +0000)]
Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
LCSSA.

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

18 years agoMake Loop able to verify that it is in LCSSA-form, and have the LCSSA pass assert
Owen Anderson [Fri, 9 Jun 2006 18:33:30 +0000 (18:33 +0000)]
Make Loop able to verify that it is in LCSSA-form, and have the LCSSA pass assert
on this.

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

18 years agoComments to appease sabre.
Evan Cheng [Fri, 9 Jun 2006 06:25:10 +0000 (06:25 +0000)]
Comments to appease sabre.

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

18 years agoMinor compilation speed improvement.
Evan Cheng [Fri, 9 Jun 2006 06:24:42 +0000 (06:24 +0000)]
Minor compilation speed improvement.

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

18 years agoRewriteExpr, either the new PHI node of induction variable or the
Evan Cheng [Fri, 9 Jun 2006 00:12:42 +0000 (00:12 +0000)]
RewriteExpr, either the new PHI node of induction variable or the
post-increment value, should be first cast to the appropriated type (to the
type of the common expr). Otherwise, the rewrite of a use based on (common +
iv) may end up with an incorrect type.

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

18 years agoUpdate some comments, and expose LCSSAID in preparation for having other passes
Owen Anderson [Thu, 8 Jun 2006 20:02:53 +0000 (20:02 +0000)]
Update some comments, and expose LCSSAID in preparation for having other passes
require LCSSA.

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

18 years agoFix X86/inline-asm.ll:test2, a case where an input value was implicitly
Chris Lattner [Thu, 8 Jun 2006 18:27:11 +0000 (18:27 +0000)]
Fix X86/inline-asm.ll:test2, a case where an input value was implicitly
truncated.

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

18 years agoAdd new testcase
Chris Lattner [Thu, 8 Jun 2006 18:26:48 +0000 (18:26 +0000)]
Add new testcase

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

18 years agoFix Regression/CodeGen/X86/inline-asm.ll, a case where inline asm causes
Chris Lattner [Thu, 8 Jun 2006 18:22:48 +0000 (18:22 +0000)]
Fix Regression/CodeGen/X86/inline-asm.ll, a case where inline asm causes
implement extension of a register.

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

18 years agoNew testcase, using "AX" as i32.
Chris Lattner [Thu, 8 Jun 2006 18:20:13 +0000 (18:20 +0000)]
New testcase, using "AX" as i32.

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

18 years agoSquelch a warning about signed/unsigned.
Reid Spencer [Thu, 8 Jun 2006 18:08:43 +0000 (18:08 +0000)]
Squelch a warning about signed/unsigned.

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

18 years agoAdd support for "m" inline asm constraints.
Chris Lattner [Thu, 8 Jun 2006 18:03:49 +0000 (18:03 +0000)]
Add support for "m" inline asm constraints.

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

18 years agoFix an assert-on-inline-inline-asm bug.
Chris Lattner [Thu, 8 Jun 2006 18:00:47 +0000 (18:00 +0000)]
Fix an assert-on-inline-inline-asm bug.

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

18 years agoFor PR804:
Reid Spencer [Thu, 8 Jun 2006 17:00:08 +0000 (17:00 +0000)]
For PR804:
Change the file size field of StatusInfo to be uint64_t instead of size_t
so that we know it is always 64 bits. This prevents some overflow on
systems where size_t is 32 bits when it ought to be 64.

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

18 years agoRemove dead code.
Vladimir Prus [Thu, 8 Jun 2006 16:03:13 +0000 (16:03 +0000)]
Remove dead code.

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

18 years agoNew method BasicBlock::getFirstNonPHI.
Vladimir Prus [Thu, 8 Jun 2006 15:46:18 +0000 (15:46 +0000)]
New method BasicBlock::getFirstNonPHI.

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

18 years agoThis no longer needs plugins, this it doesn't need all of VMCore.
Chris Lattner [Thu, 8 Jun 2006 00:25:44 +0000 (00:25 +0000)]
This no longer needs plugins, this it doesn't need all of VMCore.

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

18 years agoFor PR787:
Reid Spencer [Wed, 7 Jun 2006 23:18:34 +0000 (23:18 +0000)]
For PR787:
Provide new llvm::sys::Program facilities for converting the stdout and
stdin to binary mode. There is no standard way to do this and the available
mechanisms are platform specific. Adjust the bytecode reader and writer to
use these methods when their input is stdin or output is stdout. THis avoids
the problem with \n writing CRLF to a bytecode file on windows.

Patch Contributed by Michael Smith.

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

18 years agoShorten a value description so --help out isn't so wide.
Reid Spencer [Wed, 7 Jun 2006 23:07:51 +0000 (23:07 +0000)]
Shorten a value description so --help out isn't so wide.

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

18 years agoMake sure this tool links in all of libVMCore.a because it can --load
Reid Spencer [Wed, 7 Jun 2006 23:06:50 +0000 (23:06 +0000)]
Make sure this tool links in all of libVMCore.a because it can --load
shared objects.

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

18 years agoFor PR780:
Reid Spencer [Wed, 7 Jun 2006 23:03:13 +0000 (23:03 +0000)]
For PR780:
1. Add #includes to LinkAllVMCore.h to get Mangler.o and InlineAsm.o
2. Make Mangler.h and InlineAsm.h use the macros to ensure linkage
3. Make each of the tools with --load options include LinkAllVMCore.h
This should be the last set of changes for this bug and 800.

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

18 years agoAdd a virtual dtor to the InlineAsm class so that the principle method of
Chris Lattner [Wed, 7 Jun 2006 22:47:44 +0000 (22:47 +0000)]
Add a virtual dtor to the InlineAsm class so that the principle method of
the class can be defined in InlineAsm.cpp

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

18 years agoFix a bug where the types for inlineasm nodes were not properly entered into
Chris Lattner [Wed, 7 Jun 2006 22:20:03 +0000 (22:20 +0000)]
Fix a bug where the types for inlineasm nodes were not properly entered into
the compaction table for a function.  This broke compilation of hexxagon
on darwin/x86 with recent changes.

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

18 years agoPrevious version of this file wasn't supposed to be committed. This version
Reid Spencer [Wed, 7 Jun 2006 22:09:38 +0000 (22:09 +0000)]
Previous version of this file wasn't supposed to be committed. This version
attempts to get all of libVMCore.a through the least number of declarations.

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

18 years agoFor PR780:
Reid Spencer [Wed, 7 Jun 2006 22:00:26 +0000 (22:00 +0000)]
For PR780:
1. Fix the macros in IncludeFile.h to put everything in the llvm namespace
2. Replace the previous explicit mechanism in all the .h and .cpp files
   with the macros in IncludeFile.h
This gets us a consistent mechanism throughout LLVM for ensuring linkage.
Next step is to make sure its used in enough places.

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

18 years agoFix a spello in a comment.
Reid Spencer [Wed, 7 Jun 2006 21:24:10 +0000 (21:24 +0000)]
Fix a spello in a comment.

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

18 years agoFor PR780:
Reid Spencer [Wed, 7 Jun 2006 20:35:46 +0000 (20:35 +0000)]
For PR780:
This change was suggested by Chris so that we can select an alternate
(or even no-op) implementation of the link assurance. I'm committing this
for your review, Chris. If the names and definitions are okay, I'll adjust
all the .h and .cpp files in a later patch.

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

18 years agoFor PR780:
Reid Spencer [Wed, 7 Jun 2006 20:00:19 +0000 (20:00 +0000)]
For PR780:
Break the "IncludeFile" mechanism into its own header file and adjust other
files accordingly. Use this facility for the IntrinsicInst problem which
was the subject of PR800.
More to follow on this.

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

18 years agoAdd -extraflags FLAGS to pass extra compilation options.
Evan Cheng [Wed, 7 Jun 2006 05:28:07 +0000 (05:28 +0000)]
Add -extraflags FLAGS to pass extra compilation options.

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

18 years agoRemove useless noop argument
Chris Lattner [Wed, 7 Jun 2006 00:43:18 +0000 (00:43 +0000)]
Remove useless noop argument

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

18 years agoFix a bug in the following scenario.
Chris Lattner [Tue, 6 Jun 2006 23:54:15 +0000 (23:54 +0000)]
Fix a bug in the following scenario.
1. llvm is built with objroot = OBJ and installed.
2. OBJ is deleted or install tree is shipped.
3. llvm-config is run.

In this scenario, llvm-config shouldn't emit an error message at #3, it
should just know it's not running in the objdir :)

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

18 years agoAdded X86FunctionInfo subclass of MachineFunction to record whether the
Evan Cheng [Tue, 6 Jun 2006 23:30:24 +0000 (23:30 +0000)]
Added X86FunctionInfo subclass of MachineFunction to record whether the
function that is being lowered is forced to use FP. Currently this is only
true for main() / Cygwin.

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

18 years agodocument --libfiles
Chris Lattner [Tue, 6 Jun 2006 22:39:59 +0000 (22:39 +0000)]
document --libfiles

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

18 years agoAdd a new --libfiles option, for getting fully-qualified pathnames to libraries.
Chris Lattner [Tue, 6 Jun 2006 22:38:29 +0000 (22:38 +0000)]
Add a new --libfiles option, for getting fully-qualified pathnames to libraries.
This can be used for tools that want makefile rules to depend on the libraries
(e.g. so the tool is relinked when a library changes).

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

18 years agoMove toolrunner out of libsupport into the bugpoint tool
Chris Lattner [Tue, 6 Jun 2006 22:31:36 +0000 (22:31 +0000)]
Move toolrunner out of libsupport into the bugpoint tool

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

18 years agoMove ToolRunner.(cpp|h) into the bugpoint directory
Chris Lattner [Tue, 6 Jun 2006 22:30:59 +0000 (22:30 +0000)]
Move ToolRunner.(cpp|h) into the bugpoint directory

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

18 years agoFix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c on
Chris Lattner [Tue, 6 Jun 2006 22:26:02 +0000 (22:26 +0000)]
Fix a bug in a recent patch.  This fixes UnitTests/Vector/Altivec/casts.c on
PPC/altivec

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

18 years agoNow that PR633 is implemented, the CBE can know to emit _setjmp/_longjmp
Chris Lattner [Tue, 6 Jun 2006 21:45:47 +0000 (21:45 +0000)]
Now that PR633 is implemented, the CBE can know to emit _setjmp/_longjmp
when available.  This speeds up hexxagon from 18.61s to 16.61s with the CBE on
PPC Mac OS (for reference, LLC is 15.48s and GCC is 23.35s).

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

18 years agoAdd PowerPC intrinsics to support dcbz[l]
Chris Lattner [Tue, 6 Jun 2006 21:29:23 +0000 (21:29 +0000)]
Add PowerPC intrinsics to support dcbz[l]

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

18 years agoMake the llvm-config library dependency database depend on all of the libraries.
Chris Lattner [Tue, 6 Jun 2006 17:43:03 +0000 (17:43 +0000)]
Make the llvm-config library dependency database depend on all of the libraries.

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

18 years agoFix some formatting, and use inLoop() when appropriate.
Owen Anderson [Tue, 6 Jun 2006 04:36:36 +0000 (04:36 +0000)]
Fix some formatting, and use inLoop() when appropriate.

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

18 years agoStop a memory leak, and update some comments.
Owen Anderson [Tue, 6 Jun 2006 04:28:30 +0000 (04:28 +0000)]
Stop a memory leak, and update some comments.

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

18 years agoAdd the -Xlinker option to bugpoint which allows an option to be passed
Reid Spencer [Tue, 6 Jun 2006 00:00:42 +0000 (00:00 +0000)]
Add the -Xlinker option to bugpoint which allows an option to be passed
through to gcc when its being used as a linker. This allows -L and -l
(and any other) options to be added so that non-complete bytecode files
can be processed with bugpoint. The -Xlinker option can be added as many
times as needed.

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

18 years agoadd R0 to liveout
Rafael Espindola [Mon, 5 Jun 2006 22:26:14 +0000 (22:26 +0000)]
add R0 to liveout
expand "ret null" (implements test/Regression/CodeGen/ARM/ret_void.ll)
note that a Flag link is missing between the copy and the branch

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

18 years agoDocument the cl::SetVersionPrinter function.
Reid Spencer [Mon, 5 Jun 2006 17:30:16 +0000 (17:30 +0000)]
Document the cl::SetVersionPrinter function.

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

18 years agoFor PR778:
Reid Spencer [Mon, 5 Jun 2006 16:29:06 +0000 (16:29 +0000)]
For PR778:
Move file-scoped documentation to class-scoped so it is more readily
accessible.

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

18 years agoFor PR798:
Reid Spencer [Mon, 5 Jun 2006 16:26:06 +0000 (16:26 +0000)]
For PR798:
Provide GraphViz support for MingW32. Patch provided by Anton Korobeynikov

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

18 years agoMake it possible to override the standard version printer. Not all tools
Reid Spencer [Mon, 5 Jun 2006 16:22:56 +0000 (16:22 +0000)]
Make it possible to override the standard version printer. Not all tools
built with CommandLine.h will want the --version option to report that the
tool belongs to LLVM. To override simply pass a void func() to the
cl::SetVersionPrinter() function and that void func() will be called when
it is time to print the version information.

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

18 years agoFor PR633:
Reid Spencer [Mon, 5 Jun 2006 16:11:07 +0000 (16:11 +0000)]
For PR633:
Add configure checks for setjmp/longjmp for Chris. I can't believe this easy
PR has been outstanding for so long. If I don't get to something, please
remind me! :)

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

18 years agoSome enhancements for gv/graphviz/dot/dotty support and better handling of
Reid Spencer [Mon, 5 Jun 2006 15:54:38 +0000 (15:54 +0000)]
Some enhancements for gv/graphviz/dot/dotty support and better handling of
paths under MingW.

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

18 years agoFor PR798:
Reid Spencer [Mon, 5 Jun 2006 15:44:46 +0000 (15:44 +0000)]
For PR798:
Add support for Graphviz. Patch contributed by Anton Korobeynikov.

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

18 years agoA few new entries.
Evan Cheng [Sun, 4 Jun 2006 09:08:00 +0000 (09:08 +0000)]
A few new entries.

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

18 years agoBe consistent with gcc.
Evan Cheng [Sun, 4 Jun 2006 07:24:07 +0000 (07:24 +0000)]
Be consistent with gcc.

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

18 years agoUpdate the regression tests, and add a new one encountered while compiling crtend.
Owen Anderson [Sun, 4 Jun 2006 00:56:30 +0000 (00:56 +0000)]
Update the regression tests, and add a new one encountered while compiling crtend.

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

18 years agoSome more clean-up, and squash an IDF-Phi related bug.
Owen Anderson [Sun, 4 Jun 2006 00:55:19 +0000 (00:55 +0000)]
Some more clean-up, and squash an IDF-Phi related bug.

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

18 years agoignore ordered/unordered for now
Andrew Lenharth [Sun, 4 Jun 2006 00:25:51 +0000 (00:25 +0000)]
ignore ordered/unordered for now

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

18 years agoVarious clean-ups suggested by Chris.
Owen Anderson [Sun, 4 Jun 2006 00:02:23 +0000 (00:02 +0000)]
Various clean-ups suggested by Chris.

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

18 years agoFix a bug in Phi-noded insertion. Also, update some comments to reflect what's
Owen Anderson [Sat, 3 Jun 2006 23:22:50 +0000 (23:22 +0000)]
Fix a bug in Phi-noded insertion.  Also, update some comments to reflect what's
actually going on.

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

18 years agoDocument the LINK_LIBS_IN_SHARED control variable.
Reid Spencer [Sat, 3 Jun 2006 18:55:33 +0000 (18:55 +0000)]
Document the LINK_LIBS_IN_SHARED control variable.

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

18 years agotemporarily add back this option, I will remove it in a couple days
Chris Lattner [Fri, 2 Jun 2006 23:43:27 +0000 (23:43 +0000)]
temporarily add back this option, I will remove it in a couple days

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

18 years agoFor PR798:
Reid Spencer [Fri, 2 Jun 2006 23:13:18 +0000 (23:13 +0000)]
For PR798:
Have configure find the "dotty" program and adjust configuration.

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

18 years agoMore of PR728, don't install utils either.
Chris Lattner [Fri, 2 Jun 2006 22:41:18 +0000 (22:41 +0000)]
More of PR728, don't install utils either.

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

18 years agoCygwin support. Patch by Anton Korobeynikov!
Evan Cheng [Fri, 2 Jun 2006 22:38:37 +0000 (22:38 +0000)]
Cygwin support. Patch by Anton Korobeynikov!

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

18 years agoPart of PR728, don't install examples or projects.
Chris Lattner [Fri, 2 Jun 2006 22:34:39 +0000 (22:34 +0000)]
Part of PR728, don't install examples or projects.

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

18 years agoFix a -pedantic warning
Chris Lattner [Fri, 2 Jun 2006 22:11:06 +0000 (22:11 +0000)]
Fix a -pedantic warning

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

18 years agoAdd flags to get access to build_mode, objdir, srcdir etc.
Chris Lattner [Fri, 2 Jun 2006 22:03:50 +0000 (22:03 +0000)]
Add flags to get access to build_mode, objdir, srcdir etc.
If installed, ignore the prefix the tree is configured with: always use the
prefix that llvm-config is currently at, which may be different if the tree
was moved.

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

18 years agoMake llvm-config "do the right thing" when an install tree is relocated or
Chris Lattner [Fri, 2 Jun 2006 21:48:10 +0000 (21:48 +0000)]
Make llvm-config "do the right thing" when an install tree is relocated or
when run out of a build directory.

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

18 years agoUse xor to clear a register.
Evan Cheng [Fri, 2 Jun 2006 21:20:34 +0000 (21:20 +0000)]
Use xor to clear a register.

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

18 years agoIncorrect AT&T opcode.
Evan Cheng [Fri, 2 Jun 2006 21:09:10 +0000 (21:09 +0000)]
Incorrect AT&T opcode.

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

18 years agoCapture the build mode (e.g. Debug/Release) in the llvm-config script.
Chris Lattner [Fri, 2 Jun 2006 19:13:29 +0000 (19:13 +0000)]
Capture the build mode (e.g. Debug/Release) in the llvm-config script.

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

18 years agoRemove unneeded hook. Patch by Anton K. Thanks!
Chris Lattner [Fri, 2 Jun 2006 19:11:46 +0000 (19:11 +0000)]
Remove unneeded hook.  Patch by Anton K. Thanks!

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

18 years agoConvert to standard file header
Chris Lattner [Fri, 2 Jun 2006 18:58:21 +0000 (18:58 +0000)]
Convert to standard file header

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

18 years agoRemove a couple of things no longer figured out by autoconf
Chris Lattner [Fri, 2 Jun 2006 18:55:36 +0000 (18:55 +0000)]
Remove a couple of things no longer figured out by autoconf

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

18 years agoAdd mingw support, patch contributed by Anton
Chris Lattner [Fri, 2 Jun 2006 18:54:01 +0000 (18:54 +0000)]
Add mingw support, patch contributed by Anton

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

18 years agoForce anything that #includes llvm/Transforms/Utils/UnifyFunctionExitNodes.h
Chris Lattner [Fri, 2 Jun 2006 18:40:06 +0000 (18:40 +0000)]
Force anything that #includes llvm/Transforms/Utils/UnifyFunctionExitNodes.h
to link in the implementation.  Thanks to Anton Korobeynikov for figuring out
what was going on here.

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

18 years agoAdd several more autoconf variables so that new features can be implemented
Reid Spencer [Fri, 2 Jun 2006 18:31:41 +0000 (18:31 +0000)]
Add several more autoconf variables so that new features can be implemented
by our illustrious project leader.

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

18 years agoFix build on systems with broken bison
Chris Lattner [Fri, 2 Jun 2006 18:21:11 +0000 (18:21 +0000)]
Fix build on systems with broken bison

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

18 years agoFix build on systems with bad bison's
Chris Lattner [Fri, 2 Jun 2006 18:20:28 +0000 (18:20 +0000)]
Fix build on systems with bad bison's

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

18 years agoAdd tblgen to the index
Chris Lattner [Fri, 2 Jun 2006 17:43:38 +0000 (17:43 +0000)]
Add tblgen to the index

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

18 years agotblgen isn't related to llvm2cpp. Fix typo
Chris Lattner [Fri, 2 Jun 2006 17:41:19 +0000 (17:41 +0000)]
tblgen isn't related to llvm2cpp.  Fix typo

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