mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
[RegAllocFast] Add the proper initialize method to use the .mir infrastructure
NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user