oota-llvm.git
22 years agoFix testcase
Chris Lattner [Wed, 31 Jul 2002 17:54:24 +0000 (17:54 +0000)]
Fix testcase

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

22 years agoNew testcase
Chris Lattner [Wed, 31 Jul 2002 17:52:36 +0000 (17:52 +0000)]
New testcase

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

22 years agoTestcase that was triggering an incorrect assertion failure
Chris Lattner [Wed, 31 Jul 2002 17:39:38 +0000 (17:39 +0000)]
Testcase that was triggering an incorrect assertion failure

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

22 years agoVerify pass has been run for a long time now
Chris Lattner [Wed, 31 Jul 2002 17:39:16 +0000 (17:39 +0000)]
Verify pass has been run for a long time now

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

22 years agoAdd new -only-print-main-ds option that causes mains ds graph to be
Chris Lattner [Wed, 31 Jul 2002 17:15:40 +0000 (17:15 +0000)]
Add new  -only-print-main-ds option that causes mains ds graph to be
printed, but no others.

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

22 years agoChange command line option message on -q to make it more accurate
Chris Lattner [Wed, 31 Jul 2002 16:52:49 +0000 (16:52 +0000)]
Change command line option message on -q to make it more accurate

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

22 years agoFix bug that was causing problems for lli
Chris Lattner [Wed, 31 Jul 2002 16:29:43 +0000 (16:29 +0000)]
Fix bug that was causing problems for lli

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

22 years agoRemove obsolete, confusing, method
Chris Lattner [Wed, 31 Jul 2002 01:45:02 +0000 (01:45 +0000)]
Remove obsolete, confusing, method

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

22 years agoThis testcase is independant of varargsness
Chris Lattner [Tue, 30 Jul 2002 22:24:07 +0000 (22:24 +0000)]
This testcase is independant of varargsness
Simplify.

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

22 years agoAdd GlobalDSGraph -- a common graph that holds externally visible nodes.
Vikram S. Adve [Tue, 30 Jul 2002 22:08:08 +0000 (22:08 +0000)]
Add GlobalDSGraph -- a common graph that holds externally visible nodes.

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

22 years agoPrint globals graph after either the BU or the TD pass.
Vikram S. Adve [Tue, 30 Jul 2002 22:07:26 +0000 (22:07 +0000)]
Print globals graph after either the BU or the TD pass.

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

22 years agoThis file implements the top-down propagation pass for data structure graphs.
Vikram S. Adve [Tue, 30 Jul 2002 22:06:40 +0000 (22:06 +0000)]
This file implements the top-down propagation pass for data structure graphs.

Also, we now use a separate globals graph to hold externally visible nodes.
This changes both the bottom-up and top-down propagation so that
globals and other external objects do not have to appear in every
function, but only in functions in which they are referenced or
they can be used to access something else that is referenced.

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

22 years agoUse a separate globals graph to hold externally visible nodes.
Vikram S. Adve [Tue, 30 Jul 2002 22:05:22 +0000 (22:05 +0000)]
Use a separate globals graph to hold externally visible nodes.
This changes both the bottom-up and top-down propagation so that
globals and other external objects do not have to appear in every
function, but only in functions in which they are referenced or
they can be used to access something else that is referenced.

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

22 years agoAdd GlobalDSGraph -- a common graph that holds externally visible nodes.
Vikram S. Adve [Tue, 30 Jul 2002 22:02:04 +0000 (22:02 +0000)]
Add GlobalDSGraph -- a common graph that holds externally visible nodes.

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

22 years agoPrint the tool name when an error comes from so that I can tell which
Chris Lattner [Tue, 30 Jul 2002 21:43:25 +0000 (21:43 +0000)]
Print the tool name when an error comes from so that I can tell which
tool of a pipeline is having issues.

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

22 years agoPrint the tool name when an error comes from so that I can tell which
Chris Lattner [Tue, 30 Jul 2002 21:43:22 +0000 (21:43 +0000)]
Print the tool name when an error comes from so that I can tell which
tool of a pipeline is having issues.

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

22 years agoPrint the tool name when an error comes from so that I can tell which
Chris Lattner [Tue, 30 Jul 2002 19:52:14 +0000 (19:52 +0000)]
Print the tool name when an error comes from so that I can tell which
tool of a pipeline is having issues.

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

22 years agoImplement new -debug-pass=Arguments option that causes PassManager to
Chris Lattner [Tue, 30 Jul 2002 19:51:02 +0000 (19:51 +0000)]
Implement new -debug-pass=Arguments option that causes PassManager to
print out the command line options for the optimizations it is running.

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

22 years agoAdd hooks to get information out of concrete pass manager implementations
Chris Lattner [Tue, 30 Jul 2002 19:49:39 +0000 (19:49 +0000)]
Add hooks to get information out of concrete pass manager implementations

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

22 years ago* Indent class into anonymous namespace, filling up the diff with garbage
Chris Lattner [Tue, 30 Jul 2002 19:48:44 +0000 (19:48 +0000)]
* Indent class into anonymous namespace, filling up the diff with garbage
* Internalize global variables with initializers
* Add new stat to track global variable internalization
* Only count functions that were not internal before in internalized function
  count

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

22 years agoRemove extraneous #includes
Chris Lattner [Tue, 30 Jul 2002 19:33:19 +0000 (19:33 +0000)]
Remove extraneous #includes

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

22 years agoCleanup ConstantExpr handling:
Chris Lattner [Tue, 30 Jul 2002 18:54:25 +0000 (18:54 +0000)]
Cleanup ConstantExpr handling:
 * Correctly delete TypeHandles in AsmParser.  In addition to not leaking
   memory, this prevents a bug that could have occurred when a type got
   resolved that the constexpr was using
 * Check for errors in the AsmParser instead of hitting assertion failures
   deep in the code
 * Simplify the interface to the ConstantExpr class, removing unneccesary
   parameters to the ::get* methods.
 * Rename the 'getelementptr' version of ConstantExpr::get to
   ConstantExpr::getGetElementPtr

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

22 years agoCleanup ConstantExpr handling:
Chris Lattner [Tue, 30 Jul 2002 18:54:22 +0000 (18:54 +0000)]
Cleanup ConstantExpr handling:
 * Correctly delete TypeHandles in AsmParser.  In addition to not leaking
   memory, this prevents a bug that could have occurred when a type got
   resolved that the constexpr was using
 * Check for errors in the AsmParser instead of hitting assertion failures
   deep in the code
 * Simplify the interface to the ConstantExpr class, removing unneccesary
   parameters to the ::get* methods.
 * Rename the 'getelementptr' version of ConstantExpr::get to
   ConstantExpr::getGetElementPtr

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

22 years agoRemove invokation of cleangcc pass which has been renamed, and is unneccesary anyway
Chris Lattner [Tue, 30 Jul 2002 18:01:06 +0000 (18:01 +0000)]
Remove invokation of cleangcc pass which has been renamed, and is unneccesary anyway

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

22 years agoRemove FIXME's that aren't really needed after all.
Chris Lattner [Tue, 30 Jul 2002 16:38:54 +0000 (16:38 +0000)]
Remove FIXME's that aren't really needed after all.

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

22 years agoDeclare that these passes only depend on the CFG of the function
Chris Lattner [Tue, 30 Jul 2002 16:27:52 +0000 (16:27 +0000)]
Declare that these passes only depend on the CFG of the function

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

22 years ago* Implement stuff so that code can declare that they only depend on the CFG of
Chris Lattner [Tue, 30 Jul 2002 16:27:32 +0000 (16:27 +0000)]
* Implement stuff so that code can declare that they only depend on the CFG of
  a function, not on anything else.  This speeds up GCCAS a lot.

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

22 years ago* Move some code from Pass.cpp to PassManagerT.h
Chris Lattner [Tue, 30 Jul 2002 16:27:02 +0000 (16:27 +0000)]
* Move some code from Pass.cpp to PassManagerT.h
* Implement stuff so that code can declare that they only depend on the CFG of
  a function, not on anything else.  This speeds up GCCAS a lot.

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

22 years agoImplement constant propogation of logical (and, or, xor) expressions.
Chris Lattner [Tue, 30 Jul 2002 16:24:28 +0000 (16:24 +0000)]
Implement constant propogation of logical (and, or, xor) expressions.
Fixes testcase: test/Regression/Transforms/ConstProp/logicaltest.ll

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

22 years agoImplement constant propogation of logical (and, or, xor) expressions.
Chris Lattner [Tue, 30 Jul 2002 16:24:25 +0000 (16:24 +0000)]
Implement constant propogation of logical (and, or, xor) expressions.
Fixes testcase: test/Regression/Transforms/ConstProp/logicaltest.ll

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

22 years agoTest that logical operators are correctly constant propogated!
Chris Lattner [Tue, 30 Jul 2002 16:18:38 +0000 (16:18 +0000)]
Test that logical operators are correctly constant propogated!

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

22 years agoAdd test of newly checked in Union support!
Chris Lattner [Tue, 30 Jul 2002 06:47:29 +0000 (06:47 +0000)]
Add test of newly checked in Union support!

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

22 years agoSimplify testcase a bit
Chris Lattner [Tue, 30 Jul 2002 06:07:16 +0000 (06:07 +0000)]
Simplify testcase a bit

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

22 years agoNew testcase found when working on union support *sigh*
Chris Lattner [Tue, 30 Jul 2002 06:05:40 +0000 (06:05 +0000)]
New testcase found when working on union support *sigh*

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

22 years agoNew testcase distilled from trying to compile burg with LLVM
Chris Lattner [Tue, 30 Jul 2002 05:57:03 +0000 (05:57 +0000)]
New testcase distilled from trying to compile burg with LLVM

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

22 years ago* Move InstructionSelection Pass here instead of living in Sparc.cpp. It
Chris Lattner [Tue, 30 Jul 2002 03:57:36 +0000 (03:57 +0000)]
* Move InstructionSelection Pass here instead of living in Sparc.cpp.  It
  is platform independant afterall.
* Object orientize the functions, cleanup code a bit.  Instead of static
  global functions, the helpers for instruction selection are now part of
  the InstructionSelection Pass class.

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

22 years ago* Move InstructionSelection pass to lib/CodeGen/InstrSelection so it is
Chris Lattner [Tue, 30 Jul 2002 03:56:16 +0000 (03:56 +0000)]
* Move InstructionSelection pass to lib/CodeGen/InstrSelection so it is
  shared by backends.

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

22 years agoExpose instruction selection as a pass instead of a global function
Chris Lattner [Tue, 30 Jul 2002 03:55:29 +0000 (03:55 +0000)]
Expose instruction selection as a pass instead of a global function

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

22 years agoAdd rough support for LLC passes
Chris Lattner [Tue, 30 Jul 2002 03:55:01 +0000 (03:55 +0000)]
Add rough support for LLC passes

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

22 years agoRemove unused vector
Chris Lattner [Tue, 30 Jul 2002 02:52:40 +0000 (02:52 +0000)]
Remove unused vector

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

22 years agoFix bug with last patch which would occur when a call returned void and we
Chris Lattner [Tue, 30 Jul 2002 02:42:49 +0000 (02:42 +0000)]
Fix bug with last patch which would occur when a call returned void and we
attempted to assign it a name.

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

22 years agoPass renamed
Chris Lattner [Tue, 30 Jul 2002 00:53:26 +0000 (00:53 +0000)]
Pass renamed

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

22 years ago* Make sure the resolved function call instructions get the name from the
Chris Lattner [Tue, 30 Jul 2002 00:50:49 +0000 (00:50 +0000)]
* Make sure the resolved function call instructions get the name from the
  old call instruction
* Implement conversion of return values for calls.  This fixes bug:
   test/Regression/Transforms/FunctionResolve/retmismatch3.ll

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

22 years agoOops, fix testcase
Chris Lattner [Tue, 30 Jul 2002 00:49:42 +0000 (00:49 +0000)]
Oops, fix testcase

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

22 years agoNEw testcase to handle "yet another" return type mismatch possibility
Chris Lattner [Tue, 30 Jul 2002 00:34:52 +0000 (00:34 +0000)]
NEw testcase to handle "yet another" return type mismatch possibility

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

22 years ago* Fix bug: test/Regression/Transforms/ADCE/2002-07-17-AssertionFailure.ll
Chris Lattner [Tue, 30 Jul 2002 00:22:34 +0000 (00:22 +0000)]
* Fix bug: test/Regression/Transforms/ADCE/2002-07-17-AssertionFailure.ll
  which was caused by us not running the "drop references of dead
  instructions" code when there were no basic blocks that were dead.

  We still don't want to do some of the stuff we do if there are dead
  basic blocks, but we DO want to drop references of dead instructions,
  so we factor the common code out to a new method.

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

22 years agoTrim down testcase, a lot.
Chris Lattner [Tue, 30 Jul 2002 00:10:05 +0000 (00:10 +0000)]
Trim down testcase, a lot.

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

22 years agoReduce testcase more
Chris Lattner [Mon, 29 Jul 2002 23:41:21 +0000 (23:41 +0000)]
Reduce testcase more

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

22 years agoAdd code to ensure that no PHI nodes are left laying around with their
Chris Lattner [Mon, 29 Jul 2002 23:40:46 +0000 (23:40 +0000)]
Add code to ensure that no PHI nodes are left laying around with their
arguments dropped.  This fixes bug:
   test/Regression/Transforms/ADCE/2002-07-17-PHIAssertion.ll

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

22 years agoUse a module analysis
Chris Lattner [Mon, 29 Jul 2002 23:02:25 +0000 (23:02 +0000)]
Use a module analysis

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

22 years agoReduce the size of the testcase
Chris Lattner [Mon, 29 Jul 2002 22:46:55 +0000 (22:46 +0000)]
Reduce the size of the testcase

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

22 years agoImplement a new RemoveSuccessor function
Chris Lattner [Mon, 29 Jul 2002 22:32:08 +0000 (22:32 +0000)]
Implement a new RemoveSuccessor function

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

22 years agoImplement a new RemoveSuccessor function
Chris Lattner [Mon, 29 Jul 2002 22:32:06 +0000 (22:32 +0000)]
Implement a new RemoveSuccessor function

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

22 years agoFix bug: test/Regression/Transforms/ADCE/2002-07-29-Segfault.ll
Chris Lattner [Mon, 29 Jul 2002 22:31:39 +0000 (22:31 +0000)]
Fix bug: test/Regression/Transforms/ADCE/2002-07-29-Segfault.ll

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

22 years agoAllow folding of basic blocks that have PHI nodes in them, fixing "bug":
Chris Lattner [Mon, 29 Jul 2002 21:26:30 +0000 (21:26 +0000)]
Allow folding of basic blocks that have PHI nodes in them, fixing "bug":
  test/Regression/Transforms/SimplifyCFG/2002-06-24-PHINode.ll

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

22 years agoSeperate analysis wrapper stuff to AnalysisWrappers.cpp
Chris Lattner [Mon, 29 Jul 2002 21:24:10 +0000 (21:24 +0000)]
Seperate analysis wrapper stuff to AnalysisWrappers.cpp

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

22 years agoHrm, testcase was checking the wrong pass. :(
Chris Lattner [Mon, 29 Jul 2002 21:12:20 +0000 (21:12 +0000)]
Hrm, testcase was checking the wrong pass.  :(

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

22 years ago* Eliminate the Provided set. All Passes now finally just automatically
Chris Lattner [Mon, 29 Jul 2002 21:03:38 +0000 (21:03 +0000)]
* Eliminate the Provided set.  All Passes now finally just automatically
  provide themselves.

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

22 years ago* Eliminate the Provided set. All Passes now finally just automatically
Chris Lattner [Mon, 29 Jul 2002 21:03:33 +0000 (21:03 +0000)]
* Eliminate the Provided set.  All Passes now finally just automatically
  provide themselves.

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

22 years ago* PassInfo is allowed to be missing now (ie, not all passes need be registered)
Chris Lattner [Mon, 29 Jul 2002 21:02:31 +0000 (21:02 +0000)]
* PassInfo is allowed to be missing now (ie, not all passes need be registered)
* getPassName uses PassInfo if it's available
* PassInfo is now cached in the pass so that it is only looked up once, maximum

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

22 years ago* Fix comment descriptions
Chris Lattner [Mon, 29 Jul 2002 21:01:19 +0000 (21:01 +0000)]
* Fix comment descriptions
* Remove defaulted argument to ctor that is never used anyway
* Prevent copying and assignment

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

22 years ago* Fix assertion failure caused by command line argument getting removed after
Chris Lattner [Mon, 29 Jul 2002 20:58:42 +0000 (20:58 +0000)]
* Fix assertion failure caused by command line argument getting removed after
  the map was freed.
* Cleanup code a bit

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

22 years agoNew testcase
Chris Lattner [Mon, 29 Jul 2002 19:39:52 +0000 (19:39 +0000)]
New testcase

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

22 years agoFix testcase to not print pointer value
Chris Lattner [Mon, 29 Jul 2002 19:07:48 +0000 (19:07 +0000)]
Fix testcase to not print pointer value

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

22 years agoNew testcase
Chris Lattner [Mon, 29 Jul 2002 19:02:49 +0000 (19:02 +0000)]
New testcase

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

22 years agoRemove needless #include
Chris Lattner [Sat, 27 Jul 2002 05:25:29 +0000 (05:25 +0000)]
Remove needless #include

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

22 years ago* Standardize how analysis results/passes as printed with the print() virtual
Chris Lattner [Sat, 27 Jul 2002 01:12:17 +0000 (01:12 +0000)]
* Standardize how analysis results/passes as printed with the print() virtual
  methods
* Eliminate AnalysisID:  Now it is just a typedef for const PassInfo*
* Simplify how AnalysisID's are initialized
* Eliminate Analysis/Writer.cpp/.h: incorporate printing functionality into
  the analyses themselves.

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

22 years ago* Standardize how analysis results/passes as printed with the print() virtual
Chris Lattner [Sat, 27 Jul 2002 01:12:15 +0000 (01:12 +0000)]
* Standardize how analysis results/passes as printed with the print() virtual
  methods
* Eliminate AnalysisID:  Now it is just a typedef for const PassInfo*
* Simplify how AnalysisID's are initialized
* Eliminate Analysis/Writer.cpp/.h: incorporate printing functionality into
  the analyses themselves.

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

22 years agoMake analyze use the Pass repository to populate it's command line argument list
Chris Lattner [Sat, 27 Jul 2002 01:08:50 +0000 (01:08 +0000)]
Make analyze use the Pass repository to populate it's command line argument list

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

22 years ago* Add support for different "PassType's"
Chris Lattner [Fri, 26 Jul 2002 21:12:46 +0000 (21:12 +0000)]
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
  are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
  are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Remove getPassName implementations from various subclasses

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

22 years ago* Add support for different "PassType's"
Chris Lattner [Fri, 26 Jul 2002 21:12:44 +0000 (21:12 +0000)]
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
  are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
  are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Remove getPassName implementations from various subclasses

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

22 years ago*** empty log message ***
Chris Lattner [Fri, 26 Jul 2002 21:11:42 +0000 (21:11 +0000)]
*** empty log message ***

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

22 years ago* Add support for different "PassType's"
Chris Lattner [Fri, 26 Jul 2002 21:11:38 +0000 (21:11 +0000)]
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
  are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Remove getPassName implementations from various subclasses

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

22 years agoFactor PassNamePArser out into llvm/Support/PassNameParser.h
Chris Lattner [Fri, 26 Jul 2002 21:09:32 +0000 (21:09 +0000)]
Factor PassNamePArser out into llvm/Support/PassNameParser.h

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

22 years agoFactor PassNameParser out of opt.cpp so that analyze and eventually llc can use it.
Chris Lattner [Fri, 26 Jul 2002 21:09:10 +0000 (21:09 +0000)]
Factor PassNameParser out of opt.cpp so that analyze and eventually llc can use it.

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

22 years ago*** empty log message ***
Chris Lattner [Fri, 26 Jul 2002 19:19:31 +0000 (19:19 +0000)]
*** empty log message ***

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

22 years agoAnalysis contructors now no longer take AnalysisID's as their argument,
Chris Lattner [Fri, 26 Jul 2002 19:19:16 +0000 (19:19 +0000)]
Analysis contructors now no longer take AnalysisID's as their argument,
because there is a one-one mapping between classes and analyses.

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

22 years ago*** empty log message ***
Chris Lattner [Fri, 26 Jul 2002 18:40:14 +0000 (18:40 +0000)]
*** empty log message ***

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

22 years agoSimplify analyses so that there is only one analysis per class
Chris Lattner [Fri, 26 Jul 2002 18:40:06 +0000 (18:40 +0000)]
Simplify analyses so that there is only one analysis per class

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

22 years agoFix typeo that caused bug:
Chris Lattner [Thu, 25 Jul 2002 20:58:51 +0000 (20:58 +0000)]
Fix typeo that caused bug:
test/Regression/Assembler/2002-07-25-ReturnPtrFunction.llx

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

22 years agoNew testcase for bug
Chris Lattner [Thu, 25 Jul 2002 20:57:21 +0000 (20:57 +0000)]
New testcase for bug

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

22 years agoAdd check to fix bug:
Chris Lattner [Thu, 25 Jul 2002 20:52:56 +0000 (20:52 +0000)]
Add check to fix bug:
test/Regression/Assembler/2002-07-25-ParserAssertionFailure.llx

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

22 years agoNew testcase
Chris Lattner [Thu, 25 Jul 2002 20:52:34 +0000 (20:52 +0000)]
New testcase

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

22 years agoFix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx
Chris Lattner [Thu, 25 Jul 2002 20:32:37 +0000 (20:32 +0000)]
Fix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx

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

22 years agoAdd testcase for disassembler problem.
Chris Lattner [Thu, 25 Jul 2002 20:27:31 +0000 (20:27 +0000)]
Add testcase for disassembler problem.

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

22 years ago*** empty log message ***
Chris Lattner [Thu, 25 Jul 2002 19:59:41 +0000 (19:59 +0000)]
*** empty log message ***

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

22 years agoRemove dead options
Chris Lattner [Thu, 25 Jul 2002 19:59:38 +0000 (19:59 +0000)]
Remove dead options

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

22 years agoUpdate the CommandLine manual for the newest revision, include outline of reference...
Chris Lattner [Thu, 25 Jul 2002 19:27:01 +0000 (19:27 +0000)]
Update the CommandLine manual for the newest revision, include outline of reference manual and extension guide

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

22 years agoRefix stuff for GCC 2.95, 3.0.4 & 3.1
Chris Lattner [Thu, 25 Jul 2002 18:04:48 +0000 (18:04 +0000)]
Refix stuff for GCC 2.95, 3.0.4 & 3.1

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

22 years agoFix previous checkin
Chris Lattner [Thu, 25 Jul 2002 17:58:58 +0000 (17:58 +0000)]
Fix previous checkin

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

22 years agoAdd typenames
Chris Lattner [Thu, 25 Jul 2002 17:55:37 +0000 (17:55 +0000)]
Add typenames

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

22 years agoFix gcc 3.1 complaint
Chris Lattner [Thu, 25 Jul 2002 17:37:05 +0000 (17:37 +0000)]
Fix gcc 3.1 complaint

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

22 years agonow removes deleted nops from MachineCodeForInstruction
Mehwish Nagda [Thu, 25 Jul 2002 17:31:05 +0000 (17:31 +0000)]
now removes deleted nops from MachineCodeForInstruction

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

22 years agochanged implementation of LLVM BYTECODE Length
Mehwish Nagda [Thu, 25 Jul 2002 17:22:48 +0000 (17:22 +0000)]
changed implementation of LLVM BYTECODE Length

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

22 years agoNamespace correctness is good
Chris Lattner [Thu, 25 Jul 2002 16:39:56 +0000 (16:39 +0000)]
Namespace correctness is good

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

22 years ago*** empty log message ***
Chris Lattner [Thu, 25 Jul 2002 16:31:09 +0000 (16:31 +0000)]
*** empty log message ***

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

22 years agoBe more namespace correct
Chris Lattner [Thu, 25 Jul 2002 16:31:01 +0000 (16:31 +0000)]
Be more namespace correct

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

22 years agoAvoid warning message
Chris Lattner [Thu, 25 Jul 2002 16:30:45 +0000 (16:30 +0000)]
Avoid warning message

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

22 years agoREmove extra blank lines
Chris Lattner [Thu, 25 Jul 2002 15:40:38 +0000 (15:40 +0000)]
REmove extra blank lines

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

22 years agoBreak line to fit 80 columns
Chris Lattner [Thu, 25 Jul 2002 15:40:04 +0000 (15:40 +0000)]
Break line to fit 80 columns

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