forked from OSchip/llvm-project
[RegAllocFast] Add the proper initialize method to use the .mir infrastructure
NFC llvm-svn: 307427
This commit is contained in:
parent
fe71c546e7
commit
81551148b7
|
@ -303,6 +303,7 @@ void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
|
|||
void initializePromoteLegacyPassPass(PassRegistry&);
|
||||
void initializePruneEHPass(PassRegistry&);
|
||||
void initializeRABasicPass(PassRegistry&);
|
||||
void initializeRAFastPass(PassRegistry&);
|
||||
void initializeRAGreedyPass(PassRegistry&);
|
||||
void initializeReassociateLegacyPassPass(PassRegistry&);
|
||||
void initializeRegBankSelectPass(PassRegistry&);
|
||||
|
|
|
@ -78,6 +78,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
|
|||
initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
|
||||
initializeProcessImplicitDefsPass(Registry);
|
||||
initializeRABasicPass(Registry);
|
||||
initializeRAFastPass(Registry);
|
||||
initializeRAGreedyPass(Registry);
|
||||
initializeRegisterCoalescerPass(Registry);
|
||||
initializeRenameIndependentSubregsPass(Registry);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# RUN: llc -run-pass=greedy -debug-pass=Arguments -o - %s | FileCheck %s
|
||||
# RUN: llc -run-pass=regallocbasic -debug-pass=Arguments -o - %s | FileCheck %s
|
||||
# RUN: llc -run-pass=regallocfast -debug-pass=Arguments -o - %s | FileCheck %s
|
||||
|
||||
# Check that passes are initialized correctly, so that it's possible to
|
||||
# use -run-pass.
|
||||
|
@ -7,6 +8,7 @@
|
|||
---
|
||||
# CHECK: name: foo
|
||||
name: foo
|
||||
tracksRegLiveness: true
|
||||
body: |
|
||||
bb.0:
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue