From 9b8f34f2ac947d64504438d761f33601f0eebd5c Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 31 Oct 2007 03:30:14 +0000 Subject: Some fixes to get MachineDomTree working better. llvm-svn: 43541 --- llvm/lib/CodeGen/MachineDominators.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 llvm/lib/CodeGen/MachineDominators.cpp (limited to 'llvm/lib/CodeGen/MachineDominators.cpp') 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); +TEMPLATE_INSTANTIATION(class DominatorTreeBase); + +char MachineDominatorTree::ID = 0; +static RegisterPass +E("machinedomtree", "MachineDominator Tree Construction", true); \ No newline at end of file -- cgit v1.2.3