1 //===-- VPlanDominatorTree.h ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// This file implements dominator tree analysis for a single level of a VPlan's
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANDOMINATORTREE_H
17 #define LLVM_TRANSFORMS_VECTORIZE_VPLANDOMINATORTREE_H
20 #include "llvm/ADT/GraphTraits.h"
21 #include "llvm/IR/Dominators.h"
25 /// Template specialization of the standard LLVM dominator tree utility for
27 using VPDominatorTree = DomTreeBase<VPBlockBase>;
29 using VPDomTreeNode = DomTreeNodeBase<VPBlockBase>;
31 /// Template specializations of GraphTraits for VPDomTreeNode.
33 struct GraphTraits<VPDomTreeNode *>
34 : public DomTreeGraphTraitsBase<VPDomTreeNode, VPDomTreeNode::iterator> {};
37 struct GraphTraits<const VPDomTreeNode *>
38 : public DomTreeGraphTraitsBase<const VPDomTreeNode,
39 VPDomTreeNode::const_iterator> {};
41 #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANDOMINATORTREE_H