From: Eric Christopher Date: Tue, 3 Mar 2015 19:47:14 +0000 (+0000) Subject: Add a comment above findRepresentativeClass explaining why it's X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7b1d76b9e5c26d0381dcae535f7f073a904749ca;p=oota-llvm.git Add a comment above findRepresentativeClass explaining why it's where it is so that future generations can understand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231111 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp index 9048a44e745..07f9f663ff5 100644 --- a/lib/CodeGen/TargetLoweringBase.cpp +++ b/lib/CodeGen/TargetLoweringBase.cpp @@ -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 TargetLoweringBase::findRepresentativeClass(const TargetRegisterInfo *TRI, MVT VT) const {