oota-llvm.git
19 years agoMS Visual Studio files for building LLVM on Win32 platforms.
Reid Spencer [Wed, 3 Nov 2004 16:13:14 +0000 (16:13 +0000)]
MS Visual Studio files for building LLVM on Win32 platforms.

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

19 years agoFix this function to not say that longs have 8-byte alignment on X86/PPC.
Chris Lattner [Tue, 2 Nov 2004 22:18:18 +0000 (22:18 +0000)]
Fix this function to not say that longs have 8-byte alignment on X86/PPC.
This method is really a gross hack, but at least we can make it work on
the targets we support right now.

This bug fix stops a crash in a testcase reduced from 176.gcc

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

19 years agoAdded gross hacks such as creating my own def-use map, and picking on Instruction...
Tanya Lattner [Tue, 2 Nov 2004 21:04:56 +0000 (21:04 +0000)]
Added gross hacks such as creating my own def-use map, and picking on Instruction that I can add all my TmpInstructions to its MCFI.

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

19 years agoGraphs that are part of equivalence sets can be multi-function SCC's
Chris Lattner [Tue, 2 Nov 2004 20:31:06 +0000 (20:31 +0000)]
Graphs that are part of equivalence sets can be multi-function SCC's
themselves.  Make sure to update DSInfo correctly.  This fixes a testcase
reduced from Prolangs-C++/objects

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

19 years agoCorrectly handle new SCC's found as a result of merging EQ graphs do to
Chris Lattner [Tue, 2 Nov 2004 19:29:59 +0000 (19:29 +0000)]
Correctly handle new SCC's found as a result of merging EQ graphs do to
function pointer equivalences.  This fixes many problems, including a testcase
reduced Prolangs-C++/objects.

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

19 years agoSubstantially cleanup/speedup the eq graphs pass by walking the callgraph
Chris Lattner [Tue, 2 Nov 2004 17:51:11 +0000 (17:51 +0000)]
Substantially cleanup/speedup the eq graphs pass by walking the callgraph
a DSGraph at a time instead of a function at a time.  This is also more
correct, though it doesn't seem to fix any programs.

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

19 years agoFix typo, contributed by Henrik Bach!
Chris Lattner [Tue, 2 Nov 2004 17:31:02 +0000 (17:31 +0000)]
Fix typo, contributed by Henrik Bach!

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

19 years ago* New Recursive Target: clean-all. This target will recursively descend the
Reid Spencer [Tue, 2 Nov 2004 16:56:15 +0000 (16:56 +0000)]
* New Recursive Target: clean-all. This target will recursively descend the
  $(ObjDir) and clean out all build modes (Debug, Release, Profile) in
  addition to the normal "clean" rules.
* Fix "clean" problems with Lex/Yacc so all files are remove properly.
* Ensure errors from "rm" don't thwart the uninstall and clean targets.

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

19 years ago* New Recursive Target: clean-all
Reid Spencer [Tue, 2 Nov 2004 16:36:03 +0000 (16:36 +0000)]
* New Recursive Target: clean-all

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

19 years agoFix a warning
Chris Lattner [Tue, 2 Nov 2004 15:27:57 +0000 (15:27 +0000)]
Fix a warning

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

19 years agoMinor cleanups
Chris Lattner [Tue, 2 Nov 2004 06:38:58 +0000 (06:38 +0000)]
Minor cleanups

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

19 years ago* Rearrange code slightly
Chris Lattner [Tue, 2 Nov 2004 03:50:32 +0000 (03:50 +0000)]
* Rearrange code slightly
* Disable broken transforms for simplifying (setcc (cast X to larger), CI)
  where CC is not != or ==

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

19 years agoList the individual tools for easier reference.
Reid Spencer [Mon, 1 Nov 2004 21:57:35 +0000 (21:57 +0000)]
List the individual tools for easier reference.
Make the bugpoint link reference the man page in the CommandGuide until
the Bugpoint.html file can describe bugpoint in a little more of a tutorial
style instead of just being a man page.

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

19 years agoAdd compliant header.
Reid Spencer [Mon, 1 Nov 2004 21:55:46 +0000 (21:55 +0000)]
Add compliant header.
NOTE: This doc needs to describe the bugpoint "subsystem" not the tool.

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

19 years agoAdd missing tag.
Reid Spencer [Mon, 1 Nov 2004 21:31:39 +0000 (21:31 +0000)]
Add missing tag.

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

19 years agoRemove more dead methods
Chris Lattner [Mon, 1 Nov 2004 21:07:05 +0000 (21:07 +0000)]
Remove more dead methods

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

19 years agoDelete a dead method
Chris Lattner [Mon, 1 Nov 2004 21:04:47 +0000 (21:04 +0000)]
Delete a dead method

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

19 years agoRename FoldedGraph -> DSInfo to be consistent with other passes
Chris Lattner [Mon, 1 Nov 2004 21:02:23 +0000 (21:02 +0000)]
Rename FoldedGraph -> DSInfo to be consistent with other passes
delete some dead methods

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

19 years agoUpdate table to llvm.css standards.
Reid Spencer [Mon, 1 Nov 2004 20:47:22 +0000 (20:47 +0000)]
Update table to llvm.css standards.

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

19 years agoGet rid of bogus entity references.
Reid Spencer [Mon, 1 Nov 2004 20:41:01 +0000 (20:41 +0000)]
Get rid of bogus entity references.

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

19 years agoGet rid of the EquivClassGraphArgsInfo class, and the map that held it.
Chris Lattner [Mon, 1 Nov 2004 20:37:00 +0000 (20:37 +0000)]
Get rid of the EquivClassGraphArgsInfo class, and the map that held it.
We only need one instance of the vector that it contains at a time.

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

19 years agoAdd placeholder variable to make Win32 work, applied for Morten Ofstad
Chris Lattner [Mon, 1 Nov 2004 20:10:20 +0000 (20:10 +0000)]
Add placeholder variable to make Win32 work, applied for Morten Ofstad

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

19 years agoEliminate the cloneGraph method
Chris Lattner [Mon, 1 Nov 2004 19:54:06 +0000 (19:54 +0000)]
Eliminate the cloneGraph method

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

19 years agoAttempt CSS 2 compliance.
Reid Spencer [Mon, 1 Nov 2004 09:26:57 +0000 (09:26 +0000)]
Attempt CSS 2 compliance.

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

19 years agoAttempt CSS 2 validation.
Reid Spencer [Mon, 1 Nov 2004 09:25:03 +0000 (09:25 +0000)]
Attempt CSS 2 validation.

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

19 years agoHTML 4.01 Strict compliance.
Reid Spencer [Mon, 1 Nov 2004 09:22:49 +0000 (09:22 +0000)]
HTML 4.01 Strict compliance.

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

19 years agoCorrect the document type declaration.
Reid Spencer [Mon, 1 Nov 2004 09:21:32 +0000 (09:21 +0000)]
Correct the document type declaration.

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

19 years agoAdd the HTML 4.01 and CSS icons with links to validators.
Reid Spencer [Mon, 1 Nov 2004 09:19:53 +0000 (09:19 +0000)]
Add the HTML 4.01 and CSS icons with links to validators.

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

19 years agoAttempt HTML 4.01 Strict compliance.
Reid Spencer [Mon, 1 Nov 2004 09:16:30 +0000 (09:16 +0000)]
Attempt HTML 4.01 Strict compliance.

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

19 years agoCleanup the constants section.
Reid Spencer [Mon, 1 Nov 2004 09:02:53 +0000 (09:02 +0000)]
Cleanup the constants section.

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

19 years agoRemove spurious end tag, fix indentation.
Reid Spencer [Mon, 1 Nov 2004 08:30:14 +0000 (08:30 +0000)]
Remove spurious end tag, fix indentation.

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

19 years agoMake HTML 4.01 Strict compliant.
Reid Spencer [Mon, 1 Nov 2004 08:26:25 +0000 (08:26 +0000)]
Make HTML 4.01 Strict compliant.

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

19 years agoFix tag placement to make HTML 4.01 Strict compliant.
Reid Spencer [Mon, 1 Nov 2004 08:24:13 +0000 (08:24 +0000)]
Fix tag placement to make HTML 4.01 Strict compliant.

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

19 years agoMinor format tweask for tables.
Reid Spencer [Mon, 1 Nov 2004 08:19:36 +0000 (08:19 +0000)]
Minor format tweask for tables.

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

19 years agoAdd layout classes for table elements so tables can be used for layouts.
Reid Spencer [Mon, 1 Nov 2004 08:18:06 +0000 (08:18 +0000)]
Add layout classes for table elements so tables can be used for layouts.
This is easier than attempting to figure out dual purpose columnar layouts
for multiple browser types. All browsers understand tables.

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

19 years agoConfiguration -> BuildMode
Reid Spencer [Mon, 1 Nov 2004 07:53:17 +0000 (07:53 +0000)]
Configuration -> BuildMode

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

19 years agoEliminate redundant variable definition. Rename Configuration -> BuildMode
Reid Spencer [Mon, 1 Nov 2004 07:50:27 +0000 (07:50 +0000)]
Eliminate redundant variable definition. Rename Configuration -> BuildMode
Make lex/yacc output cleaned only if in a directory that has those sources.

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

19 years agoSpeed up the tail duplication pass on the testcase below from 68.2s to 1.23s:
Chris Lattner [Mon, 1 Nov 2004 07:05:07 +0000 (07:05 +0000)]
Speed up the tail duplication pass on the testcase below from 68.2s to 1.23s:
#define CL0(a) case a: f(); goto c;
 #define CL1(a) CL0(a##0) CL0(a##1) CL0(a##2) CL0(a##3) CL0(a##4) CL0(a##5) \
 CL0(a##6) CL0(a##7) CL0(a##8) CL0(a##9)
 #define CL2(a) CL1(a##0) CL1(a##1) CL1(a##2) CL1(a##3) CL1(a##4) CL1(a##5) \
 CL1(a##6) CL1(a##7) CL1(a##8) CL1(a##9)
 #define CL3(a) CL2(a##0) CL2(a##1) CL2(a##2) CL2(a##3) CL2(a##4) CL2(a##5) \
 CL2(a##6) CL2(a##7) CL2(a##8) CL2(a##9)
 #define CL4(a) CL3(a##0) CL3(a##1) CL3(a##2) CL3(a##3) CL3(a##4) CL3(a##5) \
 CL3(a##6) CL3(a##7) CL3(a##8) CL3(a##9)

 void f();

 void a() {
     int b;
  c: switch (b) {
         CL4(1)
     }
 }

This comes from GCC PR 15524

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

19 years agoDo not compute the predecessor list for a block unless we need it.
Chris Lattner [Mon, 1 Nov 2004 06:53:58 +0000 (06:53 +0000)]
Do not compute the predecessor list for a block unless we need it.
This speeds up simplifycfg on this program, from 44.87s to 0.29s (with
a profiled build):

 #define CL0(a) case a: goto c;
 #define CL1(a) CL0(a##0) CL0(a##1) CL0(a##2) CL0(a##3) CL0(a##4) CL0(a##5) \
 CL0(a##6) CL0(a##7) CL0(a##8) CL0(a##9)
 #define CL2(a) CL1(a##0) CL1(a##1) CL1(a##2) CL1(a##3) CL1(a##4) CL1(a##5) \
 CL1(a##6) CL1(a##7) CL1(a##8) CL1(a##9)
 #define CL3(a) CL2(a##0) CL2(a##1) CL2(a##2) CL2(a##3) CL2(a##4) CL2(a##5) \
 CL2(a##6) CL2(a##7) CL2(a##8) CL2(a##9)
 #define CL4(a) CL3(a##0) CL3(a##1) CL3(a##2) CL3(a##3) CL3(a##4) CL3(a##5) \
 CL3(a##6) CL3(a##7) CL3(a##8) CL3(a##9)

 void f();

 void a() {
     int b;
  c: switch (b) {
         CL4(1)
     }
 }

This testcase is contrived to expose N^2 behavior, but this patch should speedup
simplifycfg on any programs that use large switch statements.  This testcase
comes from GCC PR17895.

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

19 years agoWhen compiling a file, indicate what build it is for
Chris Lattner [Mon, 1 Nov 2004 06:14:59 +0000 (06:14 +0000)]
When compiling a file, indicate what build it is for

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

19 years ago* Do not refer to ActualCallees in CBU, when we can do it locally.
Chris Lattner [Sun, 31 Oct 2004 23:41:26 +0000 (23:41 +0000)]
* Do not refer to ActualCallees in CBU, when we can do it locally.
* *DO NOT* print CBU graphs when asked to print our own.  This is just
  FREAKING confusing and misleading: it's better to not print anything.
* Simplify and clean up some code
* Add some more paranoia assertion checking code that I found to track
  down this bug:
* Fix a nasty bug that was causing us to crash on Prolangs-C++/objects,
  where we were missing processing some graphs.  This hunk is the bugfix:

-    if (!I->isExternal() && !FoldedGraphsMap.count(I))
+    if (!I->isExternal() && !ValMap.count(I))

  urg!

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

19 years agoWrap to 80 cols
Reid Spencer [Sun, 31 Oct 2004 23:24:31 +0000 (23:24 +0000)]
Wrap to 80 cols

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

19 years agoAdd UsingLibraries.html link.
Reid Spencer [Sun, 31 Oct 2004 23:02:38 +0000 (23:02 +0000)]
Add UsingLibraries.html link.

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

19 years agoSimplify graph traversal, improve grammar
Chris Lattner [Sun, 31 Oct 2004 23:01:34 +0000 (23:01 +0000)]
Simplify graph traversal, improve grammar

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

19 years agoGive table headers the striped background.
Reid Spencer [Sun, 31 Oct 2004 23:01:02 +0000 (23:01 +0000)]
Give table headers the striped background.

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

19 years ago* Moved from ObjectFiles.html
Reid Spencer [Sun, 31 Oct 2004 23:00:25 +0000 (23:00 +0000)]
* Moved from ObjectFiles.html
* Changed names of libraries to reflect new naming scheme
* Added some more introductory material
* Added a rule of thumb.

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

19 years agoRenamed UsingLibraries.html
Reid Spencer [Sun, 31 Oct 2004 22:59:06 +0000 (22:59 +0000)]
Renamed UsingLibraries.html

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

19 years agoGet the shared library extension right on all platforms, regardless of what
Reid Spencer [Sun, 31 Oct 2004 22:53:06 +0000 (22:53 +0000)]
Get the shared library extension right on all platforms, regardless of what
Chris wants on his platform.

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

19 years agoDo not do horrible things to the CBU graphs. In particular, we do NOT own
Chris Lattner [Sun, 31 Oct 2004 21:56:11 +0000 (21:56 +0000)]
Do not do horrible things to the CBU graphs.  In particular, we do NOT own
the CBU graphs, copy them instead of hacking on the CBU graphs.

Also, instead of forwarding request from ECGraphs clients to the CBU graphs
clients, service them ourselves.

Finally, remove a broken "optimization"

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

19 years agoFix comment
Chris Lattner [Sun, 31 Oct 2004 21:54:51 +0000 (21:54 +0000)]
Fix comment

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

19 years agoFix output for building shared libraries per Chris' requirements
Reid Spencer [Sun, 31 Oct 2004 21:07:34 +0000 (21:07 +0000)]
Fix output for building shared libraries per Chris' requirements

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

19 years agoImprove comment
Chris Lattner [Sun, 31 Oct 2004 19:57:43 +0000 (19:57 +0000)]
Improve comment

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

19 years agoActually use the correct variable name for building bytecode files.
Reid Spencer [Sun, 31 Oct 2004 18:52:15 +0000 (18:52 +0000)]
Actually use the correct variable name for building bytecode files.

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

19 years agoAdd the preconditions target per suggestion by Henrik Bach.
Reid Spencer [Sun, 31 Oct 2004 18:50:34 +0000 (18:50 +0000)]
Add the preconditions target per suggestion by Henrik Bach.

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

19 years agoFix another bug in Prolangs-C++/objects
Chris Lattner [Sun, 31 Oct 2004 18:13:19 +0000 (18:13 +0000)]
Fix another bug in Prolangs-C++/objects

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

19 years agoOne more missing end tag.
Reid Spencer [Sun, 31 Oct 2004 17:58:58 +0000 (17:58 +0000)]
One more missing end tag.

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

19 years agoCorrect tag usage for HTML 4.01 Strict compliance
Reid Spencer [Sun, 31 Oct 2004 17:56:50 +0000 (17:56 +0000)]
Correct  tag usage for HTML 4.01 Strict compliance

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

19 years agoAdd a tutorial and some more general concepts.
Reid Spencer [Sun, 31 Oct 2004 17:51:38 +0000 (17:51 +0000)]
Add a tutorial and some more general concepts.

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

19 years agoOnly call getNodeForValue on pointer arguments! this fixes a problem running
Chris Lattner [Sun, 31 Oct 2004 17:47:48 +0000 (17:47 +0000)]
Only call getNodeForValue on pointer arguments!  this fixes a problem running
on Prolangs-C++/objects

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

19 years agoAdd more paranoid assertions :)
Chris Lattner [Sun, 31 Oct 2004 17:45:40 +0000 (17:45 +0000)]
Add more paranoid assertions :)

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

19 years agoNo, really, the library name is `LLVMexecve'
Misha Brukman [Sun, 31 Oct 2004 17:30:52 +0000 (17:30 +0000)]
No, really, the library name is `LLVMexecve'

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

19 years agoFix patterns to match only one-char words.
Vikram S. Adve [Sat, 30 Oct 2004 23:11:26 +0000 (23:11 +0000)]
Fix patterns to match only one-char words.

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

19 years agoAdd a few more terms.
Reid Spencer [Sat, 30 Oct 2004 21:40:28 +0000 (21:40 +0000)]
Add a few more terms.

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

19 years agoComplete the description of public variables. Internal variables are listed
Reid Spencer [Sat, 30 Oct 2004 21:39:42 +0000 (21:39 +0000)]
Complete the description of public variables. Internal variables are listed
but not described. It might just stay that way.

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

19 years agoChange macro names per naming standard in Makefile.rules.
Reid Spencer [Sat, 30 Oct 2004 09:26:22 +0000 (09:26 +0000)]
Change macro names per naming standard in Makefile.rules.

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

19 years agoCorrect macro names per naming standard in Makefile.rules
Reid Spencer [Sat, 30 Oct 2004 09:25:27 +0000 (09:25 +0000)]
Correct macro names per naming standard in Makefile.rules

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

19 years agoInternalize variable names to prevent recursive assignment. Cleanup docs.
Reid Spencer [Sat, 30 Oct 2004 09:19:36 +0000 (09:19 +0000)]
Internalize variable names to prevent recursive assignment. Cleanup docs.

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

19 years agoFix some more problems where we called getOffset before getNode()
Chris Lattner [Sat, 30 Oct 2004 07:21:19 +0000 (07:21 +0000)]
Fix some more problems where we called getOffset before getNode()

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

19 years agoFix three bugs:
Chris Lattner [Sat, 30 Oct 2004 05:41:23 +0000 (05:41 +0000)]
Fix three bugs:
 1. Calls to external global VARIABLES should not be treated as a call to an
    external function
 2. Efficiently deleting an element from a vector by using std::swap with
    the back, then pop_back is NOT a good way to keep the vector sorted.
 3. Our hope of having stuff get deleted by making them redundant just won't
    work.  In particular, if we have three calls in sequence that should be
    merged: A, B, C   first we unify B into A.  To be sure that they appeared
    identical (so B would be erased) we set B = A.  On the next step, we
    unified C into A and set C = A.  Unfortunately, this is no guarantee that
    C = B, so we would fail to delete the dead call.  Switch to a more
    explicit scheme.

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

19 years agoFix more undefined behavior
Chris Lattner [Sat, 30 Oct 2004 04:22:45 +0000 (04:22 +0000)]
Fix more undefined behavior

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

19 years ago* Add a method
Chris Lattner [Sat, 30 Oct 2004 04:05:01 +0000 (04:05 +0000)]
* Add a method
* change some uses of NH.getNode() in a bool context to use !NH.isNull()
* Fix a bunch of places where we depended on the (undefined) order of
  evaluation of arguments to function calls to ensure that getNode() was
  called before getOffset().  In practice, this was NOT happening.

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

19 years agoAdd an assertion and a method
Chris Lattner [Sat, 30 Oct 2004 04:03:47 +0000 (04:03 +0000)]
Add an assertion and a method

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

19 years agoNo really, this is LLVM!
Chris Lattner [Sat, 30 Oct 2004 00:57:52 +0000 (00:57 +0000)]
No really, this is LLVM!

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

19 years agoFixed bug with infinite epilogues.
Tanya Lattner [Sat, 30 Oct 2004 00:39:07 +0000 (00:39 +0000)]
Fixed bug with infinite epilogues.
Fixed issue with generating the partial order. It now adds the nodes not in recurrences in sets for each connected component.

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

19 years agoFix file header comment
Misha Brukman [Fri, 29 Oct 2004 23:26:09 +0000 (23:26 +0000)]
Fix file header comment

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

19 years ago* Fix compilation on AIX: GCC's fixincludes eliminates isinf() declaration
Misha Brukman [Fri, 29 Oct 2004 23:17:45 +0000 (23:17 +0000)]
* Fix compilation on AIX: GCC's fixincludes eliminates isinf() declaration
* Move file comment to the top of the header where it belongs

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

19 years agoDon't modify user vars because they will get passed down (modified) to
Reid Spencer [Fri, 29 Oct 2004 22:14:56 +0000 (22:14 +0000)]
Don't modify user vars because they will get passed down (modified) to
sub-makes and recursively append causing huge command lines and incorrect
compilation results.

Also, fix the printvars target to align its output and ensure that the
contents of variables can't get interpreted by the shell.

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

19 years agoChange name of target lib to conform to new naming scheme.
Brian Gaeke [Fri, 29 Oct 2004 21:57:16 +0000 (21:57 +0000)]
Change name of target lib to conform to new naming scheme.

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

19 years agoRemove dependency on MRegisterInfo::getRegClass
Brian Gaeke [Fri, 29 Oct 2004 21:42:27 +0000 (21:42 +0000)]
Remove dependency on MRegisterInfo::getRegClass

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

19 years agoFix grammar (i.e.)
Misha Brukman [Fri, 29 Oct 2004 19:20:42 +0000 (19:20 +0000)]
Fix grammar (i.e.)

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

19 years agoDisable the build in the samples directory so that llvmc dependencies don't
Reid Spencer [Fri, 29 Oct 2004 18:43:49 +0000 (18:43 +0000)]
Disable the build in the samples directory so that llvmc dependencies don't
mess up the build.

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

19 years agoThe Alpha (tm) intrinsics aren't even being used
Misha Brukman [Fri, 29 Oct 2004 18:43:43 +0000 (18:43 +0000)]
The Alpha (tm) intrinsics aren't even being used

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

19 years agoThe Alpha (tm) intrinsics have never been used anywhere
Misha Brukman [Fri, 29 Oct 2004 18:43:17 +0000 (18:43 +0000)]
The Alpha (tm) intrinsics have never been used anywhere

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

19 years agoLLEE execve() wrapper library has changed its name and location
Misha Brukman [Fri, 29 Oct 2004 18:36:51 +0000 (18:36 +0000)]
LLEE execve() wrapper library has changed its name and location

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

19 years agoWhen emitting debug msgs for function stubs, don't truncate the
Brian Gaeke [Fri, 29 Oct 2004 18:22:45 +0000 (18:22 +0000)]
When emitting debug msgs for function stubs, don't truncate the
printed pointer value if sizeof(unsigned) != pointer size.  Instead,
use uintptr_t.

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

19 years agoPrint P and [AR] files on update.
Vikram S. Adve [Fri, 29 Oct 2004 17:43:19 +0000 (17:43 +0000)]
Print P and [AR] files on update.

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

19 years agoMake sure the LLVM_CONFIG_DIR environment variable is set so we don't get
Reid Spencer [Fri, 29 Oct 2004 06:42:38 +0000 (06:42 +0000)]
Make sure the LLVM_CONFIG_DIR environment variable is set so we don't get
error messages from the compiler.

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

19 years agoMake the list of automatic Makefile* files updated explicit instead of
Reid Spencer [Fri, 29 Oct 2004 04:47:33 +0000 (04:47 +0000)]
Make the list of automatic Makefile* files updated explicit instead of
generally wildcarded.

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

19 years ago* Add spaces between function names for readability
Misha Brukman [Fri, 29 Oct 2004 04:33:19 +0000 (04:33 +0000)]
* Add spaces between function names for readability
* Separate paragraphs, flush HTML text to left margin for ease of editing

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

19 years agoThis line breaks FreeBSD and apparently isn't useful anymore.
Chris Lattner [Fri, 29 Oct 2004 03:46:38 +0000 (03:46 +0000)]
This line breaks FreeBSD and apparently isn't useful anymore.

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

19 years agoCommented out the _Alloc_traits specialization entirely, as it is only
John Criswell [Thu, 28 Oct 2004 18:21:41 +0000 (18:21 +0000)]
Commented out the _Alloc_traits specialization entirely, as it is only
supported by specific versions of GCC.

It is left in place in case anyone wants to updated it for GCC 3.4 or
re-use it for earlier versions of GCC where it works.

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

19 years agoOnly add the _Alloc_traits specialization in if we're compiling for
John Criswell [Thu, 28 Oct 2004 17:31:46 +0000 (17:31 +0000)]
Only add the _Alloc_traits specialization in if we're compiling for
Linux and not compiling for Sparc.
This is still probably not correct, or portable, but it'll do for now.

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

19 years agoFix the dependency of lex.o on gram.tab.h
Reid Spencer [Thu, 28 Oct 2004 16:48:13 +0000 (16:48 +0000)]
Fix the dependency of lex.o on gram.tab.h

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

19 years agoAdded the poolalloc module to the list of projects to configure, if present.
John Criswell [Thu, 28 Oct 2004 13:35:00 +0000 (13:35 +0000)]
Added the poolalloc module to the list of projects to configure, if present.

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

19 years agoBug Fixes:
Reid Spencer [Thu, 28 Oct 2004 09:15:28 +0000 (09:15 +0000)]
Bug Fixes:
* Move rules that build directories earlier in the file so that they are
  always built before the things that depend on them. This enables a
  parallel "dist-check" target.
* Fix use of TOOLLINKOPTS and TOOLLINKOPTSB (thanks to Henrik Bach)
* Standardize the output - some scripts using plain echo instead of $(ECHO)

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

19 years agoMake parallel "install" and "uninstall" targets not step on itself.
Reid Spencer [Thu, 28 Oct 2004 07:57:28 +0000 (07:57 +0000)]
Make parallel "install" and "uninstall" targets not step on itself.

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

19 years agoGep indices must be of int, uint, long or ulong type.
Alkis Evlogimenos [Thu, 28 Oct 2004 06:43:38 +0000 (06:43 +0000)]
Gep indices must be of int, uint, long or ulong type.

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

19 years agoMake sure the sources get distributed (use EXTRA_DIST)
Reid Spencer [Thu, 28 Oct 2004 06:42:34 +0000 (06:42 +0000)]
Make sure the sources get distributed (use EXTRA_DIST)
Add the goof.st sample.

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

19 years agoFix library names for sparc
Brian Gaeke [Thu, 28 Oct 2004 06:39:10 +0000 (06:39 +0000)]
Fix library names for sparc

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

19 years agoFix library name.
Reid Spencer [Thu, 28 Oct 2004 05:37:24 +0000 (05:37 +0000)]
Fix library name.

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