summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2017-07-07 19:25:42 +0000
committerQuentin Colombet <qcolombet@apple.com>2017-07-07 19:25:42 +0000
commit81551148b72f46760db75e4fa5cb85b82bbc766b (patch)
treed56fbedff072af90d9aa4521ae93980516d63db7 /llvm/lib/CodeGen
parentfe71c546e7efff551c38da95428ccf05cd35434f (diff)
downloadbcm5719-llvm-81551148b72f46760db75e4fa5cb85b82bbc766b.tar.gz
bcm5719-llvm-81551148b72f46760db75e4fa5cb85b82bbc766b.zip
[RegAllocFast] Add the proper initialize method to use the .mir infrastructure
NFC llvm-svn: 307427
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index faa5f139cf7..b7fd45a3f6a 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -78,6 +78,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
initializeProcessImplicitDefsPass(Registry);
initializeRABasicPass(Registry);
+ initializeRAFastPass(Registry);
initializeRAGreedyPass(Registry);
initializeRegisterCoalescerPass(Registry);
initializeRenameIndependentSubregsPass(Registry);
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index c606b7b8331..7d9bc8cba21 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -203,6 +203,8 @@ namespace {
char RAFast::ID = 0;
}
+INITIALIZE_PASS(RAFast, "regallocfast", "Fast Register Allocator", false, false)
+
/// getStackSpaceFor - This allocates space for the specified virtual register
/// to be held on the stack.
int RAFast::getStackSpaceFor(unsigned VirtReg, const TargetRegisterClass *RC) {
OpenPOWER on IntegriCloud