Lines Matching defs:MovePos
174 /// basic block that MovePos lives in, right before MovePos.
175 void Instruction::moveBefore(Instruction *MovePos) {
176 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), false);
179 void Instruction::moveBefore(BasicBlock::iterator MovePos) {
180 moveBeforeImpl(*MovePos->getParent(), MovePos, false);
183 void Instruction::moveBeforePreserving(Instruction *MovePos) {
184 moveBeforeImpl(*MovePos->getParent(), MovePos->getIterator(), true);
187 void Instruction::moveBeforePreserving(BasicBlock::iterator MovePos) {
188 moveBeforeImpl(*MovePos->getParent(), MovePos, true);
191 void Instruction::moveAfter(Instruction *MovePos) {
192 auto NextIt = std::next(MovePos->getIterator());
196 moveBeforeImpl(*MovePos->getParent(), NextIt, false);
199 void Instruction::moveAfterPreserving(Instruction *MovePos) {
200 auto NextIt = std::next(MovePos->getIterator());
204 moveBeforeImpl(*MovePos->getParent(), NextIt, true);