oota-llvm.git
18 years agoEncapsulated all of the print statements in "if( $VERBOSE) { }". The testing script...
Patrick Jenkins [Fri, 4 Aug 2006 17:53:27 +0000 (17:53 +0000)]
Encapsulated all of the print statements in "if( $VERBOSE) { }". The testing script will be absoutely silent now except for errors, which will still be printed to the annoyance of the user.

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

18 years agoMake SelectionDAG::RemoveDeadNodes iterative instead of recursive, which
Chris Lattner [Fri, 4 Aug 2006 17:45:20 +0000 (17:45 +0000)]
Make SelectionDAG::RemoveDeadNodes iterative instead of recursive, which
also make it simpler.

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

18 years agoWe should now send the correct list of dejagnu tests instead of the csv file of test...
Patrick Jenkins [Fri, 4 Aug 2006 17:40:54 +0000 (17:40 +0000)]
We should now send the correct list of dejagnu tests instead of the csv file of test results when we submit results back to the nightly tester.

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

18 years agoUse the %llvm-gcc% variable to find llvm-gcc for those of us that don't
Reid Spencer [Fri, 4 Aug 2006 17:35:18 +0000 (17:35 +0000)]
Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't
have it in our path and to ensure it uses the configured llvm-gcc not just
any one randomly placed in the path.

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

18 years agouse a 'register pressure reducing' scheduler
Rafael Espindola [Fri, 4 Aug 2006 12:48:42 +0000 (12:48 +0000)]
use a 'register pressure reducing' scheduler
make sure only one move is used in a hello world

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

18 years agoBug fix: always generate a RET_FLAG in LowerRET
Rafael Espindola [Thu, 3 Aug 2006 22:50:11 +0000 (22:50 +0000)]
Bug fix: always generate a RET_FLAG in LowerRET
fixes ret_null.ll and call.ll

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

18 years agoupdated CVS server location
Chris Lattner [Thu, 3 Aug 2006 22:14:43 +0000 (22:14 +0000)]
updated CVS server location

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

18 years agoFor PR845:
Reid Spencer [Thu, 3 Aug 2006 21:46:42 +0000 (21:46 +0000)]
For PR845:
Enable the makefile check on the result of find-cycles.pl. LLVM is now
cycle free and we intend to keep it that way. This patch will fail the
build if cycles are found.

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

18 years agoFix a typo in the name of expand_dependencies.
Reid Spencer [Thu, 3 Aug 2006 21:45:35 +0000 (21:45 +0000)]
Fix a typo in the name of expand_dependencies.
Make the dependency line pattern match handle white space better.

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

18 years agoFix PR867 (and maybe 868) and testcsae:
Chris Lattner [Thu, 3 Aug 2006 21:40:24 +0000 (21:40 +0000)]
Fix PR867 (and maybe 868) and testcsae:
Transforms/SimplifyCFG/2006-08-03-Crash.ll

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

18 years agonew testcase for pr867
Chris Lattner [Thu, 3 Aug 2006 21:39:41 +0000 (21:39 +0000)]
new testcase for pr867

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

18 years agoApplying for all.
Jim Laskey [Thu, 3 Aug 2006 20:56:35 +0000 (20:56 +0000)]
Applying for all.

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

18 years agoCopy the liveins for the first block. PR859
Jim Laskey [Thu, 3 Aug 2006 20:51:06 +0000 (20:51 +0000)]
Copy the liveins for the first block.  PR859

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

18 years agoMake all the schedulers continue to work.
Jim Laskey [Thu, 3 Aug 2006 20:49:29 +0000 (20:49 +0000)]
Make all the schedulers continue to work.

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

18 years agoPrint an error message if the lib directory (first argument) is not a
Reid Spencer [Thu, 3 Aug 2006 19:10:03 +0000 (19:10 +0000)]
Print an error message if the lib directory (first argument) is not a
directory.

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

18 years agoupdate comment
Chris Lattner [Thu, 3 Aug 2006 18:57:28 +0000 (18:57 +0000)]
update comment

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

18 years agoremove some more dead sparcv9 support stuff
Chris Lattner [Thu, 3 Aug 2006 18:55:44 +0000 (18:55 +0000)]
remove some more dead sparcv9 support stuff

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

18 years agoremove a dead proto
Chris Lattner [Thu, 3 Aug 2006 18:51:04 +0000 (18:51 +0000)]
remove a dead proto

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

18 years agoGet darwin intel debugging up and running.
Jim Laskey [Thu, 3 Aug 2006 17:27:09 +0000 (17:27 +0000)]
Get darwin intel debugging up and running.

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

18 years agoMake it fit into 80-columns.
Devang Patel [Thu, 3 Aug 2006 17:26:30 +0000 (17:26 +0000)]
Make it fit into 80-columns.

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

18 years agoFix typo.
Devang Patel [Thu, 3 Aug 2006 17:25:36 +0000 (17:25 +0000)]
Fix typo.

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

18 years agoSimplify. Use addprefix.
Devang Patel [Thu, 3 Aug 2006 17:18:45 +0000 (17:18 +0000)]
Simplify. Use addprefix.

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

18 years agoadd and use ARMISD::RET_FLAG
Rafael Espindola [Thu, 3 Aug 2006 17:02:20 +0000 (17:02 +0000)]
add and use ARMISD::RET_FLAG

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

18 years agoNow that SparcV9 is gone, this logical can be simplified significantly.
Chris Lattner [Thu, 3 Aug 2006 16:59:17 +0000 (16:59 +0000)]
Now that SparcV9 is gone, this logical can be simplified significantly.

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

18 years agoFix typo.
Devang Patel [Thu, 3 Aug 2006 16:34:35 +0000 (16:34 +0000)]
Fix typo.

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

18 years agoOne of the directories we were searching in for .o and .a files was wrong. We now...
Patrick Jenkins [Thu, 3 Aug 2006 16:28:58 +0000 (16:28 +0000)]
One of the directories we were searching in for .o and .a files was wrong. We now search /lib instead of /libs.

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

18 years agoRemove ARM for the moment since it is a work in progress.
Devang Patel [Thu, 3 Aug 2006 16:14:09 +0000 (16:14 +0000)]
Remove ARM for the moment since it is a work in progress.

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

18 years agoAdd new tool, lto, to do link time optimization. This tool installs
Devang Patel [Thu, 3 Aug 2006 15:44:57 +0000 (15:44 +0000)]
Add new tool, lto, to do link time optimization. This tool installs
dynamic library that linker can use to optimize llvm byte codes at
link time.

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

18 years agoChanges:
Chris Lattner [Thu, 3 Aug 2006 06:34:50 +0000 (06:34 +0000)]
Changes:
  1. Update an obsolete comment.
  2. Make the sorting by base an explicit (though still N^2) step, so
     that the code is more clear on what it is doing.
  3. Partition uses so that uses inside the loop are handled before uses
     outside the loop.

Note that none of these changes currently changes the code inserted by LSR,
but they are a stepping stone to getting there.

This code is the result of some crazy pair programming with Nate. :)

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

18 years agoRemove some extraneous newlines.
Chris Lattner [Thu, 3 Aug 2006 00:42:26 +0000 (00:42 +0000)]
Remove some extraneous newlines.

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

18 years agoReally add support for compilers without noinline
Chris Lattner [Thu, 3 Aug 2006 00:26:13 +0000 (00:26 +0000)]
Really add support for compilers without noinline

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

18 years agoWork around a GCC 3.3.5 bug noticed by a user.
Chris Lattner [Thu, 3 Aug 2006 00:18:59 +0000 (00:18 +0000)]
Work around a GCC 3.3.5 bug noticed by a user.

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

18 years agoWork around a bug in gcc 3.3.5, reported by a user
Chris Lattner [Thu, 3 Aug 2006 00:16:56 +0000 (00:16 +0000)]
Work around a bug in gcc 3.3.5, reported by a user

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

18 years agoWe now only search the following directories for .o and .a files:
Patrick Jenkins [Wed, 2 Aug 2006 23:48:07 +0000 (23:48 +0000)]
We now only search the following directories for .o and .a files:
utils/
libs/
tools/
Release/ & Debug/
as per Chris.

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

18 years agoReflect change to AssignTopologicalOrder().
Evan Cheng [Wed, 2 Aug 2006 22:01:32 +0000 (22:01 +0000)]
Reflect change to AssignTopologicalOrder().

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

18 years ago- Change AssignTopologicalOrder to return vector of SDNode* by reference.
Evan Cheng [Wed, 2 Aug 2006 22:00:34 +0000 (22:00 +0000)]
- Change AssignTopologicalOrder to return vector of SDNode* by reference.
- Tweak implementation to avoid using std::map.

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

18 years agoAssignTopologicalOrder now returns the vector of SDNode* by reference to
Evan Cheng [Wed, 2 Aug 2006 21:58:44 +0000 (21:58 +0000)]
AssignTopologicalOrder now returns the vector of SDNode* by reference to
avoid the expensive operation of copying a vector.
It also returns a maximum id by value.

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

18 years agoIf the Program name was NULL then all further output sent to std::cerr was
Jim Laskey [Wed, 2 Aug 2006 20:15:56 +0000 (20:15 +0000)]
If the Program name was NULL then all further output sent to std::cerr was
suppressed.

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

18 years agoRemoved some dead code and hopefully fixed the issue where the total list of tests...
Patrick Jenkins [Wed, 2 Aug 2006 18:37:40 +0000 (18:37 +0000)]
Removed some dead code and hopefully fixed the issue where the total list of tests was not being sent

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

18 years agoFinal polish on machine pass registries.
Jim Laskey [Wed, 2 Aug 2006 12:30:23 +0000 (12:30 +0000)]
Final polish on machine pass registries.

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

18 years agoBreaking out specialized classes.
Jim Laskey [Wed, 2 Aug 2006 12:27:50 +0000 (12:27 +0000)]
Breaking out specialized classes.

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

18 years agoUse of vector<bool> causes some horrendous compile time regression (2x)!
Evan Cheng [Wed, 2 Aug 2006 09:18:33 +0000 (09:18 +0000)]
Use of vector<bool> causes some horrendous compile time regression (2x)!
Looks like libstdc++ implementation does not scale very well. Switch back
to using directly managed arrays.

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

18 years agoUpdate the readme to remove duplicate information and clarify the loop
Nate Begeman [Wed, 2 Aug 2006 05:31:20 +0000 (05:31 +0000)]
Update the readme to remove duplicate information and clarify the loop
problem.

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

18 years agoDisable LSR at -fast
Nate Begeman [Wed, 2 Aug 2006 05:29:40 +0000 (05:29 +0000)]
Disable LSR at -fast

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

18 years agoAdd special check to avoid isLoop call. Simple, but doesn't seem to speed
Chris Lattner [Wed, 2 Aug 2006 00:16:47 +0000 (00:16 +0000)]
Add special check to avoid isLoop call.  Simple, but doesn't seem to speed
up lcssa much in practice.

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

18 years agoSpeed up Loop::isLCSSAForm by using a binary search and single-entry cache.
Chris Lattner [Wed, 2 Aug 2006 00:14:16 +0000 (00:14 +0000)]
Speed up Loop::isLCSSAForm by using a binary search and single-entry cache.

This reduces LCSSA pass time from 1.5s to 0.96s when run on eon in release+asserts mode.

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

18 years agoReplace the SSA update code in LCSSA with a bottom-up approach instead of a top
Chris Lattner [Wed, 2 Aug 2006 00:06:09 +0000 (00:06 +0000)]
Replace the SSA update code in LCSSA with a bottom-up approach instead of a top
down approach, inspired by discussions with Tanya.

This approach is significantly faster, because it does not need dominator
frontiers and it does not insert extraneous unused PHI nodes.  For example, on
252.eon, in a release-asserts build, this speeds up LCSSA (which is the slowest
pass in gccas) from 9.14s to 0.74s on my G5.  This code is also slightly smaller
and significantly simpler than the old code.

Amusingly, in a normal Release build (which includes the
"assert(L->isLCSSAForm());" assertion), asserting that the result of LCSSA
is in LCSSA form is actually slower than the LCSSA transformation pass
itself on 252.eon.  I will see if Loop::isLCSSAForm can be sped up next.

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

18 years agoFix the build on case-sensitive filesystems :(
Chris Lattner [Tue, 1 Aug 2006 22:34:35 +0000 (22:34 +0000)]
Fix the build on case-sensitive filesystems :(

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

18 years agoAdd dominates/properlyDominates queries to IDom.
Chris Lattner [Tue, 1 Aug 2006 22:24:47 +0000 (22:24 +0000)]
Add dominates/properlyDominates queries to IDom.

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

18 years agoNow that the ISel is available, it's possible to create a default instruction
Jim Laskey [Tue, 1 Aug 2006 19:14:14 +0000 (19:14 +0000)]
Now that the ISel is available, it's possible to create a default instruction
scheduler creator.

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

18 years agostart comments with #
Rafael Espindola [Tue, 1 Aug 2006 18:53:10 +0000 (18:53 +0000)]
start comments with #
move the constant pool to .text
correctly print loads of labels
mark R0, R1, R2 and R3 as caller save

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

18 years ago1. Change use of "Cache" to "Default".
Jim Laskey [Tue, 1 Aug 2006 18:29:48 +0000 (18:29 +0000)]
1. Change use of "Cache" to "Default".
2. Added argument to instruction scheduler creators so the creators can do
special things.
3. Repaired target hazard code.
4. Misc.

More to follow.

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

18 years agono need to check readability here
Chris Lattner [Tue, 1 Aug 2006 18:22:21 +0000 (18:22 +0000)]
no need to check readability here

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

18 years agoRemove some now-dead methods. Use getFileStatus instead.
Chris Lattner [Tue, 1 Aug 2006 18:16:02 +0000 (18:16 +0000)]
Remove some now-dead methods.  Use getFileStatus instead.

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

18 years agoNo need to check isWriteable here (which isn't sufficient anyway). Just attempt
Chris Lattner [Tue, 1 Aug 2006 18:12:29 +0000 (18:12 +0000)]
No need to check isWriteable here (which isn't sufficient anyway).  Just attempt
to do the operation and if it fails, oh well.

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

18 years agoUse Path::getFileStatus
Chris Lattner [Tue, 1 Aug 2006 18:09:46 +0000 (18:09 +0000)]
Use Path::getFileStatus

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

18 years agoUse Path::getFileStatus to get status-related info.
Chris Lattner [Tue, 1 Aug 2006 18:04:01 +0000 (18:04 +0000)]
Use Path::getFileStatus to get status-related info.

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

18 years agoUse getFileStatus instead of Path::isDirectory().
Chris Lattner [Tue, 1 Aug 2006 17:59:14 +0000 (17:59 +0000)]
Use getFileStatus instead of Path::isDirectory().

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

18 years agoelimiante some syscalls
Chris Lattner [Tue, 1 Aug 2006 17:51:09 +0000 (17:51 +0000)]
elimiante some syscalls

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

18 years agoUpdate my entry.
Reid Spencer [Tue, 1 Aug 2006 16:52:07 +0000 (16:52 +0000)]
Update my entry.

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

18 years agoUpdate Bil's entry
Chris Lattner [Tue, 1 Aug 2006 16:40:42 +0000 (16:40 +0000)]
Update Bil's entry

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

18 years agoForgot the added files for plugable machine passes.
Jim Laskey [Tue, 1 Aug 2006 16:31:08 +0000 (16:31 +0000)]
Forgot the added files for plugable machine passes.

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

18 years agoFix HTML 4.01 Strict errors.
Reid Spencer [Tue, 1 Aug 2006 16:23:54 +0000 (16:23 +0000)]
Fix HTML 4.01 Strict errors.

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

18 years agoIntroducing plugable register allocators and instruction schedulers.
Jim Laskey [Tue, 1 Aug 2006 14:21:23 +0000 (14:21 +0000)]
Introducing plugable register allocators and instruction schedulers.

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

18 years agoimplement LowerConstantPool and LowerGlobalAddress
Rafael Espindola [Tue, 1 Aug 2006 12:58:43 +0000 (12:58 +0000)]
implement LowerConstantPool and LowerGlobalAddress

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

18 years agoAdding to credibility.
Jim Laskey [Tue, 1 Aug 2006 09:01:40 +0000 (09:01 +0000)]
Adding to credibility.

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

18 years agoAdded AssignTopologicalOrder() to assign each node an unique id based on their topolo...
Evan Cheng [Tue, 1 Aug 2006 08:20:41 +0000 (08:20 +0000)]
Added AssignTopologicalOrder() to assign each node an unique id based on their topological order.

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

18 years agoFactor topological order code to SelectionDAG. Clean up.
Evan Cheng [Tue, 1 Aug 2006 08:17:22 +0000 (08:17 +0000)]
Factor topological order code to SelectionDAG. Clean up.

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

18 years agoFix a problem with use of undefined variables. Print an error message if
Reid Spencer [Tue, 1 Aug 2006 08:09:03 +0000 (08:09 +0000)]
Fix a problem with use of undefined variables. Print an error message if
the first argument is omitted. Attempt to use a standard/default font.
Make the generation of the DOT file readable.

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

18 years agoMinor fix due to recent API changes
Anton Korobeynikov [Tue, 1 Aug 2006 08:07:22 +0000 (08:07 +0000)]
Minor fix due to recent API changes

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

18 years agoUpdate to include new options.
Reid Spencer [Tue, 1 Aug 2006 07:38:39 +0000 (07:38 +0000)]
Update to include new options.

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

18 years agoUpdate library dependency information, describe new libraries, talk a
Reid Spencer [Tue, 1 Aug 2006 07:32:01 +0000 (07:32 +0000)]
Update library dependency information, describe new libraries, talk a
little about llvm-config as a source for help with library dependencies.

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

18 years agoAdded myself to credits.
Anton Korobeynikov [Tue, 1 Aug 2006 07:06:00 +0000 (07:06 +0000)]
Added myself to credits.

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

18 years agoPass N by reference to select functions to prevent gcc from allocating more stack.
Evan Cheng [Tue, 1 Aug 2006 01:07:48 +0000 (01:07 +0000)]
Pass N by reference to select functions to prevent gcc from allocating more stack.

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

18 years agoPIC jump table entries are always 32-bit even in 64-bit mode.
Evan Cheng [Tue, 1 Aug 2006 01:03:13 +0000 (01:03 +0000)]
PIC jump table entries are always 32-bit even in 64-bit mode.

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

18 years agoIf dejagnu is not found, tell the user instead of bombing out with an
Chris Lattner [Tue, 1 Aug 2006 00:07:58 +0000 (00:07 +0000)]
If dejagnu is not found, tell the user instead of bombing out with an
obscure error.

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

18 years agoFix PR850 and CodeGen/X86/2006-07-31-SingleRegClass.ll.
Chris Lattner [Mon, 31 Jul 2006 23:26:50 +0000 (23:26 +0000)]
Fix PR850 and CodeGen/X86/2006-07-31-SingleRegClass.ll.

The CFE refers to all single-register constraints (like "A") by their 16-bit
name, even though the 8 or 32-bit version of the register may be needed.
The X86 backend should realize what is going on and redecode the name back
to its proper form.

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

18 years agoNew testcase for PR850.
Chris Lattner [Mon, 31 Jul 2006 23:25:17 +0000 (23:25 +0000)]
New testcase for PR850.

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

18 years agoChanged to a new directory for opensource checkout.
Jim Laskey [Mon, 31 Jul 2006 21:37:55 +0000 (21:37 +0000)]
Changed to a new directory for opensource checkout.

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

18 years agohandle GlobalValue::InternalLinkage in doFinalization
Rafael Espindola [Mon, 31 Jul 2006 20:38:13 +0000 (20:38 +0000)]
handle GlobalValue::InternalLinkage in doFinalization

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

18 years agoFix a couple typos.
Jim Laskey [Mon, 31 Jul 2006 20:18:49 +0000 (20:18 +0000)]
Fix a couple typos.

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

18 years agoRemove an unneeded match condition: the type check for root node has been
Evan Cheng [Mon, 31 Jul 2006 19:01:58 +0000 (19:01 +0000)]
Remove an unneeded match condition: the type check for root node has been
moved to outside the actual select routine.

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

18 years agoRemove a duplicate pattern.
Evan Cheng [Mon, 31 Jul 2006 18:43:10 +0000 (18:43 +0000)]
Remove a duplicate pattern.

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

18 years agoRemove a duplicate pattern/
Evan Cheng [Mon, 31 Jul 2006 18:42:49 +0000 (18:42 +0000)]
Remove a duplicate pattern/

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

18 years agotestcase for PR854.
Chris Lattner [Mon, 31 Jul 2006 17:31:48 +0000 (17:31 +0000)]
testcase for PR854.

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

18 years agoTestcase for GCC bug28417, ensuring that we don't start getting it wrong
Chris Lattner [Sun, 30 Jul 2006 17:46:37 +0000 (17:46 +0000)]
Testcase for GCC bug28417, ensuring that we don't start getting it wrong
somehow.

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

18 years agofix externals
Andrew Lenharth [Sat, 29 Jul 2006 04:27:34 +0000 (04:27 +0000)]
fix externals

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

18 years agoInstead of blindly looking past constantexpr casts, actually constant
Chris Lattner [Sat, 29 Jul 2006 01:57:19 +0000 (01:57 +0000)]
Instead of blindly looking past constantexpr casts, actually constant
fold them.  This correctly truncates constants that are too large for the
destination slot and makes the code easier to understand.  This fixes PR853
and Regression/CodeGen/X86/2006-07-28-AsmPrint-Long-As-Pointer.ll

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

18 years agoNew testcase for PR853
Chris Lattner [Sat, 29 Jul 2006 01:50:53 +0000 (01:50 +0000)]
New testcase for PR853

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

18 years agoRemove a redundant syscall.
Chris Lattner [Fri, 28 Jul 2006 22:52:11 +0000 (22:52 +0000)]
Remove a redundant syscall.

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

18 years agoSplit each select function for a particular opcode into multiple ones. One
Evan Cheng [Fri, 28 Jul 2006 22:51:01 +0000 (22:51 +0000)]
Split each select function for a particular opcode into multiple ones. One
per possible ValueType of the node. e.g. Select_add is split into Select_add_i8,
Select_add_i16, etc.

For opcodes which do not produce a non-chain result, it is split on the
ValueType of its first non-chain operand. e.g. Select_store.

On X86 / Mac OS X, Select_store used to be the largest function. It had a stack
frame size of 8.5k. Now the largest one is Store_i32 with a frame size of 3.1k.

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

18 years agoFix the --with-extra-options to use the correct variable.
Reid Spencer [Fri, 28 Jul 2006 22:50:07 +0000 (22:50 +0000)]
Fix the --with-extra-options to use the correct variable.

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

18 years agoModify setStatusInfoOnDisk to not throw an exception.
Chris Lattner [Fri, 28 Jul 2006 22:36:17 +0000 (22:36 +0000)]
Modify setStatusInfoOnDisk to not throw an exception.

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

18 years agoUpdate win32 for Path::getStatusInfo
Chris Lattner [Fri, 28 Jul 2006 22:32:09 +0000 (22:32 +0000)]
Update win32 for Path::getStatusInfo

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

18 years agoModify Path::eraseFromDisk to not throw an exception.
Chris Lattner [Fri, 28 Jul 2006 22:29:50 +0000 (22:29 +0000)]
Modify Path::eraseFromDisk to not throw an exception.

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

18 years agoFinegrainify namespacification, minor cleanups
Chris Lattner [Fri, 28 Jul 2006 22:21:01 +0000 (22:21 +0000)]
Finegrainify namespacification, minor cleanups

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

18 years agoUpdate comments.
Chris Lattner [Fri, 28 Jul 2006 22:09:37 +0000 (22:09 +0000)]
Update comments.

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

18 years agoWriteBytecodeToFile actually can't throw.
Chris Lattner [Fri, 28 Jul 2006 22:08:23 +0000 (22:08 +0000)]
WriteBytecodeToFile actually can't throw.

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

18 years agoformatting cleanups
Chris Lattner [Fri, 28 Jul 2006 22:07:54 +0000 (22:07 +0000)]
formatting cleanups

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

18 years agoChange Path::getStatusInfo to return a boolean and error string on an error
Chris Lattner [Fri, 28 Jul 2006 22:03:44 +0000 (22:03 +0000)]
Change Path::getStatusInfo to return a boolean and error string on an error
instead of throwing an exception.  This reduces the amount of code that is
exposed to exceptions (e.g. FileUtilities), though it is clearly only one step
along the way.

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