mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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:
parent
f66d9069cf
commit
04319bb2bd
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user