oota-llvm.git
22 years agoNew testcase for bug found by Vikram
Chris Lattner [Thu, 2 May 2002 16:16:39 +0000 (16:16 +0000)]
New testcase for bug found by Vikram

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

22 years agoCheck another case
Chris Lattner [Thu, 2 May 2002 15:24:40 +0000 (15:24 +0000)]
Check another case

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

22 years agoFixed bug: test/Regression/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll
Chris Lattner [Wed, 1 May 2002 15:38:23 +0000 (15:38 +0000)]
Fixed bug: test/Regression/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll

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

22 years agoNew bug testcase
Chris Lattner [Wed, 1 May 2002 15:33:12 +0000 (15:33 +0000)]
New bug testcase

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

22 years agoRemove unneccesary pass.
Chris Lattner [Tue, 30 Apr 2002 20:53:05 +0000 (20:53 +0000)]
Remove unneccesary pass.

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

22 years agoRemove unneccesary pass
Chris Lattner [Tue, 30 Apr 2002 20:52:49 +0000 (20:52 +0000)]
Remove unneccesary pass

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

22 years agoNew testcase
Chris Lattner [Tue, 30 Apr 2002 19:50:47 +0000 (19:50 +0000)]
New testcase

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

22 years agoFix problem where subpasses would invalidate all analyses outstanding
Chris Lattner [Tue, 30 Apr 2002 18:50:17 +0000 (18:50 +0000)]
Fix problem where subpasses would invalidate all analyses outstanding

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

22 years agoAdd folding rules for mul X, 0 and mul X, 2
Chris Lattner [Mon, 29 Apr 2002 22:24:47 +0000 (22:24 +0000)]
Add folding rules for mul X, 0 and mul X, 2

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

22 years agoNew test cases for mul folding
Chris Lattner [Mon, 29 Apr 2002 22:24:24 +0000 (22:24 +0000)]
New test cases for mul folding

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

22 years agoSignificantly clean up SCCP pass. Now the two classes are merged and in
Chris Lattner [Mon, 29 Apr 2002 21:26:08 +0000 (21:26 +0000)]
Significantly clean up SCCP pass.  Now the two classes are merged and in
an anonymous namespace where they belong.

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

22 years agoRange insertion now returns an iterator
Chris Lattner [Mon, 29 Apr 2002 21:25:34 +0000 (21:25 +0000)]
Range insertion now returns an iterator

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

22 years agoMake the range insert operation return an iterator, even though the STL
Chris Lattner [Mon, 29 Apr 2002 21:23:30 +0000 (21:23 +0000)]
Make the range insert operation return an iterator, even though the STL
range insert doesn't

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

22 years agoThese aren't tools
Chris Lattner [Mon, 29 Apr 2002 20:29:30 +0000 (20:29 +0000)]
These aren't tools

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

22 years agoRemove unused files: This is the old induction varaible cannonicalization
Chris Lattner [Mon, 29 Apr 2002 20:18:00 +0000 (20:18 +0000)]
Remove unused files:  This is the old induction varaible cannonicalization
pass built on top of interval analysis

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

22 years agoMove constant merging pass earlier
Chris Lattner [Mon, 29 Apr 2002 20:11:38 +0000 (20:11 +0000)]
Move constant merging pass earlier
Include the SCCP pass in gccas

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

22 years agoFix for problem when allocating something like this:
Chris Lattner [Mon, 29 Apr 2002 20:09:21 +0000 (20:09 +0000)]
Fix for problem when allocating something like this:
   malloc(100-i);

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

22 years agoMerge Chris's script with the one already checked in
Chris Lattner [Mon, 29 Apr 2002 19:11:01 +0000 (19:11 +0000)]
Merge Chris's script with the one already checked in

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

22 years agoFix #include broken by iMemory.h not including DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:56:45 +0000 (18:56 +0000)]
Fix #include broken by iMemory.h not including DerivedTypes.h

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

22 years agoAdd neccesary #include
Chris Lattner [Mon, 29 Apr 2002 18:48:55 +0000 (18:48 +0000)]
Add neccesary #include

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

22 years agochanges because iMemory.h no longer #includes DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:48:30 +0000 (18:48 +0000)]
changes because iMemory.h no longer #includes DerivedTypes.h
This only requires Type.h anyway

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

22 years agoChanges so that iMemory.h doesn't include DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:46:50 +0000 (18:46 +0000)]
Changes so that iMemory.h doesn't include DerivedTypes.h

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

22 years agoChange to allow iMemory.h to avoid including DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:46:22 +0000 (18:46 +0000)]
Change to allow iMemory.h to avoid including DerivedTypes.h

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

22 years agoFix bug: test/Regression/Other/2002-04-29-NameBinding.ll
Chris Lattner [Mon, 29 Apr 2002 18:25:33 +0000 (18:25 +0000)]
Fix bug: test/Regression/Other/2002-04-29-NameBinding.ll

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

22 years agoRemove InstForest from analysis namespace
Chris Lattner [Mon, 29 Apr 2002 18:13:31 +0000 (18:13 +0000)]
Remove InstForest from analysis namespace

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

22 years agoEliminate dead global variables
Chris Lattner [Mon, 29 Apr 2002 18:13:11 +0000 (18:13 +0000)]
Eliminate dead global variables

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

22 years agoRemove analysis namespace
Chris Lattner [Mon, 29 Apr 2002 18:12:52 +0000 (18:12 +0000)]
Remove analysis namespace

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

22 years agoNew test for broken asm parser
Chris Lattner [Mon, 29 Apr 2002 18:12:28 +0000 (18:12 +0000)]
New test for broken asm parser

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

22 years agoEliminate duplicate or unneccesary #include's
Chris Lattner [Mon, 29 Apr 2002 17:42:12 +0000 (17:42 +0000)]
Eliminate duplicate or unneccesary #include's

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

22 years agoRemove broken assertion.
Chris Lattner [Mon, 29 Apr 2002 16:20:25 +0000 (16:20 +0000)]
Remove broken assertion.

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

22 years agoAdd new optional getPassName() virtual function that a Pass can override
Chris Lattner [Mon, 29 Apr 2002 14:57:45 +0000 (14:57 +0000)]
Add new optional getPassName() virtual function that a Pass can override
to make debugging output a lot nicer.

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

22 years agoAdd a new command line option for PassManager using utilities.
Chris Lattner [Mon, 29 Apr 2002 04:04:29 +0000 (04:04 +0000)]
Add a new command line option for PassManager using utilities.
Now for llc, gccas, analyze, opt, etc you can specify the -time-passes
command line option that outputs a timing summary report that indicates
how long each pass takes to execute.

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

22 years agoStub functions for timing support
Chris Lattner [Mon, 29 Apr 2002 04:02:50 +0000 (04:02 +0000)]
Stub functions for timing support

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

22 years agoMore cleanups
Chris Lattner [Mon, 29 Apr 2002 01:58:47 +0000 (01:58 +0000)]
More cleanups

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

22 years agoCode cleanups
Chris Lattner [Mon, 29 Apr 2002 01:22:55 +0000 (01:22 +0000)]
Code cleanups

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

22 years agoRemove dead code
Chris Lattner [Sun, 28 Apr 2002 21:57:50 +0000 (21:57 +0000)]
Remove dead code

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

22 years agoFIXME removed: malloc/alloca ALWAYS have a size argument
Chris Lattner [Sun, 28 Apr 2002 21:57:33 +0000 (21:57 +0000)]
FIXME removed: malloc/alloca ALWAYS have a size argument

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

22 years agoRename functions to be more consistend with other pass constructors
Chris Lattner [Sun, 28 Apr 2002 21:45:36 +0000 (21:45 +0000)]
Rename functions to be more consistend with other pass constructors

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

22 years agoTodo has been implemented, remove it
Chris Lattner [Sun, 28 Apr 2002 21:45:02 +0000 (21:45 +0000)]
Todo has been implemented, remove it

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

22 years agoTighten up the AnalysisUsage of lots of passes, primarily to correctly indicate wheth...
Chris Lattner [Sun, 28 Apr 2002 21:27:06 +0000 (21:27 +0000)]
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA

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

22 years agoTighten up the AnalysisUsage of lots of passes, primarily to correctly indicate wheth...
Chris Lattner [Sun, 28 Apr 2002 21:26:51 +0000 (21:26 +0000)]
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFG

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

22 years agoMove FunctionPass::doesNotModifyCFG to AnalysisUsage::preservesCFG()
Chris Lattner [Sun, 28 Apr 2002 21:25:41 +0000 (21:25 +0000)]
Move FunctionPass::doesNotModifyCFG to AnalysisUsage::preservesCFG()

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

22 years ago* Add a stub to FunctionPass so that subclasses can declare that they do not
Chris Lattner [Sun, 28 Apr 2002 20:46:05 +0000 (20:46 +0000)]
* Add a stub to FunctionPass so that subclasses can declare that they do not
  modify the CFG.  It currently does nothing, but will in the future.
* Changes to make the public PassManager.h be MUCH smaller, and devoid of
  implementation details.  Now PassManager is just a Pimpl class that wraps
  PassManagerT<Module>, but lib/VMCore/Pass.cpp is now the only class that
  has to #include PassManagerT.h

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

22 years agoMove include/llvm/PassManager.h to lib/VMCore/PassManagerT.h
Chris Lattner [Sun, 28 Apr 2002 20:42:50 +0000 (20:42 +0000)]
Move include/llvm/PassManager.h to lib/VMCore/PassManagerT.h

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

22 years agoAdd #include that was removed from TargetMachine.h
Chris Lattner [Sun, 28 Apr 2002 20:40:59 +0000 (20:40 +0000)]
Add #include that was removed from TargetMachine.h

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

22 years agoUse forward decl instead of #include
Chris Lattner [Sun, 28 Apr 2002 20:40:25 +0000 (20:40 +0000)]
Use forward decl instead of #include

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

22 years agoInclude appropriate file
Chris Lattner [Sun, 28 Apr 2002 20:40:16 +0000 (20:40 +0000)]
Include appropriate file

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

22 years agoSplit ConstantVals.h into Constant.h and Constants.h
Chris Lattner [Sun, 28 Apr 2002 19:55:58 +0000 (19:55 +0000)]
Split ConstantVals.h into Constant.h and Constants.h

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

22 years agoFix two FIXME's
Chris Lattner [Sun, 28 Apr 2002 19:49:58 +0000 (19:49 +0000)]
Fix two FIXME's

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

22 years agoSimplify and update code a bit
Chris Lattner [Sun, 28 Apr 2002 19:20:10 +0000 (19:20 +0000)]
Simplify and update code a bit

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

22 years agoEliminate the PromoteInstance class, incorporating it into the PromotePass
Chris Lattner [Sun, 28 Apr 2002 19:12:38 +0000 (19:12 +0000)]
Eliminate the PromoteInstance class, incorporating it into the PromotePass
class.

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

22 years agoEliminate visited, CurrentValue, and WriteSets as instance variables of
Chris Lattner [Sun, 28 Apr 2002 18:54:01 +0000 (18:54 +0000)]
Eliminate visited, CurrentValue, and WriteSets as instance variables of
PromoteInstance.  Make them local variables that are passed around as
appropriate.  Especially in the case of CurrentValue, this makes the
code simpler.

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

22 years ago* Fix bug: test/Regression/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
Chris Lattner [Sun, 28 Apr 2002 18:39:46 +0000 (18:39 +0000)]
* Fix bug: test/Regression/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
* Minor cleanup that was missed in last patch

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

22 years agoThis huge changeset is a strictly cleanup change
Chris Lattner [Sun, 28 Apr 2002 18:27:55 +0000 (18:27 +0000)]
This huge changeset is a strictly cleanup change
Bugfixes will come in the next revision so that the diff is obvious.

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

22 years agoEliminate the cfg namespace
Chris Lattner [Sun, 28 Apr 2002 16:21:53 +0000 (16:21 +0000)]
Eliminate the cfg namespace

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

22 years agoEliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
Chris Lattner [Sun, 28 Apr 2002 16:21:30 +0000 (16:21 +0000)]
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace

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

22 years agoRemove all contents of the cfg namespace to the global namespace
Chris Lattner [Sun, 28 Apr 2002 16:19:42 +0000 (16:19 +0000)]
Remove all contents of the cfg namespace to the global namespace

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

22 years agoRemove obsolete namespace from example
Chris Lattner [Sun, 28 Apr 2002 16:18:32 +0000 (16:18 +0000)]
Remove obsolete namespace from example

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

22 years agoRemove extra unused argument from CheckFailed method
Chris Lattner [Sun, 28 Apr 2002 16:06:24 +0000 (16:06 +0000)]
Remove extra unused argument from CheckFailed method
Remove extraneous \n's from assert strings

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

22 years agoThe check to see if an external function was marked internal was not reachable!
Chris Lattner [Sun, 28 Apr 2002 16:04:26 +0000 (16:04 +0000)]
The check to see if an external function was marked internal was not reachable!

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

22 years agoExpose the internalize pass.
Chris Lattner [Sun, 28 Apr 2002 05:49:53 +0000 (05:49 +0000)]
Expose the internalize pass.

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

22 years agoRun the internalize pass to mark all functions except main internal when
Chris Lattner [Sun, 28 Apr 2002 05:49:45 +0000 (05:49 +0000)]
Run the internalize pass to mark all functions except main internal when
linking the final program to allow smarter optimizations

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

22 years agoBe careful not to make "external" function internal
Chris Lattner [Sun, 28 Apr 2002 05:48:34 +0000 (05:48 +0000)]
Be careful not to make "external" function internal

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

22 years agoInitial checkin of new "Internalize" pass for GCCLD
Chris Lattner [Sun, 28 Apr 2002 05:43:27 +0000 (05:43 +0000)]
Initial checkin of new "Internalize" pass for GCCLD

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

22 years agoMinor changes to allow Modules (which are no longer Values) to work
Chris Lattner [Sun, 28 Apr 2002 05:14:06 +0000 (05:14 +0000)]
Minor changes to allow Modules (which are no longer Values) to work

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

22 years agoUse operator << to print modules
Chris Lattner [Sun, 28 Apr 2002 05:13:45 +0000 (05:13 +0000)]
Use operator << to print modules

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

22 years agoSymTabValue class incorporated into Function and Module classes.
Chris Lattner [Sun, 28 Apr 2002 04:56:59 +0000 (04:56 +0000)]
SymTabValue class incorporated into Function and Module classes.

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

22 years agoInclude an operator<<, to print modules
Chris Lattner [Sun, 28 Apr 2002 04:56:28 +0000 (04:56 +0000)]
Include an operator<<, to print modules

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

22 years agoEliminate use of SymTabValue class
Chris Lattner [Sun, 28 Apr 2002 04:55:14 +0000 (04:55 +0000)]
Eliminate use of SymTabValue class

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

22 years agoThe contents of the SymTabValue class have been incorporated into the
Chris Lattner [Sun, 28 Apr 2002 04:52:28 +0000 (04:52 +0000)]
The contents of the SymTabValue class have been incorporated into the
Module and Function classes directly.

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

22 years ago* Incorporate the contents of SymTabValue into Function and Module
Chris Lattner [Sun, 28 Apr 2002 04:51:51 +0000 (04:51 +0000)]
* Incorporate the contents of SymTabValue into Function and Module
* Module no longer subclasses Value

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

22 years agoModule's are no longer values
Chris Lattner [Sun, 28 Apr 2002 04:51:09 +0000 (04:51 +0000)]
Module's are no longer values

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

22 years agoSimplify code
Chris Lattner [Sun, 28 Apr 2002 04:50:54 +0000 (04:50 +0000)]
Simplify code
Remove unneccesary getID variant for module's

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

22 years agoRemove unneccesary #include
Chris Lattner [Sun, 28 Apr 2002 04:50:19 +0000 (04:50 +0000)]
Remove unneccesary #include

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

22 years agoModule's are no longer Value subclasses
Chris Lattner [Sun, 28 Apr 2002 04:50:00 +0000 (04:50 +0000)]
Module's are no longer Value subclasses

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

22 years agoFix signed/unsigned comparison warning
Chris Lattner [Sun, 28 Apr 2002 04:49:43 +0000 (04:49 +0000)]
Fix signed/unsigned comparison warning

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

22 years agoRemove forward def'ns that are already in Value.h
Chris Lattner [Sun, 28 Apr 2002 04:47:33 +0000 (04:47 +0000)]
Remove forward def'ns that are already in Value.h
Do not support output of Modules directly

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

22 years agos/Method/Function
Chris Lattner [Sun, 28 Apr 2002 04:47:06 +0000 (04:47 +0000)]
s/Method/Function

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

22 years agoModule's are no longer Value's.
Chris Lattner [Sun, 28 Apr 2002 04:46:29 +0000 (04:46 +0000)]
Module's are no longer Value's.

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

22 years agoThe interesting contents of SymTabValue were incorporated into Function
Chris Lattner [Sun, 28 Apr 2002 04:46:07 +0000 (04:46 +0000)]
The interesting contents of SymTabValue were incorporated into Function

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

22 years ago* Module's are no longer Value's
Chris Lattner [Sun, 28 Apr 2002 04:45:48 +0000 (04:45 +0000)]
* Module's are no longer Value's
* Incorporate SymTabValue contents into the Module class

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

22 years agoAdd a forward defn for Module since it's no longer in Value.h
Chris Lattner [Sun, 28 Apr 2002 04:45:05 +0000 (04:45 +0000)]
Add a forward defn for Module since it's no longer in Value.h

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

22 years ago* Incorporate the functionality of SymTabValue into Function
Chris Lattner [Sun, 28 Apr 2002 04:44:40 +0000 (04:44 +0000)]
* Incorporate the functionality of SymTabValue into Function
* s/Method/Function

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

22 years agoNew testcase for GCSE
Chris Lattner [Sun, 28 Apr 2002 01:46:36 +0000 (01:46 +0000)]
New testcase for GCSE

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

22 years agoTest GCSE
Chris Lattner [Sun, 28 Apr 2002 01:46:30 +0000 (01:46 +0000)]
Test GCSE

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

22 years agoRun GCSE as part of gccas.
Chris Lattner [Sun, 28 Apr 2002 01:00:15 +0000 (01:00 +0000)]
Run GCSE as part of gccas.

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

22 years agoExpose new GCSE pass
Chris Lattner [Sun, 28 Apr 2002 00:48:17 +0000 (00:48 +0000)]
Expose new GCSE pass

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

22 years agoInitial checkin of simple&fast SSA based GCSE algorithm
Chris Lattner [Sun, 28 Apr 2002 00:47:11 +0000 (00:47 +0000)]
Initial checkin of simple&fast SSA based GCSE algorithm

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

22 years agoChange the Dominator info and LoopInfo classes to keep track of BasicBlock's, not
Chris Lattner [Sun, 28 Apr 2002 00:15:57 +0000 (00:15 +0000)]
Change the Dominator info and LoopInfo classes to keep track of BasicBlock's, not
const BasicBlocks

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

22 years agos/Method/Function
Chris Lattner [Sat, 27 Apr 2002 07:27:19 +0000 (07:27 +0000)]
s/Method/Function

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

22 years agos/Method/Function in classname
Chris Lattner [Sat, 27 Apr 2002 06:59:56 +0000 (06:59 +0000)]
s/Method/Function in classname

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

22 years agoRemove old file that will never be used
Chris Lattner [Sat, 27 Apr 2002 06:57:52 +0000 (06:57 +0000)]
Remove old file that will never be used

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

22 years ago* Rename MethodPass class to FunctionPass
Chris Lattner [Sat, 27 Apr 2002 06:56:12 +0000 (06:56 +0000)]
* Rename MethodPass class to FunctionPass
  - Rename runOnMethod to runOnFunction
* Transform getAnalysisUsageInfo into getAnalysisUsage
  - Method is now const
  - It now takes one AnalysisUsage object to fill in instead of 3 vectors
    to fill in
  - Pass's now specify which other passes they _preserve_ not which ones
    they modify (be conservative!)
  - A pass can specify that it preserves all analyses (because it never
    modifies the underlying program)
* s/Method/Function/g in other random places as well

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

22 years agoChanges because the Terminator::getSuccessor function now FAILS if successor
Chris Lattner [Sat, 27 Apr 2002 03:15:45 +0000 (03:15 +0000)]
Changes because the Terminator::getSuccessor function now FAILS if successor
IDX is out of range instead of returning null.

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

22 years agoUse the cast<> operator in favor of C style casts
Chris Lattner [Sat, 27 Apr 2002 03:14:39 +0000 (03:14 +0000)]
Use the cast<> operator in favor of C style casts

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

22 years agoChange the semantics of getSuccessor to FAIL if an out of range successor # is attempted.
Chris Lattner [Sat, 27 Apr 2002 03:14:12 +0000 (03:14 +0000)]
Change the semantics of getSuccessor to FAIL if an out of range successor # is attempted.

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

22 years ago* Change Constant::getNullConstant to Constant::getNullValue
Chris Lattner [Sat, 27 Apr 2002 02:29:32 +0000 (02:29 +0000)]
* Change Constant::getNullConstant to Constant::getNullValue
* Add support for pool allocating array allocations of varying size

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

22 years agoAdd support for tracking array allocations
Chris Lattner [Sat, 27 Apr 2002 02:28:41 +0000 (02:28 +0000)]
Add support for tracking array allocations

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

22 years agoAllow the inline limit to be modified on the commandline for debugging
Chris Lattner [Sat, 27 Apr 2002 02:27:48 +0000 (02:27 +0000)]
Allow the inline limit to be modified on the commandline for debugging

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

22 years agoSupport array allocations
Chris Lattner [Sat, 27 Apr 2002 02:27:11 +0000 (02:27 +0000)]
Support array allocations

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