oota-llvm.git
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

22 years agoImplement internal method support
Chris Lattner [Mon, 26 Nov 2001 18:56:10 +0000 (18:56 +0000)]
Implement internal method support

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

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

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

22 years agoImplement writer support for Loops, Induction Variables, and CallGraphs
Chris Lattner [Mon, 26 Nov 2001 18:53:29 +0000 (18:53 +0000)]
Implement writer support for Loops, Induction Variables, and CallGraphs

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

22 years agoMake Mul work right
Chris Lattner [Mon, 26 Nov 2001 18:53:07 +0000 (18:53 +0000)]
Make Mul work right
Make sub work right

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

22 years agoFix a bad assertion to be correct . The root basic block can be used by PHI nodes.
Chris Lattner [Mon, 26 Nov 2001 18:52:02 +0000 (18:52 +0000)]
Fix a bad assertion to be correct . The root basic block can be used by PHI nodes.

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

22 years agoImplement a new entry node that has edges to all external methods in the module
Chris Lattner [Mon, 26 Nov 2001 18:51:25 +0000 (18:51 +0000)]
Implement a new entry node that has edges to all external methods in the module

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

22 years agoRemove unused method
Chris Lattner [Mon, 26 Nov 2001 18:50:26 +0000 (18:50 +0000)]
Remove unused method

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

22 years agoExpose constant prop of an instruction
Chris Lattner [Mon, 26 Nov 2001 18:50:11 +0000 (18:50 +0000)]
Expose constant prop of an instruction

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

22 years agoFix field initialization order problem
Chris Lattner [Mon, 26 Nov 2001 18:49:54 +0000 (18:49 +0000)]
Fix field initialization order problem

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

22 years agoAllow output of manipulators for GCC 2.96 compatibility
Chris Lattner [Mon, 26 Nov 2001 18:49:33 +0000 (18:49 +0000)]
Allow output of manipulators for GCC 2.96 compatibility

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

22 years agoAdd writer support for call graph nodes and loops and induction variables
Chris Lattner [Mon, 26 Nov 2001 18:47:46 +0000 (18:47 +0000)]
Add writer support for call graph nodes and loops and induction variables

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

22 years agoImplement an entry node for the call graph
Chris Lattner [Mon, 26 Nov 2001 18:47:11 +0000 (18:47 +0000)]
Implement an entry node for the call graph

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

22 years agoImplement "internal vs external linkage" which corresponds to the C notion of static
Chris Lattner [Mon, 26 Nov 2001 18:46:40 +0000 (18:46 +0000)]
Implement "internal vs external linkage" which corresponds to the C notion of static

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

22 years agoImplement stuff, remove todos
Chris Lattner [Mon, 26 Nov 2001 18:42:55 +0000 (18:42 +0000)]
Implement stuff, remove todos

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

22 years agoImplement DCE of global values
Chris Lattner [Mon, 26 Nov 2001 18:42:17 +0000 (18:42 +0000)]
Implement DCE of global values

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

22 years ago* Implement dominator based loop identification
Chris Lattner [Mon, 26 Nov 2001 18:41:20 +0000 (18:41 +0000)]
* Implement dominator based loop identification
* Implement cleaner induction variable identification

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

22 years agoChange swapstructs itf
Chris Lattner [Mon, 26 Nov 2001 18:18:53 +0000 (18:18 +0000)]
Change swapstructs itf
Add nasty hack to be removed later

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

22 years ago* Implement array indexing in lli
Chris Lattner [Mon, 26 Nov 2001 18:18:18 +0000 (18:18 +0000)]
* Implement array indexing in lli
* Add external atoi method as well as floor, and srand

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

22 years agoRun constprop before -raise
Chris Lattner [Mon, 26 Nov 2001 18:16:07 +0000 (18:16 +0000)]
Run constprop before -raise

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

22 years agoTest array indexing
Chris Lattner [Mon, 26 Nov 2001 17:02:56 +0000 (17:02 +0000)]
Test array indexing

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

22 years agoSupport Array Indexing
Chris Lattner [Mon, 26 Nov 2001 17:02:05 +0000 (17:02 +0000)]
Support Array Indexing

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

22 years agoImplement: isLosslesslyConvertableTo and new CompositeType base class
Chris Lattner [Mon, 26 Nov 2001 17:01:47 +0000 (17:01 +0000)]
Implement: isLosslesslyConvertableTo and new CompositeType base class

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

22 years agoIf a name conflict occurs when inserting a value, rename it.
Chris Lattner [Mon, 26 Nov 2001 17:01:18 +0000 (17:01 +0000)]
If a name conflict occurs when inserting a value, rename it.

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

22 years agoSupport array indexing
Chris Lattner [Mon, 26 Nov 2001 17:00:43 +0000 (17:00 +0000)]
Support array indexing

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

22 years agoSupport Composite's, not just structs
Chris Lattner [Mon, 26 Nov 2001 17:00:13 +0000 (17:00 +0000)]
Support Composite's, not just structs

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

22 years agolosslessCastableTypes is moved to Type class
Chris Lattner [Mon, 26 Nov 2001 16:59:47 +0000 (16:59 +0000)]
losslessCastableTypes is moved to Type class
getStructOffsetType supports array indexing

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

22 years agoSupport selectable structure transformations
Chris Lattner [Mon, 26 Nov 2001 16:59:10 +0000 (16:59 +0000)]
Support selectable structure transformations

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

22 years agoSupport mutation of array indexing
Chris Lattner [Mon, 26 Nov 2001 16:58:33 +0000 (16:58 +0000)]
Support mutation of array indexing

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

22 years agoClean up code, implement array indexing stuff
Chris Lattner [Mon, 26 Nov 2001 16:58:14 +0000 (16:58 +0000)]
Clean up code, implement array indexing stuff

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