For PR872:
authorReid Spencer <rspencer@reidspencer.com>
Fri, 18 Aug 2006 06:34:30 +0000 (06:34 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 18 Aug 2006 06:34:30 +0000 (06:34 +0000)
commitfd90dd5d5513f9e7130bab0da334ad2ad8ef4e02
tree39db9e9d2bfc255238fa71e44cfab0e76ab94921
parent31c8e1d6aa5ffe90b4bf23e8a7c0a602d64ab2ae
For PR872:
Shrinkify LLVM's footprint by removing the analyze tool and moving its
functionality into the opt tool. THis eliminates one of the largest tools
from LLVM and doesn't make opt much bigger because it already included
most of the analysis passes.  To get the old analyze functionality pass
the -analyze option to opt. Note that the integeration here is dead
simple. The "main" of analyze was just copied to opt and invoked if the
-analyze option was given. There may be opportunities for further
integration such as removing the distinction between transform passes
and analysis passes.

To use the analysis functionality, if you previously did this:
  analyze $FNAME -domset -disable-verify
you would now do this:
  opt -analyze $FNAME -domset -disable-verify
Pretty simple.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29762 91177308-0d34-0410-b5e6-96231b3b80d8
41 files changed:
test/Analysis/DSGraph/2003-06-29-IncompleteTDPass.ll
test/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll
test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
test/Analysis/DSGraph/2003-07-01-FieldCollapse.ll
test/Analysis/DSGraph/2003-07-16-ConstantExprCollapse.ll
test/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
test/Analysis/DSGraph/2004-02-13-memcpy.ll
test/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll
test/Analysis/DSGraph/2006-03-27-LinkedCollapsed.ll
test/Analysis/DSGraph/2006-04-13-ZeroArrayStruct.ll
test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll
test/Analysis/DSGraph/FunctionPointerTable-const.ll
test/Analysis/DSGraph/GlobalsGraphFuncPtr.ll
test/Analysis/DSGraph/HardBUCase.ll
test/Analysis/DSGraph/PhysicalSubtyping.ll
test/Analysis/DSGraph/SCCSimpleExample.ll
test/Analysis/DSGraph/constant_globals.ll
test/Analysis/DSGraph/strcpy.ll
test/Analysis/Dominators/2003-05-12-UnreachableCode.ll
test/Analysis/LoopInfo/2003-05-15-NestingProblem.ll
test/Transforms/DSAnalysis/arraymerge.ll
test/Transforms/DSAnalysis/arraytest.ll
test/Transforms/DSAnalysis/badcases.ll
test/Transforms/DSAnalysis/basictest.ll
test/Transforms/DSAnalysis/fieldmerge.ll
test/Transforms/DSAnalysis/goodcases.ll
test/Transforms/DSAnalysis/indcalltest.ll
test/Transforms/DSAnalysis/misctests.ll
test/Transforms/DSAnalysis/physicalsubtype.ll
test/Transforms/DSAnalysis/recursion.ll
test/Transforms/DSAnalysis/simplest-test.ll
test/Transforms/DSAnalysis/simpletest.ll
test/Transforms/DSAnalysis/structpadding.ll
tools/Makefile
tools/analyze/AnalysisWrappers.cpp [deleted file]
tools/analyze/GraphPrinters.cpp [deleted file]
tools/analyze/Makefile [deleted file]
tools/analyze/PrintSCC.cpp [deleted file]
tools/analyze/analyze.cpp [deleted file]
tools/opt/Makefile
tools/opt/opt.cpp