mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
This is needed by assignment verification in linear-scan.
llvm-svn: 11618
This commit is contained in:
parent
584b3d7379
commit
ef9c4f4339
@ -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…
x
Reference in New Issue
Block a user