Lines Matching defs:MovePos
166 /// basic block that MovePos lives in, right before MovePos.
167 void Instruction::moveBefore(Instruction *MovePos) {
168 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false);
171 void Instruction::moveBeforePreserving(Instruction *MovePos) {
172 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true);
175 void Instruction::moveAfter(Instruction *MovePos) {
176 auto NextIt = std::next(MovePos->getIterator());
180 moveBeforeImpl(*MovePos->getParent(), NextIt, false);
183 void Instruction::moveAfterPreserving(Instruction *MovePos) {
184 auto NextIt = std::next(MovePos->getIterator());
188 moveBeforeImpl(*MovePos->getParent(), NextIt, true);