This is needed by assignment verification in linear-scan.

llvm-svn: 11618
This commit is contained in:
Alkis Evlogimenos 2004-02-19 01:10:55 +00:00
parent 584b3d7379
commit ef9c4f4339

View File

@ -189,6 +189,14 @@ public:
return NumRegs;
}
/// areAliases - Returns true if the two registers alias each other,
/// false otherwise
bool areAliases(unsigned regA, unsigned regB) const {
for (const unsigned *Alias = getAliasSet(regA); *Alias; ++Alias)
if (*Alias == regA) return true;
return false;
}
virtual const unsigned* getCalleeSaveRegs() const = 0;