This is needed by assignment verification in linear-scan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-02-19 01:10:55 +00:00
parent f66d9069cf
commit 04319bb2bd

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;