projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MachineBasicBlock: Use MCPhysReg instead of unsigned in livein API
[oota-llvm.git]
/
lib
/
CodeGen
/
RegAllocBase.h
diff --git
a/lib/CodeGen/RegAllocBase.h
b/lib/CodeGen/RegAllocBase.h
index 68bd4b5b6316a119f3e268b0f8f585d7f2a4d833..659b8f505a229fd277a69726cd519a64e7f9852b 100644
(file)
--- a/
lib/CodeGen/RegAllocBase.h
+++ b/
lib/CodeGen/RegAllocBase.h
@@
-34,8
+34,8
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_
CODEGEN_REGALLOCBASE
-#define LLVM_
CODEGEN_REGALLOCBASE
+#ifndef LLVM_
LIB_CODEGEN_REGALLOCBASE_H
+#define LLVM_
LIB_CODEGEN_REGALLOCBASE_H
#include "llvm/CodeGen/LiveInterval.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/CodeGen/LiveInterval.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
@@
-65,7
+65,8
@@
protected:
LiveRegMatrix *Matrix;
RegisterClassInfo RegClassInfo;
LiveRegMatrix *Matrix;
RegisterClassInfo RegClassInfo;
- RegAllocBase(): TRI(0), MRI(0), VRM(0), LIS(0), Matrix(0) {}
+ RegAllocBase()
+ : TRI(nullptr), MRI(nullptr), VRM(nullptr), LIS(nullptr), Matrix(nullptr) {}
virtual ~RegAllocBase() {}
virtual ~RegAllocBase() {}
@@
-95,6
+96,9
@@
protected:
// Use this group name for NamedRegionTimer.
static const char TimerGroupName[];
// Use this group name for NamedRegionTimer.
static const char TimerGroupName[];
+ /// Method called when the allocator is about to remove a LiveInterval.
+ virtual void aboutToRemoveInterval(LiveInterval &LI) {}
+
public:
/// VerifyEnabled - True when -verify-regalloc is given.
static bool VerifyEnabled;
public:
/// VerifyEnabled - True when -verify-regalloc is given.
static bool VerifyEnabled;
@@
-105,4
+109,4
@@
private:
} // end namespace llvm
} // end namespace llvm
-#endif
// !defined(LLVM_CODEGEN_REGALLOCBASE)
+#endif