oota-llvm.git
19 years agoC++ is not a functional programming language.
Chris Lattner [Tue, 22 Feb 2005 23:13:58 +0000 (23:13 +0000)]
C++ is not a functional programming language.

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

19 years agodynamic stack allocas
Andrew Lenharth [Tue, 22 Feb 2005 21:59:48 +0000 (21:59 +0000)]
dynamic stack allocas

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

19 years agoFix a bug in the 'store fpimm, ptr' -> 'store intimm, ptr' handling code.
Chris Lattner [Tue, 22 Feb 2005 07:23:39 +0000 (07:23 +0000)]
Fix a bug in the 'store fpimm, ptr' -> 'store intimm, ptr' handling code.
Changing 'op' here caused us to not enter the store into a map, causing
reemission of the code!!  In practice, a simple loop like this:

no_exit:                ; preds = %no_exit, %entry
        %indvar = phi uint [ %indvar.next, %no_exit ], [ 0, %entry ]            ; <uint> [#uses=3]
        %tmp.4 = getelementptr "complex long double"* %P, uint %indvar, uint 0          ; <double*> [#uses=1]
        store double 0.000000e+00, double* %tmp.4
        %indvar.next = add uint %indvar, 1              ; <uint> [#uses=2]
        %exitcond = seteq uint %indvar.next, %N         ; <bool> [#uses=1]
        br bool %exitcond, label %return, label %no_exit

was being code gen'd to:

.LBBtest_1:     # no_exit
        movl %edx, %esi
        shll $4, %esi
        movl $0, 4(%eax,%esi)
        movl $0, (%eax,%esi)
        incl %edx
        movl $0, (%eax,%esi)
        movl $0, 4(%eax,%esi)
        cmpl %ecx, %edx
        jne .LBBtest_1  # no_exit

Note that we are doing 4 32-bit stores instead of 2.  Now we generate:

.LBBtest_1:     # no_exit
        movl %edx, %esi
        incl %esi
        shll $4, %edx
        movl $0, (%eax,%edx)
        movl $0, 4(%eax,%edx)
        cmpl %ecx, %esi
        movl %esi, %edx
        jne .LBBtest_1  # no_exit

This is much happier, though it would be even better if the increment of ESI
was scheduled after the compare :-/

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

19 years agono longer build as a shared library
Andrew Lenharth [Tue, 22 Feb 2005 04:58:26 +0000 (04:58 +0000)]
no longer build as a shared library

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

19 years agoadd another plausible reason
Chris Lattner [Mon, 21 Feb 2005 16:35:31 +0000 (16:35 +0000)]
add another plausible reason

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

19 years agonew testcase for PR523
Chris Lattner [Mon, 21 Feb 2005 04:03:32 +0000 (04:03 +0000)]
new testcase for PR523

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

19 years agoBug fixed.
Chris Lattner [Sun, 20 Feb 2005 23:31:49 +0000 (23:31 +0000)]
Bug fixed.

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

19 years agoNew testcase for PR522.
Chris Lattner [Sun, 20 Feb 2005 23:29:23 +0000 (23:29 +0000)]
New testcase for PR522.

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

19 years agoFix problems running the HowToUseJIT on powerpc, and probably problems with
Chris Lattner [Sun, 20 Feb 2005 18:43:35 +0000 (18:43 +0000)]
Fix problems running the HowToUseJIT on powerpc, and probably problems with
ANY program that does not have all functions internalized.

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

19 years agoFix silly mistake.
Jeff Cohen [Sun, 20 Feb 2005 02:48:51 +0000 (02:48 +0000)]
Fix silly mistake.

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

19 years agoImplement standard I/O redirection in ExecuteAndWait().
Jeff Cohen [Sun, 20 Feb 2005 02:43:04 +0000 (02:43 +0000)]
Implement standard I/O redirection in ExecuteAndWait().

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

19 years agoAdd support for ".so" files compiled with LLVM which contain LLVM bytecode.
Chris Lattner [Sat, 19 Feb 2005 18:30:29 +0000 (18:30 +0000)]
Add support for ".so" files compiled with LLVM which contain LLVM bytecode.

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

19 years agoEliminate silly warnings from the linker of the form:
Chris Lattner [Sat, 19 Feb 2005 17:52:37 +0000 (17:52 +0000)]
Eliminate silly warnings from the linker of the form:

WARNING: Type conflict between types named 'union.._604.'.
    Src=' %union.._604.'.
   Dest=' %union.._604.'

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

19 years agotypeo
Chris Lattner [Sat, 19 Feb 2005 17:17:32 +0000 (17:17 +0000)]
typeo

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

19 years agoNew entry.
Chris Lattner [Sat, 19 Feb 2005 17:14:24 +0000 (17:14 +0000)]
New entry.

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

19 years agoBug fixed.
Chris Lattner [Sat, 19 Feb 2005 17:13:20 +0000 (17:13 +0000)]
Bug fixed.

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

19 years agoTestcase for PR520
Chris Lattner [Sat, 19 Feb 2005 17:07:48 +0000 (17:07 +0000)]
Testcase for PR520

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

19 years agoAdjust this test to pass after recent CFE changes. We now generate:
Chris Lattner [Sat, 19 Feb 2005 07:31:54 +0000 (07:31 +0000)]
Adjust this test to pass after recent CFE changes.  We now generate:

%XX = global int cast (int* getelementptr ([2 x int]* getelementptr (%struct.S* null, int 0, uint 0), int 0, int 1) to int)

which is the literal translation of the testcase :)

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

19 years agoBug fixed.
Chris Lattner [Sat, 19 Feb 2005 07:29:25 +0000 (07:29 +0000)]
Bug fixed.

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

19 years agoMake this testcase harder, to test the read case as well.
Chris Lattner [Sat, 19 Feb 2005 06:56:46 +0000 (06:56 +0000)]
Make this testcase harder, to test the read case as well.

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

19 years agonew testcase.
Chris Lattner [Sat, 19 Feb 2005 06:54:44 +0000 (06:54 +0000)]
new testcase.

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

19 years agoChange __MINGW to __MINGW32__. Patch submitted by Henrik Bach.
Jeff Cohen [Sat, 19 Feb 2005 03:01:13 +0000 (03:01 +0000)]
Change __MINGW to __MINGW32__.  Patch submitted by Henrik Bach.

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

19 years agoFix a bug.
Chris Lattner [Sat, 19 Feb 2005 02:22:14 +0000 (02:22 +0000)]
Fix a bug.

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

19 years agoQuote the value of the PATH variable so that Cygwin and Windows can have
Reid Spencer [Fri, 18 Feb 2005 20:24:09 +0000 (20:24 +0000)]
Quote the value of the PATH variable so that Cygwin and Windows can have
spaces in path names and not confuse the shell.

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

19 years agoAllow dejagnu tests to run on Windows/Cygwin. Quote the value of the PATH
Reid Spencer [Fri, 18 Feb 2005 20:17:44 +0000 (20:17 +0000)]
Allow dejagnu tests to run on Windows/Cygwin. Quote the value of the PATH
variable so that spaces don't screw it up.

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

19 years agoAdjust the help output so that it will fit cleanly within 80 columns.
Reid Spencer [Fri, 18 Feb 2005 20:00:05 +0000 (20:00 +0000)]
Adjust the help output so that it will fit cleanly within 80 columns.

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

19 years ago* llvmc does not have a -V switch
Misha Brukman [Fri, 18 Feb 2005 18:00:53 +0000 (18:00 +0000)]
* llvmc does not have a -V switch
* --config-file is really --config-dir, according to `llvmc --help'

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

19 years agoMake PreventCoreFiles() do the right thing on Windows.
Jeff Cohen [Fri, 18 Feb 2005 07:05:18 +0000 (07:05 +0000)]
Make PreventCoreFiles() do the right thing on Windows.

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

19 years agoRemove colloquialisms from the documentation.
Misha Brukman [Thu, 17 Feb 2005 22:22:24 +0000 (22:22 +0000)]
Remove colloquialisms from the documentation.

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

19 years agoFix compilation errors with VS 2005, patch contributed by Aaron Gray.
Misha Brukman [Thu, 17 Feb 2005 21:40:27 +0000 (21:40 +0000)]
Fix compilation errors with VS 2005, patch contributed by Aaron Gray.

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

19 years agoFix compilation errors with VS 2005, patch by Aaron Gray.
Misha Brukman [Thu, 17 Feb 2005 21:39:27 +0000 (21:39 +0000)]
Fix compilation errors with VS 2005, patch by Aaron Gray.

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

19 years agoDon't rely on doubles comparing identical to each other, which doesn't work
Chris Lattner [Thu, 17 Feb 2005 20:17:32 +0000 (20:17 +0000)]
Don't rely on doubles comparing identical to each other, which doesn't work
for 0.0 and -0.0.

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

19 years agoMap doubles from integers, not the double itself.
Chris Lattner [Thu, 17 Feb 2005 20:16:58 +0000 (20:16 +0000)]
Map doubles from integers, not the double itself.

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

19 years agoDon't sink argument loads into loops or other bad places. This disables folding...
Chris Lattner [Thu, 17 Feb 2005 19:40:32 +0000 (19:40 +0000)]
Don't sink argument loads into loops or other bad places.  This disables folding of argument loads with instructions that are not in the entry block.

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

19 years agoDo not mark obviously unreachable blocks live when processing PHI nodes,
Chris Lattner [Thu, 17 Feb 2005 19:28:49 +0000 (19:28 +0000)]
Do not mark obviously unreachable blocks live when processing PHI nodes,
and handle incomplete control dependences correctly.  This fixes:

Regression/Transforms/ADCE/dead-phi-edge.ll
  -> a missed optimization

Regression/Transforms/ADCE/dead-phi-edge.ll
  -> a compiler crash distilled from QT4

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

19 years agoNew files, testing for a crash in ADCE compiling QT and a missed optimization.
Chris Lattner [Thu, 17 Feb 2005 19:27:44 +0000 (19:27 +0000)]
New files, testing for a crash in ADCE compiling QT and a missed optimization.

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

19 years agoScary typo that fixes Regression/Transforms/IndVarsSimplify/2005-02-17-TruncateExprCr...
Chris Lattner [Thu, 17 Feb 2005 16:54:16 +0000 (16:54 +0000)]
Scary typo that fixes Regression/Transforms/IndVarsSimplify/2005-02-17-TruncateExprCrash.ll
and PR515.

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

19 years agonew testcase for PR515
Chris Lattner [Thu, 17 Feb 2005 16:53:41 +0000 (16:53 +0000)]
new testcase for PR515

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

19 years agoRemove the "pax" program from the list of those needed to support LLVM.
Reid Spencer [Wed, 16 Feb 2005 16:21:00 +0000 (16:21 +0000)]
Remove the "pax" program from the list of those needed to support LLVM.
The install target in Makefile.rules no longer uses pax but just uses find
and "install" instead.

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

19 years agoFix installation of configuration files.
Reid Spencer [Wed, 16 Feb 2005 16:17:11 +0000 (16:17 +0000)]
Fix installation of configuration files.

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

19 years ago* Don't flatten the directory hierarchy when installing headers
Reid Spencer [Wed, 16 Feb 2005 16:13:02 +0000 (16:13 +0000)]
* Don't flatten the directory hierarchy when installing headers
* Make it possible to have the Install program run in verbose mode when
  the TOOL_VERBOSE=1 option is set
* Ensure non-executable installed files do not install with execute perms.

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

19 years agoDon't use pax for installing header files. Use the install program instead.
Reid Spencer [Wed, 16 Feb 2005 15:54:03 +0000 (15:54 +0000)]
Don't use pax for installing header files. Use the install program instead.

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

19 years agoSomehow tablegen.exe got moved... fix up tablegen invocations to match.
Jeff Cohen [Wed, 16 Feb 2005 05:06:52 +0000 (05:06 +0000)]
Somehow tablegen.exe got moved... fix up tablegen invocations to match.

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

19 years agoGet bugpoint compiling with VC++ again, not that it works anyway.
Jeff Cohen [Wed, 16 Feb 2005 05:05:31 +0000 (05:05 +0000)]
Get bugpoint compiling with VC++ again, not that it works anyway.

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

19 years agoArg list already has program name in it.
Jeff Cohen [Wed, 16 Feb 2005 04:43:45 +0000 (04:43 +0000)]
Arg list already has program name in it.

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

19 years agoFixed node deletion bug.
Tanya Lattner [Wed, 16 Feb 2005 04:00:59 +0000 (04:00 +0000)]
Fixed node deletion bug.

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

19 years agoInstead of doing a manual comparison loop, just use memcmp, thanks to JohnC
Chris Lattner [Tue, 15 Feb 2005 22:12:10 +0000 (22:12 +0000)]
Instead of doing a manual comparison loop, just use memcmp, thanks to JohnC
for the suggestion! :)

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

19 years agoMake this more efficient now that we know both files are the same length.
Chris Lattner [Tue, 15 Feb 2005 22:01:43 +0000 (22:01 +0000)]
Make this more efficient now that we know both files are the same length.

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

19 years agoFix spelling
Misha Brukman [Tue, 15 Feb 2005 21:59:53 +0000 (21:59 +0000)]
Fix spelling

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

19 years agoAdjust DiffFilesWithTolerance to help poor cygwin's mmap facility by
Reid Spencer [Tue, 15 Feb 2005 21:47:02 +0000 (21:47 +0000)]
Adjust DiffFilesWithTolerance to help poor cygwin's mmap facility by
handling zero length files a little more intelligently. If both files are
zero length then we return 0 (true) indicating a match. If only one of the
files is zero length then we return 1 (false) indicating that the files
differ. If the files don't agree in length then they can't match so we
skip the first loop that looks for a quick match.

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

19 years agoadd Alpha to llc
Andrew Lenharth [Tue, 15 Feb 2005 21:14:09 +0000 (21:14 +0000)]
add Alpha to llc

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

19 years agoFix a problem where the PPC backend lost track of the fact that it had
Chris Lattner [Tue, 15 Feb 2005 20:26:49 +0000 (20:26 +0000)]
Fix a problem where the PPC backend lost track of the fact that it had
to save and restore the LR register on entry and exit of a leaf function
that needed to access globals or the constant pool.  This should hopefully
fix oscar from sending the PPC tester spinning out of control.

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

19 years agoAdd a sanity check.
Chris Lattner [Tue, 15 Feb 2005 18:48:48 +0000 (18:48 +0000)]
Add a sanity check.

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

19 years agoAdd a new method to make it easy to update graphs.
Chris Lattner [Tue, 15 Feb 2005 18:40:55 +0000 (18:40 +0000)]
Add a new method to make it easy to update graphs.

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

19 years agoBug fixed
Chris Lattner [Tue, 15 Feb 2005 07:02:12 +0000 (07:02 +0000)]
Bug fixed

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

19 years agoFix volatile load/store of pointers. Consider this testcase:
Chris Lattner [Tue, 15 Feb 2005 05:52:14 +0000 (05:52 +0000)]
Fix volatile load/store of pointers.  Consider this testcase:

void %test(int** %P) {
  %A = volatile load int** %P
  ret void
}

void %test2(int*** %Q) {
  %P = load int*** %Q
  volatile store int** %P, int*** %Q
  ret void
}

instead of emitting:

void test(int **l1_P) {
  int *l2_A;

  l2_A = (int **((volatile int **)l1_P));
  return;
}
void test2(int ***l2_Q) {
  int **l1_P;

  l1_P = *l2_Q;
  *((volatile int ***)l2_Q) = l1_P;
  return;
}

... which is loading/storing volatile pointers, not through volatile pointers,
emit this (which is right):

void test(int **l1_P) {
  int *l3_A;

  l3_A = *((int * volatile*)l1_P);
  return;
}
void test2(int ***l2_Q) {
  int **l1_P;

  l1_P = *l2_Q;
  *((int ** volatile*)l2_Q) = l1_P;
  return;
}

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

19 years agoBug fixed.
Chris Lattner [Tue, 15 Feb 2005 05:28:06 +0000 (05:28 +0000)]
Bug fixed.

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

19 years agoNew testcase for PR510.
Chris Lattner [Tue, 15 Feb 2005 05:18:05 +0000 (05:18 +0000)]
New testcase for PR510.

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

19 years agowow, interesting typo :)
Chris Lattner [Mon, 14 Feb 2005 22:58:38 +0000 (22:58 +0000)]
wow, interesting typo :)

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

19 years agoexecution tests shouldn't go here. This was killing the PPC nightly tester.
Chris Lattner [Mon, 14 Feb 2005 21:54:32 +0000 (21:54 +0000)]
execution tests shouldn't go here.  This was killing the PPC nightly tester.

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

19 years agoFor PR496:
Reid Spencer [Mon, 14 Feb 2005 21:54:08 +0000 (21:54 +0000)]
For PR496:
When llvm-gcc is not available, bypass rules for Modules and Bytecode
Libraries that require llvm-gcc and emit instead a warning that llvm-gcc
is not available. This permits "make LLVMGCC=" to build LLVM completely
without error and provides warnings about the modules and bc libs that
could not be constructed.

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

19 years agoFix a bug in my previous change to this, which broke the build on sparcs.
Chris Lattner [Mon, 14 Feb 2005 21:42:10 +0000 (21:42 +0000)]
Fix a bug in my previous change to this, which broke the build on sparcs.

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

19 years agoPrint GEP offsets as signed values instead of unsigned values. On X86, this
Chris Lattner [Mon, 14 Feb 2005 21:40:26 +0000 (21:40 +0000)]
Print GEP offsets as signed values instead of unsigned values.  On X86, this
prints:

getelementptr (int* %A, int -1)

as: "(A) - 4" instead of "(A) + 18446744073709551612", which makes the
assembler much happier.

This fixes test/Regression/CodeGen/X86/2005-02-14-IllegalAssembler.ll,
and Benchmarks/Prolangs-C/cdecl with LLC on X86.

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

19 years agoA testcase that LLC produces illegal asm on for Prolangs-C/cdecl now.
Chris Lattner [Mon, 14 Feb 2005 21:31:41 +0000 (21:31 +0000)]
A testcase that LLC produces illegal asm on for Prolangs-C/cdecl now.

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

19 years agoFix the second bug attached to PR504.
Chris Lattner [Mon, 14 Feb 2005 20:11:45 +0000 (20:11 +0000)]
Fix the second bug attached to PR504.

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

19 years agoWork around GCC PR19958, which causes programs to sometimes crash after
Chris Lattner [Mon, 14 Feb 2005 19:17:29 +0000 (19:17 +0000)]
Work around GCC PR19958, which causes programs to sometimes crash after
printing help output or version info.

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

19 years agoWrite out single characters as chars, not strings.
Misha Brukman [Mon, 14 Feb 2005 18:52:35 +0000 (18:52 +0000)]
Write out single characters as chars, not strings.

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

19 years agoBugs fixed
Chris Lattner [Mon, 14 Feb 2005 16:57:55 +0000 (16:57 +0000)]
Bugs fixed

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

19 years agoImplement CodeGen/CBackend/2005-02-14-VolatileOperations.ll
Chris Lattner [Mon, 14 Feb 2005 16:47:52 +0000 (16:47 +0000)]
Implement CodeGen/CBackend/2005-02-14-VolatileOperations.ll
Volatile loads and stores need to emit volatile pointer operations in C.

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

19 years agonew testcase
Chris Lattner [Mon, 14 Feb 2005 16:45:38 +0000 (16:45 +0000)]
new testcase

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

19 years agoUpdate makefile to use PROJ_* makefile variables intead of BUILD_* as
Reid Spencer [Mon, 14 Feb 2005 16:04:28 +0000 (16:04 +0000)]
Update makefile to use PROJ_* makefile variables intead of BUILD_* as
required by changes to the Makefile.rules. Patch contributed by Vladimir
Merzliakov.

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

19 years agoUpdate comments to reflect new variable names. Patch contributed by
Reid Spencer [Mon, 14 Feb 2005 16:02:19 +0000 (16:02 +0000)]
Update comments to reflect new variable names. Patch contributed by
Vladimir Merzliakov.

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

19 years agoGive props to Andrew for the Alpha backend
Misha Brukman [Mon, 14 Feb 2005 09:07:23 +0000 (09:07 +0000)]
Give props to Andrew for the Alpha backend

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

19 years agofix setcc on floats, fixes singlesource:pi, perhaps others
Andrew Lenharth [Mon, 14 Feb 2005 05:41:43 +0000 (05:41 +0000)]
fix setcc on floats, fixes singlesource:pi, perhaps others

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

19 years agonew testcase for PR509
Chris Lattner [Mon, 14 Feb 2005 02:54:41 +0000 (02:54 +0000)]
new testcase for PR509

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

19 years agoFix the llvm bootstrap
Chris Lattner [Sun, 13 Feb 2005 23:37:09 +0000 (23:37 +0000)]
Fix the llvm bootstrap

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

19 years agoMove private helper function into the only .cpp file that uses it.
Chris Lattner [Sun, 13 Feb 2005 23:14:06 +0000 (23:14 +0000)]
Move private helper function into the only .cpp file that uses it.

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

19 years agoMove helper function here.
Chris Lattner [Sun, 13 Feb 2005 23:13:47 +0000 (23:13 +0000)]
Move helper function here.

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

19 years agoConform to the documented interface by null terminating argument lists!
Chris Lattner [Sun, 13 Feb 2005 23:10:45 +0000 (23:10 +0000)]
Conform to the documented interface by null terminating argument lists!

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

19 years agoMake sure to null terminate argument lists!
Chris Lattner [Sun, 13 Feb 2005 23:02:34 +0000 (23:02 +0000)]
Make sure to null terminate argument lists!

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

19 years agoIf errno is zero strerror_r does not modify the buffer, leaving it unterminated.
Chris Lattner [Sun, 13 Feb 2005 22:46:37 +0000 (22:46 +0000)]
If errno is zero strerror_r does not modify the buffer, leaving it unterminated.
This causes garbage to be printed out after error messages.

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

19 years agoAdd some updates
Chris Lattner [Sun, 13 Feb 2005 22:27:24 +0000 (22:27 +0000)]
Add some updates

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

19 years agoSuSE 3.3.3 is also borken.
Chris Lattner [Sun, 13 Feb 2005 22:20:49 +0000 (22:20 +0000)]
SuSE 3.3.3 is also borken.

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

19 years agoDo not replace ostream << Module*, only ostream << Module&.
Chris Lattner [Sun, 13 Feb 2005 19:15:01 +0000 (19:15 +0000)]
Do not replace ostream << Module*, only ostream << Module&.

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

19 years agoPrint the module, not the pointer.
Chris Lattner [Sun, 13 Feb 2005 19:12:31 +0000 (19:12 +0000)]
Print the module, not the pointer.

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

19 years agoMake the check for global variables the same as the one for functions. In
Reid Spencer [Sun, 13 Feb 2005 18:12:20 +0000 (18:12 +0000)]
Make the check for global variables the same as the one for functions. In
both cases they are looking for non-external variables/functions that do
not have internal linkage. Using "!isExternal()" is a little more
understandable than "hasInitializer()"

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

19 years agoNuke blank line.
Chris Lattner [Sun, 13 Feb 2005 17:54:21 +0000 (17:54 +0000)]
Nuke blank line.

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

19 years agoMinor cleanup. No need to explicitly tell the compiler the template arguments.
Chris Lattner [Sun, 13 Feb 2005 17:50:16 +0000 (17:50 +0000)]
Minor cleanup.  No need to explicitly tell the compiler the template arguments.

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

19 years agoMake sure to clear the LazyFunctionLoadMap after we ParseAllFunctionBodies.
Chris Lattner [Sun, 13 Feb 2005 17:48:18 +0000 (17:48 +0000)]
Make sure to clear the LazyFunctionLoadMap after we ParseAllFunctionBodies.
Otherwise, clients who call ParseAllFunctionBodies will attempt to parse
the function bodies twice, which is (uh) very very bad (tm).

This fixes gccld on python.

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

19 years agoDo not put internal symbols into the symbol table. This shrinks the symbol
Chris Lattner [Sun, 13 Feb 2005 17:42:11 +0000 (17:42 +0000)]
Do not put internal symbols into the symbol table.  This shrinks the symbol
table for archives in common cases, and prevents trying to resolve a
external reference with an internal reference.  This shrinks the libpython.a
symbol table from 126302 to 19770 bytes.

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

19 years agoInclude local time on the web page for start/end times.
Chris Lattner [Sun, 13 Feb 2005 16:08:30 +0000 (16:08 +0000)]
Include local time on the web page for start/end times.

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

19 years agoPrint something useful for gccld -v with an archive.
Chris Lattner [Sun, 13 Feb 2005 15:26:14 +0000 (15:26 +0000)]
Print something useful for gccld -v with an archive.

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

19 years agoFix PR506:
Reid Spencer [Sun, 13 Feb 2005 07:34:17 +0000 (07:34 +0000)]
Fix PR506:
* Use error returned from Archive::OpenAndLoad
* Make sure only std::string is thrown so it gets caught and printed.

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

19 years agoCorrect the recursive PHI node handling routines in a way that CANNOT induce
Chris Lattner [Sun, 13 Feb 2005 04:37:18 +0000 (04:37 +0000)]
Correct the recursive PHI node handling routines in a way that CANNOT induce
infinite loops (using the new replaceSymbolicValuesWithConcrete method).

This patch reverts this patch:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050131/023830.html

... which was an attempted fix for this problem.  Unfortunately, that patch
caused test/Regression/Transforms/IndVarsSimplify/exit_value_tests.llx to fail
and slightly castrated the entire analysis.  This patch fixes it right.

This patch is dedicated to jeffc, for making me deal with this.  :)

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

19 years agoAdd a new replaceSymbolicValuesWithConcrete method to the SCEV class,
Chris Lattner [Sun, 13 Feb 2005 04:34:51 +0000 (04:34 +0000)]
Add a new replaceSymbolicValuesWithConcrete method to the SCEV class,
adjust const'ness a bit to be more correct.

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

19 years agonon-ieee arith crashes passes on alpha
Andrew Lenharth [Sun, 13 Feb 2005 03:41:10 +0000 (03:41 +0000)]
non-ieee arith crashes passes on alpha

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

19 years agotry to do better match for i32 adds
Andrew Lenharth [Sat, 12 Feb 2005 21:11:17 +0000 (21:11 +0000)]
try to do better match for i32 adds

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

19 years agomake FP conversion more conservative (matches gcc)
Andrew Lenharth [Sat, 12 Feb 2005 21:10:58 +0000 (21:10 +0000)]
make FP conversion more conservative (matches gcc)

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

19 years agooops, I was sure this had already gond though the nightly tester
Andrew Lenharth [Sat, 12 Feb 2005 20:42:09 +0000 (20:42 +0000)]
oops, I was sure this had already gond though the nightly tester

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

19 years agoAdd note about broken GCC
Chris Lattner [Sat, 12 Feb 2005 20:11:13 +0000 (20:11 +0000)]
Add note about broken GCC

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