summaryrefslogtreecommitdiff
path: root/include/llvm/InitializePasses.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-08 23:44:45 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-08 23:44:45 +0000
commit05ec712e7f75635abbdd84dced69f4a45fe0f541 (patch)
treeb4875d83d9b937cce865beb726faa7b574203874 /include/llvm/InitializePasses.h
parent6660ed5f2f51a91e34664437f0218c52e80a95b8 (diff)
downloadllvm-05ec712e7f75635abbdd84dced69f4a45fe0f541.tar.gz
llvm-05ec712e7f75635abbdd84dced69f4a45fe0f541.tar.bz2
llvm-05ec712e7f75635abbdd84dced69f4a45fe0f541.tar.xz
Reintroduce VirtRegRewriter.
OK, not really. We don't want to reintroduce the old rewriter hacks. This patch extracts virtual register rewriting as a separate pass that runs after the register allocator. This is possible now that CodeGen/Passes.cpp can configure the full optimizing register allocator pipeline. The rewriter pass uses register assignments in VirtRegMap to rewrite virtual registers to physical registers, and it inserts kill flags based on live intervals. These finalization steps are the same for the optimizing register allocators: RABasic, RAGreedy, and PBQP. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InitializePasses.h')
-rw-r--r--include/llvm/InitializePasses.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/InitializePasses.h b/include/llvm/InitializePasses.h
index 3b9b59fe9e..67f2fa496d 100644
--- a/include/llvm/InitializePasses.h
+++ b/include/llvm/InitializePasses.h
@@ -248,6 +248,7 @@ void initializeUnreachableBlockElimPass(PassRegistry&);
void initializeUnreachableMachineBlockElimPass(PassRegistry&);
void initializeVerifierPass(PassRegistry&);
void initializeVirtRegMapPass(PassRegistry&);
+void initializeVirtRegRewriterPass(PassRegistry&);
void initializeInstSimplifierPass(PassRegistry&);
void initializeUnpackMachineBundlesPass(PassRegistry&);
void initializeFinalizeMachineBundlesPass(PassRegistry&);