aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/DomPrinter.cpp
AgeCommit message (Collapse)AuthorFilesLines
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2018-06-29Revert "Extend CFGPrinter and CallPrinter with Heat Colors"Sean Fertile1-4/+5
This reverts r335996 which broke graph printing in Polly. llvm-svn: 336000
2018-06-29Extend CFGPrinter and CallPrinter with Heat ColorsSean Fertile1-5/+4
Extends the CFGPrinter and CallPrinter with heat colors based on heuristics or profiling information. The colors are enabled by default and can be toggled on/off for CFGPrinter by using the option -cfg-heat-colors for both -dot-cfg[-only] and -view-cfg[-only]. Similarly, the colors can be toggled on/off for CallPrinter by using the option -callgraph-heat-colors for both -dot-callgraph and -view-callgraph. Patch by Rodrigo Caetano Rocha! Differential Revision: https://reviews.llvm.org/D40425 llvm-svn: 335996
2017-04-24[DomPrinter] Add a way to programmatically dump a dot representation.Davide Italiano1-0/+16
Differential Revision: https://reviews.llvm.org/D32145 llvm-svn: 301205
2016-02-25Introduce analysis pass to compute PostDominators in the new pass manager. NFCHongbin Zheng1-10/+38
Differential Revision: http://reviews.llvm.org/D17537 llvm-svn: 261902
2016-02-25Revert "Introduce analysis pass to compute PostDominators in the new pass ↵Hongbin Zheng1-38/+10
manager. NFC" This reverts commit a3e5cc6a51ab5ad88d1760c63284294a4e34c018. llvm-svn: 261891
2016-02-25Introduce analysis pass to compute PostDominators in the new pass manager. NFCHongbin Zheng1-10/+38
Differential Revision: http://reviews.llvm.org/D17537 llvm-svn: 261882
2015-06-23Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko1-1/+1
Apparently, the style needs to be agreed upon first. llvm-svn: 240390
2015-06-19Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-1/+1
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
2014-01-13[PM] Split DominatorTree into a concrete analysis result object whichChandler Carruth1-12/+34
can be used by both the new pass manager and the old. This removes it from any of the virtual mess of the pass interfaces and lets it derive cleanly from the DominatorTreeBase<> template. In turn, tons of boilerplate interface can be nuked and it turns into a very straightforward extension of the base DominatorTree interface. The old analysis pass is now a simple wrapper. The names and style of this split should match the split between CallGraph and CallGraphWrapperPass. All of the users of DominatorTree have been updated to match using many of the same tricks as with CallGraph. The goal is that the common type remains the resulting DominatorTree rather than the pass. This will make subsequent work toward the new pass manager significantly easier. Also in numerous places things became cleaner because I switched from re-running the pass (!!! mid way through some other passes run!!!) to directly recomputing the domtree. llvm-svn: 199104
2012-02-04remove the blank line from previous ci.Qirun Zhang1-1/+0
llvm-svn: 149758
2012-02-04test commit.Qirun Zhang1-0/+1
add a blank line. llvm-svn: 149757
2011-01-02split dom frontier handling stuff out to its own DominanceFrontier header,Chris Lattner1-2/+0
so that Dominators.h is *just* domtree. Also prune #includes a bit. llvm-svn: 122714
2010-10-19Get rid of static constructors for pass registration. Instead, every pass ↵Owen Anderson1-8/+24
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-8/+8
llvm-svn: 115996
2010-08-06Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson1-8/+8
llvm-svn: 110460
2010-08-06Revert r110396 to fix buildbots.Owen Anderson1-8/+8
llvm-svn: 110410
2010-08-05Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson1-8/+8
address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
2010-07-21Fix batch of converting RegisterPass<> to INTIALIZE_PASS().Owen Anderson1-24/+25
llvm-svn: 109045
2010-07-12Convert some tab stops into spaces.Duncan Sands1-2/+2
llvm-svn: 108130
2010-04-12Remove dead code in the dotty dominance tree printer.Tobias Grosser1-25/+0
This template is not needed anymore as it was replaced by the DOTGraphTraitsViewer. llvm-svn: 101036
2010-01-16Create Generic DOTGraphTraits Printer/ViewerTobias Grosser1-56/+18
Move the DOTGraphTraits dotty printer/viewer templates, that were developed for the dominance tree into their own header file. This will allow reuse in future passes. llvm-svn: 93632
2009-11-30Remove ShortNames from getNodeLabel in DOTGraphTraitsTobias Grosser1-16/+15
llvm-svn: 90134
2009-11-30Instantiate DefaultDOTGraphTraitsTobias Grosser1-0/+10
llvm-svn: 90133
2009-11-30Small PostDominatorTree improvementsTobias Grosser1-3/+9
* Do not SEGFAULT if tree entryNode() is NULL * Print function names in dotty printer llvm-svn: 90130
2009-10-18fix the other issue with ID's, hopefully really fixing the linux build.Chris Lattner1-7/+6
llvm-svn: 84403
2009-10-18fix some problems with ID definitions, which will hopefully fix the build bots.Chris Lattner1-7/+5
llvm-svn: 84399
2009-10-18add function passes for printing various dominator datastructuresChris Lattner1-0/+268
accessible through opt. Patch by Tobias Grosser! llvm-svn: 84397