oota-llvm.git
18 years agoFix the build on win32
Chris Lattner [Wed, 26 Jul 2006 20:37:11 +0000 (20:37 +0000)]
Fix the build on win32

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

18 years agoDon't test an example
Chris Lattner [Wed, 26 Jul 2006 20:33:20 +0000 (20:33 +0000)]
Don't test an example

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

18 years agoReduce work done for directory traversal in srcdir==objdir builds.
Chris Lattner [Wed, 26 Jul 2006 20:22:26 +0000 (20:22 +0000)]
Reduce work done for directory traversal in srcdir==objdir builds.

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

18 years agoAdd llvm2cpp to DIRs list
Chris Lattner [Wed, 26 Jul 2006 20:19:06 +0000 (20:19 +0000)]
Add llvm2cpp to DIRs list

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

18 years agoRevamp this to use filter-out, which makes the logic simpler and not nested.
Chris Lattner [Wed, 26 Jul 2006 19:10:34 +0000 (19:10 +0000)]
Revamp this to use filter-out, which makes the logic simpler and not nested.

This restores building of examples and projects!

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

18 years agoMake changes necessary for stopping the build if a cyclic library
Reid Spencer [Wed, 26 Jul 2006 17:10:54 +0000 (17:10 +0000)]
Make changes necessary for stopping the build if a cyclic library
dependency is found. The find-cycles.pl script now exits with a return code
that equals the number of cycles found. The Makefile was changed to ignore
the status code of find-cycles.pl. This should be removed once the libraries
are free of cyclic dependencies.

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

18 years agoBuild llvm-config to identify library cycles earlier in the build process.
Reid Spencer [Wed, 26 Jul 2006 17:06:02 +0000 (17:06 +0000)]
Build llvm-config to identify library cycles earlier in the build process.

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

18 years agoFor PR780:
Reid Spencer [Wed, 26 Jul 2006 16:55:39 +0000 (16:55 +0000)]
For PR780:
Put the rest of lib/System into LinkAllVMCore.h. This makes all of
lib/System available to programs that #include LinkALlVMCore.h so that
loadable modules linked into those programs can depend on all of lib/System
being available.

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

18 years agoFor PR780:
Reid Spencer [Wed, 26 Jul 2006 16:18:00 +0000 (16:18 +0000)]
For PR780:
1. Move IncludeFile.h to System library
2. Move IncludeFile.cpp to System library
3. #1 and #2 required to prevent cyclic library dependencies for libSystem
4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h
5. Add IncludeFile support to various lib/System classes.
6. Add new lib/System classes to LinkAllVMCore.h
All this in an attempt to pull in lib/System to what's required for VMCore

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

18 years agoNo Need to live in the past.
Jim Laskey [Wed, 26 Jul 2006 09:59:01 +0000 (09:59 +0000)]
No Need to live in the past.

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

18 years agoAdd a new llvm::SmallVector template, which is similar to the vector class, but
Chris Lattner [Wed, 26 Jul 2006 06:22:30 +0000 (06:22 +0000)]
Add a new llvm::SmallVector template, which is similar to the vector class, but
contains optimizations to avoid heap allocation if the vector size is smaller
than some threshold.  This can significantly improve the performance of code
that allocates many small vectors by eliminating tons of small malloc/free's.

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

18 years agoMoving this function to a permanent home to prevent a dependency cycle created
Jim Laskey [Tue, 25 Jul 2006 23:22:00 +0000 (23:22 +0000)]
Moving this function to a permanent home to prevent a dependency cycle created
by the inline heuristic.  Was preventing llvm-gcc4 from building.

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

18 years agoInitialize some variables the compiler warns about.
Reid Spencer [Tue, 25 Jul 2006 20:44:41 +0000 (20:44 +0000)]
Initialize some variables the compiler warns about.

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

18 years ago- Refactor the code that resolve basic block references to a TargetJITInfo
Evan Cheng [Tue, 25 Jul 2006 20:40:54 +0000 (20:40 +0000)]
- Refactor the code that resolve basic block references to a TargetJITInfo
  method.
- Added synchronizeICache() to TargetJITInfo. It is called after each block
  of code is emitted to flush the icache. This ensures correct execution
  on targets that have separate dcache and icache.
- Added PPC / Mac OS X specific code to do icache flushing.

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

18 years agoCan't commute shufps. The high / low parts elements come from different vectors.
Evan Cheng [Tue, 25 Jul 2006 20:25:40 +0000 (20:25 +0000)]
Can't commute shufps. The high / low parts elements come from different vectors.

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

18 years agoimplement function calling of functions with up to 4 arguments
Rafael Espindola [Tue, 25 Jul 2006 20:17:20 +0000 (20:17 +0000)]
implement function calling of functions with up to 4 arguments

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

18 years agoAdd a feature for debugging library dependency cycles, -why option. This
Reid Spencer [Tue, 25 Jul 2006 19:12:06 +0000 (19:12 +0000)]
Add a feature for debugging library dependency cycles, -why option. This
implies -flat and will produce a list of all the symbols for each library
that another library depends on. Run the output through c++filt for
better readability. Also, don't generate a temporary file for storing the
dependent library names. Perl can handle it in a %hash.

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

18 years agoXFAIL for now.
Evan Cheng [Mon, 24 Jul 2006 07:37:33 +0000 (07:37 +0000)]
XFAIL for now.

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

18 years agoFixing a syntax error and adding buildtype to the .a and .o file size information.
Patrick Jenkins [Sun, 23 Jul 2006 22:57:28 +0000 (22:57 +0000)]
Fixing a syntax error and adding buildtype to the .a and .o file size information.

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

18 years agoWhen the ability to gather .a and .o file sizes was added, it changed the directory...
Patrick Jenkins [Sun, 23 Jul 2006 21:38:07 +0000 (21:38 +0000)]
When the ability to gather .a and .o file sizes was added, it changed the directory the perl script was in so when we tried to run dejagnu tests, everything failed.

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

18 years agoFix the build on my old and busted version of OS X
Nate Begeman [Sat, 22 Jul 2006 16:59:38 +0000 (16:59 +0000)]
Fix the build on my old and busted version of OS X

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

18 years agoForgot to #ifdef __APPLE__
Evan Cheng [Sat, 22 Jul 2006 00:42:03 +0000 (00:42 +0000)]
Forgot to #ifdef __APPLE__

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

18 years agoadded status message during nightly test
Patrick Jenkins [Sat, 22 Jul 2006 00:00:08 +0000 (00:00 +0000)]
added status message during nightly test

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

18 years agoDone.
Evan Cheng [Fri, 21 Jul 2006 23:07:23 +0000 (23:07 +0000)]
Done.

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

18 years agoWorkaround no longer needed.
Evan Cheng [Fri, 21 Jul 2006 23:06:51 +0000 (23:06 +0000)]
Workaround no longer needed.

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

18 years agoResolve __dso_handle.
Evan Cheng [Fri, 21 Jul 2006 23:06:20 +0000 (23:06 +0000)]
Resolve __dso_handle.

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

18 years agoRemoved a hack intended to allow (store (op (load))) folding. Will handle this with...
Evan Cheng [Fri, 21 Jul 2006 22:19:51 +0000 (22:19 +0000)]
Removed a hack intended to allow (store (op (load))) folding. Will handle this with preprocessing.

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

18 years agoAdded a check to skip dejagnu test results gathering if we did not run dejagnu tests
Patrick Jenkins [Fri, 21 Jul 2006 21:58:06 +0000 (21:58 +0000)]
Added a check to skip dejagnu test results gathering if we did not run dejagnu tests

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

18 years agoFixed an issue of variable scope that prevented file size from being submitted to...
Patrick Jenkins [Fri, 21 Jul 2006 21:43:09 +0000 (21:43 +0000)]
Fixed an issue of variable scope that prevented file size from being submitted to the server.

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

18 years agoEliminate data relocations by using NULL instead of global empty list.
Jim Laskey [Fri, 21 Jul 2006 21:15:20 +0000 (21:15 +0000)]
Eliminate data relocations by using NULL instead of global empty list.

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

18 years agoUse an enumeration to eliminate data relocations.
Jim Laskey [Fri, 21 Jul 2006 20:57:35 +0000 (20:57 +0000)]
Use an enumeration to eliminate data relocations.

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

18 years agoAdded code to get .a and .o file sizes and submit them to the server in the nightly...
Patrick Jenkins [Fri, 21 Jul 2006 19:51:40 +0000 (19:51 +0000)]
Added code to get .a and .o file sizes and submit them to the server in the nightly report.

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

18 years agoFix MacOSX build failures. (pr841)
Devang Patel [Fri, 21 Jul 2006 19:44:55 +0000 (19:44 +0000)]
Fix MacOSX build failures. (pr841)

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

18 years agoimplemented sub
Rafael Espindola [Fri, 21 Jul 2006 12:26:16 +0000 (12:26 +0000)]
implemented sub
correctly update the stack pointer in the prologue and epilogue

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

18 years agoThis opt is now handled in DAG combine.
Evan Cheng [Fri, 21 Jul 2006 08:26:46 +0000 (08:26 +0000)]
This opt is now handled in DAG combine.

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

18 years agoIf a shuffle is a splat, check if the argument is a build_vector with all elements...
Evan Cheng [Fri, 21 Jul 2006 08:25:53 +0000 (08:25 +0000)]
If a shuffle is a splat, check if the argument is a build_vector with all elements being the same. If so, return the argument.

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

18 years agoFixed issue where nightly test always tells you you need to use -nickname
Patrick Jenkins [Fri, 21 Jul 2006 01:39:42 +0000 (01:39 +0000)]
Fixed issue where nightly test always tells you you need to use -nickname

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

18 years agoThe nightly tester will no longer report numbers instead of tests performed.
Patrick Jenkins [Fri, 21 Jul 2006 01:34:01 +0000 (01:34 +0000)]
The nightly tester will no longer report numbers instead of tests performed.

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

18 years agoBuild more debugger/selectiondag libraries as archives instead of .o files.
Chris Lattner [Fri, 21 Jul 2006 00:10:47 +0000 (00:10 +0000)]
Build more debugger/selectiondag libraries as archives instead of .o files.
This works around bugs in some versions of the cygwin linker.

Patch contributed by Anton Korobeynikov.

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

18 years agoAdd some notes about mingw, patch contributed by Anton Korobeynikov.
Chris Lattner [Fri, 21 Jul 2006 00:06:27 +0000 (00:06 +0000)]
Add some notes about mingw, patch contributed by Anton Korobeynikov.

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

18 years agoNew vector shuffle test case.
Evan Cheng [Thu, 20 Jul 2006 23:51:01 +0000 (23:51 +0000)]
New vector shuffle test case.

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

18 years agoFix a broken test.
Evan Cheng [Thu, 20 Jul 2006 23:50:13 +0000 (23:50 +0000)]
Fix a broken test.

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

18 years agoAlso checks for noResults field.
Evan Cheng [Thu, 20 Jul 2006 23:36:20 +0000 (23:36 +0000)]
Also checks for noResults field.

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

18 years agoA splat of a vector constant of all zero or all one is the vector constant.
Evan Cheng [Thu, 20 Jul 2006 23:09:47 +0000 (23:09 +0000)]
A splat of a vector constant of all zero or all one is the vector constant.

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

18 years agoMissing a space.
Evan Cheng [Thu, 20 Jul 2006 22:52:28 +0000 (22:52 +0000)]
Missing a space.

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

18 years agoIf a shuffle is unary, i.e. one of the vector argument is not needed, turn the
Evan Cheng [Thu, 20 Jul 2006 22:44:41 +0000 (22:44 +0000)]
If a shuffle is unary, i.e. one of the vector argument is not needed, turn the
operand into a undef and adjust mask accordingly.

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

18 years agoWe now fail and print an error message if a nightly tester does not specify a nicknam...
Patrick Jenkins [Thu, 20 Jul 2006 22:28:43 +0000 (22:28 +0000)]
We now fail and print an error message if a nightly tester does not specify a nickname on the command line

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

18 years agoClean up.
Evan Cheng [Thu, 20 Jul 2006 21:37:39 +0000 (21:37 +0000)]
Clean up.

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

18 years agoFix a race condition in the makefile andrew reported
Chris Lattner [Thu, 20 Jul 2006 19:08:27 +0000 (19:08 +0000)]
Fix a race condition in the makefile andrew reported

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

18 years agoMinor comment tweaks
Chris Lattner [Thu, 20 Jul 2006 19:06:16 +0000 (19:06 +0000)]
Minor comment tweaks

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

18 years agoNew testcase for PR833
Chris Lattner [Thu, 20 Jul 2006 19:04:36 +0000 (19:04 +0000)]
New testcase for PR833

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

18 years agoMems can be in the output list also. This is the second half of a fix for
Chris Lattner [Thu, 20 Jul 2006 19:02:21 +0000 (19:02 +0000)]
Mems can be in the output list also.  This is the second half of a fix for
PR833

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

18 years agoMake it fit into 80 cols.
Devang Patel [Thu, 20 Jul 2006 18:03:39 +0000 (18:03 +0000)]
Make it fit into 80 cols.

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

18 years agoAdd new constructor to accept vector of exported names while creating
Devang Patel [Thu, 20 Jul 2006 17:48:05 +0000 (17:48 +0000)]
Add new constructor to accept vector of exported names while creating
InternalizePass.

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

18 years ago80 cols
Andrew Lenharth [Thu, 20 Jul 2006 17:43:27 +0000 (17:43 +0000)]
80 cols

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

18 years agoReduce number of exported symbols
Andrew Lenharth [Thu, 20 Jul 2006 17:28:38 +0000 (17:28 +0000)]
Reduce number of exported symbols

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

18 years agoFix linking on Alpha
Andrew Lenharth [Thu, 20 Jul 2006 17:27:58 +0000 (17:27 +0000)]
Fix linking on Alpha

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

18 years agoFixed a problem that caused the script to abort right before it sent out the information
Patrick Jenkins [Thu, 20 Jul 2006 16:54:43 +0000 (16:54 +0000)]
Fixed a problem that caused the script to abort right before it sent out the information

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

18 years agoFix PR835 so that touching tblgen in a way that doesn't affect intrinsic
Chris Lattner [Thu, 20 Jul 2006 16:44:21 +0000 (16:44 +0000)]
Fix PR835 so that touching tblgen in a way that doesn't affect intrinsic
generation does not rebuild files that just use intrinsic info.

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

18 years agoNew entry.
Evan Cheng [Wed, 19 Jul 2006 21:29:30 +0000 (21:29 +0000)]
New entry.

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

18 years agoDo once flag never set to true.
Jim Laskey [Wed, 19 Jul 2006 19:33:08 +0000 (19:33 +0000)]
Do once flag never set to true.

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

18 years agoTidy up a few things.
Jim Laskey [Wed, 19 Jul 2006 19:32:06 +0000 (19:32 +0000)]
Tidy up a few things.

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

18 years agoAnswer the FAQ: "can llvm convert C++ code to C?"
Chris Lattner [Wed, 19 Jul 2006 18:19:59 +0000 (18:19 +0000)]
Answer the FAQ: "can llvm convert C++ code to C?"

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

18 years agoReduce size of routine. Shrinks .o by 37%.
Jim Laskey [Wed, 19 Jul 2006 17:53:32 +0000 (17:53 +0000)]
Reduce size of routine. Shrinks .o by 37%.

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

18 years agoRemoved the portion that determines which tests are newly passing/failing because...
Patrick Jenkins [Wed, 19 Jul 2006 17:52:51 +0000 (17:52 +0000)]
Removed the portion that determines which tests are newly passing/failing because we no longer keep the previos days list on the testing machines.

Added functionality to send lists of all tests, all passing tests, all failing tests all unexpected failing tests.

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

18 years agobswapped load/store instructions are only availble in indexed addressing form.
Chris Lattner [Wed, 19 Jul 2006 17:15:36 +0000 (17:15 +0000)]
bswapped load/store instructions are only availble in indexed addressing form.
As such, use xoaddr (indexed only), not xaddr for address selection.

This fixes CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll, a crash compiling lencod.

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

18 years agonew testcase
Chris Lattner [Wed, 19 Jul 2006 17:14:23 +0000 (17:14 +0000)]
new testcase

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

18 years agoRegression test for PR834.
Jim Laskey [Wed, 19 Jul 2006 16:37:15 +0000 (16:37 +0000)]
Regression test for PR834.

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

18 years agoBug#834 ICE (crash in code generator?) when building PCH .
Jim Laskey [Wed, 19 Jul 2006 11:54:50 +0000 (11:54 +0000)]
Bug#834 ICE (crash in code generator?) when building PCH .
Missing Darwin check in Intel ATT ASM printer.

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

18 years agoMisc. new entry.
Evan Cheng [Wed, 19 Jul 2006 06:06:24 +0000 (06:06 +0000)]
Misc. new entry.

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

18 years agoMake sub- and super- register classes const.
Evan Cheng [Wed, 19 Jul 2006 05:58:18 +0000 (05:58 +0000)]
Make sub- and super- register classes const.

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

18 years agoAdd an assertion.
Owen Anderson [Wed, 19 Jul 2006 05:48:45 +0000 (05:48 +0000)]
Add an assertion.

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

18 years agoMake LoopUnroll not die on LCSSA Phis. This makes lencod work again.
Owen Anderson [Wed, 19 Jul 2006 05:45:14 +0000 (05:45 +0000)]
Make LoopUnroll not die on LCSSA Phis.  This makes lencod work again.

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

18 years agoFix a error that hadn't yet cause any problems, but I'm sure it would have
Owen Anderson [Wed, 19 Jul 2006 03:51:48 +0000 (03:51 +0000)]
Fix a error that hadn't yet cause any problems, but I'm sure it would have
somewhere down the road.

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

18 years agoFix a bug handling instructions, like blr, which just consist of a text
Chris Lattner [Wed, 19 Jul 2006 01:39:06 +0000 (01:39 +0000)]
Fix a bug handling instructions, like blr, which just consist of a text
string.  The return value of printInstruction should be true for these.

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

18 years agoMove MVT::getVectorType out of line, it is large and shouldn't be inlined.
Chris Lattner [Wed, 19 Jul 2006 00:40:45 +0000 (00:40 +0000)]
Move MVT::getVectorType out of line, it is large and shouldn't be inlined.

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

18 years agoINC / DEC instructions have shorter code size than ADD32ri8, etc.
Evan Cheng [Wed, 19 Jul 2006 00:27:29 +0000 (00:27 +0000)]
INC / DEC instructions have shorter code size than ADD32ri8, etc.

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

18 years agoAdd code size to target instruction use it as the 3rd isel sorting tie-breaker.
Evan Cheng [Wed, 19 Jul 2006 00:24:41 +0000 (00:24 +0000)]
Add code size to target instruction use it as the 3rd isel sorting tie-breaker.

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

18 years agoAdd an out-of-line virtual method for the sdnode class to give it a home.
Chris Lattner [Wed, 19 Jul 2006 00:00:37 +0000 (00:00 +0000)]
Add an out-of-line virtual method for the sdnode class to give it a home.

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

18 years agoAdd an out-of-line virtual method to provide a home for the cl::option class.
Chris Lattner [Tue, 18 Jul 2006 23:59:33 +0000 (23:59 +0000)]
Add an out-of-line virtual method to provide a home for the cl::option class.

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

18 years agoMake sub- super- reg-class tables static.
Evan Cheng [Tue, 18 Jul 2006 22:18:31 +0000 (22:18 +0000)]
Make sub- super- reg-class tables static.

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

18 years agosilence warnings in a release build
Chris Lattner [Tue, 18 Jul 2006 21:48:57 +0000 (21:48 +0000)]
silence warnings in a release build

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

18 years agoyet another change to get the correct gcc version for the nightly test results.
Patrick Jenkins [Tue, 18 Jul 2006 21:21:53 +0000 (21:21 +0000)]
yet another change to get the correct gcc version for the nightly test results.

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

18 years agoFix case where identical cases were not detected across case #0, because
Chris Lattner [Tue, 18 Jul 2006 19:27:30 +0000 (19:27 +0000)]
Fix case where identical cases were not detected across case #0, because
instructions not handled would have a case value of #0, throwing things off.
This marginally shrinks the X86 asmprinter, but shrinks the sparc asmwriter
by 25 lines.

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

18 years agoOnly reuse a previous IV if it would not require a type conversion.
Evan Cheng [Tue, 18 Jul 2006 19:07:58 +0000 (19:07 +0000)]
Only reuse a previous IV if it would not require a type conversion.

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

18 years agoFix an accidentally duplicated line that caused tblgen to crash on itanium.
Chris Lattner [Tue, 18 Jul 2006 19:06:01 +0000 (19:06 +0000)]
Fix an accidentally duplicated line that caused tblgen to crash on itanium.
Add an assert that catches the real problem earlier.

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

18 years agoMaximally group commands. When all instructions within a command set have a
Chris Lattner [Tue, 18 Jul 2006 18:28:27 +0000 (18:28 +0000)]
Maximally group commands.  When all instructions within a command set have a
series of identical commands, handle them all with one switch.  In the case
of the x86 at&t asm printer, only 3 switches are needed for all instructions.

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

18 years agoChange generator to remove operands as it processes them. No change in
Chris Lattner [Tue, 18 Jul 2006 17:56:07 +0000 (17:56 +0000)]
Change generator to remove operands as it processes them.  No change in
generated file.

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

18 years agoHandle the last operand more intelligently. When emitting the \n, also
Chris Lattner [Tue, 18 Jul 2006 17:50:22 +0000 (17:50 +0000)]
Handle the last operand more intelligently.  When emitting the \n, also
return from the asmprinter to make the generated asmprinter both more
efficient and smaller.

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

18 years agoEmit switches with 1/2 cases as unconditional code or an if/then/else for
Chris Lattner [Tue, 18 Jul 2006 17:43:54 +0000 (17:43 +0000)]
Emit switches with 1/2 cases as unconditional code or an if/then/else for
tidyness.

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

18 years agoSteal bits from the asm string index to use for operand information. On both
Chris Lattner [Tue, 18 Jul 2006 17:38:46 +0000 (17:38 +0000)]
Steal bits from the asm string index to use for operand information.  On both
x86 and ppc, this gets us 4 more bits to play with, since the string indices
both only use 12 bits.

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

18 years agoMerge operand info and asmstr idx into a single 32-bit field. No other change.
Chris Lattner [Tue, 18 Jul 2006 17:32:27 +0000 (17:32 +0000)]
Merge operand info and asmstr idx into a single 32-bit field.  No other change.

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

18 years agoMinor output changes.
Patrick Jenkins [Tue, 18 Jul 2006 17:21:30 +0000 (17:21 +0000)]
Minor output changes.

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

18 years agoCompletely change the structure of the generated asmprinter to be more table
Chris Lattner [Tue, 18 Jul 2006 17:18:03 +0000 (17:18 +0000)]
Completely change the structure of the generated asmprinter to be more table
based and less switch-statements-with-hundreds-of-cases based.  This shrinks
the x86 asmprinters to about 1/3 their previous size.

Other improvements coming.

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

18 years agoinitial prologue and epilogue implementation. Need to define add and sub before finis...
Rafael Espindola [Tue, 18 Jul 2006 17:00:30 +0000 (17:00 +0000)]
initial prologue and epilogue implementation. Need to define add and sub before finishing it :-)

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

18 years agoMake the implicit def instructions look like other instrs.
Chris Lattner [Tue, 18 Jul 2006 16:33:26 +0000 (16:33 +0000)]
Make the implicit def instructions look like other instrs.

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

18 years agosimple optimization: don't bother calling "exists" (which calls the syscall
Chris Lattner [Tue, 18 Jul 2006 07:07:51 +0000 (07:07 +0000)]
simple optimization: don't bother calling "exists" (which calls the syscall
"access").  Instead, just let the open call fail if the file doesn't exist.
This reduces the # syscalls executed.

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

18 years agoRemove a dead conditional: info_ can only be allocated if FD is good. Improve
Chris Lattner [Tue, 18 Jul 2006 07:03:14 +0000 (07:03 +0000)]
Remove a dead conditional: info_ can only be allocated if FD is good.  Improve
spacing

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

18 years agoThe only entry in the stat buf this code cares about is the size. Keep just
Chris Lattner [Tue, 18 Jul 2006 07:01:08 +0000 (07:01 +0000)]
The only entry in the stat buf this code cares about is the size.  Keep just
the size, not the whole stat buffer.

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

18 years agoReduce code in the error path by only allocating info_ if everything looks
Chris Lattner [Tue, 18 Jul 2006 06:57:51 +0000 (06:57 +0000)]
Reduce code in the error path by only allocating info_ if everything looks
good.

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