summaryrefslogtreecommitdiffstats
path: root/llvm/tools/analyze/analyze.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For PR872:Reid Spencer2006-08-181-188/+0
| | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 29762
* Don't pass target name into TargetData anymore, it is never used or needed.Chris Lattner2006-06-161-1/+1
| | | | llvm-svn: 28831
* For PR780:Reid Spencer2006-06-071-0/+1
| | | | | | | | | 1. Add #includes to LinkAllVMCore.h to get Mangler.o and InlineAsm.o 2. Make Mangler.h and InlineAsm.h use the macros to ensure linkage 3. Make each of the tools with --load options include LinkAllVMCore.h This should be the last set of changes for this bug and 800. llvm-svn: 28719
* Implemented -quiet feature for analyzeRobert Bocchino2006-03-031-30/+35
| | | | llvm-svn: 26494
* Use the new LinkAllAnalyses.h header instead of forcing passes to beChris Lattner2005-10-241-0/+1
| | | | | | in relinked object files llvm-svn: 23922
* Remove trailing whitespaceMisha Brukman2005-04-221-6/+6
| | | | llvm-svn: 21428
* For PR351:Reid Spencer2004-12-301-44/+52
| | | | | | | | | | * Place a try/catch block around the entire tool to Make sure std::string exceptions are caught and printed before exiting the tool. * Make sure we catch unhandled exceptions at the top level so that we don't abort with a useless message but indicate than an unhandled exception was generated. llvm-svn: 19192
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-2/+2
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* Changes For Bug 352Reid Spencer2004-09-011-2/+2
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* The functions in Signal.h are now in the llvm::sys namespace - adjustReid Spencer2004-08-291-1/+1
| | | | llvm-svn: 16091
* Add -load optionChris Lattner2004-07-111-0/+1
| | | | llvm-svn: 14740
* Header file movedChris Lattner2004-05-271-1/+1
| | | | llvm-svn: 13813
* Make sure to print a stack trace whenever an error signal is deliveredChris Lattner2004-02-191-0/+2
| | | | | | to the tool. llvm-svn: 11634
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+1
| | | | llvm-svn: 9903
* fix file headersChris Lattner2003-10-201-3/+1
| | | | llvm-svn: 9293
* Added copyright header to all C++ source files.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9291
* Add a disable-verify optionChris Lattner2003-05-121-1/+5
| | | | llvm-svn: 6155
* Move static stuff to an anonymous namespaceChris Lattner2003-05-121-15/+14
| | | | llvm-svn: 6154
* Make sure to create a target data that matches the Module's target properties.Chris Lattner2003-04-241-0/+4
| | | | llvm-svn: 5904
* Make printing messages nicerChris Lattner2003-02-241-4/+3
| | | | llvm-svn: 5616
* Disable timing of bytecode loaderChris Lattner2002-12-031-0/+2
| | | | llvm-svn: 4887
* Add a timer to evaluate bytecode load time and space requirementsChris Lattner2002-11-101-0/+4
| | | | llvm-svn: 4679
* Give passnames to the printer classesChris Lattner2002-11-061-0/+6
| | | | llvm-svn: 4559
* - 'analyze' and 'as' now explicitly verify input because AsmParser doesn't.Chris Lattner2002-08-301-0/+4
| | | | llvm-svn: 3551
* - Cleaned up the interface to AnalysisUsage to take analysis class namesChris Lattner2002-08-081-6/+6
| | | | | | | instead of ::ID's. - Pass::getAnalysis<> now no longer takes an optional argument llvm-svn: 3265
* Changes to be GCC3.1 friendlyChris Lattner2002-07-311-2/+2
| | | | llvm-svn: 3187
* Print the tool name when an error comes from so that I can tell whichChris Lattner2002-07-301-3/+4
| | | | | | tool of a pipeline is having issues. llvm-svn: 3167
* Use a module analysisChris Lattner2002-07-291-4/+9
| | | | llvm-svn: 3133
* Seperate analysis wrapper stuff to AnalysisWrappers.cppChris Lattner2002-07-291-120/+0
| | | | llvm-svn: 3127
* Make analyze use the Pass repository to populate it's command line argument listChris Lattner2002-07-271-151/+70
| | | | llvm-svn: 3114
* *** empty log message ***Chris Lattner2002-07-261-8/+4
| | | | llvm-svn: 3105
* Be more namespace correctChris Lattner2002-07-251-2/+1
| | | | llvm-svn: 3086
* Add description to Enum options.Chris Lattner2002-07-221-1/+2
| | | | llvm-svn: 2987
* Convert command line option processing code over to use the syntax supportedChris Lattner2002-07-221-31/+28
| | | | | | by the CommandLine 2.0 library llvm-svn: 2984
* Add support for bottom up closure of ds analysisChris Lattner2002-07-181-1/+8
| | | | llvm-svn: 2963
* Rename DataStructure to LocalDataStructuresChris Lattner2002-07-101-3/+3
| | | | llvm-svn: 2873
* MEGAPATCH checkin.Chris Lattner2002-06-251-20/+19
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Remove InstForest from analysis namespaceChris Lattner2002-04-291-3/+3
| | | | llvm-svn: 2401
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-3/+0
| | | | llvm-svn: 2397
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-291-1/+11
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* Rename functions to be more consistend with other pass constructorsChris Lattner2002-04-281-5/+4
| | | | llvm-svn: 2388
* Tighten up the AnalysisUsage of lots of passes, primarily to correctly ↵Chris Lattner2002-04-281-0/+9
| | | | | | indicate whether or not they invalidate the CFGA llvm-svn: 2386
* Eliminate the cfg namespaceChris Lattner2002-04-281-14/+14
| | | | llvm-svn: 2371
* * Rename MethodPass class to FunctionPassChris Lattner2002-04-271-30/+25
| | | | | | | | | | | | | | | - 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 llvm-svn: 2333
* Add #includesChris Lattner2002-04-081-1/+3
| | | | | | s/PrintMethodPass/PrintFunctionPass llvm-svn: 2181
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-18/+18
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* * Add support for DataStructure analysisChris Lattner2002-03-261-28/+56
| | | | | | | | | | | | * Parameterize pass outputting with the printPass template, so analysis output can optionally take more arguments than just a stream. The default output mode is just to use operator<< on the analysis. * Remove CurrentModule hack, in favor of using printPass * Remove special operator<<'s defined for FindUsedTypes and FindUnsafePointerTypes, in favor of printPass specializations * Use std::cout instead of cout llvm-svn: 1995
* Pull callgraph out of Cfg namespaceChris Lattner2002-03-061-1/+1
| | | | llvm-svn: 1822
* Cleanup to build with GCC 3.0.4Chris Lattner2002-02-241-1/+1
| | | | llvm-svn: 1794
* Method.h no longer includes BasicBlock.hChris Lattner2002-02-121-4/+3
| | | | | | | Method::inst_* is now in llvm/Support/InstIterator.h GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h llvm-svn: 1746
OpenPOWER on IntegriCloud