Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/CodeGen/MachineBasicBlock.cpp
Show First 20 Lines • Show All 478 Lines • ▼ Show 20 Line(s) | 478 | for (J = std::next(I); J != LiveIns.end() && J->PhysReg == PhysReg; ++J) | |||
---|---|---|---|---|---|
479 | LaneMask |= J->LaneMask; | 479 | LaneMask |= J->LaneMask; | ||
480 | Out->PhysReg = PhysReg; | 480 | Out->PhysReg = PhysReg; | ||
481 | Out->LaneMask = LaneMask; | 481 | Out->LaneMask = LaneMask; | ||
482 | } | 482 | } | ||
483 | LiveIns.erase(Out, LiveIns.end()); | 483 | LiveIns.erase(Out, LiveIns.end()); | ||
484 | } | 484 | } | ||
485 | 485 | | |||
486 | unsigned | 486 | unsigned | ||
487 | MachineBasicBlock::addLiveIn(MCPhysReg PhysReg, const TargetRegisterClass *RC) { | 487 | MachineBasicBlock::addLiveIn(MCRegister PhysReg, const TargetRegisterClass *RC) { | ||
488 | assert(getParent() && "MBB must be inserted in function"); | 488 | assert(getParent() && "MBB must be inserted in function"); | ||
489 | assert(Register::isPhysicalRegister(PhysReg) && "Expected physreg"); | 489 | assert(PhysReg.isPhysical() && "Expected physreg"); | ||
490 | assert(RC && "Register class is required"); | 490 | assert(RC && "Register class is required"); | ||
491 | assert((isEHPad() || this == &getParent()->front()) && | 491 | assert((isEHPad() || this == &getParent()->front()) && | ||
492 | "Only the entry block and landing pads can have physreg live ins"); | 492 | "Only the entry block and landing pads can have physreg live ins"); | ||
493 | 493 | | |||
494 | bool LiveIn = isLiveIn(PhysReg); | 494 | bool LiveIn = isLiveIn(PhysReg); | ||
495 | iterator I = SkipPHIsAndLabels(begin()), E = end(); | 495 | iterator I = SkipPHIsAndLabels(begin()), E = end(); | ||
496 | MachineRegisterInfo &MRI = getParent()->getRegInfo(); | 496 | MachineRegisterInfo &MRI = getParent()->getRegInfo(); | ||
497 | const TargetInstrInfo &TII = *getParent()->getSubtarget().getInstrInfo(); | 497 | const TargetInstrInfo &TII = *getParent()->getSubtarget().getInstrInfo(); | ||
▲ Show 20 Lines • Show All 999 Lines • Show Last 20 Lines |