Lines Matching defs:BlockPtr
3579 /// Insert disconnected VPBlockBase \p NewBlock after \p BlockPtr. Add \p
3580 /// NewBlock as successor of \p BlockPtr and \p BlockPtr as predecessor of \p
3581 /// NewBlock, and propagate \p BlockPtr parent to \p NewBlock. \p BlockPtr's
3582 /// successors are moved from \p BlockPtr to \p NewBlock. \p NewBlock must
3584 static void insertBlockAfter(VPBlockBase *NewBlock, VPBlockBase *BlockPtr) {
3588 NewBlock->setParent(BlockPtr->getParent());
3589 SmallVector<VPBlockBase *> Succs(BlockPtr->successors());
3591 disconnectBlocks(BlockPtr, Succ);
3594 connectBlocks(BlockPtr, NewBlock);
3598 /// BlockPtr. Add \p IfTrue and \p IfFalse as succesors of \p BlockPtr and \p
3599 /// BlockPtr as predecessor of \p IfTrue and \p IfFalse. Propagate \p BlockPtr
3600 /// parent to \p IfTrue and \p IfFalse. \p BlockPtr must have no successors
3604 VPBlockBase *BlockPtr) {
3609 BlockPtr->setTwoSuccessors(IfTrue, IfFalse);
3610 IfTrue->setPredecessors({BlockPtr});
3611 IfFalse->setPredecessors({BlockPtr});
3612 IfTrue->setParent(BlockPtr->getParent());
3613 IfFalse->setParent(BlockPtr->getParent());