mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Introducing plugable register allocators and instruction schedulers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
#include "llvm/CodeGen/SSARegMap.h"
|
||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
||||
#include "llvm/CodeGen/MachinePassRegistry.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
@@ -33,6 +34,10 @@ namespace {
|
||||
static Statistic<> NumStores("ra-simple", "Number of stores added");
|
||||
static Statistic<> NumLoads ("ra-simple", "Number of loads added");
|
||||
|
||||
static RegisterRegAlloc
|
||||
simpleRegAlloc("simple", " simple register allocator",
|
||||
createSimpleRegisterAllocator);
|
||||
|
||||
class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
|
||||
MachineFunction *MF;
|
||||
const TargetMachine *TM;
|
||||
|
Reference in New Issue
Block a user