summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-09-21 02:24:09 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-09-21 02:24:09 +0000
commit43593b8cd02ec526b7543715380c24e3aa506feb (patch)
treeb1c11932b5036261290d6c97012ffa392e200b78 /llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
parente1061018bf8d50685c7a76865827e9fb6a0ba7e2 (diff)
downloadbcm5719-llvm-43593b8cd02ec526b7543715380c24e3aa506feb.tar.gz
bcm5719-llvm-43593b8cd02ec526b7543715380c24e3aa506feb.zip
I tried to standardize the formatting and tidy up the huge amount of
excess whitespace a little. Also improved some comments. llvm-svn: 8642
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 88bd5e21a85..a767dbdcc52 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -99,15 +99,11 @@ public:
const char *getPassName () const {
return "Traditional graph-coloring reg. allocator";
}
-
- // access to register classes by class ID
- //
- const RegClass* getRegClassByID(unsigned id) const {
- return RegClassList[id];
- }
- RegClass* getRegClassByID(unsigned id) {
+
+ inline const RegClass* getRegClassByID(unsigned id) const {
return RegClassList[id];
}
+ inline RegClass *getRegClassByID(unsigned id) { return RegClassList[id]; }
private:
void addInterference(const Value *Def, const ValueSet *LVSet,
@@ -147,7 +143,6 @@ private:
void printLabel(const Value *Val);
void printMachineCode();
-
int getUsableUniRegAtMI(int RegType, const ValueSet *LVSetBef,
MachineInstr *MI,
std::vector<MachineInstr*>& MIBef,
OpenPOWER on IntegriCloud