From e6a2485e1a14f830e1c65c0f361aa92787d6ecf8 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 25 Sep 2015 21:51:14 +0000 Subject: TargetRegisterInfo: Add typedef unsigned LaneBitmask and use it where apropriate; NFC llvm-svn: 248623 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index e4d6e66b6e7..97adb764896 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -331,7 +331,7 @@ void MachineBasicBlock::printAsOperand(raw_ostream &OS, OS << "BB#" << getNumber(); } -void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, unsigned LaneMask) { +void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) { LiveInVector::iterator I = std::find_if( LiveIns.begin(), LiveIns.end(), [Reg] (const RegisterMaskPair &LI) { return LI.PhysReg == Reg; }); @@ -343,7 +343,7 @@ void MachineBasicBlock::removeLiveIn(MCPhysReg Reg, unsigned LaneMask) { LiveIns.erase(I); } -bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, unsigned LaneMask) const { +bool MachineBasicBlock::isLiveIn(MCPhysReg Reg, LaneBitmask LaneMask) const { livein_iterator I = std::find_if( LiveIns.begin(), LiveIns.end(), [Reg] (const RegisterMaskPair &LI) { return LI.PhysReg == Reg; }); @@ -361,7 +361,7 @@ void MachineBasicBlock::sortUniqueLiveIns() { LiveInVector::iterator Out = LiveIns.begin(); for (; I != LiveIns.end(); ++Out, I = J) { unsigned PhysReg = I->PhysReg; - unsigned LaneMask = I->LaneMask; + LaneBitmask LaneMask = I->LaneMask; for (J = std::next(I); J != LiveIns.end() && J->PhysReg == PhysReg; ++J) LaneMask |= J->LaneMask; Out->PhysReg = PhysReg; -- cgit v1.2.3