summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Drop 'const'Devang Patel2007-05-031-3/+3
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-4/+3
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Fix build error.Lauro Ramos Venancio2007-05-021-2/+4
| | | | llvm-svn: 36648
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-1/+5
| | | | llvm-svn: 36632
* Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduceReid Spencer2007-02-051-1/+2
| | | | | | LLVM's footprint and speed up linking. llvm-svn: 33941
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-1/+1
| | | | | | confusion with external linkage types. llvm-svn: 33663
* Added an automatic cast to "std::ostream*" etc. from OStream. We then canBill Wendling2006-12-171-2/+2
| | | | | | | rework the hacks that had us passing OStream in. We pass in std::ostream* instead, check for null, and then dispatch to the correct print() method. llvm-svn: 32636
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-4/+4
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* straighten out various memory ownership issues in the callgraph stuff.Chris Lattner2006-12-051-3/+2
| | | | | | This fixes Regression/Other/2002-01-31-CallGraph.ll. llvm-svn: 32237
* Add a comment and fix a memory leak. Thanks to Vikram for pointing this out.Chris Lattner2006-12-041-4/+5
| | | | llvm-svn: 32196
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-4/+9
| | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. llvm-svn: 31990
* Fix a bug pointed out by Zhongxing XuChris Lattner2006-10-091-1/+1
| | | | llvm-svn: 30831
* simplify AnalysisGroup registration, eliminating one typeid call.Chris Lattner2006-08-281-1/+1
| | | | llvm-svn: 29932
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-1/+1
| | | | llvm-svn: 29925
* Change the callgraph representation to store the callsite along with theChris Lattner2006-07-121-17/+19
| | | | | | | | | | | target CG node. This allows the inliner to properly update the callgraph when using the pruning inliner. The pruning inliner may not copy over all call sites from a callee to a caller, so the edges corresponding to those call sites should not be copied over either. This fixes PR827 and Transforms/Inline/2006-07-12-InlinePruneCGUpdate.ll llvm-svn: 29120
* For PR780:Reid Spencer2006-06-071-6/+3
| | | | | | | | | | 1. Fix the macros in IncludeFile.h to put everything in the llvm namespace 2. Replace the previous explicit mechanism in all the .h and .cpp files with the macros in IncludeFile.h This gets us a consistent mechanism throughout LLVM for ensuring linkage. Next step is to make sure its used in enough places. llvm-svn: 28715
* Fix -pedantic warningChris Lattner2006-06-011-1/+1
| | | | llvm-svn: 28634
* Change from using a stub function to a stub variable for passing to theReid Spencer2006-06-011-1/+1
| | | | | | | IncludeFile hack to ensure linkage of analysis passes. This works around some -pedantic warnings about assigning an object to a function. llvm-svn: 28621
* Add a new CallGraph::getOrInsertFunction for clients to use when updatingChris Lattner2006-01-141-16/+19
| | | | | | the callgraph. llvm-svn: 25317
* add a dump method to CallGraphChris Lattner2006-01-141-0/+4
| | | | llvm-svn: 25314
* Separate the call graph implementation from its interface. This implementsChris Lattner2005-12-221-105/+178
| | | | | | | | | the rough idea sketched out in http://nondot.org/sabre/LLVMNotes/CallGraphClass.txt, allowing new spiffy implementations of the callgraph interface to be built. Many thanks to Saem Ghani for contributing this! llvm-svn: 24944
* Remove trailing whitespaceMisha Brukman2005-04-211-5/+5
| | | | llvm-svn: 21416
* Mission accomplished!Chris Lattner2004-11-191-1/+0
| | | | llvm-svn: 17990
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-1/+1
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* Fix a nasty iterator invalidation problem I introduced yesterday. ThisChris Lattner2004-09-191-5/+5
| | | | | | | unfortunately is the cause of a bunch of failures from tonight, and the reason the tester is running so slow :( llvm-svn: 16407
* Add CallGraphNode::removeAnyCallEdgeTo methodChris Lattner2004-09-181-0/+12
| | | | llvm-svn: 16398
* When changing a function, make sure to update the CallGraphNode for theChris Lattner2004-09-181-0/+1
| | | | | | function, not just the CallGraph. llvm-svn: 16388
* Implement new changeFunction method, nuke a never implemented one.Chris Lattner2004-09-181-8/+14
| | | | llvm-svn: 16386
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | 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
* Add standard print/dump methods to CallGraph classes.Chris Lattner2004-08-081-16/+22
| | | | llvm-svn: 15569
* Fix #includes of i*.h => Instructions.h as per PR403.Misha Brukman2004-07-291-2/+1
| | | | llvm-svn: 15334
* bug 122:Reid Spencer2004-07-181-4/+2
| | | | | | | | - Replace ConstantPointerRef usage with GlobalValue usage - Minimize redundant isa<GlobalValue> usage - Correct isa<Constant> for GlobalValue subclass llvm-svn: 14942
* Fix a problem with double freeing memory. For some reason, CallGraph is notChris Lattner2004-05-021-0/+1
| | | | | | acting like a normal pass. :( llvm-svn: 13318
* Plug a minor memory leakChris Lattner2004-05-021-0/+1
| | | | llvm-svn: 13317
* Change the call graph class to have TWO external nodes, making call graphChris Lattner2004-04-121-181/+22
| | | | | | | SCC passes much more useful. In particular, this should fix the incredibly stupid missed inlining opportunities that the inliner suffered from. llvm-svn: 12860
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* More additionsChris Lattner2003-11-091-3/+4
| | | | llvm-svn: 9834
* Add more functionsChris Lattner2003-11-091-0/+8
| | | | llvm-svn: 9826
* None of the __llvm_* functions call into the program. This makes theChris Lattner2003-11-091-0/+3
| | | | | | callgraph MUCH simpler for eh using program. llvm-svn: 9825
* Make the call graph more precise despite the hated constantpointerrefs.Chris Lattner2003-10-311-16/+36
| | | | | | Do you detect the animosity I feel towards CPRs yet? llvm-svn: 9640
* When someone includes CallGraph.h, make sure that they link in CallGraph.cppChris Lattner2003-10-301-0/+1
| | | | llvm-svn: 9611
* This is a disgusting hack that improves code substantially, by makingChris Lattner2003-10-221-2/+122
| | | | | | callgraphSCC passes more effective. llvm-svn: 9384
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* These two conditions are not exclusive!!Chris Lattner2003-09-151-3/+6
| | | | llvm-svn: 8518
* Make the print output more usefulChris Lattner2003-09-151-3/+7
| | | | llvm-svn: 8517
* Replace M with F when refering to functionsChris Lattner2003-08-311-11/+11
| | | | llvm-svn: 8274
* Allow the call graph to be called from analyze naturally with print implementedChris Lattner2002-11-041-6/+5
| | | | llvm-svn: 4517
* - Do not expose ::ID from any of the analyses anymore.Chris Lattner2002-08-211-1/+0
| | | | llvm-svn: 3417
* * Standardize how analysis results/passes as printed with the print() virtualChris Lattner2002-07-271-2/+1
| | | | | | | | | | 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. llvm-svn: 3116
* * Add support for different "PassType's"Chris Lattner2002-07-261-3/+2
| | | | | | | | | | | | | | | * 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 llvm-svn: 3112
OpenPOWER on IntegriCloud