oota-llvm.git
22 years ago* Support the new -q flag for automated tests
Chris Lattner [Fri, 14 Dec 2001 16:49:29 +0000 (16:49 +0000)]
* Support the new -q flag for automated tests
* Remove unsized array support
* Add pointer indexing support

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

22 years agoAdd more passes to run after raising
Chris Lattner [Fri, 14 Dec 2001 16:48:30 +0000 (16:48 +0000)]
Add more passes to run after raising

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

22 years agoUpdate LLVM tests to use new pointer indexing, and remove unsized array test support
Chris Lattner [Fri, 14 Dec 2001 16:46:53 +0000 (16:46 +0000)]
Update LLVM tests to use new pointer indexing, and remove unsized array test support

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

22 years agoBuild Programs subdirectory
Chris Lattner [Fri, 14 Dec 2001 16:43:59 +0000 (16:43 +0000)]
Build Programs subdirectory

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

22 years ago* Assert that indices are valid for an indexing instruction.
Chris Lattner [Fri, 14 Dec 2001 16:43:26 +0000 (16:43 +0000)]
* Assert that indices are valid for an indexing instruction.
* Add support for indexing into pointers
* Remove support for unsized arrays

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

22 years agoRename ConstPoolVals.cpp to Constants.cpp
Chris Lattner [Fri, 14 Dec 2001 16:42:30 +0000 (16:42 +0000)]
Rename ConstPoolVals.cpp to Constants.cpp

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:41:56 +0000 (16:41 +0000)]
Remove unsized array support
Add new SequentialType class

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

22 years agoMake strings SByte* arrays instead of UByte * arrays
Chris Lattner [Fri, 14 Dec 2001 16:41:18 +0000 (16:41 +0000)]
Make strings SByte* arrays instead of UByte * arrays

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

22 years ago* isFirstClassType is now provided by the Type class
Chris Lattner [Fri, 14 Dec 2001 16:39:22 +0000 (16:39 +0000)]
* isFirstClassType is now provided by the Type class
* Add ReplaceInstWithInst

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

22 years ago* add ReplaceInstWithInst
Chris Lattner [Fri, 14 Dec 2001 16:38:59 +0000 (16:38 +0000)]
* add ReplaceInstWithInst
* Add support for pointer indexing
* Fix minor bugs that are majorly annoying

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:38:04 +0000 (16:38 +0000)]
Remove unsized array support

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

22 years ago* Support pointer indexing
Chris Lattner [Fri, 14 Dec 2001 16:37:52 +0000 (16:37 +0000)]
* Support pointer indexing
* Unsized arrays are a thing of the past, remove DoInsertArrayCast family
* Remove cases were we would get into infinite loops because we would insert a cast
  which would then be removed, inserting a different cast, ad infinitum...
* Remove some code that should be redundant with ExprTypeConvert code

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

22 years agoMany many changes and bugfixes:
Chris Lattner [Fri, 14 Dec 2001 16:35:53 +0000 (16:35 +0000)]
Many many changes and bugfixes:
* Remove support for unsized arrays
* Add pointer indexing support
* Allow more arbitrary malloc type changes (which are too generous currently
  and should be fixed in the future)
* Allow more and better conversions

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

22 years agoThe proper prototype for malloc returns a pointer, not an unsized array
Chris Lattner [Fri, 14 Dec 2001 16:32:20 +0000 (16:32 +0000)]
The proper prototype for malloc returns a pointer, not an unsized array

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

22 years agoAllow pointer indexing
Chris Lattner [Fri, 14 Dec 2001 16:31:26 +0000 (16:31 +0000)]
Allow pointer indexing

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

22 years agoRemove unsized array support
Chris Lattner [Fri, 14 Dec 2001 16:30:51 +0000 (16:30 +0000)]
Remove unsized array support

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

22 years agoAdd pointer indexing support
Chris Lattner [Fri, 14 Dec 2001 16:30:09 +0000 (16:30 +0000)]
Add pointer indexing support

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

22 years agoDon't waste as much horizontal space on #uses flag when printing
Chris Lattner [Fri, 14 Dec 2001 16:29:12 +0000 (16:29 +0000)]
Don't waste as much horizontal space on #uses flag when printing

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

22 years ago* Fix cases where we were calling Type->getName() instead of Type->getDescription()
Chris Lattner [Fri, 14 Dec 2001 16:28:42 +0000 (16:28 +0000)]
* Fix cases where we were calling Type->getName() instead of Type->getDescription()
* Remove unsized array support
* Malloc/alloca do not require that the first element be an unsized array to be an
  array allocation

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

22 years ago* Refactor trace values to work as a proper pass. Before it used to add
Chris Lattner [Fri, 14 Dec 2001 16:26:05 +0000 (16:26 +0000)]
* Refactor trace values to work as a proper pass.  Before it used to add
  methods while the pass was running which was a no no.  Now it adds the
  printf method at pass initialization
* Revamp code to use printf calls instead of the old style print_<type>
  calls.
* Simplify code

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

22 years agoRefactor trace values to work as a proper pass. Before it used to add
Chris Lattner [Fri, 14 Dec 2001 16:23:53 +0000 (16:23 +0000)]
Refactor trace values to work as a proper pass.  Before it used to add
methods while the pass was running which was a no no.  Now it adds the
printf method at pass initialization

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

22 years ago* Remove support for unsized arrays.
Chris Lattner [Fri, 14 Dec 2001 16:22:56 +0000 (16:22 +0000)]
* Remove support for unsized arrays.
* Free instruction does not accept a name
* MemAccessInst can now be used with cast/isa/dyn_cast/...

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

22 years agoPointerType and ArrayType now subclass Sequential type, which contains addressability...
Chris Lattner [Fri, 14 Dec 2001 16:20:21 +0000 (16:20 +0000)]
PointerType and ArrayType now subclass Sequential type, which contains addressability logic for indexing.  Unsized arrays have been removed.

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

22 years agoadded a section on how to modify live variable code to use LLVM instructions
Ruchira Sasanka [Thu, 13 Dec 2001 21:25:46 +0000 (21:25 +0000)]
added a section on how to modify live variable code to use LLVM instructions
instead of machine instructions.

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

22 years agoNot just arrays are unsized
Chris Lattner [Thu, 13 Dec 2001 00:46:11 +0000 (00:46 +0000)]
Not just arrays are unsized

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

22 years agoAssertion could never fail because another one would in it's place. :)
Chris Lattner [Thu, 13 Dec 2001 00:45:40 +0000 (00:45 +0000)]
Assertion could never fail because another one would in it's place.  :)

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

22 years agoSome programs are using BB's as values, until we resolve this. Disable the assert
Chris Lattner [Thu, 13 Dec 2001 00:45:06 +0000 (00:45 +0000)]
Some programs are using BB's as values, until we resolve this. Disable the assert

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

22 years agoBuild runtime library with local GCCAS
Chris Lattner [Thu, 13 Dec 2001 00:44:23 +0000 (00:44 +0000)]
Build runtime library with local GCCAS

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

22 years agoImplement strlen strdup strcmp
Chris Lattner [Thu, 13 Dec 2001 00:44:09 +0000 (00:44 +0000)]
Implement strlen strdup strcmp

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

22 years agoImplement sprintf
Chris Lattner [Thu, 13 Dec 2001 00:43:47 +0000 (00:43 +0000)]
Implement sprintf

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

22 years agoSwap operands now preserves the semantics of the binary operator by changing
Chris Lattner [Thu, 13 Dec 2001 00:43:03 +0000 (00:43 +0000)]
Swap operands now preserves the semantics of the binary operator by changing
the opcode of the instruction if possible.

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

22 years agoAdd debugging to make a more useful message if a value gets constructed with a null...
Chris Lattner [Thu, 13 Dec 2001 00:41:27 +0000 (00:41 +0000)]
Add debugging to make a more useful message if a value gets constructed with a null type

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

22 years agoImplement some nice functions useful for looking at types
Chris Lattner [Thu, 13 Dec 2001 00:40:16 +0000 (00:40 +0000)]
Implement some nice functions useful for looking at types

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

22 years agoImplement proper iterator tags
Chris Lattner [Thu, 13 Dec 2001 00:39:49 +0000 (00:39 +0000)]
Implement proper iterator tags

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

22 years agoSubclasses can change the opcode of an instruction
Chris Lattner [Thu, 13 Dec 2001 00:39:33 +0000 (00:39 +0000)]
Subclasses can change the opcode of an instruction

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

22 years agoConstants KNOW they are of a derived type
Chris Lattner [Thu, 13 Dec 2001 00:38:57 +0000 (00:38 +0000)]
Constants KNOW they are of a derived type

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

22 years agoAdded TRACEM option. Use -g when building native code for tests.
Vikram S. Adve [Wed, 12 Dec 2001 15:19:55 +0000 (15:19 +0000)]
Added TRACEM option.  Use -g when building native code for tests.

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

22 years agoDocumentation (draft) for reg alloc
Ruchira Sasanka [Sun, 9 Dec 2001 20:21:49 +0000 (20:21 +0000)]
Documentation (draft) for reg alloc

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

22 years agoUse _LOCAL_ gccas to build instead of Chris's
Chris Lattner [Sun, 9 Dec 2001 16:55:43 +0000 (16:55 +0000)]
Use _LOCAL_ gccas to build instead of Chris's

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

22 years agoAdded more comments. Added code to destructor in MethodLiveVarInfo to delete
Ruchira Sasanka [Sat, 8 Dec 2001 21:05:27 +0000 (21:05 +0000)]
Added more comments. Added code to destructor in MethodLiveVarInfo to delete
LiveVarSet caches.

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

22 years agoAdded comments are more documentation info
Ruchira Sasanka [Sat, 8 Dec 2001 21:04:22 +0000 (21:04 +0000)]
Added comments are more documentation info

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

22 years agoTell the user if a file is corrupt or not... not that the file cannot be
Chris Lattner [Sat, 8 Dec 2001 20:31:32 +0000 (20:31 +0000)]
Tell the user if a file is corrupt or not... not that the file cannot be
found.

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

22 years agoImplement more general conversions for getelementptr instructions
Chris Lattner [Fri, 7 Dec 2001 04:40:30 +0000 (04:40 +0000)]
Implement more general conversions for getelementptr instructions

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

22 years agoRemove code that is superceeded by code in ExprTypeConvert.cpp
Chris Lattner [Fri, 7 Dec 2001 04:39:01 +0000 (04:39 +0000)]
Remove code that is superceeded by code in ExprTypeConvert.cpp

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

22 years agoDon't insert scales of 1 :)
Chris Lattner [Fri, 7 Dec 2001 04:26:02 +0000 (04:26 +0000)]
Don't insert scales of 1  :)

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

22 years agoRun DCE before cleanupGCCoutput which will cause some dead types (like FILE) to be...
Chris Lattner [Fri, 7 Dec 2001 04:25:36 +0000 (04:25 +0000)]
Run DCE before cleanupGCCoutput which will cause some dead types (like FILE) to be removed

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

22 years agoDo not pessimize users of this function. Fix logic.
Chris Lattner [Thu, 6 Dec 2001 18:06:37 +0000 (18:06 +0000)]
Do not pessimize users of this function.  Fix logic.

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

22 years agoWe can do cast-add elimination even on casts that reinterpret
Chris Lattner [Thu, 6 Dec 2001 18:06:13 +0000 (18:06 +0000)]
We can do cast-add elimination even on casts that reinterpret

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

22 years agoFix bug that caused invalid transformations to be applied
Chris Lattner [Thu, 6 Dec 2001 18:05:55 +0000 (18:05 +0000)]
Fix bug that caused invalid transformations to be applied

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

22 years agoActually return true when a change has been made
Chris Lattner [Wed, 5 Dec 2001 19:41:33 +0000 (19:41 +0000)]
Actually return true when a change has been made

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

22 years agoHandle more complex array indexing expressions
Chris Lattner [Wed, 5 Dec 2001 19:41:16 +0000 (19:41 +0000)]
Handle more complex array indexing expressions

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

22 years agoFix pessimizations on sized arrays
Chris Lattner [Wed, 5 Dec 2001 19:40:32 +0000 (19:40 +0000)]
Fix pessimizations on sized arrays

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

22 years agoFix a few bugs. Fix pessimization handling sized arrays
Chris Lattner [Wed, 5 Dec 2001 19:39:15 +0000 (19:39 +0000)]
Fix a few bugs.  Fix pessimization handling sized arrays

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

22 years ago"fix" problems processing floating point expressions
Chris Lattner [Wed, 5 Dec 2001 19:38:29 +0000 (19:38 +0000)]
"fix" problems processing floating point expressions

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

22 years agoHrm, don't do debugging output when debugging is off. :(
Chris Lattner [Wed, 5 Dec 2001 06:40:17 +0000 (06:40 +0000)]
Hrm, don't do debugging output when debugging is off.  :(

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

22 years agoRemove unnecesary namespace impot
Chris Lattner [Wed, 5 Dec 2001 06:35:30 +0000 (06:35 +0000)]
Remove unnecesary namespace impot

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

22 years agoSimplify induction variables before 'raising' the representation
Chris Lattner [Wed, 5 Dec 2001 06:34:58 +0000 (06:34 +0000)]
Simplify induction variables before 'raising' the representation

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

22 years agoFixes to type conversion stuff to match induction variables more frequently
Chris Lattner [Wed, 5 Dec 2001 06:34:00 +0000 (06:34 +0000)]
Fixes to type conversion stuff to match induction variables more frequently

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

22 years agoFix a bug that clobbered the step value on some inputs
Chris Lattner [Wed, 5 Dec 2001 06:32:30 +0000 (06:32 +0000)]
Fix a bug that clobbered the step value on some inputs

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

22 years agoFix a bug introduced by "internal linkage" work.
Chris Lattner [Tue, 4 Dec 2001 18:01:49 +0000 (18:01 +0000)]
Fix a bug introduced by "internal linkage" work.

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

22 years agoFix bugs, don't do external methods which causes segv.
Chris Lattner [Tue, 4 Dec 2001 08:13:06 +0000 (08:13 +0000)]
Fix bugs, don't do external methods which causes segv.

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

22 years agoRemove printouts
Chris Lattner [Tue, 4 Dec 2001 08:12:53 +0000 (08:12 +0000)]
Remove printouts

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

22 years agoFix a pessimization due to sucky LI testing
Chris Lattner [Tue, 4 Dec 2001 08:12:47 +0000 (08:12 +0000)]
Fix a pessimization due to sucky LI testing

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

22 years agoImplement induction variable simplification
Chris Lattner [Tue, 4 Dec 2001 04:32:29 +0000 (04:32 +0000)]
Implement induction variable simplification

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

22 years agoUse new induction variable simplification code with -indvars option
Chris Lattner [Tue, 4 Dec 2001 04:32:04 +0000 (04:32 +0000)]
Use new induction variable simplification code with -indvars option

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

22 years agoAllow hyphens in identifier names
Chris Lattner [Tue, 4 Dec 2001 04:31:30 +0000 (04:31 +0000)]
Allow hyphens in identifier names

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

22 years agoRenamed inst_const_iterator -> const_inst_iterator
Chris Lattner [Tue, 4 Dec 2001 00:03:30 +0000 (00:03 +0000)]
Renamed inst_const_iterator -> const_inst_iterator
Renamed op_const_iterator   -> const_op_iterator
Renamed PointerType::getValueType() -> PointerType::getElementType()

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

22 years agoRename ConstPoolVal -> Constant
Chris Lattner [Mon, 3 Dec 2001 22:26:30 +0000 (22:26 +0000)]
Rename ConstPoolVal -> Constant
Rename ConstPool*   -> Constant*
Rename ConstPoolVals.h -> ConstantVals.h

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

22 years agoSimplify induction variables pass
Chris Lattner [Mon, 3 Dec 2001 18:05:13 +0000 (18:05 +0000)]
Simplify induction variables pass

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

22 years agoSplit the PHINode class out from the iOther.h file into the iPHINode.h file
Chris Lattner [Mon, 3 Dec 2001 18:02:31 +0000 (18:02 +0000)]
Split the PHINode class out from the iOther.h file into the iPHINode.h file

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

22 years agoInitial checkin of indvar stuff
Chris Lattner [Mon, 3 Dec 2001 17:28:42 +0000 (17:28 +0000)]
Initial checkin of indvar stuff

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

22 years agoCompile the scalar directory
Chris Lattner [Mon, 3 Dec 2001 17:28:15 +0000 (17:28 +0000)]
Compile the scalar directory

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

22 years agoInduction variables must be phi nodes
Chris Lattner [Mon, 3 Dec 2001 17:27:42 +0000 (17:27 +0000)]
Induction variables must be phi nodes

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

22 years agoMove support directory
Chris Lattner [Thu, 29 Nov 2001 16:32:16 +0000 (16:32 +0000)]
Move support directory

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

22 years agoCreate a new #include "Support/..." directory structure to move things
Chris Lattner [Tue, 27 Nov 2001 00:03:19 +0000 (00:03 +0000)]
Create a new #include "Support/..." directory structure to move things
from "llvm/Support/..." that are not llvm dependant.

Move files and fix #includes

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

22 years agoMove DataTypes.h from llvm/Support to just Support
Chris Lattner [Mon, 26 Nov 2001 23:04:08 +0000 (23:04 +0000)]
Move DataTypes.h from llvm/Support to just Support

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

22 years agoNew testcase for globaldce
Chris Lattner [Mon, 26 Nov 2001 20:50:07 +0000 (20:50 +0000)]
New testcase for globaldce

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

22 years ago-raise includes constprop and dce
Chris Lattner [Mon, 26 Nov 2001 19:37:43 +0000 (19:37 +0000)]
-raise includes constprop and dce

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

22 years agoTurn off debug info
Chris Lattner [Mon, 26 Nov 2001 19:36:58 +0000 (19:36 +0000)]
Turn off debug info

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

22 years ago* Add hooks to globaldce
Chris Lattner [Mon, 26 Nov 2001 19:22:39 +0000 (19:22 +0000)]
* Add hooks to globaldce
* Fix ugly hacks by implementing IPOs correctly
* Use an auto_ptr to manage the module lifecycle

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

22 years agoLink to ipo library
Chris Lattner [Mon, 26 Nov 2001 19:21:02 +0000 (19:21 +0000)]
Link to ipo library

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

22 years agoFix problem where lli < foo.bc would have argc = 0
Chris Lattner [Mon, 26 Nov 2001 19:20:38 +0000 (19:20 +0000)]
Fix problem where lli < foo.bc would have argc = 0

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

22 years agoUse pointertype where appropriate
Chris Lattner [Mon, 26 Nov 2001 19:20:16 +0000 (19:20 +0000)]
Use pointertype where appropriate

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

22 years agoRemove invalid,unneccesary ## token
Chris Lattner [Mon, 26 Nov 2001 19:19:27 +0000 (19:19 +0000)]
Remove invalid,unneccesary ## token

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

22 years agoAdd support to enable -lfoo to be processed correctly
Chris Lattner [Mon, 26 Nov 2001 19:18:30 +0000 (19:18 +0000)]
Add support to enable -lfoo to be processed correctly

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

22 years agoAdd hooks to print natural loop information and induction variables
Chris Lattner [Mon, 26 Nov 2001 19:18:11 +0000 (19:18 +0000)]
Add  hooks to print natural loop information and induction variables

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

22 years agoAdd testcases for internal
Chris Lattner [Mon, 26 Nov 2001 19:17:06 +0000 (19:17 +0000)]
Add testcases for internal

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

22 years agoRename irreducible to cfgstructures.ll Include other interesting structures
Chris Lattner [Mon, 26 Nov 2001 19:16:37 +0000 (19:16 +0000)]
Rename irreducible to cfgstructures.ll  Include other interesting structures

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

22 years agoMAke sure diffs match
Chris Lattner [Mon, 26 Nov 2001 19:15:25 +0000 (19:15 +0000)]
MAke sure diffs match

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

22 years agoImplement internal
Chris Lattner [Mon, 26 Nov 2001 19:14:56 +0000 (19:14 +0000)]
Implement internal

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

22 years agoMake strings be internal
Chris Lattner [Mon, 26 Nov 2001 19:14:33 +0000 (19:14 +0000)]
Make strings be internal

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

22 years agoRemove debugging output
Chris Lattner [Mon, 26 Nov 2001 19:14:16 +0000 (19:14 +0000)]
Remove debugging output

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

22 years agoSupport internal linkage
Chris Lattner [Mon, 26 Nov 2001 19:14:03 +0000 (19:14 +0000)]
Support internal linkage

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

22 years agoBuild IPO directory
Chris Lattner [Mon, 26 Nov 2001 18:59:30 +0000 (18:59 +0000)]
Build IPO directory

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

22 years agoImplement support for internal methods
Chris Lattner [Mon, 26 Nov 2001 18:59:18 +0000 (18:59 +0000)]
Implement support for internal methods

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

22 years agoInclude const prop as part of -raise
Chris Lattner [Mon, 26 Nov 2001 18:58:55 +0000 (18:58 +0000)]
Include const prop as part of -raise

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

22 years ago* Implement support for folding multiple single letter arguments together like
Chris Lattner [Mon, 26 Nov 2001 18:58:34 +0000 (18:58 +0000)]
* Implement support for folding multiple single letter arguments together like
  with ls: ls -la  === ls -l -a
* Implement support for trimming arguments that start with a single letter
  argument so that -lfoo is recognized as -l foo for the linker

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

22 years agoMisc cleanups
Chris Lattner [Mon, 26 Nov 2001 18:57:38 +0000 (18:57 +0000)]
Misc cleanups

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

22 years agoExpose constant propogation of an instruction in a clean way
Chris Lattner [Mon, 26 Nov 2001 18:57:12 +0000 (18:57 +0000)]
Expose constant propogation of an instruction in a clean way

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

22 years agoStuff after a #endif is not valid CPP input and breaks some compilers
Chris Lattner [Mon, 26 Nov 2001 18:56:52 +0000 (18:56 +0000)]
Stuff after a #endif is not valid CPP input and breaks some compilers

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