aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/CFGPrinter.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-23Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko1-4/+4
Apparently, the style needs to be agreed upon first. llvm-svn: 240390
2015-06-19Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-4/+4
The patch is generated using this command: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ llvm/lib/ Thanks to Eugene Kosov for the original patch! llvm-svn: 240137
2015-03-27Remove superfluous .str() and replace std::string concatenation with Twine.Yaron Keren1-2/+2
llvm-svn: 233392
2014-08-25Modernize raw_fd_ostream's constructor a bit.Rafael Espindola1-8/+8
Take a StringRef instead of a "const char *". Take a "std::error_code &" instead of a "std::string &" for error. A create static method would be even better, but this patch is already a bit too big. llvm-svn: 216393
2014-05-20Clean up language and grammar.Eric Christopher1-2/+2
Based on a patch by jfcaron3@gmail.com! PR19806 llvm-svn: 209216
2014-04-29raw_ostream: Forward declare OpenFlags and include FileSystem.h only where ↵Benjamin Kramer1-0/+1
necessary. llvm-svn: 207593
2014-04-15[C++11] More 'nullptr' conversion. In some cases just using a boolean check ↵Craig Topper1-4/+4
instead of comparing to nullptr. llvm-svn: 206243
2014-03-05[C++11] Add 'override' keyword to virtual methods that override their base ↵Craig Topper1-13/+13
class. llvm-svn: 202945
2014-02-24Replace the F_Binary flag with a F_Text one.Rafael Espindola1-2/+2
After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052
2014-02-24Don't make F_None the default.Rafael Espindola1-2/+2
This will make it easier to switch the default to being binary files. llvm-svn: 202042
2012-12-03Use the new script to sort the includes of every file under lib.Chandler Carruth1-1/+0
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
2011-11-15Remove all remaining uses of Value::getNameStr().Benjamin Kramer1-2/+2
llvm-svn: 144648
2011-11-15Twinify GraphWriter a little bit.Benjamin Kramer1-2/+2
llvm-svn: 144647
2010-10-19Get rid of static constructors for pass registration. Instead, every pass ↵Owen Anderson1-4/+13
exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820
2010-10-07Now with fewer extraneous semicolons!Owen Anderson1-4/+4
llvm-svn: 115996
2010-09-04zap dead code.Chris Lattner1-2/+0
llvm-svn: 113073
2010-08-23Now that PassInfo and Pass::ID have been separated, move the rest of the ↵Owen Anderson1-5/+5
passes over to the new registration API. llvm-svn: 111815
2010-08-06Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson1-6/+6
llvm-svn: 110460
2010-08-06Revert r110396 to fix buildbots.Owen Anderson1-6/+6
llvm-svn: 110410
2010-08-05Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson1-6/+6
address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
2010-07-21Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with ↵Owen Anderson1-3/+2
RegisterAnalysisGroup<> for pass registration. llvm-svn: 109058
2010-07-21Fix batch of converting RegisterPass<> to INTIALIZE_PASS().Owen Anderson1-2/+1
llvm-svn: 109045
2009-10-25Remove includes of Support/Compiler.h that are no longer needed after theNick Lewycky1-1/+0
VISIBILITY_HIDDEN removal. llvm-svn: 85043
2009-10-25Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.Nick Lewycky1-4/+4
Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit. llvm-svn: 85042
2009-10-18make DOTGraphTraits public, patch by Tobias Grosser!Chris Lattner1-61/+2
llvm-svn: 84396
2009-09-19The flag "--dot-cfg-only" is at the moment equivalent to the flag "--dot-cfg".Duncan Sands1-1/+1
It prints the content of all bbs, instead of printing empty bbs to make the CFG more readable. Fix this. Patch by Tobias Grosser. llvm-svn: 82315
2009-08-25Make LLVM command-line tools overwrite their output files without -f.Dan Gohman1-2/+2
This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
2009-08-23convert LoopInfo.h and GraphWriter.h to use raw_ostreamChris Lattner1-11/+14
llvm-svn: 79836
2009-08-23Change Pass::print to take a raw ostream instead of std::ostream,Chris Lattner1-7/+4
update all code that this affects. llvm-svn: 79830
2009-08-23eliminate the "Value" printing methods that print to a std::ostream.Chris Lattner1-8/+10
This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
2009-07-24Switch to getNameStr().Daniel Dunbar1-6/+6
llvm-svn: 76962
2009-06-24Get rid of the global CFGOnly flag by threading a ShortNames parameters ↵Owen Anderson1-20/+17
through the GraphViz rendering code. Update other uses in the codebase for this change. llvm-svn: 74084
2008-09-23Rationalize the names of passes that print information:Duncan Sands1-3/+3
-callgraph => print-callgraph -callscc => print-callgraph-sccs -cfgscc => print-cfg-sccs -externalfnconstants => print-externalfnconstants -print => print-function -print-alias-sets (no change) -print-callgraph => dot-callgraph -print-cfg => dot-cfg -print-cfg-only => dot-cfg-only -print-dom-info (no change) -printm => print-module -printusedtypes => print-used-types llvm-svn: 56487
2008-09-04Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman1-5/+5
llvm-svn: 55779
2008-05-13Clean up the use of static and anonymous namespaces. This turned upDan Gohman1-14/+21
several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
2008-03-20Restore isCFGOnly property of various analysis passes.Devang Patel1-4/+4
llvm-svn: 48579
2008-03-19PassInfo keep tracks whether a pass is an analysis pass or not.Devang Patel1-7/+7
llvm-svn: 48554
2008-03-19Do not use virtual function to identify an analysis pass.Devang Patel1-16/+3
llvm-svn: 48520
2008-03-18Identify Analysis pass.Devang Patel1-0/+13
Do not run analysis pass again if analysis info is still available. This fixes PR1441. llvm-svn: 48476
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
llvm-svn: 45418
2007-07-02Add explicit keywords.Dan Gohman1-1/+1
llvm-svn: 37839
2007-06-05Fix PR 1497Devang Patel1-0/+2
Use separate pass id for CFGOnlyPrinter. llvm-svn: 37439
2007-05-14Add passes -view-cfg and -view-cfg-only that are like -print-cfg andDan Gohman1-0/+42
-print-cfg-only except they use the ViewCFG function, which displays the CFG rendered with graphviz with gv. llvm-svn: 37033
2007-05-06Fix typo in comment.Nick Lewycky1-2/+2
llvm-svn: 36873
2007-05-03Drop 'const'Devang Patel1-4/+4
llvm-svn: 36662
2007-05-02Use 'static const char' instead of 'static const int'.Devang Patel1-4/+4
Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
2007-05-01Do not use typeinfo to identify pass in pass manager.Devang Patel1-0/+6
llvm-svn: 36632
2007-02-05Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduceReid Spencer1-2/+3
LLVM's footprint and speed up linking. llvm-svn: 33941
2006-12-07Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling1-3/+3
now cerr, cout, and NullStream resp. llvm-svn: 32298
2006-12-06Remove the 'printname' argument to WriteAsOperand. It is always true, andChris Lattner1-2/+2
passing false would make the asmprinter fail anyway. llvm-svn: 32264