|
LLVM
5.0.0
|
Generic dominator tree construction - This file provides routines to construct immediate dominator information for a flow-graph based on the Semi-NCA algorithm described in this dissertation: More...
#include <queue>#include "llvm/ADT/DenseSet.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/Support/Debug.h"#include "llvm/Support/GenericDomTree.h"Go to the source code of this file.
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
| llvm::DomTreeBuilder | |
Macros | |
| #define | DEBUG_TYPE "dom-tree-builder" |
Functions | |
| template<typename DomTreeT , typename FuncT > | |
| void | llvm::DomTreeBuilder::Calculate (DomTreeT &DT, FuncT &F) |
| template<class DomTreeT > | |
| void | llvm::DomTreeBuilder::InsertEdge (DomTreeT &DT, typename DomTreeT::NodePtr From, typename DomTreeT::NodePtr To) |
| template<class DomTreeT > | |
| void | llvm::DomTreeBuilder::DeleteEdge (DomTreeT &DT, typename DomTreeT::NodePtr From, typename DomTreeT::NodePtr To) |
| template<typename DomTreeT > | |
| bool | llvm::DomTreeBuilder::Verify (const DomTreeT &DT) |
Generic dominator tree construction - This file provides routines to construct immediate dominator information for a flow-graph based on the Semi-NCA algorithm described in this dissertation:
Linear-Time Algorithms for Dominators and Related Problems Loukas Georgiadis, Princeton University, November 2005, pp. 21-23: ftp://ftp.cs.princeton.edu/reports/2005/737.pdf
This implements the O(n*log(n)) versions of EVAL and LINK, because it turns out that the theoretically slower O(n*log(n)) implementation is actually faster than the almost-linear O(n*alpha(n)) version, even for large CFGs.
The file uses the Depth Based Search algorithm to perform incremental upates (insertion and deletions). The implemented algorithm is based on this publication:
An Experimental Study of Dynamic Dominators Loukas Georgiadis, et al., April 12 2016, pp. 5-7, 9-10: https://arxiv.org/pdf/1604.02711.pdf
Definition in file GenericDomTreeConstruction.h.
| #define DEBUG_TYPE "dom-tree-builder" |
Definition at line 43 of file GenericDomTreeConstruction.h.
1.8.6