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 | 9b8f34f2ac947d64504438d761f33601f0eebd5c (patch) | |
tree | d287ee736e3dbdaf653b00a1f8941393a14dc9a1 /llvm/lib/CodeGen/MachineDominators.cpp | |
parent | f56a7aee2f09ae4e4db28cee03b69aa963c3ef49 (diff) | |
download | bcm5719-llvm-9b8f34f2ac947d64504438d761f33601f0eebd5c.tar.gz bcm5719-llvm-9b8f34f2ac947d64504438d761f33601f0eebd5c.zip |
Some fixes to get MachineDomTree working better.
llvm-svn: 43541
Diffstat (limited to 'llvm/lib/CodeGen/MachineDominators.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineDominators.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp new file mode 100644 index 00000000000..0a8a81b6213 --- /dev/null +++ b/llvm/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 |