Add a comment above findRepresentativeClass explaining why it's

where it is so that future generations can understand.

llvm-svn: 231111
This commit is contained in:
Eric Christopher 2015-03-03 19:47:14 +00:00
parent af16cda10d
commit 720ab84ba2
1 changed files with 4 additions and 0 deletions

View File

@ -1144,6 +1144,10 @@ TargetLoweringBase::emitPatchPoint(MachineInstr *MI,
/// findRepresentativeClass - Return the largest legal super-reg register class
/// of the register class for the specified type and its associated "cost".
// This function is in TargetLowering because it uses RegClassForVT which would
// need to be moved to TargetRegisterInfo and would necessitate moving
// isTypeLegal over as well - a massive change that would just require
// TargetLowering having a TargetRegisterInfo class member that it would use.
std::pair<const TargetRegisterClass *, uint8_t>
TargetLoweringBase::findRepresentativeClass(const TargetRegisterInfo *TRI,
MVT VT) const {