oota-llvm.git
20 years agoUpdated configure script so that it does not configure llvm/project
John Criswell [Fri, 12 Dec 2003 20:15:23 +0000 (20:15 +0000)]
Updated configure script so that it does not configure llvm/project
directories that do not contain a configure script.

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

20 years agoDon't configure directories that don't have a configure script (i.e Stacker).
John Criswell [Fri, 12 Dec 2003 20:09:33 +0000 (20:09 +0000)]
Don't configure directories that don't have a configure script (i.e Stacker).

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

20 years agoModified cast so that it converts the int to a long before casting to
John Criswell [Fri, 12 Dec 2003 19:57:48 +0000 (19:57 +0000)]
Modified cast so that it converts the int to a long before casting to
a pointer.  This evades a warning emitted by GCC when we cast from
unsigned int (32 bit) to void * (64 bit) on SparcV9.

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

20 years agoFixed some minor typos.
John Criswell [Fri, 12 Dec 2003 19:54:20 +0000 (19:54 +0000)]
Fixed some minor typos.
Moved the new gccld feature to be in the list of enhancements.
Re-worded information on SPEC 2000 and Sparc support to try to make them
more accurate and precise.

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

20 years agoDynamically get the right-sized member of a GenericValue to hold a size_t, and
Brian Gaeke [Fri, 12 Dec 2003 15:38:06 +0000 (15:38 +0000)]
Dynamically get the right-sized member of a GenericValue to hold a size_t, and
use it to return the result of strlen.

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

20 years agoPR177 is no longer among the open
Chris Lattner [Fri, 12 Dec 2003 07:26:25 +0000 (07:26 +0000)]
PR177 is no longer among the open

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

20 years agoImplement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the
Chris Lattner [Fri, 12 Dec 2003 07:12:02 +0000 (07:12 +0000)]
Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the
request on to the TargetMachine if it supports the getJITStubForFunction method

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

20 years agoImplement the TargetMachine::getJITStubForFunction method for X86, finegrainify
Chris Lattner [Fri, 12 Dec 2003 07:11:18 +0000 (07:11 +0000)]
Implement the TargetMachine::getJITStubForFunction method for X86, finegrainify
namespacification.

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

20 years agoAdd new getJITStubForFunction method, which may optionally be implemented by
Chris Lattner [Fri, 12 Dec 2003 07:10:32 +0000 (07:10 +0000)]
Add new getJITStubForFunction method, which may optionally be implemented by
targets for better performance.

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

20 years agoDoxygenify comments, remove extraneous #include
Chris Lattner [Fri, 12 Dec 2003 06:31:42 +0000 (06:31 +0000)]
Doxygenify comments, remove extraneous #include

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

20 years agoNote about bytecode format
Chris Lattner [Fri, 12 Dec 2003 05:52:39 +0000 (05:52 +0000)]
Note about bytecode format

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

20 years agoSince we are using a gep_type_iterator, we apparently must get the type
Brian Gaeke [Fri, 12 Dec 2003 05:13:05 +0000 (05:13 +0000)]
Since we are using a gep_type_iterator, we apparently must get the type
index by using I.getOperand() here. This was failing an assertion on
basically every struct access.

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

20 years agoUse uintptr_t for pointer values in the ExecutionEngine.
Brian Gaeke [Fri, 12 Dec 2003 05:06:09 +0000 (05:06 +0000)]
Use uintptr_t for pointer values in the ExecutionEngine.

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

20 years agoFix typo in comment
Brian Gaeke [Fri, 12 Dec 2003 04:58:13 +0000 (04:58 +0000)]
Fix typo in comment

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

20 years agoThese aren't bugs, don't phrase them like they are.
Chris Lattner [Fri, 12 Dec 2003 04:56:02 +0000 (04:56 +0000)]
These aren't bugs, don't phrase them like they are.

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

20 years agoI'm a spaz
Chris Lattner [Fri, 12 Dec 2003 04:51:00 +0000 (04:51 +0000)]
I'm a spaz

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

20 years agoAdd note about Stacker, duh!
Chris Lattner [Fri, 12 Dec 2003 04:45:09 +0000 (04:45 +0000)]
Add note about Stacker, duh!

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

20 years agoBreak lines and add space after ':' to be consistent in layout.
Misha Brukman [Fri, 12 Dec 2003 04:37:31 +0000 (04:37 +0000)]
Break lines and add space after ':' to be consistent in layout.

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

20 years agoMore updates for the release
Chris Lattner [Fri, 12 Dec 2003 04:25:33 +0000 (04:25 +0000)]
More updates for the release

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

20 years agoThrow better error messages, by calling strerror(errno) when we
Brian Gaeke [Fri, 12 Dec 2003 00:47:44 +0000 (00:47 +0000)]
Throw better error messages, by calling strerror(errno) when we
get an error inside the bytecode reader.

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

20 years agoAdd an assertion to make sure we are at least getting argv[0] right.
Brian Gaeke [Fri, 12 Dec 2003 00:47:19 +0000 (00:47 +0000)]
Add an assertion to make sure we are at least getting argv[0] right.
Use a clearer error message when we fail to load a program.

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

20 years agoUpdate release notes for PR86 and C++ support
Chris Lattner [Thu, 11 Dec 2003 23:31:21 +0000 (23:31 +0000)]
Update release notes for PR86 and C++ support

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

20 years agoFactor out some duplicated code, implement the rest of the cases in
Chris Lattner [Thu, 11 Dec 2003 23:20:16 +0000 (23:20 +0000)]
Factor out some duplicated code, implement the rest of the cases in
BasicAA/2003-12-11-ConstExprGEP.ll

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

20 years agoRename variable to avoid confusing it with the global G
Chris Lattner [Thu, 11 Dec 2003 22:49:32 +0000 (22:49 +0000)]
Rename variable to avoid confusing it with the global G

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

20 years agoFix PR86. This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's
Chris Lattner [Thu, 11 Dec 2003 22:44:13 +0000 (22:44 +0000)]
Fix PR86.  This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's

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

20 years agoFix LICM/2003-12-11-SinkingToPHI.ll, and quite possibly all of the other known proble...
Chris Lattner [Thu, 11 Dec 2003 22:23:32 +0000 (22:23 +0000)]
Fix LICM/2003-12-11-SinkingToPHI.ll, and quite possibly all of the other known problems in the universe.

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

20 years agoNew testcase that LICM is breaking crafty on
Chris Lattner [Thu, 11 Dec 2003 22:15:11 +0000 (22:15 +0000)]
New testcase that LICM is breaking crafty on

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

20 years agoFinegrainify namespacification
Chris Lattner [Thu, 11 Dec 2003 21:48:18 +0000 (21:48 +0000)]
Finegrainify namespacification
Add new -print-cfg-only pass

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

20 years agoverifyFunction depends on dominator info, which levelraise does not declare
Chris Lattner [Thu, 11 Dec 2003 21:47:37 +0000 (21:47 +0000)]
verifyFunction depends on dominator info, which levelraise does not declare
that it needs.  This is pretty scary code!  This fixes

Regression.Transforms.LevelRaise.2002-07-16-SourceAndDestCrash
Regression.Transforms.LevelRaise.2002-07-31-AssertionFailure

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

20 years agoFix test that was failing because we were optimizing the program better than expected :)
Chris Lattner [Thu, 11 Dec 2003 21:06:43 +0000 (21:06 +0000)]
Fix test that was failing because we were optimizing the program better than expected :)

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

20 years agoNew testcase for PR86
Chris Lattner [Thu, 11 Dec 2003 19:16:30 +0000 (19:16 +0000)]
New testcase for PR86

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

20 years agoRun tailcall elimination in a more logical place
Chris Lattner [Thu, 11 Dec 2003 17:50:32 +0000 (17:50 +0000)]
Run tailcall elimination in a more logical place

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

20 years agoFix a glaring bug
Chris Lattner [Thu, 11 Dec 2003 06:06:28 +0000 (06:06 +0000)]
Fix a glaring bug

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

20 years agoRealize the gep P, <zeros> must aliases P.
Chris Lattner [Thu, 11 Dec 2003 06:02:00 +0000 (06:02 +0000)]
Realize the gep P, <zeros> must aliases P.
This is a partial fix for PR 86

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

20 years agoWith Brian's change to AA.h we can now clean out this uglyness
Chris Lattner [Thu, 11 Dec 2003 05:44:59 +0000 (05:44 +0000)]
With Brian's change to AA.h we can now clean out this uglyness

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

20 years agoIncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
Brian Gaeke [Thu, 11 Dec 2003 05:05:56 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
is included.

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

20 years agoIncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
Brian Gaeke [Thu, 11 Dec 2003 05:05:02 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included.

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

20 years agoSeparate out target for cleaning up qmtest garbage.
Brian Gaeke [Thu, 11 Dec 2003 04:48:38 +0000 (04:48 +0000)]
Separate out target for cleaning up qmtest garbage.

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

20 years agoAdd more fixed bugs. Keep llvm core section sorted by pr#. (Is that ok?)
Brian Gaeke [Thu, 11 Dec 2003 04:40:58 +0000 (04:40 +0000)]
Add more fixed bugs. Keep llvm core section sorted by pr#. (Is that ok?)

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

20 years agoStop laughing Misha
Chris Lattner [Thu, 11 Dec 2003 00:58:34 +0000 (00:58 +0000)]
Stop laughing Misha

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

20 years agoIn getObjectType(), doxygenify comment, and take a pointer to the
Brian Gaeke [Thu, 11 Dec 2003 00:38:04 +0000 (00:38 +0000)]
In getObjectType(), doxygenify comment, and take a pointer to the
beginning of the archive member data as an argument.

Get rid of ParseLongFilenameSection(), which is dead.

In ReadArchiveBuffer(), implement support for 4.4BSD/MacOSX long filenames.
This is kind of invasive, because they prepend the long filename to the archive
member data, and then lie about the size. So we have to keep track of the real
size.

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

20 years agoTurn off "attribute weak" to pacify Mac OS X's system compiler, which prints a
Brian Gaeke [Thu, 11 Dec 2003 00:24:36 +0000 (00:24 +0000)]
Turn off "attribute weak" to pacify Mac OS X's system compiler, which prints a
warning whenever it sees it.

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

20 years agoFix typo in comment. Add prototype for getConstantExprValue().
Brian Gaeke [Thu, 11 Dec 2003 00:23:28 +0000 (00:23 +0000)]
Fix typo in comment.  Add prototype for getConstantExprValue().

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

20 years agoAdd support for --debug-only=interpreter, to print out instrs before
Brian Gaeke [Thu, 11 Dec 2003 00:22:59 +0000 (00:22 +0000)]
Add support for --debug-only=interpreter, to print out instrs before
interpreting them.

Move support for getting the value of a ConstantExpr into
getConstantExprValue(), and add support for the rest of the different
kinds of ConstantExprs.  (I don't think I like ConstantExprs!)
This requires separate procedures executeShlInst() and executeShrInst().

Reduce the number of references to TheEE.

Get rid of an old comment mentioning annotations.

Fix exitCalled(), which was crashing the Interpreter. This was a
leftover from the return-value code refactoring.

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

20 years agoThis appears to fix Bug 172 and does not break any other feature tests or
John Criswell [Wed, 10 Dec 2003 22:51:41 +0000 (22:51 +0000)]
This appears to fix Bug 172 and does not break any other feature tests or
regression tests.

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

20 years agoFix bug: LICM/sink_multiple_exits.ll
Chris Lattner [Wed, 10 Dec 2003 22:35:56 +0000 (22:35 +0000)]
Fix bug: LICM/sink_multiple_exits.ll

Thanks for pointing this out John  :)

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

20 years agoDon't allow dead instructions to stop sinking early.
Chris Lattner [Wed, 10 Dec 2003 20:43:29 +0000 (20:43 +0000)]
Don't allow dead instructions to stop sinking early.

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

20 years agoFix bug: IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx
Chris Lattner [Wed, 10 Dec 2003 20:43:04 +0000 (20:43 +0000)]
Fix bug: IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx

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

20 years agoA new testcase, reduced by bugpoint
Chris Lattner [Wed, 10 Dec 2003 20:39:53 +0000 (20:39 +0000)]
A new testcase, reduced by bugpoint

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 20:22:42 +0000 (20:22 +0000)]
Finegrainify namespacification
Fix bug: LowerInvoke/2003-12-10-Crash.llx

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

20 years agonew testcase
Chris Lattner [Wed, 10 Dec 2003 20:18:09 +0000 (20:18 +0000)]
new testcase

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

20 years agoFixed a comma error.
John Criswell [Wed, 10 Dec 2003 20:04:13 +0000 (20:04 +0000)]
Fixed a comma error.
Added the --disable-threads option to GCC configure (to avoid pthread errors
when building code with LLVM).

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

20 years agoSupport 'make install' for LLVM include files.
Brian Gaeke [Wed, 10 Dec 2003 18:41:20 +0000 (18:41 +0000)]
Support 'make install' for LLVM include files.

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

20 years agoUpon Chris's suggestion, moved the #ifdef's to the generated C code.
John Criswell [Wed, 10 Dec 2003 18:17:57 +0000 (18:17 +0000)]
Upon Chris's suggestion, moved the #ifdef's to the generated C code.
This makes LLVM and the generated C code more portable.

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 18:06:47 +0000 (18:06 +0000)]
Finegrainify namespacification
Reorder #includes
Implement: IndVarsSimplify/2003-12-10-IndVarDeadCode.ll

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

20 years agoFixed the CBE on Solaris/Sparc. We need to define the return value of
John Criswell [Wed, 10 Dec 2003 18:06:34 +0000 (18:06 +0000)]
Fixed the CBE on Solaris/Sparc.  We need to define the return value of
the write() system call because it returns 64 bits on Solaris 64 bit,
and an implicit return value of int says it returns 32 bits.
Admittedly, this is a bit of a hack.

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

20 years agoNew testcase
Chris Lattner [Wed, 10 Dec 2003 17:57:38 +0000 (17:57 +0000)]
New testcase

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 17:20:35 +0000 (17:20 +0000)]
Finegrainify namespacification
Fix bug: LoopSimplify/2003-12-10-ExitBlocksProblem.ll

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

20 years agoNew testcase which caused a bunch of tests to break last night with more
Chris Lattner [Wed, 10 Dec 2003 17:09:35 +0000 (17:09 +0000)]
New testcase which caused a bunch of tests to break last night with more
aggressive LICM

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

20 years agoSimplify code
Chris Lattner [Wed, 10 Dec 2003 16:58:24 +0000 (16:58 +0000)]
Simplify code

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

20 years agoAvoid performing two identical lookups when one will suffice
Chris Lattner [Wed, 10 Dec 2003 16:57:24 +0000 (16:57 +0000)]
Avoid performing two identical lookups when one will suffice

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

20 years agoMake LICM itself a bit more efficient, and make the generated code more efficient...
Chris Lattner [Wed, 10 Dec 2003 15:56:24 +0000 (15:56 +0000)]
Make LICM itself a bit more efficient, and make the generated code more efficient too: don't insert a store in every exit block, because a particular block may be exited to more than once by a loop

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

20 years agoRemoved the pthread_once() function because it doesn't actually do
John Criswell [Wed, 10 Dec 2003 15:43:07 +0000 (15:43 +0000)]
Removed the pthread_once() function because it doesn't actually do
what it's supposed to do.
Just leave this library as a dummy library for now until we have time to
port a real pthread library (or get glibc working).

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 15:34:03 +0000 (15:34 +0000)]
Finegrainify namespacification

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 15:33:59 +0000 (15:33 +0000)]
Finegrainify namespacification
Provide a context module to WriteAsOperand

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

20 years agoAdded the --host= option to the Sparc configuration directions.
John Criswell [Wed, 10 Dec 2003 15:27:29 +0000 (15:27 +0000)]
Added the --host= option to the Sparc configuration directions.

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

20 years agoDummy implementation of the pthread library.
John Criswell [Wed, 10 Dec 2003 14:46:36 +0000 (14:46 +0000)]
Dummy implementation of the pthread library.
This is needed since libstdc++ uses pthread_once().

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

20 years agoMake 'opt -o -' work correctly instead of creating a file named './-'
Chris Lattner [Wed, 10 Dec 2003 14:41:33 +0000 (14:41 +0000)]
Make 'opt -o -' work correctly instead of creating a file named './-'

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

20 years agoImplement instruction sinking out of loops. This still can do a little bit
Chris Lattner [Wed, 10 Dec 2003 06:41:05 +0000 (06:41 +0000)]
Implement instruction sinking out of loops.  This still can do a little bit
better job, but this is the majority of the work.  This implements
LICM/sink*.ll

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

20 years agonew testcase, checking to ensure we handle yet-another spiffy case correctly
Chris Lattner [Wed, 10 Dec 2003 05:42:23 +0000 (05:42 +0000)]
new testcase, checking to ensure we handle yet-another spiffy case correctly

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

20 years agoDon't assume that system headers define 'uint' or 'ulong' as types.
Brian Gaeke [Wed, 10 Dec 2003 05:06:38 +0000 (05:06 +0000)]
Don't assume that system headers define 'uint' or 'ulong' as types.

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

20 years agoFix apparent copy-and-paste-o.
Brian Gaeke [Wed, 10 Dec 2003 04:33:07 +0000 (04:33 +0000)]
Fix apparent copy-and-paste-o.
Get rid of %debug - Mac OS X bison doesn't have it.  sigh.

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

20 years agoAdd support for installing tool executables.
Brian Gaeke [Wed, 10 Dec 2003 00:26:28 +0000 (00:26 +0000)]
Add support for installing tool executables.

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

20 years agoAdd installation directories and commands, standardly provided by configure.
Brian Gaeke [Wed, 10 Dec 2003 00:25:32 +0000 (00:25 +0000)]
Add installation directories and commands, standardly provided by configure.

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

20 years agoYet another hard testcase
Chris Lattner [Tue, 9 Dec 2003 23:29:25 +0000 (23:29 +0000)]
Yet another hard testcase

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

20 years agoDo not insert one entry PHI nodes in split exit blocks!
Chris Lattner [Tue, 9 Dec 2003 23:12:55 +0000 (23:12 +0000)]
Do not insert one entry PHI nodes in split exit blocks!

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

20 years agoCheck in the llvm-native-gcc script, which I use in the process of
Brian Gaeke [Tue, 9 Dec 2003 22:23:24 +0000 (22:23 +0000)]
Check in the llvm-native-gcc script, which I use in the process of
debugging front-end miscompilations.

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

20 years agoAdd a new testcase which breaks the sinker because the loop canonnicalization
Chris Lattner [Tue, 9 Dec 2003 22:05:08 +0000 (22:05 +0000)]
Add a new testcase which breaks the sinker because the loop canonnicalization
pass does not do a canonnicalization that the sinker wants.

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

20 years agoFix buggy test
Chris Lattner [Tue, 9 Dec 2003 21:45:23 +0000 (21:45 +0000)]
Fix buggy test

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

20 years agoNew testcase for sinking operations from loops with multiple exits
Chris Lattner [Tue, 9 Dec 2003 21:40:36 +0000 (21:40 +0000)]
New testcase for sinking operations from loops with multiple exits

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

20 years agoMake the test a bit harder so that we test to ensure that _both_ instructions
Chris Lattner [Tue, 9 Dec 2003 20:50:20 +0000 (20:50 +0000)]
Make the test a bit harder so that we test to ensure that _both_ instructions
are sunk

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

20 years agoRefactor code a little bit, eliminating the gratuitous InstVisitor, which
Chris Lattner [Tue, 9 Dec 2003 19:32:44 +0000 (19:32 +0000)]
Refactor code a little bit, eliminating the gratuitous InstVisitor, which
should make subsequent changes simpler.  This also allows us to hoist vaarg
and vanext instructions

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

20 years agoFine grainify namespacification
Chris Lattner [Tue, 9 Dec 2003 17:18:00 +0000 (17:18 +0000)]
Fine grainify namespacification
Code cleanups
Make LICM::SafeToHoist marginally more efficient

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

20 years agoNew testcases for LICM improvement: code sinking.
Chris Lattner [Tue, 9 Dec 2003 16:56:51 +0000 (16:56 +0000)]
New testcases for LICM improvement: code sinking.

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

20 years agoImprove portability with Mac OS/X
Chris Lattner [Tue, 9 Dec 2003 16:49:12 +0000 (16:49 +0000)]
Improve portability with Mac OS/X

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

20 years agoImprove testcase portability on OS/X
Chris Lattner [Tue, 9 Dec 2003 16:48:24 +0000 (16:48 +0000)]
Improve testcase portability on OS/X

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

20 years agoNew testcase that is not actually handled yet, but should be in the future.
Chris Lattner [Tue, 9 Dec 2003 16:26:42 +0000 (16:26 +0000)]
New testcase that is not actually handled yet, but should be in the future.
This is here to remind me to get back to this after a while.

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

20 years agoAdded the -h option for compatibility with other linkers.
John Criswell [Tue, 9 Dec 2003 15:39:11 +0000 (15:39 +0000)]
Added the -h option for compatibility with other linkers.

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

20 years agoWhoops, forgot to check this in. :)
Chris Lattner [Mon, 8 Dec 2003 23:41:09 +0000 (23:41 +0000)]
Whoops, forgot to check this in.  :)

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

20 years agoImplement: TailCallElim/accum_recursion_constant_arg.ll
Chris Lattner [Mon, 8 Dec 2003 23:37:35 +0000 (23:37 +0000)]
Implement: TailCallElim/accum_recursion_constant_arg.ll

Also make sure to clean up any PHI nodes that are inserted which are pointless.

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

20 years agoImplement: test/Regression/Transforms/TailCallElim/accum_recursion.ll
Chris Lattner [Mon, 8 Dec 2003 23:19:26 +0000 (23:19 +0000)]
Implement: test/Regression/Transforms/TailCallElim/accum_recursion.ll

We now insert accumulator variables as necessary to eliminate tail recursion
more aggressively.  This is still fairly limited, but allows us to transform
fib/factorial, and other functions into nice happy loops.  :)

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

20 years agoNew testcase for automatic insertion of accumulator variables to eliminate
Chris Lattner [Mon, 8 Dec 2003 23:16:25 +0000 (23:16 +0000)]
New testcase for automatic insertion of accumulator variables to eliminate
tail recursion

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

20 years agoAdd a missing semi colon, which breaks bison 1.5
Chris Lattner [Mon, 8 Dec 2003 20:15:33 +0000 (20:15 +0000)]
Add a missing semi colon, which breaks bison 1.5

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

20 years agoSimplify makefiles by just explicitly listing directories
Chris Lattner [Mon, 8 Dec 2003 20:12:46 +0000 (20:12 +0000)]
Simplify makefiles by just explicitly listing directories

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

20 years agoUpdated build instructions for Sparc.
John Criswell [Mon, 8 Dec 2003 19:59:14 +0000 (19:59 +0000)]
Updated build instructions for Sparc.

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

20 years agoFixed the dynamic generation of the list of subdirectories to compile.
John Criswell [Mon, 8 Dec 2003 17:52:32 +0000 (17:52 +0000)]
Fixed the dynamic generation of the list of subdirectories to compile.

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

20 years agoimplement method
Chris Lattner [Mon, 8 Dec 2003 08:23:04 +0000 (08:23 +0000)]
implement method

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

20 years agoUse the new method, though noone currently implements it any better than before
Chris Lattner [Mon, 8 Dec 2003 08:22:48 +0000 (08:22 +0000)]
Use the new method, though noone currently implements it any better than before

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

20 years agoadd two new virtual functions:
Chris Lattner [Mon, 8 Dec 2003 08:22:01 +0000 (08:22 +0000)]
add two new virtual functions:
  The first returns a function pointer or a stub if it's not already generated
  The second exposes what was previously JIT specific state to general clients

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

20 years agoFinegrainify namespacification
Chris Lattner [Mon, 8 Dec 2003 08:06:28 +0000 (08:06 +0000)]
Finegrainify namespacification

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