diff options
| author | Matthias Braun <matze@braunis.de> | 2015-09-25 21:51:14 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2015-09-25 21:51:14 +0000 |
| commit | e6a2485e1a14f830e1c65c0f361aa92787d6ecf8 (patch) | |
| tree | f4353e9e653728066a85c498b0721e5528c4f9ed /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
| parent | bbbf9a1a34af09b6e271f2288c32429e1a53f3e6 (diff) | |
| download | bcm5719-llvm-e6a2485e1a14f830e1c65c0f361aa92787d6ecf8.tar.gz bcm5719-llvm-e6a2485e1a14f830e1c65c0f361aa92787d6ecf8.zip | |
TargetRegisterInfo: Add typedef unsigned LaneBitmask and use it where apropriate; NFC
llvm-svn: 248623
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |

