mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Codegen pass definition cleanup. No functionality.
Moving toward a uniform style of pass definition to allow easier target configuration. Globally declare Pass ID. Globally declare pass initializer. Use INITIALIZE_PASS consistently. Add a call to the initializer from CodeGen.cpp. Remove redundant "createPass" functions and "getPassName" methods. While cleaning up declarations, cleaned up comments (sorry for large diff). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -31,13 +31,10 @@ namespace {
|
||||
} // end anonymous namespace
|
||||
|
||||
char UnpackMachineBundles::ID = 0;
|
||||
char &llvm::UnpackMachineBundlesID = UnpackMachineBundles::ID;
|
||||
INITIALIZE_PASS(UnpackMachineBundles, "unpack-mi-bundles",
|
||||
"Unpack machine instruction bundles", false, false)
|
||||
|
||||
FunctionPass *llvm::createUnpackMachineBundlesPass() {
|
||||
return new UnpackMachineBundles();
|
||||
}
|
||||
|
||||
bool UnpackMachineBundles::runOnMachineFunction(MachineFunction &MF) {
|
||||
bool Changed = false;
|
||||
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {
|
||||
@ -85,13 +82,10 @@ namespace {
|
||||
} // end anonymous namespace
|
||||
|
||||
char FinalizeMachineBundles::ID = 0;
|
||||
char &llvm::FinalizeMachineBundlesID = FinalizeMachineBundles::ID;
|
||||
INITIALIZE_PASS(FinalizeMachineBundles, "finalize-mi-bundles",
|
||||
"Finalize machine instruction bundles", false, false)
|
||||
|
||||
FunctionPass *llvm::createFinalizeMachineBundlesPass() {
|
||||
return new FinalizeMachineBundles();
|
||||
}
|
||||
|
||||
bool FinalizeMachineBundles::runOnMachineFunction(MachineFunction &MF) {
|
||||
return llvm::finalizeBundles(MF);
|
||||
}
|
||||
|
Reference in New Issue
Block a user