mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Rename canCombinedSubRegIndex method to something more grammatically correct
and tidy up the comment describing it. llvm-svn: 105339
This commit is contained in:
parent
aa18562c5c
commit
fd208cef5d
@ -469,14 +469,15 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// canCombinedSubRegIndex - Given a register class and a list of sub-register
|
||||
/// indices, return true if it's possible to combine the sub-register indices
|
||||
/// into one that corresponds to a larger sub-register. Return the new sub-
|
||||
/// register index by reference. Note the new index by be zero if the given
|
||||
/// sub-registers combined to form the whole register.
|
||||
virtual bool canCombinedSubRegIndex(const TargetRegisterClass *RC,
|
||||
SmallVectorImpl<unsigned> &SubIndices,
|
||||
unsigned &NewSubIdx) const {
|
||||
/// canCombineSubRegIndices - Given a register class and a list of
|
||||
/// subregister indices, return true if it's possible to combine the
|
||||
/// subregister indices into one that corresponds to a larger
|
||||
/// subregister. Return the new subregister index by reference. Note the
|
||||
/// new index may be zero if the given subregisters can be combined to
|
||||
/// form the whole register.
|
||||
virtual bool canCombineSubRegIndices(const TargetRegisterClass *RC,
|
||||
SmallVectorImpl<unsigned> &SubIndices,
|
||||
unsigned &NewSubIdx) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1185,8 +1185,8 @@ TwoAddressInstructionPass::CoalesceExtSubRegs(SmallVector<unsigned,4> &Srcs,
|
||||
|
||||
std::sort(SubIndices.begin(), SubIndices.end());
|
||||
unsigned NewSubIdx = 0;
|
||||
if (TRI->canCombinedSubRegIndex(MRI->getRegClass(SrcReg), SubIndices,
|
||||
NewSubIdx)) {
|
||||
if (TRI->canCombineSubRegIndices(MRI->getRegClass(SrcReg), SubIndices,
|
||||
NewSubIdx)) {
|
||||
bool Proceed = true;
|
||||
if (NewSubIdx)
|
||||
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
|
||||
|
@ -302,7 +302,7 @@ ARMBaseRegisterInfo::getMatchingSuperRegClass(const TargetRegisterClass *A,
|
||||
}
|
||||
|
||||
bool
|
||||
ARMBaseRegisterInfo::canCombinedSubRegIndex(const TargetRegisterClass *RC,
|
||||
ARMBaseRegisterInfo::canCombineSubRegIndices(const TargetRegisterClass *RC,
|
||||
SmallVectorImpl<unsigned> &SubIndices,
|
||||
unsigned &NewSubIdx) const {
|
||||
|
||||
|
@ -78,14 +78,15 @@ public:
|
||||
getMatchingSuperRegClass(const TargetRegisterClass *A,
|
||||
const TargetRegisterClass *B, unsigned Idx) const;
|
||||
|
||||
/// canCombinedSubRegIndex - Given a register class and a list of sub-register
|
||||
/// indices, return true if it's possible to combine the sub-register indices
|
||||
/// into one that corresponds to a larger sub-register. Return the new sub-
|
||||
/// register index by reference. Note the new index by be zero if the given
|
||||
/// sub-registers combined to form the whole register.
|
||||
virtual bool canCombinedSubRegIndex(const TargetRegisterClass *RC,
|
||||
SmallVectorImpl<unsigned> &SubIndices,
|
||||
unsigned &NewSubIdx) const;
|
||||
/// canCombineSubRegIndices - Given a register class and a list of
|
||||
/// subregister indices, return true if it's possible to combine the
|
||||
/// subregister indices into one that corresponds to a larger
|
||||
/// subregister. Return the new subregister index by reference. Note the
|
||||
/// new index may be zero if the given subregisters can be combined to
|
||||
/// form the whole register.
|
||||
virtual bool canCombineSubRegIndices(const TargetRegisterClass *RC,
|
||||
SmallVectorImpl<unsigned> &SubIndices,
|
||||
unsigned &NewSubIdx) const;
|
||||
|
||||
const TargetRegisterClass *getPointerRegClass(unsigned Kind = 0) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user