oota-llvm.git
17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 years agoAdd a gross "--use-current-dir-as-prefix" option as a temporary workaround
Chris Lattner [Fri, 2 Jun 2006 01:23:18 +0000 (01:23 +0000)]
Add a gross "--use-current-dir-as-prefix" option as a temporary workaround
for the "build with one prefix and move the installed files to another dir"
problem.

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

17 years agoRemove some variables from the configured section that aren't.
Chris Lattner [Fri, 2 Jun 2006 01:04:35 +0000 (01:04 +0000)]
Remove some variables from the configured section that aren't.

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

17 years agoRemove more "alpha is archive" stuff.
Chris Lattner [Fri, 2 Jun 2006 00:56:15 +0000 (00:56 +0000)]
Remove more "alpha is archive" stuff.

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

17 years agoRemove some flags backed out from earlier attempts at getting MING32W
Reid Spencer [Fri, 2 Jun 2006 00:40:35 +0000 (00:40 +0000)]
Remove some flags backed out from earlier attempts at getting MING32W
configuration settled down.

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

17 years agoSuppress -pedantic warnings about print("%a")
Reid Spencer [Fri, 2 Jun 2006 00:39:08 +0000 (00:39 +0000)]
Suppress -pedantic warnings about print("%a")

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

17 years agoRemove obsolete CORE_IS_ARCHIVE support
Chris Lattner [Fri, 2 Jun 2006 00:30:31 +0000 (00:30 +0000)]
Remove obsolete CORE_IS_ARCHIVE support

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

17 years agoRemove obsolete CORE_IS_ARCHIVE stuff.
Chris Lattner [Fri, 2 Jun 2006 00:27:42 +0000 (00:27 +0000)]
Remove obsolete CORE_IS_ARCHIVE stuff.

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

17 years agoUpdate the ignore file
Chris Lattner [Fri, 2 Jun 2006 00:23:15 +0000 (00:23 +0000)]
Update the ignore file

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

17 years agoDocument the -gen-inline option.
Reid Spencer [Thu, 1 Jun 2006 23:46:30 +0000 (23:46 +0000)]
Document the -gen-inline option.

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

17 years agoTeach CppWriter how to emit an inline (partial) function.
Reid Spencer [Thu, 1 Jun 2006 23:43:47 +0000 (23:43 +0000)]
Teach CppWriter how to emit an inline (partial) function.

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

17 years agoadded some tests for argument passing
Rafael Espindola [Thu, 1 Jun 2006 22:01:25 +0000 (22:01 +0000)]
added some tests for argument passing

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

17 years agotestcase for the recent inliner improvement.
Chris Lattner [Thu, 1 Jun 2006 21:54:58 +0000 (21:54 +0000)]
testcase for the recent inliner improvement.

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

17 years agoRemove dead #include
Chris Lattner [Thu, 1 Jun 2006 20:02:28 +0000 (20:02 +0000)]
Remove dead #include

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

17 years agoMake the "pruning cloner" smarter. As it propagates constants through the
Chris Lattner [Thu, 1 Jun 2006 19:19:23 +0000 (19:19 +0000)]
Make the "pruning cloner" smarter.  As it propagates constants through the
code (while cloning) it often gets the branch/switch instructions.  Since it
knows that edges of the CFG are dead, it need not clone (or even look) at
the obviously dead blocks.  This should speed up the inliner substantially on
code where there are lots of inlinable calls to functions with constant
arguments.  On C++ code in particular, this kicks in.

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

17 years agoFix linking of inline asm objects.
Chris Lattner [Thu, 1 Jun 2006 19:14:22 +0000 (19:14 +0000)]
Fix linking of inline asm objects.

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

17 years agoProvide configuration support and usage for MINGW32 platform
Reid Spencer [Thu, 1 Jun 2006 19:03:21 +0000 (19:03 +0000)]
Provide configuration support and usage for MINGW32 platform

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

17 years agoDon't build tblgen with -pedantic or -Wno-long-long
Reid Spencer [Thu, 1 Jun 2006 18:20:23 +0000 (18:20 +0000)]
Don't build tblgen with -pedantic or -Wno-long-long

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

17 years agoMake sure windows.h is #included first.
Reid Spencer [Thu, 1 Jun 2006 17:44:29 +0000 (17:44 +0000)]
Make sure windows.h is #included first.

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

17 years agoFix -pedantic warnings.
Chris Lattner [Thu, 1 Jun 2006 17:29:22 +0000 (17:29 +0000)]
Fix -pedantic warnings.

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

17 years agoFix -pedantic warnings
Chris Lattner [Thu, 1 Jun 2006 17:27:11 +0000 (17:27 +0000)]
Fix -pedantic warnings

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

17 years agoFix -pedantic warning
Chris Lattner [Thu, 1 Jun 2006 17:17:46 +0000 (17:17 +0000)]
Fix -pedantic warning

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

17 years agoSilence -pedantic warning
Chris Lattner [Thu, 1 Jun 2006 17:17:06 +0000 (17:17 +0000)]
Silence -pedantic warning

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

17 years agoSilence a -pedantic warning.
Chris Lattner [Thu, 1 Jun 2006 17:16:21 +0000 (17:16 +0000)]
Silence a -pedantic warning.

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

17 years agoMake sure that when checking for MINGW32 libraries we ask for windows.h
Reid Spencer [Thu, 1 Jun 2006 17:16:20 +0000 (17:16 +0000)]
Make sure that when checking for MINGW32 libraries we ask for windows.h

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

17 years agoSilence -pedantic warning.
Chris Lattner [Thu, 1 Jun 2006 17:13:10 +0000 (17:13 +0000)]
Silence -pedantic warning.

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

17 years agoSilence some -pedantic warnings.
Chris Lattner [Thu, 1 Jun 2006 17:12:14 +0000 (17:12 +0000)]
Silence some -pedantic warnings.

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

17 years agoProvide support for detecting if the Win32 imaghlp and psapi libraries
Reid Spencer [Thu, 1 Jun 2006 16:55:59 +0000 (16:55 +0000)]
Provide support for detecting if the Win32 imaghlp and psapi libraries
are available. These libraries are used in lib/System and should be
included on the link line or if not available generate an error when
building lib/System.

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

17 years agoFix a typo
Chris Lattner [Thu, 1 Jun 2006 16:48:56 +0000 (16:48 +0000)]
Fix a typo

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

17 years agoMake a shorthand target for running the llvm2cpp test suite. This test
Reid Spencer [Thu, 1 Jun 2006 07:27:53 +0000 (07:27 +0000)]
Make a shorthand target for running the llvm2cpp test suite. This test
suite is disabled by default because of the length of time it takes to
run. To enable it certain command line fu must be used. This patch just
encodes the command line fu as the magical "check-llvm2cpp" target.

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

17 years agoRestore default arguments for llvm2cpp back to health by declaring an
Reid Spencer [Thu, 1 Jun 2006 07:24:29 +0000 (07:24 +0000)]
Restore default arguments for llvm2cpp back to health by declaring an
emitted variable to actually have a type (picky, picky, picky!)

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

17 years agoNo, libLLVMbzip2 does not have a .a suffix.
Reid Spencer [Thu, 1 Jun 2006 07:23:32 +0000 (07:23 +0000)]
No, libLLVMbzip2 does not have a .a suffix.

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

17 years agoFix gcc command line options after LLVMCore and LLVMbzip2 became archive
Reid Spencer [Thu, 1 Jun 2006 07:19:28 +0000 (07:19 +0000)]
Fix gcc command line options after LLVMCore and LLVMbzip2 became archive
libraries.

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

17 years agoFavor C++ casts over C casts in C++ code.
Reid Spencer [Thu, 1 Jun 2006 07:03:53 +0000 (07:03 +0000)]
Favor C++ casts over C casts in C++ code.

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

17 years agoChange from using a stub function to a stub variable for passing to the
Reid Spencer [Thu, 1 Jun 2006 07:02:51 +0000 (07:02 +0000)]
Change from using a stub function to a stub variable for passing to the
IncludeFile hack to ensure linkage of analysis passes. This works around
some -pedantic warnings about assigning an object to a function.

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

17 years agoPrevent the -pedantic option from causing Mac OS/X build problems:
Reid Spencer [Thu, 1 Jun 2006 06:12:21 +0000 (06:12 +0000)]
Prevent the -pedantic option from causing Mac OS/X build problems:
LiveIntervalAnalysis.cpp:218: error: floating constant exceeds range of 'double'

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

17 years agoRemove a FIXME that was fixed with my last patch.
Owen Anderson [Thu, 1 Jun 2006 06:07:40 +0000 (06:07 +0000)]
Remove a FIXME that was fixed with my last patch.

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

17 years agoMore cleanups. Also, add a special case for updating PHI nodes, and
Owen Anderson [Thu, 1 Jun 2006 06:05:47 +0000 (06:05 +0000)]
More cleanups.  Also, add a special case for updating PHI nodes, and
reimplement getValueDominatingFunction to walk the DominanceTree rather than
just searching blindly.

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

17 years agoTypos
Evan Cheng [Thu, 1 Jun 2006 05:53:27 +0000 (05:53 +0000)]
Typos

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

17 years agoFor PR786:
Reid Spencer [Thu, 1 Jun 2006 05:49:51 +0000 (05:49 +0000)]
For PR786:
Don't warn about -pedantic errors. Add a note to the PR instead.

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

17 years agoFix a bug where incorrect C++ was being emitted.
Reid Spencer [Thu, 1 Jun 2006 04:21:20 +0000 (04:21 +0000)]
Fix a bug where incorrect C++ was being emitted.

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

17 years agoFor PR786:
Reid Spencer [Thu, 1 Jun 2006 01:55:21 +0000 (01:55 +0000)]
For PR786:
Turn -pedantic and -Wno-long-long compile flags on by default. In a few
places, avoid the warnings by removing these options in the local makefile.
One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are
left on as a reminder to developers to clean them up.

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

17 years agoBuild llvm-config into the ToolDir not in the local directory. This makes
Reid Spencer [Thu, 1 Jun 2006 01:52:49 +0000 (01:52 +0000)]
Build llvm-config into the ToolDir not in the local directory. This makes
it more likely to be in a developer's path and consistent with all the
other tools.

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

17 years agoPut an innocuous statement in this file to quelch warnings about compiling
Reid Spencer [Thu, 1 Jun 2006 01:49:08 +0000 (01:49 +0000)]
Put an innocuous statement in this file to quelch warnings about compiling
an empty file.

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

17 years agoOops, llc needs libTarget.a not Target.o
Reid Spencer [Thu, 1 Jun 2006 01:42:33 +0000 (01:42 +0000)]
Oops, llc needs libTarget.a not Target.o

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

17 years agoUse archive libraries instead of object files for VMCore, BCReader,
Reid Spencer [Thu, 1 Jun 2006 01:30:27 +0000 (01:30 +0000)]
Use archive libraries instead of object files for VMCore, BCReader,
BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate
these changes. This was done to speed up link times.

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

17 years agoSupport correct build:
Reid Spencer [Thu, 1 Jun 2006 01:09:43 +0000 (01:09 +0000)]
Support correct build:
1. Capture the ENABLE_THREADS configure variable in Makefile.config
2. Use ENABLE_THREADS to avoid building ParallelJIT if threads are not
   present.

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

17 years agoTighten this script up a bit.
Reid Spencer [Thu, 1 Jun 2006 01:08:28 +0000 (01:08 +0000)]
Tighten this script up a bit.

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

17 years agoRemove a warning
Evan Cheng [Thu, 1 Jun 2006 00:30:39 +0000 (00:30 +0000)]
Remove a warning

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

17 years agoRename ASM modifier trunc8, trunc16 to subreg8, subreg16.
Evan Cheng [Wed, 31 May 2006 22:34:26 +0000 (22:34 +0000)]
Rename ASM modifier trunc8, trunc16 to subreg8, subreg16.

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

17 years agoFix casting so there's no warning on Alpha.
Reid Spencer [Wed, 31 May 2006 22:26:11 +0000 (22:26 +0000)]
Fix casting so there's no warning on Alpha.

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

17 years agoAdd my most recent work.
Owen Anderson [Wed, 31 May 2006 22:15:45 +0000 (22:15 +0000)]
Add my most recent work.

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

17 years agoSign extender
Evan Cheng [Wed, 31 May 2006 22:05:11 +0000 (22:05 +0000)]
Sign extender

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

17 years agoSquelch this warning:
Reid Spencer [Wed, 31 May 2006 21:53:42 +0000 (21:53 +0000)]
Squelch this warning:
/bzlib.c:126: warning: string length `1056' is greater than the length `509' ISO
C89 compilers are required to support

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

17 years agoFix utostr once and for all, by making there only be one function named
Chris Lattner [Wed, 31 May 2006 21:25:50 +0000 (21:25 +0000)]
Fix utostr once and for all, by making there only be one function named
utostr.  To keep the efficiency in the 32-bit case, make it check to see if
the value is 32-bits and if so switch over to the faster 32-bit case.

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

17 years agoSwap the order of operands created here. For +&|^, the order doesn't matter,
Chris Lattner [Wed, 31 May 2006 21:14:00 +0000 (21:14 +0000)]
Swap the order of operands created here.  For +&|^, the order doesn't matter,
but for sub, it really does!  Fix fixes a miscompilation of fibheap_cut in
llvmgcc4.

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

17 years agoExtract a huge loop into a helper method. Fix a few iterator-invalidation bugs.
Owen Anderson [Wed, 31 May 2006 20:55:06 +0000 (20:55 +0000)]
Extract a huge loop into a helper method.  Fix a few iterator-invalidation bugs.

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

17 years ago4 billion names is enough for anyone. And really fix the build on alpha this time
Andrew Lenharth [Wed, 31 May 2006 20:40:36 +0000 (20:40 +0000)]
4 billion names is enough for anyone.  And really fix the build on alpha this time

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

17 years agofix utostr
Andrew Lenharth [Wed, 31 May 2006 20:18:56 +0000 (20:18 +0000)]
fix utostr

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

17 years agoFix build breakage on alpha, without causing it on x86. as a bonus, all platforms...
Andrew Lenharth [Wed, 31 May 2006 20:18:28 +0000 (20:18 +0000)]
Fix build breakage on alpha, without causing it on x86.  as a bonus, all platforms can invent the same number of unique names now

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

17 years agorevert for now
Andrew Lenharth [Wed, 31 May 2006 19:16:26 +0000 (19:16 +0000)]
revert for now

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

17 years agoRename instructions for consistency sake.
Evan Cheng [Wed, 31 May 2006 19:00:07 +0000 (19:00 +0000)]
Rename instructions for consistency sake.

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

17 years agomake 64-bit safe and fix the build on alpha
Andrew Lenharth [Wed, 31 May 2006 18:56:42 +0000 (18:56 +0000)]
make 64-bit safe and fix the build on alpha

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

17 years agocommuteInstruction() does not always create a new MI!
Evan Cheng [Wed, 31 May 2006 18:03:39 +0000 (18:03 +0000)]
commuteInstruction() does not always create a new MI!

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

17 years agoAdd a brief description for the tblgen program. More detail is needed but
Reid Spencer [Wed, 31 May 2006 17:54:39 +0000 (17:54 +0000)]
Add a brief description for the tblgen program. More detail is needed but
the current author is not the person to provide it. Now that the file
exists, perhaps others will chime in and embellish.

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

17 years agoUpdate the documentation for llvm2cpp after the -gen-* options were added.
Reid Spencer [Wed, 31 May 2006 17:32:21 +0000 (17:32 +0000)]
Update the documentation for llvm2cpp after the -gen-* options were added.

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

17 years agoMajor reorganization and extension of the code. The diff on this will be a
Reid Spencer [Wed, 31 May 2006 17:31:38 +0000 (17:31 +0000)]
Major reorganization and extension of the code. The diff on this will be a
mess as functions were moved around into a better ordering. The code was
extended to provide various -gen-* options to better control what the
generated output should be. Currently it is possible to generate entire
modules (three different ways), functions, global variables, and types.

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

17 years agoMake the getNamedFunction and getNamedGlobal methods be const. They don't
Reid Spencer [Wed, 31 May 2006 16:40:28 +0000 (16:40 +0000)]
Make the getNamedFunction and getNamedGlobal methods be const. They don't
change the module in any way and we should enforce that.

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

17 years agoClarify type naming.
Vladimir Prus [Wed, 31 May 2006 16:03:20 +0000 (16:03 +0000)]
Clarify type naming.

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

17 years agoImprove InstVisitor docs.
Vladimir Prus [Wed, 31 May 2006 15:30:18 +0000 (15:30 +0000)]
Improve InstVisitor docs.

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

17 years agoEliminate a memory leak.
Evan Cheng [Wed, 31 May 2006 07:13:03 +0000 (07:13 +0000)]
Eliminate a memory leak.

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

17 years agovisitVBinOp: Can't fold divide by zero!
Evan Cheng [Wed, 31 May 2006 06:08:35 +0000 (06:08 +0000)]
visitVBinOp: Can't fold divide by zero!

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

17 years agoDon't generate module definitions when the -fragment option is given.
Reid Spencer [Wed, 31 May 2006 04:43:19 +0000 (04:43 +0000)]
Don't generate module definitions when the -fragment option is given.

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

17 years agoSelect vector_shuffle v1, undef <2, 3, ?, ?> to MOVHLPS.
Evan Cheng [Wed, 31 May 2006 00:51:37 +0000 (00:51 +0000)]
Select vector_shuffle v1, undef <2, 3, ?, ?> to MOVHLPS.

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

17 years agoRemove dead code.
Evan Cheng [Wed, 31 May 2006 00:50:42 +0000 (00:50 +0000)]
Remove dead code.

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

17 years agoUpdate vector extract test cases.
Evan Cheng [Wed, 31 May 2006 00:48:09 +0000 (00:48 +0000)]
Update vector extract test cases.

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

17 years agoA new entry
Evan Cheng [Tue, 30 May 2006 23:56:31 +0000 (23:56 +0000)]
A new entry

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

17 years agoMAXP{D|S} and MINP{D|S} are commutable.
Evan Cheng [Tue, 30 May 2006 23:47:30 +0000 (23:47 +0000)]
MAXP{D|S} and MINP{D|S} are commutable.

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

17 years agoCommute shufps / shufpd.
Evan Cheng [Tue, 30 May 2006 23:34:30 +0000 (23:34 +0000)]
Commute shufps / shufpd.

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

17 years ago1. No need to thwart this test with an environment variable. Turning it off
Reid Spencer [Tue, 30 May 2006 23:07:17 +0000 (23:07 +0000)]
1. No need to thwart this test with an environment variable. Turning it off
   is the default and handled by the makefile system and runtest
2. Redirect stderr of llvm-as and llvm2cpp so that warning messages about
   instrinsics don't cause Tcl to report the run as failed.

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

17 years agoSomehow I lost a condition when I was shuffling some code around. Anyway,
Evan Cheng [Tue, 30 May 2006 22:13:36 +0000 (22:13 +0000)]
Somehow I lost a condition when I was shuffling some code around. Anyway,
only transform a shufps to pshufd when the first two operands are the same.

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

17 years agoFix a build breaker.
Evan Cheng [Tue, 30 May 2006 21:45:53 +0000 (21:45 +0000)]
Fix a build breaker.

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