diff options
author | Owen Anderson <resistor@mac.com> | 2007-10-31 03:30:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-10-31 03:30:14 +0000 |
commit | 5d32ec4cb002973cb12bc21a3fe12364794168c8 (patch) | |
tree | ebca322bece8d476925a3af6749f09ccc2f988c1 /lib/CodeGen/MachineDominators.cpp | |
parent | 25f1d08619720b82e7c944b18eee488fc07ba153 (diff) | |
download | llvm-5d32ec4cb002973cb12bc21a3fe12364794168c8.tar.gz |
Some fixes to get MachineDomTree working better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineDominators.cpp')
-rw-r--r-- | lib/CodeGen/MachineDominators.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineDominators.cpp b/lib/CodeGen/MachineDominators.cpp new file mode 100644 index 000000000000..0a8a81b62134 --- /dev/null +++ b/lib/CodeGen/MachineDominators.cpp @@ -0,0 +1,24 @@ +//===- MachineDominators.cpp - Machine Dominator Calculation --------------===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements simple dominator construction algorithms for finding +// forward dominators on machine functions. +// +//===----------------------------------------------------------------------===// + +#include "llvm/CodeGen/MachineDominators.h" + +using namespace llvm; + +TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>); +TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>); + +char MachineDominatorTree::ID = 0; +static RegisterPass<MachineDominatorTree> +E("machinedomtree", "MachineDominator Tree Construction", true);
\ No newline at end of file |